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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Open menu's (outputs) simultaneously

(0) ShareShare
ReportReport
Posted on by 90

Hi,

I am having a problem with a requirement, in the requirement I am working I need to display two report dialogs at the same time..

No I have this:

       menuFunction = new MenuFunction("ProdPicklistShowDialog", MenuItemType::Output);

       menuFunction.run(args);

       menuFunctionPhantom = new MenuFunction("ProdPicklistPhantomShowDialog", MenuItemType::Output);

       menuFunctionPhantom.run(phtmARgs);

But this triggers the first dialog report, then after I run or cancel the first dialog report appears the second one, I need to displays both dialogs at the same time.

Any idea how to achieve this ?

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    on at

    As dialog box get displayed using Propmt() method when first report is run, so system waits till user enters the value and clicks ok/ cancel to move to next statement execution.

    if you write code like this it will not work..

    you need to write this code in such as way that execution happens in two thread

    Follow following link for Thread programming in X++

    msdn.microsoft.com/.../aa891240(v=ax.50).aspx

    Please verify and let me know if you need technical support related to this.

  • Verified answer
    Martin Dráb Profile Picture
    237,965 Most Valuable Professional on at

    I don't think the Thread class will help you in any way. You would have to use detached forms instead of usual dialogs.

    Nevertheless I wouldn't expect users really filling two dialogs in the same time, therefore I suggest reconsidering your design. Maybe you want to use a common dialog and then pass the right data to each report.

  • Alberto Tapia Profile Picture
    90 on at

    Thanks so far for the ideas, the Thread class does not help me, I already try different approach using that solution...

    And my customer actually want to trigger two dialog reports at the same time, double check trying to propose other approach but they want to see two dialog reports at the same time (this is related to some customization on the picking list report of a po and phantom items....)

    Still have the problem....

  • Martin Dráb Profile Picture
    237,965 Most Valuable Professional on at

    What I suggested were detached forms. If you don't want to do it, you'll have to find an alternative solution by yourself.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans