Question

How to hide UI elements in Pega Windows App only?

Hi,

I am looking for any OOTB condition that I can use to hide specific UI elements only for Pega Windows App. tried to use pyisHybridclient, but it is not working.

Thanks,

Mohammad.

**Moderation Team has archived post**

This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.

Correct Answer
May 23, 2018 - 1:13pm

There should be a when rule pyIsPegaElectronContainer that should get you what you want, but so should pxRequestor.pyIsHybridClient == true . I am surprised that you are saying that it isn't working as it is heavily used.

Comments

Keep up to date on this post and subscribe to comments

May 23, 2018 - 3:06am

Hi Mohammad,

You can use when rule or condition expression in visibility field of the cell property of that particular UI element.

For example you can use pyIsMobile when rule in the visibility condition of the cell property to display it only in mobile device.

 

Regards,

Vikash

May 23, 2018 - 9:57am
Response to Vikash Karn

Hi Vikash,

I am not looking for mobile development, looking for Pega Windows client.

Pega
May 23, 2018 - 1:13pm

There should be a when rule pyIsPegaElectronContainer that should get you what you want, but so should pxRequestor.pyIsHybridClient == true . I am surprised that you are saying that it isn't working as it is heavily used.

May 23, 2018 - 8:30pm
Response to HALLJ

pyIsPegaElectronContainer worked. I tried to use pyisHybridclient when rule, which is did not worked as it is looking ampwebcontrol user agent, which is not correct for windows app.