materix
|
| Posted: 08/26/2004, 11:47 AM |
|
I need to reference EditMode in BeforeShow of a Form.
When I just for testing try to write in BeforeShow:
global $Form;
echo $Form->EditMode;
Then the EditMode value comes out blank, both when it is supposed to be in EditMode and InsertMode.
If I try other Run-Time properties such as "InsertAllowed" the value is correctly written out.
So my question is, why I can not reference EditMode in BeforeShow?
|
|
|
 |
travel-net
Posts: 56
|
| Posted: 08/27/2004, 12:21 AM |
|
global $storing_frm;
global $label1;
if ($storing_frm->EditMode) {
//Edit Mode
echo Editmode;
} else {
//Add Mode
echo Addmode;
Look in the top off your generated page. It displays the form mode
Regards,
Frans
|
 |
 |
|