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, ...
Answered

Unselect first line and refresh field value on dialog box ?

(0) ShareShare
ReportReport
Posted on by 229
Hi all,

Do someone know how to refresh muliselectlookup field on dialog box ?
 
For now i always have my first row selected and last selection when i reopen it.

Regards.
I have the same question (0)
  • Suggested answer
    GirishS Profile Picture
    27,827 Moderator on at
    Hi Awaxx,
     
    Try calling parmLoadFromSysLastValue(false) on the controller class.
    It will clear the last loaded values from the cache.
    If it's not working, can you please provide us the screenshot of how its working and also the multiselect code you have written.
     
    Thanks,
    Girish S.
     
  • Awaxx Profile Picture
    229 on at
    Hi Girish,

    I dont know how to procede with the code you talked about.
     
        protected void dialogAddCampus()
        {
            dialogCampusDim = dialog.addFieldValue(extendedTypeStr(Location), campus, "@APSGL:GLCampus");
        }
    
        protected void dialogAddInvoiceSelectionCriteriaFields()
        {
            next dialogAddInvoiceSelectionCriteriaFields();
    
            if(this.campusExist() == NoYes::Yes)
            {
                this.dialogAddCampus();
            }
        }
    
        public void financialDimensionLookup(FormStringControl _stringControl)
        {
            ....
        }
    
        public void dialogPostRun(DialogRunbase _dialog)
        {
    
            next dialogPostRun(_dialog);
    
            if(this.campusExist() == NoYes::Yes)
            {
                dialogCampusDim.registerOverrideMethod(
                    methodStr(FormStringControl, lookup),
                    methodStr(CustVendCreatePaymJournal_Vend, financialDimensionLookup),
                    this);
            }
        }
    
        public boolean getFromDialog()
        {
            boolean ret;
    
            ret = next getFromDialog();
    
            if(this.campusExist() == NoYes::Yes)
            {
                campus = dialogCampusDim.value();
    
            }
            
            return ret;
        }
    
        protected void runPaymentProposalGenerationProcess()
        {
            if(this.campusExist() == NoYes::Yes)
            {
                this.addDimensionQuery();
            }
            next runPaymentProposalGenerationProcess();
    
        }
    
    
    Here s a sample of my code.
  • GirishS Profile Picture
    27,827 Moderator on at
    Seems you are extending the SSRS report classed - In that case you need to create new controller class - Call the required report on the main method.
    public static void main(Args args)
    {
         COntrollerClassName controller = new COntrollerClassName ();
         controller.parmReportName(ssrsReportStr(ReportName,PrecisionDesign1));
         controller.parmDialogCaption("Dialog caption");
         controller.parmLoadFromSysLastValue(false);
         controller.parmArgs(args);
         controller.startOperation();
    }
     
    Create new output menu item and map this class. Now run the report and check whether it meet your scenario.
     
    Thanks,
    Girish S.
  • Awaxx Profile Picture
    229 on at
    No its not a SSRS thats 

    [ExtensionOf(classStr(CustVendCreatePaymJournal_Vend))]
    final class CustVendCreatePaymJournal_Vend_APSGL_Extension
  • GirishS Profile Picture
    27,827 Moderator on at
    If it's not an SSRS report. Can you tell me which standard class you are using to build the dialog form. I mean either RunBase class or SysOperationFramework.
     
    Also, if possible, can you explain the issue with the screenshot of the dialog form with the lookup.
     
    Thanks,
    Girish S.
  • Awaxx Profile Picture
    229 on at
    the standard class is CustVendCreatePaymJournal

  • GirishS Profile Picture
    27,827 Moderator on at
    Also, you need to use container variable to get the selected values from the multiselect lookup. Please refer to the below article. Getting the value from the dialog Field won't work with multi select lookup.
    Seems this is a run base class - So no need to clear the cache value - It will clear all values automatically every time you are opening.
     
    Thanks,
    Girish S.
  • Awaxx Profile Picture
    229 on at
    I used a list to get values.
     
            List            list = new List(Types::String);
            ListEnumerator      enumerator;
            LedgerJournalTrans ledgJournTrans;
            list = Global::strSplit(this.campus,";");
            enumerator = list.getEnumerator();
  • GirishS Profile Picture
    27,827 Moderator on at
    From my understanding there is no other way to refresh the multiselect lookup when using run base class.
    Are you saying every time when you opened the dialog form first and last values are selected on the text box field with the comma seperated values?
     
    Thanks,
    Girish S.
  • Awaxx Profile Picture
    229 on at
    No the values separated by the comma are the selections i made le last time i opened it.

     

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 451 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 239 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans