Personalized Community is here!
Quickly customize your community to find the content you seek.
Have questions on moving to the cloud? Visit the Dynamics 365 Migration Community today! Microsoft’s extensive network of Dynamics AX and Dynamics CRM experts can help.
2021 Release Wave 2Discover the latest updates and new features releasing from October 2021 through March 2022.
2021 release wave 2 plan
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Community | FastTrack Program | Finance and Operations TechTalks | Customer Engagement TechTalks | Upcoming TechTalks | All TechTalks
Hi, I have been trapped for several weeks by this using scenario in AX.
I need to dynamically display a value at the end of the grid, for all the forms in AX.
So it is not possible to define a display method in the form level or table level.
Also, the value is calculated by a HTTP request with each line data. When there is a click in each row, I can get the value, but I cannot send back, fill in the right place.
I tried to add a FormStringControl in the FormGridControl, but have difficulty to display for each row.
Could you, please, describe in detail what is the purpose of the change? Why do you need it in all forms? For me, http request for each row sounds like quite heavy and unnecessary operation.
But, it looks like you need to modify SysSetupFormRun class and add fields dynamically (or maybe implement the button to call http request)
Here is an example with menu items www.dynamicsaxtraining.com/.../add-form-controls-without-form-modification
I just want to do some common calculations that can be applied to all forms. The HTTP request is only sent when there is a click, and is light and fast for now.
Now I can add a field to the formRun, and get the value in the eventHandler. The problem is how to display the result in the right place.
When I use FormStringControl, the text() function changes the whole column, and if I use the formTableControl using .cell(row, column).data(result), the row number changes with view changes.
I just wonder what kind of calculation can be applied to all forms.
Usually, you can use display fields if you need to show caluclated values for each line
or table field with SaveContent = No and field update in postLoad method.
But all these approaches are required changes on particular tables.
If your calculation is only triggered for the selected record, it should not be on a grid.
Could you share us more details about this calculation - what is the business case here?
Anyway, perhaps you can manage to display it in form caption or somewhere else, instead of on the grid.
To make it clear, the calculation is about machine learning prediction, that can be performed on any form, any data field.
Thats why this is common, and cannot modify on particular tables or forms.
Would be really interesting to hear the business requirement here - if you feel that you can share it I would really appreciate it.
My suggestion is to try to add it to a button or the right click context menu, instead of triggering it every time when some record is selected. This way it's also less likely that the whole system becomes unusable if this functionality has a bug or the HTTP call takes some time.
This is for real-time prediction, of course I can display out of the grid, using FormStaticTextControl instead.
But for better display, it is better to show in the grid.
And what will it predict?
For example if the user selects a record in Customer groups, what is the prediction showing and where is this prediction used?
Or Released products? Packing slip journal?
I'm just curious :)
I can easily imagine building some prediction based on specific tables, such as customer transactions. But to have a prediction that produces something useful (even in most cases, or useful nr of cases) no matter which table record is passed to it - seems very ambitious to me!
Business Applications communities