getDataPage is not printing datapage json in console
Used below javascript API for getDataPage, which is provided in Javascript API.
<%
String RefreshPSPParam = tools.findPage("pyWorkPage").getString("ActionID");
%>
<script>
var options = { name: "D_PSPToken", parameters: [{name: "accessToken", value: '<%=RefreshPSPParam%>', isProperty: true}], callback: callbackFunc }; function callbackFunc(resultJSON){ console.log(resultJSON) } pega.api.ui.actions.getDataPage(options);
</script>
but i cannot see the datapage print in the console . need help