Announcements
No record found.
Dear All,
I am very new to Ax and just started the programming on Ax,
Can any one help me and do a favor in knowing me to save the Form Control data into Ax table
*This post is locked for comments
Create a form and use a table as a data source in that form and when you use columns from that data source and enter values, it will save records in that table. You will get plenty examples on web.
Thanks for your swift reposne,
I am trying to insert the values on "Button click event" ,When I pass static values it's working fine .But when I am trying to save the form control values through "Button Click event" then I am unable to do it.
Can you help me how can I do this on button click event
why don't you provide the sample code on button click event
He has AX 2012 tags, so pasting D365fF&O details is not going to be helpful.
SAM: why are you trying to implement something, which is already there. AX saves information which you have entered in a table/field-bound control on a form, if:
- you press the Save button on the toolbar (if you have enabled those)
- you press Control + S
- you navigate away from the record
- you close the form with the Window X button, or Close button
Implementing a save functionality for a button does not sound like Best practice for me at all.
Dear ,
I have custom validations to take care before saving the information into table and also needs to take action on other tables and inform the user a message on button click.
If i use the button command I will certainly save the information,But I can't go through the custom validation which need to take my project furhter .
You can override validateWrite method in order to validate and then you can write a method on form to send message to user if validateWrite returns false.
Again, for custom validations you have standard methods which could be overridden.
Placing custom code on form buttons involving database operations is bad practice, which would fail the code review within my team.
You should put the least amount of code on client-side (forms, buttons). That is why you should do as Ajit has suggested, overriding the methods for validation on the Tables involved.
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.
Congratulations to our 2026 Super Stars!
We are thrilled to have these Champions in our Community!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Joris dG 5
Alexey Lekanov 2
Henrik Nordlöf 2 User Group Leader