Button in a form
Posted on 2011-03-02
I have a button in a form X. That button needs to appear if this form X is in update or changed mode and shouldn't appear when it is insert mode. This form is calleed from form Y always. WHen it is coming from form Y to X only it has to validate whether it is in insert/ new or update/change modes.
For this I did wrote a pre-form trigger.
if :SYSTEM.FORM_STATUS in ('QUERY','CHANGED') then
set_item_property('X1', VISIBLE, PROPERTY_TRUE);
else if :SYSTEM.FORM_STATUS in ('NEW','INSERT') then
set_item_property('X1', VISIBLE, PROPERTY_FALSE);
The problem is:this button appears as tab through the fields only . Can any one tell me the mistake I did?Why is it not able to recognise the form status?