Disabling Form Fields Server Side

Hello, How do I navigate, from an item to its associated form and then manipulate the associated controls. I want to disable a drop down based upon a field condition in the same form. I'd like to do this as a server side event (onAfterLock) I am able to achieve something similar from a client side as a form onLoad event but the fields do not stay locked once you've toggled the lock status. Appreciate any feedback.
Parents
  • Hello, The onLoad event is called only a single time when the user initially loads the Form. It will not be repeated if the user refreshes, locks, unlocks, or saves the item. This is why the recommendation was to use an onFormPopulated event. Could you let us know what version of Aras Innovator you are using? I believe I wrote that blog post against 11.0 SP12, and there may be some slight variation between versions. One thing you could try is to follow the solution I included for disabling the Item field and place the code you have to disable the field inside of a short timeout. This was to resolve a behavior I saw where the Item field was automatically re-enabled after the Form was fully loaded. Chris
    Christopher Gillis Aras Labs Software Engineer
Reply
  • Hello, The onLoad event is called only a single time when the user initially loads the Form. It will not be repeated if the user refreshes, locks, unlocks, or saves the item. This is why the recommendation was to use an onFormPopulated event. Could you let us know what version of Aras Innovator you are using? I believe I wrote that blog post against 11.0 SP12, and there may be some slight variation between versions. One thing you could try is to follow the solution I included for disabling the Item field and place the code you have to disable the field inside of a short timeout. This was to resolve a behavior I saw where the Item field was automatically re-enabled after the Form was fully loaded. Chris
    Christopher Gillis Aras Labs Software Engineer
Children
No Data