SET_FORM_PEOPERTY [message #413822] |
Fri, 17 July 2009 14:03 |
rhl23
Messages: 25 Registered: July 2009 Location: MUM
|
Junior Member |
|
|
I am trying to set the FIRST_NAVIGATION_BLOCK property by using SET_FORM_PROPERTY in WHEN_NEW_FORM_INSTANCE TRIGGER as follows.
SET_FORM_PROPERTY ('form_module_name',FIRST_NAVIGATION_BLOCK,'Block1');
BUT it does not set as it is , instead it shows the default display as in the obj, navigator & another block- block2 becomes the first_navigation_block.
But i want to make it to BLOCK1 - how can i do it???
And I also wanted to know IF i can use CLEAR_FORM with this trigger..
|
|
|
Re: SET_FORM_PEOPERTY [message #413826 is a reply to message #413822] |
Fri, 17 July 2009 14:16 |
|
Littlefoot
Messages: 21823 Registered: June 2005 Location: Croatia, Europe
|
Senior Member Account Moderator |
|
|
Forms Help clearly says that this property is to be set in the PRE-FORM trigger, not in WHEN-NEW-FORM-INSTANCE.
This is your statement:SET_FORM_PROPERTY ('form_module_name', FIRST_NAVIGATION_BLOCK, 'Block1'); Did you use literally this statement? If so, it is wrong as 'form_module_name' should be substituted with real form module name. For example, if you form name is 'employees' (saved as 'employees.fmb'), then it should beSET_FORM_PROPERTY ('employees', FIRST_NAVIGATION_BLOCK, 'Block1');
The same goes for block name.
Quote: | And I also wanted to know IF i can use CLEAR_FORM with this trigger.
| Try and you'll see. There's really no use in telling the answer as it takes just a little bit of effort to do that by yourself.
|
|
|
|