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 :
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?

I have the same question (0)
  • Mohit Rampal Profile Picture
    12,565 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

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 683 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 563 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 398 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans