Question
5
Replies
122
Views
Cognizant
Posted: January 23, 2019
Last activity: February 13, 2019
Mashup indicator
Hello.
Short question. Is there something like an indicator during runtime available, where i can identify, if Pega is running in a Mashup?
Something like pxRequestor.pxDeviceType, which indicates if Pega run on mobile or desktop.
Background: I would like to circumstance the UI rules in case of Mashp processing.
Thanks in advance, Matthias
***Edited by Moderator Marissa to update platform capability tags****
You can think of using the getGadgetInfo() API which gets information on a specified mashup.
For example :
pega.web.api.doAction("gadgetName", "getGadgetInfo")
The action returns the following information about the mashup:
Application;Thread;System;UIdoc;isDirty;isLoaded
The return object contains the mashup information in the following format:
{application:"", thread:"", system:"", UIdoc:"", isDirty:"", isLoaded:""})
To process the data, you must split the information at the comma delimiters.
Read this article for details https://community.pega.com/knowledgebase/articles/pega-web-mashup-page-javascript-actions