web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

How to get selected form gird value in dialog field ?

(0) ShareShare
ReportReport
Posted on by 288

Hi, Everyone.

I want a value in dialog field from selected form grid value(ProductionOrder). Please see the below screenshot and also code for your reference. Please give a solution for this 

Screenshot:

0871.Question.png

void clicked()
{  
    Dialog      dialog;
    DialogField field;    
    ;   
        
    dialog = new Dialog("My Dialog");
    dialog.addText("Select your favorite customer:");
    field = dialog.addField(extendedTypeStr(CustAccount));

    dialog.run();
    if (dialog.closedOk())
    {
        info(field.value());
    }
    
    
}

Thanks in advance.

*This post is locked for comments

I have the same question (0)
  • Verified answer
    startax Profile Picture
    1,845 on at

    Hi Selvraj,

    Pass current record in dialog field

    Usign args().record() you would get the selected line(record) of ledgerjournaltrans table and then at dialog initialization you can pass this as dialogfield.value(recordbuffer.field);

    dynamicsuser.net/.../how-to-pass-value-from-a-form-to-dialog-box-in-ax-2012

  • Verified answer
    Peter John Profile Picture
    288 on at

    i have added some codes with yours for get current grid value

    ProductionPool    productionPool;    //Table buffer creation

    productionPool = ProductionPool_ds.cursor();   // Form selected grid value

    field.value(productionPool.ProductionOrder);

    Thanks, Dinkar. :)

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 28

#2
Michel ROY Profile Picture

Michel ROY 14

#3
imran ul haq Profile Picture

imran ul haq 8

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans