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 :
Microsoft Dynamics AX (Archived)

more than one form was opened at once for the lookup control

(0) ShareShare
ReportReport
Posted on by

hi,

in ax7 i have created form 

ds - vendtrans

i have created field payment destination

where i used the override method lookup

inside which the code below is there,

when i run the form ..when i select the value from lookup it throws the error

"more than one form was opened at once for the lookup control".

Query query;
QueryBuildDataSource qbds;
QueryBuildRange qbr;
SysTableLookup lookup;


query = new Query();
qbds = query.addDataSource(tableNum(VendTrans));
qbr = qbds.addRange(fieldNum(VendTrans,AccountNum));


lookup = SysTableLookup::newParameters(tableNum(VendTrans),PaymentDestination,true);
lookup.parmQuery(query);
lookup.addLookupField(fieldNum(VendTrans, AccountNum), true);

lookup.performFormLookup();
super();

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Chaitanya Golla Profile Picture
    17,225 on at

    Hi,

    Please update your code with following changes and try your lookup:

    Replace lookup.addLookupField(fieldNum(VendTrans, AccountNum), true); statement with

    lookup.addLookupField(fieldNum(VendTrans, AccountNum)); and remove call to super();

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!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Joris dG Profile Picture

Joris dG 5

#2
Alexey Lekanov Profile Picture

Alexey Lekanov 2

#2
Henrik Nordlöf Profile Picture

Henrik Nordlöf 2 User Group Leader

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans