I'm basically thinking out load here, but for a given form, we might have separate methods for onShow, onRecordSelection, onDataChange, etc., and I would imagine the amount of code in each method isn't that much, so it might help from an organization standpoint to have a single method in each form dedicated to processing these events. Maybe something like:
- Code: Select all
var eventName = application.getMethodTriggerEventName();
var elementName = application.getMethodTriggerElementName();
if (eventName == 'onShow')
{
// do stuff
}
else if (eventName == 'onDataChange')
{
if (elementName == 'fld_first_name')
{
// do more stuff
}
}
:
:
:
Might be helpful. I don't know.
Regards,
Sean