daogu
Which Trigger and What Level?
What trigger fires when the user cycles from record to record in a single block form?
Example:
When user cycles through records (using next_record bound key) I need to set enabled/disabled property of certain text items in the form.
How can I achieve this?
Thanks,
Steve
Answer:Well, if you need to enable/disable items in those records, do that in PRE-RECORD and POST-RECORD triggers.
Answer:i think you can also use the trigger WHEN-NEW-RECORD-INSTANCE trigger of the data block.
Minto
Answer:Littlefoot and Minto -
Thank you very much for your replies.
The Pre-Record trigger at the block-level is executing perfectly.
One thing to remember, at least when developing using Forms 6i, when you want to enable and disable block level items dependant on certain values you HAVE TO SET the enabled property AND the navigable property, otherwise the form will not function properly. This has been my experience, I’m not sure if anyone else can confirm or deny, but I have seen this in many situations.
Take the following example:
Unless you have the NAVIGABLE property being controlled in addition to the ENABLED property you will not achieve the "turning on and turning off" of certain form items.
Thanks for your help guys!
Regards,
Steve
Answer:Remember that if the item was updateable then you have to set it back ‘on’ after you re-enable the field.
Its in the documentation.
David
Related posts:
- Trigger Assistance Hello - I feel that this is a stupid...
- how to enable/disable button through coding Hi all, I want to enable/disable buttons depending up...
- Problem while using the Post Record Trigger at the block level Hi, I am facing a problem while using the...
- CHECK BOXES HI EVERY BODY i have a doubt i have...
- Disable/Enable current item in tabular block Hi to all, I have a tabular block, I...
No Comments