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

To update enum value on multi select record

(0) ShareShare
ReportReport
Posted on by 371

7827.demo.jpg

the last column is Select category it is by default "A"..now the thing is if i select the multiple account name and click on the sales category a new form will open it ask to change the value from "A" to "B",or "C"...if i select the the "C" the selected customer category change to "C"...it is possible to update the multiple name 

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Pravasti AK Profile Picture
    2,985 on at

    Hi Vinay,

    use a tmp table, fill with the enum values and use the SysLookupMultiSelectCtrl Class.

  • Suggested answer
    Vilmos Kintera Profile Picture
    46,149 on at

    It has been asked before multiple times. Use multi-select lookup

    community.dynamics.com/.../171480

  • Suggested answer
    Community Member Profile Picture
    on at

    Hi Vinay,

         Yes you can update the name as you require, because name is non unique index, so it will allow duplicate records for customer accounts.  you can update the name by using job or from front end you can modify the record.

    Thanks

    Suresh

  • vinaytak Profile Picture
    371 on at

    @Kavitha Rajan i already tried that but not succeed..the enum value i put in Dir party table...

  • vinaytak Profile Picture
    371 on at

    @Suresh potlakayala.. i want to do this when i select the multiple record from the front end like all customer i select the 3 customer then the new form pop up it ask to change when i choose the value from it it will update the value ..

  • Suggested answer
    Community Member Profile Picture
    on at

    Hi,

         Then you need to do validation on that field, Please check the below link. it may be useful for you.

    daxmusings.codecrib.com/.../multi-select-on-form-datasource-grid.html

    Thanks

    Suresh

  • Community Member Profile Picture
    on at

    Hi,

        Please find the below link also,

    community.dynamics.com/.../how-to-select-multiple-selected-values-records-from-lookups-in-dynamics-ax

    Thanks

    Suresh

  • Suggested answer
    Pravasti AK Profile Picture
    2,985 on at

    Hi Vinay,

    static void lookupOpportunityId(FormStringControl _callerControl, smmOpportunityId _opportunityId, DirPartyId _partyId)

    {

       Query query = new Query();

       QueryBuildDataSource queryBuildDataSource, queryBuildDataSource1;

       SysTableLookup sysTableLookup = SysTableLookup::newParameters(tablenum(smmOpportunityTable), _callerControl);

       ;

       sysTableLookup.addLookupfield(fieldnum(smmOpportunityTable, OpportunityId),true);

       sysTableLookup.addLookupfield(fieldnum(smmOpportunityTable, Subject));

       sysTableLookup.addLookupfield(fieldnum(smmOpportunityTable, PartyId));

       sysTableLookup.addLookupfield(fieldnum(smmOpportunityTable, ProbabilityId));

       queryBuildDataSource = query.addDataSource(tablenum(smmOpportunityTable));

        queryBuildDataSource1 = queryBuildDataSource.addDataSource(tablenum(smmQuotationProbabilityGroup));

      // queryBuildDataSource1.relations(true);

       queryBuildDataSource1.joinMode(JoinMode::ExistsJoin);

       queryBuildDataSource.fetchMode(QueryFetchMode::One2One);

       queryBuildDataSource1.addLink(fieldnum(smmOpportunityTable, ProbabilityId), fieldnum(smmQuotationProbabilityGroup, ProbabilityId));

       queryBuildDataSource1.addRange(fieldnum(smmQuotationProbabilityGroup, INU_smmProbabilityStatus)).value(queryvalue(INU_smmProbabilityStatus::Active));

       queryBuildDataSource.addRange(fieldnum(smmOpportunityTable, Status)).value(queryNotValue(smmOpportunityStatus::Won));

       queryBuildDataSource = queryBuildDataSource.addDataSource(tablenum(DirPartyTable));

       queryBuildDataSource.joinMode(JoinMode::ExistsJoin);

       queryBuildDataSource.fetchMode(QueryFetchMode::One2One);

       queryBuildDataSource.addLink(fieldnum(smmOpportunityTable, PartyId), fieldnum(DirPartyTable, PartyId));

       queryBuildDataSource.addRange(fieldnum(DirPartyTable, PartyId)).value(_partyId);

    //INU_smmProbabilityStatus //BACK

       sysTableLookup.parmQuery(query);

       sysTableLookup.performFormLookup();

    }

  • vinaytak Profile Picture
    371 on at

    @Kavitha Rajan ....where to write this code

  • Suggested answer
    Pravasti AK Profile Picture
    2,985 on at

    Hi,

    go to datasource in form, go to the field RC >> override methods you get lookupreference

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 39

#2
Michel ROY Profile Picture

Michel ROY 14

#3
imran ul haq Profile Picture

imran ul haq 8

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans