add Element (under labels element)
The <add> element under the <labels> element defines a key-text pair for changing text strings that appear in the tasklet user interface. You can define the key-text pairs on a global basis for all instances of a tasklet in the application, or directly on the instance of a tasklet in an orchestration.
add Element (under labels element)
add Element (under labels element)
<add key="key ID" value="value setting" />
The following sections describe attributes, child elements, and parent elements.
Attributes
| Attribute | Description |
|---|---|
|
|
Optional attribute. Information about the value of the |
|
|
Required attribute. The key identifier of the configuration setting. |
|
|
Required attribute. Specifies the text used for the label associated with the key identifier. |
Child Elements
None.
Parent Elements
| Element | Description |
|---|---|
|
Identifies key-value pairs to configure custom settings for tasklets. For details, see add Element (under appSettings element). | |
|
Identifies key-value pairs to change text strings displayed in the tasklet user interface. |
The following example uses <add> elements to configure a tasklet that displays information about the application. The <add> elements under the <labels> element define some of the UI text strings. The tasklet has an option that allows the user to send the application information as an e-mail to a designated recipient. The <add> element under the <appSettings> element defines the recipient's e-mail address.
<tasklet name="ShowAbout" text="About Sample Application" type="Microsoft.Dynamics.Mobile.Components.Tasklets.AboutTasklet, Microsoft.Dynamics.Mobile.Framework.Runtime" >
<configuration>
<appSettings>
<add key="DefaultEmailAddress" value="ms@microsoft.com" />
</appSettings>
<labels>
<add key="ColumnCaption_Address" text="Address" context="" />
<add key="ColumnCaption_AgentSet" text="Agentset" context="" />
<add key="TabPage_Agents" text="Agents" context="" />
<add key="ColumnCaption_Application" text="Application" context="" />
<add key="ColumnCaption_Assembly" text="Assembly" context="" />
</labels>
</configuration>
</tasklet>
Tasks
How to: Change Text on the TaskletReference
orchestration Elementtasklet Element
configuration Element
appSettings Element
labels Element
Concepts
UserRole Schema Hierarchy StructureConfiguring Tasklets
Defining Orchestrations in the UserRole
Defining Tasklets
Other Resources
Mobile OrchestrationCustomizing Tasklets
How to: Add Text Labels