Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Answered

How to open a form with a specific loadId?

(0) ShareShare
ReportReport
Posted on by 737

Hello,

I have created a functionality that, allows you to move load rows between loads or possibly move rows to a completely new load. Everything works OK. I display to the user in the infolog if the operation was successful and to which load the selected rows were moved.
However, I would like that if the rows are moved to a new load, the form with the newly created load opens instead of the infolog.

Is this possible?

Thanks.

  • Verified answer
    Shooowtek Profile Picture
    Shooowtek 737 on at
    RE: How to open a form with a specific loadId?

    The problem has already been solved.

    Thanks.

            Args args;
            Object formRun;
            args = new Args();
            args.record(WHSLoadTable::find(loadId));
            args.name(formstr(WHSLoadTable));
            formRun = classfactory.formRunClass(args);
            formRun.init();
            formRun.run();
            formRun.wait();

  • Shooowtek Profile Picture
    Shooowtek 737 on at
    RE: How to open a form with a specific loadId?

    Hi Andre,

    My question is about D365. The difficulty is that I have a value WHSLoadTable.LoadId. After performing the logic, I display the infolog with the loadId. Instead, I would like to open a WHSLoadTable form for the current WHSLoadTable.LoadId.

  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 292,031 Super User 2025 Season 1 on at
    RE: How to open a form with a specific loadId?

    Hi Shooowtek,

    It is possible to open forms and set focus to a particular record. Is your question about AX2012 or Dynamics 365? What is the difficulty you need help with?

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

Announcing Our 2025 Season 1 Super Users!

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

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,031 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,868 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans