Element Details: Data+Menu
 Back


Available in: Logi Info Source code name: DataMenuIntroduced in: v10.0.259

The DataMenu element is used to define a menu, with optional sub-menus, driven from a DataLayer, for use in Mobile Reports.

For a fixed menu fully defined in the DataMenu element, a child DataLayer.Static element and its Static Data Row elements configure the menu items. For menus built from data, other datalayers may be used.

The DataMenu element has attributes specifying the DataLayer's columns that contain menu captions, actions and more. If the DataLayer has a column called "ItemCaption" that contains the labels for each menu item, set the CaptionColumn to "ItemCaption".

Menus typically launch actions such as running another report or linking to another web site. Add Action elements for each type of action that might be run from the menu items. For example, there might be an Action.Report to launch reports and Action.Link that take the user to outside URLs. Each of the Action types, should be defined under the DataMenu. When there are multiple Action types then there must be a column in the DataLayer identifying the Action's ID for each menu item. Specify this data column with the ActionIDColumn attribute.

Use the SubMenuIDColumn and TargetSubMenuIDColumn attributes to create menu items that point to sub menu items.



ATTRIBUTES

Click attribute Name to drill down for more information.

NamePossible ValuesDescription
ActionIDColumn
UserDefined
The name of a data field/column whose value identifies the ID of the Action element to use when the item is tapped.
CaptionColumn
UserDefined
(Required) The name of a data field/column whose value is the text to use in each menu item.
Class
UserDefined
Sets the Cascading Style Sheet class used by the element. When set, this class will also be used by all child elements that don't have their own class. The class should be defined in the report's style sheet file.
HideDataMenuArrows
True
False
When "True", the DataMenu will not show the ">" arrows that normally appear on the right side of each menu item. The default value is "False".
ID
UserDefined
(Required) The ID attribute is a pervasive attribute that uniquely identifies an element within a definition file. The ID needs to be a unique value within the definition.
ImageColumn
UserDefined
The name of a data field/column whose value identifies the optional image file that precedes each menu item. Images files for the DataMenu must be in the _SupportFiles folder.
SubMenuIDColumn
UserDefined
The name of a data field/column whose value identifies the menu this item belongs to.
TargetSubMenuIDColumn
UserDefined
TargetSubMenuIDColumn specifies a column in the DataLayer that indicates the name of a sub-menu to be presented when the menu item is clicked. The name of a data field/column whose value identifies the menu this item belongs to.
TemplateModifierFile
UserDefined
Some elements employ a definition file as a template. The definition contains language and culture specific Caption attributes that you may want to change. Or you may simply want to change the captions to better suit your application. The TemplateModifierFile is an XML file with elements pointing to other elements in the template to be changed. All other attributes get applied in the template. For example, the Dashboard2 element has a template file (rdTemplate\rdDashboard\rdDashboard2Template.lgx) several Label elements. One has an ID="lblAddPanelsTitle". The Caption can be changed with the following XML in the TemplateModifierFile: You can set attributes for any number of elements. Examine the template file to learn the ID and Caption attributes you may want to modify. The above example shows how to identify template elements with an ID attribute. Alternatively, you can also identify elements with an XPath expression. In this example, we change an attribute of the InteractivePaging element: For a more detailed list of modifier actions see the following DevNet article. TemplateModifierFiles can be in any folder accessable to the web application. When a directory location is not specified, the default location is the _SupportFiles folder.



PARENT ELEMENTS

Click element to drill down for more information.

Body Report Footer Report Header


CHILD ELEMENTS

Click element to drill down for more information.

Action.Dial Phone
Action.Draft Email
Action.Draft Text Message
Action.Exit
Action.Link
Action.Map Location
Action.Popup Menu
Action.Process
Action.Refresh Element
Action.Report
Action.Show Element
DataLayer.Bookmarks
DataLayer.Cached
DataLayer.CSV
DataLayer.Definition List
DataLayer.Directory
DataLayer.Excel
DataLayer.Fixed Format File
DataLayer.Google App
DataLayer.Google Spreadsheet
DataLayer.JSON
DataLayer.LDAP
DataLayer.Linked
DataLayer.Mongo Find
DataLayer.Mongo Map Reduce
DataLayer.Mongo Run Command
DataLayer.Plugin
DataLayer.REST
DataLayer.Scheduler
DataLayer.SP
DataLayer.SQL
DataLayer.Static
DataLayer.Twitter
DataLayer.Web Feed
DataLayer.Web Scraper
DataLayer.Web Service
DataLayer.XML
Generated Element Plugin Call


 Back to top


 Chart Debug