Notifications
Announcements
No record found.
Hi,
I need to modify the visibility of controls from InventTransferJour form. In the original form the visibility of controls is set in active method of InventTransferJour datasource. When i try to use COC for this method i can't access form controls. Is there any way to set controls visibility from datasource method?
You can access the form controls from your CoC method, in the same way than in the original active method.
Intellisense might not work, though.
Could you share your code? It's easier to troubleshoot that way. Thanks!
As Nikolaos said,
You can access the form controls from your CoC method.
You can also use Event Handler on the onActivate method of the datasource to enable\disable the control.
Please refer to the following codes:
[FormDataSourceEventHandler(formDataSourceStr(InventTransferJour, InventTransferJour), FormDataSourceEventType::Activated)] public static void InventTransferJour_OnActivated(FormDataSource sender, FormDataSourceEventArgs e) { FormRun element = sender.formRun(); FormControl yourcontrol = element.design().controlName(formControlStr(InventTransferJour, yourcontrol)); yourcontrol.enabled(false); }
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 646 Most Valuable Professional
André Arnaud de Cal... 529 Super User 2025 Season 2
Sohaib Cheema 285 User Group Leader