Notifications
Announcements
No record found.
i want to add Grid to form programmatically onclick event using x++
*This post is locked for comments
What's the business requirement that you decided to implement by this technical design? It's likely that we'll able to suggest a better approach.
Hi Abid Omer,
It does not sound like a good idea for me as well, however, if you really want to do it you can read this blog article
blogs.msdn.microsoft.com/.../using-x-to-add-a-control-at-runtime
it shows how to add button in run time so you can use it as example.
And here you can find how to build form in run time with a grid http://axhelper.blogspot.co.nz/2011/01/create-form-with-x-code-run-time-form.html
thanks ievgen i'll check it
hi martin .. i need to create someting like a report .. any employee have some calculated data ...i need to do this on runtime .. i created table with field and fill it .. after that i want to set table as datasource to grid control ..
Hi Abid,
To achieve this requirement you dont need to create grid at runtime.
There are out-of-box form templates in AX you can use these to create forms very quickly, follow these steps.
msdn.microsoft.com/.../hh538488.aspx
Well described post on your requirement is here community.dynamics.com/.../form-development-from-scratch-dynamics-ax-2012-r3-part-1
For calculated fields you need to write display methods; this is how you can create display methods jkmsdax2012.wordpress.com/.../create-simple-display-method-in-ax-2012
thanks faisal .. i'll try it .. and let u know
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.
Priya_K 4
Martin Dráb 4 Most Valuable Professional
MyDynamicsNAV 2