Hiding the Ribbon in a Subpage

dvgrif17dvgrif17 Member Posts: 2
edited 2013-02-26 in NAV Three Tier
Whenever you have actions on a sub-page, they show up in the little ribbon that is at the top of the sub page, in addition to showing up on the actions menu (formerly the lightning bolt in 2009 R2). I have a .NET client extensibility add-in that runs inside of a sub-page. I need to maximize vertical space for the add-in, and the ribbon takes up space at the top of the sub-page. Also, the control add-in has its own toolbar, which makes the ribbon confusing for the user. Just having the actions on the drop-down actions menu was a perfect solution, but NAV 2013 seems to always show this ribbon as long as you have actions on a page. The actions seem to ignore the "Promoted" setting for each action, as all my actions have Promoted=No, but still show up on the ribbon. If I set the action to Promoted=Yes, then I get a second copy of the action on the ribbon, which makes no sense to me. I cannot figure out a way to control which actions show up on this ribbon, or how to hide it altogether (desired result). I can't even figure out a way for a user to optionally configure their view such that the ribbon does now show up.

My question: is there a way to programmatically hide the ribbon on a sub-page?

Background: my add-in page has a single Container (subtype ContentArea) and one field, and the control add-in is bound to the field. The actions are in an ActionContainer (subtype ActionItems).

Comments

  • TroelshTroelsh Member, Microsoft Employee Posts: 79
    You can get a Little closer; but unfortunately you can not remove the "find" action - unless you manually edit a configuration file ...

    You can set the visible property of an action or Groups of actions to a boolean variable and control that through code. Filter action is controlled by property "showfilter"

    Troels Bent Hansen
    Senior Program Manager
    Microsoft Dynamics NAV


    ****** This posting is provided "AS IS" with no warranties, and confers no rights ******
  • Johannes_NielsenJohannes_Nielsen Member Posts: 206
    Remember to set this Boolean variable's property "IncludeInDataset" to TRUE :)
    It won't be available in the client otherwise.
    Best regards / Venlig hilsen
    Johannes Sebastian
    MB7-840,MB7-841
Sign In or Register to comment.