Professional Documents
Culture Documents
Advanced Topics 1z
Advanced Topics 1z
For example, to display the value of the pyID property on the host page, use the doAction function to call
the getGadgetData action with the syntax pega.web.api.doAction("gadgetName", "getGadgetData",
"[gadget/gadgetName/.pyID]"). To set the value of a property using setGadgetData action, use the syntax
pega.web.api.doAction ("gadgetName", "setGadgetData", "propertyReference", strValue).
For example, set the value of the property .QuoteType with the setGadgetData action:
pega.web.api.doAction("gadgetName", "setGadgetData", ".QuoteType", "Auto").
Important: To reference a property in a Pega Platform application, such as .pyID, from a web page, the
harness displayed by the gadget must include a Data Field control that references the property.
To perform an action on a gadget using data from the gadget, create an action object for the gadget. If the
property you need to use is in the same gadget as the reference, use the syntax Attribute/parameter =
[propertyReference]. For example, when configuring an action object to display a confirmation page that
uses operator information as parameter values, set the value of the pageURL attribute using the syntax
pageURL: "/statusPage" + "CreateOper=[.pxCreateOpName]&..., where CreateOper is the name of the
parameter and pxCreateOpName is the reference to the property in the Pega application.
If the property you need to use is in a different mashup gadget, use the syntax
[gadget/gadgetName/propertyReference] to identify the gadget containing the property. This is the
same syntax that you use in a property reference from the page JavaScript.
• To set the parameter object for a gadget action object using object literal notation: params: {
Status:"[pyWorkPage.pyStatusWork]"}
Next create a portal skin to configure the application styling for web mashup users (who interact with the
application using the portal). Pega 7 identifies the skin rule associated with the portal rule, as well as the HTML