Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

How to edit lookup for item Id in batch order ?

Posted on by 570

when i create a new batch order , i need to show some items number in lookup

3365.lookup.png

so i go to ItemId  field in the dataSource ---> ProadTable--> ItemId --> lookup

i found the next 

public void lookup(FormControl _formControl, str _filterStr)
{
    InventLookup lookup;
    if (#PmfEnabled)
    //if (#PmfEnabled)
    {
        pmfFormCtrl_ProdTableCreate.fieldLookup(
            fieldNum(ProdTable, ItemId), _formControl, _filterStr);
    }
    else
    {
        lookup = new InventLookup(_formControl, new Query(), formStr(InventItemIdLookupPurchase));
        lookup.run();
    }
}


but I didn't understood , where is lookup method 

thank you in advance..

*This post is locked for comments

  • Ismail Mohamed Profile Picture
    Ismail Mohamed 570 on at
    RE: How to edit lookup for item Id in batch order ?

    what is [tag:PmfEnabled] ?

  • Suggested answer
    Rustem Galiamov Profile Picture
    Rustem Galiamov 8,072 on at
    RE: How to edit lookup for item Id in batch order ?

    You need to modify InventItemIdLookupPurchase form if #PmfEnabled fall because of

    lookup = new InventLookup(_formControl, new Query(), formStr(InventItemIdLookupPurchase));

    If #PmfEnabled is true, take a look inside pmfFormCtrl_ProdTableCreate.fieldLookup() method.

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!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans