steve4king
IS-IT--Management
Alrighty, this seems like a really newbish question, but it's got me stumped for the moment.
When a form is created/displayed using "do form with.."
The order is:
Form.load
Components.init
Form.init
Parameters passed during "do form _ with " are only accepted by the form's init process.
Since that occurs after the component's init process, those params are obviously not available during the component's init.
Just for better organization, and increased maintainability I prefer to keep each objects initialization in it's own init process..
So for this example, I have a grid that hides certain columns dynamically, based on one of these parameters.
To make this function correctly, I need to attach this hiding function to the form's init rather than the grid's init. (making the form's init larger and less easily maintained)
Is there a trick any of you use to get around this?
Thanks,
-Stephen
When a form is created/displayed using "do form with.."
The order is:
Form.load
Components.init
Form.init
Parameters passed during "do form _ with " are only accepted by the form's init process.
Since that occurs after the component's init process, those params are obviously not available during the component's init.
Just for better organization, and increased maintainability I prefer to keep each objects initialization in it's own init process..
So for this example, I have a grid that hides certain columns dynamically, based on one of these parameters.
To make this function correctly, I need to attach this hiding function to the form's init rather than the grid's init. (making the form's init larger and less easily maintained)
Is there a trick any of you use to get around this?
Thanks,
-Stephen