What is the difference between form init() & DS init()

X++ Programming Language >   D365 Forms >   D365 Forms Types  

Short Question

181


Answer:

What is the difference between form init() & DS init()

Form init(): init is activated immediately after new and creates the run-time image of the form.

DS init(): Creates a data source query based on the data source properties. The form data source init method creates the query to fetch data from the database and sets up links if the form is linked to another form.

When a form opens what are the sequential methods called.

Form init(), DataSource init(), Form run(), DataSource executeQuery(), canClose(), close().

Where is the best place to write code to perform filter in a form

FormDataSource - executeQuery() and call this method in the design field of the form.


This Particular section is dedicated to Question & Answer only. If you want learn more about X++ Programming Language. Then you can visit below links to get more depth on this subject.




Join Our telegram group to ask Questions

Click below button to join our groups.