Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Unanswered

Issue with SysLookupMultiSelectCtrl lookup in RunBase

(0) ShareShare
ReportReport
Posted on by

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?

  • Jason0810M Profile Picture
    Jason0810M on at
    RE: Issue with SysLookupMultiSelectCtrl lookup in RunBase

    Hello,

    No, the issue is still there.

  • Mohit Rampal Profile Picture
    Mohit Rampal 12,554 Super User 2024 Season 1 on at
    RE: Issue with SysLookupMultiSelectCtrl lookup in RunBase

    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.

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,111 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,934 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans