I try to add display method to form data source using extension to the form data source itself . The project is built successfully but when I try to browse the form I receive an error that the method do not exist , how can I add display method to form data source in my case I cannot use table display method since I need a value from another data source on the same form to retrieve the values
Dear maram,
display methods which are written in formdatasource extension are shown in this format in the data method: classextensionName.displaymethodName.
For example if you have added calcAmount display method to vendinvoiceJournal_vendInvoiceJourDS_Extension then you will see vendinvoiceJournal_vendInvoiceJourDS_Extension.calcAmount in the data method property
Hi Maram,
If you want extra value from another DS in your form , you can create a table extension from the other table and write the display method.
The following diagram shows how to use the method In the form that you need the value .
I hope that these help to you, any problems please let me know
Best Regards,
Will
On field property, you have to use objectname.display method. For example, if you created extension as abc_extension and added display method in this class then use abc_extension.methodname
The problem with form datasource displays is that they usually had a buffer parameter and I think this isn’t working on extensions very well.
If you create a table extension to create the display method you can get the datasource using this.datasource() (I think) and from there you can try to access the other DS from which you need the data.
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 Andrés Arias as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Sohaib Cheema 823 User Group Leader
André Arnaud de Cal... 673 Super User 2025 Season 2
Martin Dráb 491 Most Valuable Professional