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 :
Microsoft Dynamics AX (Archived)

multi select lookup in UI Builder

(0) ShareShare
ReportReport
Posted on by 3,945

hi all ,
I am doing multiselect lookup in UI builder class.
some codes are as follows

List             custId; // declared in class declaration

[
DataMemberAttribute('AccountNum'), 
AifCollectionTypeAttribute('AccountNum', Types::String),
SysOperationLabelAttribute(literalStr("Customer Name")),
SysOperationDisplayOrderAttribute('1')

]
public List parmCustId(List _custId = custId)
{
custId = _custId;
return custId;
}

showing error : -

Error executing code: List (object), method create called with invalid parameters.

Stack trace

(C)\Classes\List\create
(C)\Classes\SysOperationDataContractInfo\unpackDataContractObject - line 85
(C)\Classes\SysOperationController\unpackDataContractInfoObjects - line 34
(C)\Classes\SysOperationController\unpack - line 70
(C)\Classes\SrsReportRunController\unpack - line 15
(C)\Classes\xSysLastValue\getLast - line 29
(C)\Classes\SysOperationController\loadFromSysLastValue - line 29
(C)\Classes\SrsReportRunController\loadFromSysLastValue - line 7
(C)\Classes\SysOperationController\getDataContractInfoObjects - line 10
(C)\Classes\SrsReportRunController\parmReportContract - line 14
(C)\Classes\SrsReportRunController\startOperation - line 4
(C)\Classes\ClassFactory\runReport - line 24
(C)\Classes\ClassFactory\viewSRSReportOnClient - line 3
(C)\Classes\ClassFactory\viewSRSReport - line 12

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    on at

    Sometimes I've got the same error message cleared by deleting auc and running a FULL CIL compile. If the problem isn't solved by this way you can still try to delete user's datas.

  • Gautam Profile Picture
    3,945 on at

    hi Cyril , not working

  • Community Member Profile Picture
    on at

    How did you cleared users datas ?

  • Gautam Profile Picture
    3,945 on at

    Only i have done  FULL CIL compile

  • Community Member Profile Picture
    on at

    Try  File\Tools\Options\ Usage Data \ Clear or, if you're on a test environment, delete the user account you use for tests purposes and recreate it.

  • syed baber Profile Picture
    11,633 on at

    Hi Gautam,

    Is it a UIBuilder class or Contract class? It looks like a contract class and you have created a parm method to return List object.

    Thanks,

    Baber.

  • Gautam Profile Picture
    3,945 on at

    Ya Baber you are right ..these code are from Contract class.

  • Suggested answer
    Community Member Profile Picture
    on at

    Goto -> AOT -> SystemDocumentation -> Tables -> SysLastValue -> Righ Click ->Adds-In -> Table Browser.

    delete all records against your User ID and restart your client.

  • Suggested answer
    syed baber Profile Picture
    11,633 on at

    Hi Gautam,

    For showing multi select lookup on your report dialog, you need to use the SysLookupMultiSelectGrid class.

    Take a look at below blog post for creating multi select lookup in UI Builder class:

    dynamicsaxinsight.wordpress.com/.../ax-2012-multi-select-lookup-for-ssrs-report-dialog

    Please let me know if you have further queries.

    Thanks,

    Baber.

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 > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans