Creating Open Window actions for Search or Submit windows
The following image shows a window in submit mode in a desktop view:
The following image shows a window in submit mode in a mobile view:
To define the Open Window action for Search or Submit window types
- Right-click the If Action or the Else Action panel header.
- Select Add Action > Open Window.
- From the Window Type list, select one of the following options:
- Search—Opens the specified form in Search mode.
- Submit—Opens the specified form in New mode.
The fields required to define the Open Window action for search and submit window types appear.
- To control where the window opens in the web client, select one of the following Target Location options:
- New—Opens the form in a new browser window.
- New Without Toolbar—opens the form in a new browser window with the browser toolbar, menu bar, and location bar hidden.
- Current—Opens the form in the current browser window.
- <String>—Allows you to specify a frame name, which opens the form inside the frame. In the case of a view field frame, the name is VF<FieldId>; for example, VF536870913.
- <Field>/<Keyword>—Allows you to select a field or keyword that will determine the window open location at runtime.
- If you have selected <String> or <Field>/<Keyword> in step 4, perform the following:
- Select or clear the Inline Form check box. If the check box is:
- Selected—the view field provides inline behavior for the rendering form. See Types-of-forms.
Cleared—the view field provides the frame based behavior for the rendering form.
View fields maintain the existing behavior unless the Inline Form option is checked.
- Perform the following in the field next to the Target Location options:
- For <String>, enter a view field id with the prefix VF. For example, for a view field with ID 1234, enter VF1234.
- For <Field>/<Keyword>, click the ellipsis and select a character field that contains the VF expression at runtime.
- Select or clear the Inline Form check box. If the check box is:
From the Data Source list, select SERVER or SAMPLE DATA:
- To define a specific server and form, select SERVER, and go to step 6a.
- To enable the source data server and form to be determined at runtime, select SAMPLE DATA, and go to step 6b.
- (Data Source is SERVER) Select the Server Name, Form Name, and Form View Name to be used as the dialog box.
Servers that appear in the Server Name list are those to which you are currently logged in.
Selecting a form view name is optional. If you do not enter anything in the Form View Name field, the form's default view is used. For more information, see Creating-and-managing-packing-lists. - (Data Source is SAMPLE DATA) Define the sample and runtime server, form, and view names or values:
- Use the Sample Server Name and Sample Form Name fields to select the server and form name to use while defining the Open Window action.
- Use the Runtime Server Value, Runtime Form Value, and Runtime Form View Value fields to identify the fields on the parent form or the AR System server keywords that will define the source server, form, and view name for the dialog box at runtime.
For more information about using the SAMPLE DATA data source, see Using-a-dynamic-data-source-or-destination-in-workflow.
- (Optional) To set field values in the form when it is opened, use the field mapping area:
- To set all fields to their default values, if any, select the Set Fields to Default Values check box.
- To map values to specific fields, select fields and define values in the field mapping table. See Using-field-names-field-values-and-expressions-in-workflow.
If you do not define any field values, a blank form opens in Search or New mode. When you save the active link without field values, Developer Studio warns that no field values have been mapped, but the active link is saved.
The Class Search active link in the AR System server Sample application contains an example Open Window action that uses a search window.
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*