labels Element
Specifies the text strings that appear in the on the tasklet's user interface. A tasklet can have numerous text resources that appear in the user interface. For example, the text resources can include field labels, column headings, and validation error messages. These text resources can be customized using the <labels> element in the UserRole.xml file. Tasklets are developed with key-text pairs for setting any user interface text strings. The key-text pairs are defined in the <labels> element for a tasklet.
<tasklet name=”MyTasklet”>
<configuration>
<labels>
<add context="context description" key=”myText” text=”label text” />
</labels>
</configuration>
</tasklet>
The following sections describe attributes, child elements, and parent elements.
Attributes
| Attribute | Description |
|---|---|
|
|
Optional attribute. Information about the value of the |
|
|
Required attribute. A unique key for the label text. |
|
|
Required attribute. The text that appears in the user interface. |
Child Elements
| Element | Description |
|---|---|
|
Contains key-text pairs for defining user interface text. |
Parent Elements
| Element | Description |
|---|---|
|
Contains elements and key-value pairs for configuring tasklets. |
The following example uses the labels element to define user interface text strings on a tasklet for viewing and changing user credentials.
<tasklet name="Credentials" text="Credentials" type="Microsoft.Dynamics.Mobile.Components.Tasklets.CredentialManagerTasklet, Microsoft.Dynamics.Mobile.Framework.Runtime">
<configuration>
<labels>
<add key="MenuItem_Change" text="Edit" context="" />
<add key="MenuItem_Delete" text="Delete" context="" />
<add key="MenuItem_Reset" text="Delete all" context="" />
<add key="MessageText_ConfirmReset" text="Are you sure that you want to delete all stored credentials?" context="" />
<add key="ColumnCaption_EndPointName" text="Endpoint" context="" />
<add key="ColumnCaption_NetworkName" text="Network" context="" />
<add key="ColumnCaption_UserName" text="User" context="" />
</labels>
</configuration>
</tasklet>
Tasks
How to: Change Text on the TaskletReference
orchestration Elementtasklet Element
configuration Element
add Element (under appSettings element)
Concepts
UserRole Schema Hierarchy StructureConfiguring Tasklets
Defining Orchestrations in the UserRole
Defining Tasklets
Other Resources
Mobile UserRole Schema ReferenceMobile Orchestration
Customizing Tasklets
How to: Add Text Labels