Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Change "Lookup View" based on user language?

Posted on by 200

In Microsoft Dynamics is it possible to automatically change a users default "Lookup View" or any other type of "View" based on what language the user is or what language a user selects? 

*This post is locked for comments

  • Sergio D. Profile Picture
    Sergio D. 56 on at
    RE: Change "Lookup View" based on user language?

    If you are using GridControl for your views, yes there is.

    There are various ViewSelector [GridControl] methods but the ones that you'd need to use are getViewSelector() and setCurrentView().

    Note: your subgrid control must beconfigured to display the view selector...

    Here is the sample code from MSDN

    var ContactsIFollow = {

    entityType: 1039, // SavedQuery

    id:"{3A282DA1-5D90-E011-95AE-00155D9CFA02}",

    name: "Contacts I Follow"

    }

    //Set the view using ContactsIFollow

    Xrm.Page.getControl("Contacts").getViewSelector().setCurrentView(ContactsIFollow);

     


    Hope it helps

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans