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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Passing parameters of dynamics ax

(0) ShareShare
ReportReport
Posted on by

On Dynamics AX 2012, Passing between two step form a parameter that I would use to change the data source of the second form; how you pass a parameter from the init form to init the data source?

Thanks 
Tejaswini
Mindmajix

*This post is locked for comments

I have the same question (0)
  • Mea_ Profile Picture
    60,286 on at

    Hi Tejaswini U,

    You can get access to args from init() of datasource as well. Just use element.args().

  • Suggested answer
    Jacob Efron Profile Picture
    15 on at

    Hello,

    I hope the below code will help you in passing parameters in dynamics ax. 

    public void init()
    {
        CustTable cTable;
        ;
        super();
    
        // Check for passed arguments
        if( element.args() )
        {
            // get record parameter
            if( element.args().record() && element.args().record().TableId == TableNum( CustTable ) )
            {
                cTable =  element.args().record();            
            }
        }
    }

    Hope you found this helpful.

    Cheers!

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 21

#2
dserp Profile Picture

dserp 4

#2
dekion Profile Picture

dekion 4

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans