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 :
Finance | Project Operations, Human Resources, ...
Unanswered

Issue with SysLookupMultiSelectCtrl lookup in RunBase

(0) ShareShare
ReportReport
Posted on by 8

Hello,

I have a weird problem with a SysLookupMultiSelectCtrl control in my RunBase batch class.
I have followed the logic from the Tutorial classes as follows:


private int dlgPostingTypeId;
private FormStringControl dlgPostingType;
private SysLookupMultiSelectCtrl postingTypeLookup;

public Object dialog()
{
FormBuildStringControl fbscPostingType;
FormBuildGroupControl currGroup;

DialogRunbase dialog = super();

fbscPostingType = currGroup.addControl(FormControlType::String,
'postingTypeLookup');
fbscPostingType.label("@SYS26086");
fbscPostingType.lookupOnly(true);
dlgPostingTypeId = fbscPostingType.id();

}

public void dialogPostRun(DialogRunbase _dialog)
{
super(_dialog);

dlgPostingType = _dialog.formRun().design().control(dlgPostingTypeId);


postingTypeLookup = SysLookupMultiSelectCtrl::construct(_dialog.formRun(), dlgPostingType,
queryStr(XXXLedgerSystemAccountsQuery), true);

}

I have come across a very weird problem where upon clicking on the control for lookup for the first time, the lookup form width is as follows:

pastedimage1683268215913v1.png

However, it looks ok upon clicking on it for a second time:
pastedimage1683268334172v2.png

Has anyone come up with this problem?

  • Mohit Rampal Profile Picture
    12,573 Moderator on at

    Hi, I don't know what can be root cause of this issue but can you try adding fbscPostingType.width(100) after last line in the dialog method.

  • Jason0810M Profile Picture
    8 on at

    Hello,

    No, the issue is still there.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 532 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 351 Super User 2026 Season 2

#3
CU-1234529-002 Profile Picture

CU-1234529-002 195

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans