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 :
Finance | Project Operations, Human Resources, ...
Suggested Answer

In x++ Runbasebatch button

(0) ShareShare
ReportReport
Posted on by 10

Hi all,

in the RunbaseBatch class i want to add a dialog one button how to write via x++ ?

then i want to add that clicked button below enum based  an element select we want Excel field name only show. 

i have a Enum element. 

Ex:

1.Import worker  < personnelNumber, name>    Excel o/p :  personnelNumber | name user manually type value how to do in x++.

2.update position

3.Update dimension.

Regards,

Azar 

I have the same question (0)
  • Martin Dráb Profile Picture
    239,040 Most Valuable Professional on at

    I'm sorry, but I don't understand. Could you please rephrase "that clicked button below enum based  an element select we want Excel field name only show"? Providing a more context about the business process would likely help too.

  • Azar Profile Picture
    10 on at

    Thanks for your replay Martin Drab sir,

    I want to add a button like<Generate template> in a RunBaseBatch class dialog method, and assign it a clicked method

    Once i select enum element and click the Generate template button import a field value in show to Excel  could you give me an example on how to do it.

  • Martin Dráb Profile Picture
    239,040 Most Valuable Professional on at

    What do you mean by "import a field value in show to Excel"?

  • Azar Profile Picture
    10 on at

    2514.Capture.PNG

    i want to output above the value fields only when i click the generate button.

    Reagrds,

    Azar 

  • Martin Dráb Profile Picture
    239,040 Most Valuable Professional on at

    Hmm, why would you do such a think in a RunBase dialog? Could you now please describe the business scenario?

    RunBase classes are used to collect input parameters and run business logic after confirming the dialog. Executing exports from the dialog before confirming sounds strange to me.

  • Azar Profile Picture
    10 on at

    Please give us a solution for that how to add in a dialog box button and assign it a clicked method how to achieve in x++?

  • Azar Profile Picture
    10 on at

    Becoz i want to runtime generate template in the Excel.  

  • Sukrut Parab Profile Picture
    71,735 Moderator on at

    What is your business requirement ? Why you want to generate excel template using code ?

  • Azar Profile Picture
    10 on at

    Thanks for your replay Sukrut,

    in below is runbasebatch and i want to add Right side add to a one button and "update Position"

    PositionID, Description. i want to Excel sheet how to do in x++ what to be done ? 

    8611.Capture1.PNG

  • nmaenpaa Profile Picture
    101,166 Moderator on at

    As others have mentioned, your design seems a bit strange. In the batch dialog you're supposed to give some input parameters for the batch, not execute business logic such as reading from Excel files.

    Perhaps using RunBaseBatch for this part of process doesn't make sense?

    Could you describe the whole business process that you're trying to implement? Thanks!

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 March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 669

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 445 Super User 2026 Season 1

#3
Syed Haris Shah Profile Picture

Syed Haris Shah 331 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans