Archive

Posts Tagged ‘Command Bar’

[Preview Feature] Model Driven Apps | Edit Command Bar

In this article lets explore the ‘Edit Command Bar’ preview feature available in Model Driven Apps designer. But first lets understand the following basics of Command Bar.

  • What are Command Bars?
  • Where do we find them in Model Driven App (i.e., Command bar locations)?

What are Command Bars?

  • Command bars are at the core of every model-driven app and appear in many different locations.
  • The group of commands associated with a specific location make up a command bar.

Command bar locations in Model Driven App:

  • Main grid. This command bar is displayed when using the left-hand navigation of an app to view a full page list of records in this table.
  • Main form. This command bar is displayed on the table’s main forms. This appears at the top of the form and is not the same as the associated view or subgrid view that will appear in different areas of the form.
  • Subgrid view. This command bar is displayed on forms of other tables that render this table’s data within a subgrid.
  • Associated view. This command bar is displayed on the form of a parent table when viewing related data in this table.
  • Quick actions. There isn’t a specialized entry point from the command designer because quick actions are edited from the main grid of the table.

Now that we got the basics, lets explore editing the Command bar.

Using ‘Edit command bar (preview)’:

  • To use ‘Edit command bar (preview)’ feature. Connect to Power Apps portal.
  • Create a new ‘Model-driven app from blank’ and select the ‘Modern app designer (preview)’.
  • Add a Page and link one of your Dataverse Table.
    • I’ve added ‘Student’ table as Page.
  • Now click on ‘…’ of ‘Student’ and click on ‘Edit command bar (preview)’.
  • From the options choose one of the ‘Command Bar’ location you would like to edit.
  • In the next screen, you will get all the available of Commands displayed as below.
    • At this point editing ‘Legacy button is not supported’. Refer the limitations here.
  • I am going to add a new ‘Command’ named ‘Open My Blog’ which opens up an URL.
  • Click on ‘+New command’ and provide details on the right pane.
  • Action property specifies what happens on the ‘Select’ of the ‘Command’. Below are 2 available options.
  • As I need to open URL on the select of my ‘Open My Blog’ command. Under Action’ choose ‘Run formula’ and in the formula bar add ‘Launch()’ Power Fx as below.
  • Click ‘Save and Publish’ and ‘Play’.
  • On your App, you should see the command and on select it redirects to the provided URL.

Refer the docs link for more details.

🙂

Categories: PowerApps Tags: ,

Command bar – CRM 2013

February 18, 2014 Leave a comment

In CRM 2013, there is a major face-lift to the UI like no Navigation Bar, No conventional ribbons and introduction of ‘Command Bar’.

Below are few points about CRM 2013 Command Bar

  • The Ribbon Bar is still exists in CRM 2013, on non ‘refreshed’ entity Forms such as Connection Form and Price List Form, and is still present on all home list view grids in Outlook client.
  • Command Bar shows 5 controls at any one time before they are added to the ‘overflow’ section.
  • Command Bar does not display ‘Disabled’ controls instead they will come in ‘overflow’ section.

Command Bar

Command Bar

CommandClientTypeRule Display Rule

  • There is a new display rule CommandClientTypeRule determines the visibility of a control on the command bar.
  • Controls will be displayed on the Command Bar, if
    • Associated Command has no CommandClientTypeRule Display Rules
    • If it has a CommandClientTypeRule with Type=Refresh
  • ‘Type’ property has the following values:
    • Modern – Control is visible in the Tablet client
    • Refresh –  Control is visible in the Command Bar
    • Legacy   –  Control is visible on ribbons of non-refresh entities or in list views presented in Microsoft Outlook.

🙂