Adding a report button

This topic explains how to use an ImageButton control to show a report in the mobile app. You can also use other types of controls, such as buttons. In each case you set the OnClick attribute to OnOpenReport, and set the Tag attribute to the display text of the report that you want to show.

  1. Open the Mobile configuration in the Configuration Editor.
  2. Select the Views node and browse to the view to which you want to add the report.
  3. Under the View node, select the appropriate Controls node and add a child ImageButton node.
  4. Add these attributes to the ImageButton node:
    ID
    Specify a unique identifier for the image button.
    OnClick
    Set the value of the OnClick attribute to OnOpenReport. The OnOpenReport event shows the report specified by the Tag attribute.
    Tag
    Enter the display text of the report, as defined in the Reports Manager. You can also enter multiple reports in a comma-separated list. If multiple reports are configured, the app will show a popup list when the user taps the report button.
    Alternatively, you can use the syntax shown in this example for the Tag attribute:
    Id=AppReport&Bind=Application.ApplicationNumber&DisplayName=My Report
    • The Id is the display text of the report, as in the standard syntax.
    • The Bind is the relative bind from the current object. For example, if you're setting up an inspection report, the above example would be used to get the related application number.
    • The DisplayName is an alternative display name for the report. If multiple reports are configured, this text will be used in the popup.
    Image
    Set the value to print (all lowercase) to show a print icon on the button.
    Note: The value is case-sensitive. It must be all lowercase for the button to be displayed properly.
  5. Save your changes.