exitTasklet Element
Closes a tasklet and returns the application to the previously opened tasklet. If the tasklet that closes is the only open tasklet, then the application closes.
<tasklet>
<action>
<exitTasklet context="describe text" icon="image file" name="reference name" priority="priority number" result="OK|Cancel|Abort|None" submitRequestDocument="true|false" text="menu label" validate="true|false" />
</actions>
</tasklet>
The following sections describe attributes, child elements, and parent elements.
Attributes
| Attribute | Description | |
|---|---|---|
|
|
Optional attribute. Provides information about the text attribute value, such as a description, usage, or maximum number of characters. Useful for translation. This attribute has no effect on the application. | |
|
|
Optional attribute. The full path and file name of a bitmap file to associate with the action. You can develop tasklets to use this attribute. | |
|
|
Optional attribute. A unique reference name for the action. | |
|
|
Optional attribute. A whole number to determine the location of the action in the menu by comparing it with the priorities of other actions on the tasklet as follows:
| |
|
|
Optional attribute. Passes the value to the tasklet when it closes. There are four values:
| |
|
|
Optional attribute.
For more information, see Setting up Request Documents in Microsoft Dynamics Mobile Orchestration Guide online. | |
|
|
Required attribute. Specifies the label of the action on the soft key or menu. | |
|
|
Optional attribute.
For more information, see How to: Validate User Input to a Tasklet in Microsoft Dynamics Mobile Orchestration Guide online. |
Child Elements
| Element | Description |
|---|---|
|
The state keys that must have correct values set, before the action is enabled. | |
|
Maps tasklet output parameters that are identified by the state keys, to the input parameters of the tasklet that opens as a result of the action. |
Parent Elements
| Element | Description |
|---|---|
|
Defines actions that control the flow between the application's tasklets and orchestrations. | |
|
Groups one or more actions together in the right-side soft key menu using dividing lines, or in a submenu. |
The following example uses the <exitTasklet> element in a simple orchestration for editing customer details. <exitTasklet> element creates a soft key called Save that, when tapped, saves the information entered in the tasklet and closes the tasklet.
<orchestration text="Customer detail" name="CustomerDetailEdit">
<appSettings>
<add key="TaskletMode" value="Edit"/>
</appSettings>
<tasklets>
<tasklet name="CustomerDetailTasklet" text="Customer Details" type="CustomerDetailTasklet.CustomerDetailTasklet, CustomerDetailTasklet">
<actions>
<exitTasklet text="Save" priority="10" result="OK" />
</actions>
</tasklet>
</tasklets>
</orchestration>
Tasks
How to: Close a TaskletReference
orchestration Elementtasklets Element
actions Element
tasklet Element
requestDocument Element
constraints Element
inputMapping Element
Concepts
UserRole Schema Hierarchy StructureDefining Orchestrations in the UserRole
Defining Tasklets
Other Resources
Mobile OrchestrationWorking with Actions for Soft Keys and Menu Items
Note