openURLInWindow
Opens an external or internal URL in a browser window. The URL can be accessed through an activity or a data transform.
Signature
openURLInWindow(options)
Returns
Not applicable.
Parameters
Name | Description | Type | Required |
activity | Specifies the activity that returns the HTML stream for the new window. The activity is processed after a data transform. | JSON object | ✅ |
dataTransform | Specifies the name and parameters of the data transform. | JSON object | ❌ |
usePrimaryPage | Invokes an activity based on the contents of the primary page. The
default value is false . | Boolean | ❌ |
windowProperties | Specifies window properties. | JSON object | ❌ |
event | Specifies the event that launches the window. | DOM event object | ✅ |
JSON objects
- activity
- Includes an array of parameter objects.
isProperty
indicates whether the parameter is a property or a literal constant. The default value ofisProperty
isfalse
, which means that the parameter is a constant.{ "name":"activityName", "parameters":[ { "name":"param1", "value":"Page1.prop1", "isProperty":true }, { "name":"param2", "value":123, "isProperty":false } ] }
- dataTransform
- Includes an array of parameter objects.
isProperty
indicates whether the parameter is a property or a literal constant. The default value ofisProperty
isfalse
, which means that the parameter is a constant.{ "name":"dataTransformName", "parameters":[ { "name":"param1", "value":"Page1.prop1", "isProperty":true }, { "name":"param2", "value":123, "isProperty":false } ] }
- windowProperties
- The default value for Boolean properties is
false.
{ "name":{ "value":"Page1.Prop1", "isProperty":true/false }, "replaceHistory":false, "height":"number of pixels", "width":"number of pixels", "top":"number of pixels", "left":"number of pixels", "resizable":false, "scrollbars":false, "locationbar":true, "menubar":true, "statusbar":false, "toolbar":true } }
Previous topic openLocalAction Next topic refreshHarness