bowtellj
Posts: 65
|
| Posted: 08/28/2007, 3:52 AM |
|
I want to show / hide a grid depending on the edit mode. I have used the following and in insert mode the grid hides but in edit mode it still is not visible. I have added this code to the before show event for the page. Case is correct. What have I missed?
global $articles;
global $NewGrid1;
if (! $articles->EditMode)
{
$NewGrid1->Visible = false;
}
_________________
Thanks
James
Just another Newbie! - Apache 2.24, PHP 5.2.3, MySQL 5.0.41, Windows XP SP2. CCS 3.2.0.2/4.0.2
|
 |
 |
datadoit.com
|
| Posted: 08/28/2007, 7:08 AM |
|
Your form isn't pulling a record. Based on your form's WHERE criteria
it can't find a record, thus you're always in Insert mode.
|
|
|
 |
bowtellj
Posts: 65
|
| Posted: 08/28/2007, 1:55 PM |
|
I thought of this an I apologise for not mentioning it. It was pulling a record based of ArticleID. If I set the visible to true it shows the record correctly. Set it to false the grid does not show. The forms have all been built using the builders.
_________________
Thanks
James
Just another Newbie! - Apache 2.24, PHP 5.2.3, MySQL 5.0.41, Windows XP SP2. CCS 3.2.0.2/4.0.2
|
 |
 |
|