Xrm.Page.ui.navigation item (client-side reference)

 

Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2016, Dynamics CRM Online

Each item represents one of the available navigation options available in the navigation bar for entities that have been updated to the new user experience or on the left side of the form for entities that have not been updated.

Note

These methods do not work with Microsoft Dynamics 365 for tablets.

  • getId
    Returns the name of the item.

  • Label
    Get or change the label for a navigation item using the getLabel and setLabel methods.

  • setFocus
    Sets the focus on the item.

  • Visible
    Determine which navigation items are visible and show or hide them using the getVisible and setVisible methods.

getId

Returns the name of the item.

navigationItemobj.getId()
  • Return Value
    Type:String

Label

Get or change the label for a navigation item using the getLabel and setLabel methods.

getLabel

Returns the label for the item.

navigationItemobj.getLabel()
  • Return Value
    Type:String

setLabel

Sets the label for the item.

navigationItemobj.setLabel(string)
  • Arguments
    Type:String . The new label for the item.

setFocus

Sets the focus on the item.

navigationItemobj.setFocus()

Visible

Determine which navigation items are visible and show or hide them using the getVisible and setVisible methods.

getVisible

Returns a value that indicates whether the item is currently visible.

navigationItemobj.getVisible()
  • Return Value
    Type:Boolean

setVisible

Sets a value that indicates whether the item is visible.

navigationItemobj.setVisible(bool);
  • Arguments
    Type:Boolean. Whether the item is visible.

See Also

Client-side programming reference
Form scripting quick reference
Xrm.Page.ui (client-side reference)
Write code for Microsoft Dynamics 365 forms
Use the Xrm.Page object model

Microsoft Dynamics 365

© 2016 Microsoft. All rights reserved. Copyright