Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Button (+ add new) in subgrid disappear when i change the command with new Js action ribbonworkbench

Posted on by Microsoft Employee

Hello, 

I need to change the quick create form that open when i click in button + add new  in subgrid, i want to open another form when i click in + add new button. 

i changed the command of the standard button with a new JS action (OpenEntityForm) with RibbonWrokbench, but when i publish, the button disappear from the subgrid. 

2063.add-button.PNG

Thanks for your help.

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Button (+ add new) in subgrid disappear when i change the command with new Js action ribbonworkbench

    Hello,

    i compared the order with another entity,I changed the order but it does not work.

    I tried to create a new button and add my function over there but the button is not diplayed.

  • Suggested answer
    gdas Profile Picture
    gdas 50,085 on at
    RE: Button (+ add new) in subgrid disappear when i change the command with new Js action ribbonworkbench

    In addition try to set order of the rules with comparing another entity subgrid add new button.

    For me if you want to change the OOB functionality in that case you can create your own custom button and add the function over there.

  • Suggested answer
    Aric Levin Profile Picture
    Aric Levin 30,188 on at
    RE: Button (+ add new) in subgrid disappear when i change the command with new Js action ribbonworkbench

    I am not sure where you copied the display rules from, but most display rules will not have Mscrm.ShowForOneToManyGrids and Mscrm.ShowForManyToManyGrids in the same command. They kind of contradict each other.

    I would say please revalidate the display and enable rules that you are using.

    Hope this helps.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Button (+ add new) in subgrid disappear when i change the command with new Js action ribbonworkbench

    Thanks for your reply Aric,

    Yes i added the enable/diplay rules and the button still hidden. 

    0878.display-rule.PNG

  • Aric Levin Profile Picture
    Aric Levin 30,188 on at
    RE: Button (+ add new) in subgrid disappear when i change the command with new Js action ribbonworkbench

    Since you changed the command, it is possible that you also did not include Display/Enable rules that were previously part of the command, which is why it is not showing anymore.

    Please check what display and enable rules exist for the previous command, and add them back to the command.

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,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans