Skip to main content
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

  • Suggested answer
    Chaitanya Golla Profile Picture
    17,225 on at
    RE: more than one form was opened at once for the lookup control

    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

News and Announcements

Now Available: 2025 Release Wave 2

Quick Links

Ramesh Kumar – Community Spotlight

We are honored to recognize Ramesh Kumar as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Kempeth Profile Picture

Kempeth 4

#1
Andy Adamak Profile Picture

Andy Adamak 4

#1
Community Member Profile Picture

Community Member 4

Featured topics

Product updates

Dynamics 365 release plans