Skip to main content


         This documentation site is for previous versions. Visit our new documentation site for current releases.      
 

getDataPage

Updated on December 13, 2022

Retrieves data page information from the clipboard in JSON format.

Signature

getDataPage(options)

Returns

JSON object with data from the clipboard.

Parameters

NameDescriptionTypeRequired
nameSpecifies the name of the target data page.String
parametersSpecifies the parameters for the data page in an array.JSON object
callbackSpecifies the callback function that you call with the data from the data page.String
eventSpecifies the event that launches the activity.DOM event object
For example:
var options = {
                name: "dataPageName",
                parameters: [{name: "param1", value: "Page1.prop1", isProperty: true},  {name: "param2", value: 123, isProperty: false}],
                callback: callbackFunc,
                event: eventObject  
            };

            function callbackFunc(resultJSON){
                console.log(resultJSON)
            }

           pega.api.ui.actions.getDataPage(options);

Have a question? Get answers now.

Visit the Support Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us