Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

Based on enumvalue NoYes, i want to display the values of the record in the other field

(0) ShareShare
ReportReport
Posted on by

Hi all,

i was stuck here, not sure which method is used here to solve this scenario. please help me2021_2D00_09_2D00_06_5F00_11_2D00_04_2D00_30.png with your suggestions.

for example :

Products.png

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

  • Rati Sharabidze Profile Picture
    612 on at
    RE: Based on enumvalue NoYes, i want to display the values of the record in the other field

    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.

  • Suggested answer
    ergun sahin Profile Picture
    8,816 Moderator on at
    RE: Based on enumvalue NoYes, i want to display the values of the record in the other field

    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).

  • Leo Chen Profile Picture
    on at
    RE: Based on enumvalue NoYes, i want to display the values of the record in the other field

    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

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.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,289 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,068 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans