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 CRM (Archived)

Associated view

(0) ShareShare
ReportReport
Posted on by 132

Hi All,

I have 2 subgrid of leads on account form. One subgrid is OOB other is custom i.e it takes data from fetchxmldefined in JS. 

I want to hide the associated view button for custom subgrid...Can anyone help me on this .

I cann't do it by ribbon workbench i think as it will hide for all subgrids that i have on account form

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    gdas Profile Picture
    50,091 Moderator on at

    Hi Kapil ,

    Try to write enable rule based on parent entity type return false otherwise always true.

    Hope this helps.

  • Kapil Singla Profile Picture
    132 on at

    Hi Goutam,

    Won't it disable that button for all different entity  subgrid's on that parent entity ?

  • Suggested answer
    gdas Profile Picture
    50,091 Moderator on at

    Hi Kapil,

    Why you are thinking so , check here this is similar like hiding subgrid + button. You need to check just entity type in the enable rule.

    community.dynamics.com/.../275058

    function HideAssociatedViewButton() {

       var entityType = Xrm.Page.data.entity.getEntityName();

       if (entityType == "contact") {

           return false;

       }

       else {

           return true;

       }

    }

  • Kapil Singla Profile Picture
    132 on at

    I have two lead sub grids on account form.. I want to hide associated button for only one subgrid of lead on account form

  • Suggested answer
    Dynamics365 Rocker Profile Picture
    7,755 on at

    Change properties of sub grid and select only one view that you want to show.

  • Kapil Singla Profile Picture
    132 on at

    We have used fetchxml for that subgrid data. It's not oob but custom subgrid

  • Dynamics365 Rocker Profile Picture
    7,755 on at

    Can you please share screen shot and xml?

  • Verified answer
    Kapil Singla Profile Picture
    132 on at

    Hi,

    I am sorry but rn m at home but we have used the steps as mentioned in below link

    The only diff is we have used lead as subgrid

    blog.navantis.com/dynamically-change-sub-grid-fetchxml-with-a-small-twist-fix

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 CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans