Announcements
Hi all,
i was stuck here, not sure which method is used here to solve this scenario. please help me with your suggestions.
for example :
if we select 2 records, the value in the field has to display like this: Lucerne Hay for PELLET MILL 74.72%; Pellet Hay 10.00%
if we select 3 records, the value has to display based on selection of records
Hi,
As you want to check NoYes value for each record, you need to write the logic in the active() method of your datasource. In this way, you will be able to get the buffer of the record on which the cursor is located.
It is possible to do what you want with more than one method, but many of them slow down the form.
The most logical thing is to loop the table for the fields selected as "Yes" when the form is opened (in the init method), and fill the value you have calculated into the field you just opened.
Just recalculate and update the value when the new NoYed field changes(modifield).
Value showing dynamicly accoridng to your grid row selection might be challenging. However, if you create a button there and show the calculated value per your needs once you click the button, it would be easier. You can refer to below link - microsoft-dynamics-ax-erp.blogspot.com/.../how-to-know-selected-rows-in-grid.html
André Arnaud de Cal...
293,289
Super User 2025 Season 1
Martin Dráb
232,068
Most Valuable Professional
nmaenpaa
101,156
Moderator