Notifications
Announcements
No record found.
Hallo,
I created an extension from an init method of a datasource, I've use this code below but when I execute the form I'm getting an error.
element.args().callerFormControl().name()
Is there another way to call the caller form name from a table datasource?. Thank you!
Just saying that you're getting an error isn't sufficient. Please tell us whether it's a compilation error or a runtime error, what error message says and which of the statements it's related to.
In either case, callerFormControl() doesn't give you the caller form. Use caller() method instead:
FormRun callerForm = element.args().caller() as FormRun; if (callerForm) { ... }
Hi Martin,
Thank you for the code snippet, it seems that I did not put the "as FormRun" on my code thats why I get an error, sorry my bad.
"as FormRun" doesn't make any difference if the caller is a FormRun object. If it isn't, it'll set the value to null, and therefore the "if" condition won't be met.
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.
Abhilash Warrier 669 Super User 2025 Season 2
André Arnaud de Cal... 471 Super User 2025 Season 2
Martin Dráb 423 Most Valuable Professional