Skip to main content

Notifications

Microsoft Dynamics AX (Archived)

create generic parameters

Posted on by Microsoft Employee

Hi all

I want to create a generic paramteres Form/Table Holding following Information:

1. a prefix (integer value, 3-digits) (systemwide)

2. a single integer value added to the 3 Digits (can be up to 10 times (0-9))

0 - 4 Standard numbers, 5 - 9 fallback for 0 - 4 with a relation, means 0 -> 5, 1->6...

3. Name for the integer value added in 2.

Any ideas?

*This post is locked for comments

  • Suggested answer
    nmaenpaa Profile Picture
    nmaenpaa 101,156 on at
    RE: create generic parameters

    Maybe you could take a look on how the Number Sequences section is implemented in each AX module's parameters form. Basically there is a "fixed" (based on certain criteria in code and metadata) grid where user can enter setup for number sequences of that module.

    Your form / grid would have 5 rows and 3 columns.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: create generic parameters

    Ok, what I want to achieve is to have a Matrix/table on the form to enter the data.

    I do have 5 Areas to create setupdata (SM, MB, FB, BT and EXT) this should be the lines in the table.

    For each line  have to fill 3 values (IdExtension, IdExtensionFallback, Name)

  • Suggested answer
    Rustem Galiamov Profile Picture
    Rustem Galiamov 8,072 on at
    RE: create generic parameters

    You should write your own logic for generate salesId and use it instead of Numbersequence.

    Try to debug the sales order creation process to find a better place to put your own logic.

  • nmaenpaa Profile Picture
    nmaenpaa 101,156 on at
    RE: create generic parameters

    You do need to define "generic" a bit better (more accurate).

    Maybe then we can also help you in how to implement it.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: create generic parameters

    yes something like this. but I want to have those fields generic because it could happen that definition changes some time

  • Suggested answer
    nmaenpaa Profile Picture
    nmaenpaa 101,156 on at
    RE: create generic parameters

    Well, if you want to crate such parameters, do you face some issue? What kind of help do you exactly need?

    If I understood correctly, you don't want to use a number sequence, so I guess you want to have some static parameters instead.

    So just add one field for each of your required settings (prefix etc) and use them from your code.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: create generic parameters

    Hi , yes it means, and no, Numbersequence is no option in this case

  • Rustem Galiamov Profile Picture
    Rustem Galiamov 8,072 on at
    RE: create generic parameters

    Hi ChrisR75!

    Ordernumber - means SalesId of sales orders?

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: create generic parameters

    Hi

    I have to create orders (template order in our case) from inside a project.

    for the ordernumber I have to extend the project number with the 3digits prefix and the 1 digit num depending on some criteria. (called area in our system)

  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 291,240 Super User 2024 Season 2 on at
    RE: create generic parameters

    Hi ChrisR75,

    Can you elaborate about the functional requirements? What exactly do you need to achieve. To be honest, I really don't understand this question.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans