Salesforce

How Do I Dynamically Set the Caption for a Window? (Magic xpa 3.x)

« Go Back

Information

 
Created ByKnowledge Migration User
Approval Process StatusPublished
Objective
Description

How Do I Dynamically Set the Caption for a Window? (Magic xpa 3.x)

By default, the Form name property is inherited from the name of the Task. You can easily change it by typing over the text in Form Properties->Form name. However, you can also set the name dynamically, so it can change even while the task is running.

Setting the Form name property to an expression

  1. Go to the Forms tab of your task.

  2. Type Alt+Enter to bring up the Form Properties.

  3. Go to the Form Name property.

  4. Zoom from the Expression column, to enter an expression that will evaluate to an alpha string.

In the Studio, the Form name will still appear as the text in the Form name property. However at runtime, the Expression will be evaluated and the results will be displayed in the title bar.

See also

The Online and Rich Client Samples projects (program WI02 and RWI02)

Reference
Attachment 
Attachment