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)

Customize duplicate menu item for purchase order form

(0) ShareShare
ReportReport
Posted on by

I am brand new to AX development, 

I have issue regarding purchase order customization, the details are: I have created duplicate purchase order form by using duplicate on menu items, i have also set the filter for my custom data, now standard and duplicate have different view when open through different menu item. Now i want to implement a functionality that if we open duplicate purchase order and do modification on form level, data source level or control level, it should be restricted to custom menu item form where the duplicate purch order form is opening. 

For creating duplicate of standard form, i have done modification on form class declaration, init and execute query() method on datasource level. 

Please help me out. Thank you !

*This post is locked for comments

I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    301,020 Super User 2025 Season 2 on at

    Hi ShubhAX,

    Unfortunately, I cannot understand your question. Can you describe in detail the business requirement, the attempts you have done and where exactly you need help?

  • Community Member Profile Picture
    on at

    Hi Andre, The business requirement is create separate purchase order for new product. So what i done is using standard purch table form, create a duplicate menu item for this and in add range on form to open in customized view where no other records visible on Purchase order form i.e on purchase order line header.

    Procedure - Dragged purcTable form to new menuitem and create duplicate of it > added range. 

    codes- 

        QueryBuildRange                 queryBuildRangeABC;

    queryBuildRangeFleet  =  this.query().dataSourceName('PurchTable').addRange(fieldnum(PurchTable, ABCOrder ));

    if(element.args().menuItemName()==menuitemDisplayStr(ABCTable))
    {
    queryBuildRangeABCt.value(queryValue(NoYes::Yes));
    }

    I have added an custom enum NoYes field on Purch table, declared QueryBuildRange in form, and add range initialize the range at init method on purchTable_ds and then added query value on executeQuery(). It works fine and the forms shows no record.  

    "Now i want an implementation that if we make many change on form for custom entries on purch order lines , the modification should be bounded to duplicate menu item only and any modification on form may not reflect to standard form run process."

    For ex- if  we modify the itemName filed on purchline_ds or any other development the changes should only restrict to new menuitem form i.e dupilcate type of standard form.

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
Priya_K Profile Picture

Priya_K 4

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#3
Ali Zaidi Profile Picture

Ali Zaidi 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans