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.

userRole Element

    orchestrations Element

        orchestration Element

            tasklets Element

                tasklet Element

                    configuration Element

                        labels Element

    tasklets Element

        tasklets Element

                configuration Element

                    labels Element


<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

context

Optional attribute.

Information about the value of the text attribute, such as a description and usage, or maximum number of characters. Useful for translation and localization.

key

Required attribute.

A unique key for the label text.

text

Required attribute.

The text that appears in the user interface.

Child Elements

Element Description

add Element (under labels element)

Contains key-text pairs for defining user interface text.

Parent Elements

Element Description

configuration Element

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>

Required

No

Max. occurrences

1 within the parent element.

Namespace

schemas.microsoft.com/Dynamics/Mobile/2007/04/Flow

Schema Name

UserRole Schema

Validation File

Orchestration.xsd

Can be Empty

Yes

Community Additions

ADD
Show: