Using the pega.ui.d.getProperty and setProperty functions
I'm trying to use the pega_ui_doc API to set and get properties in JS. Given that I've yet to be successful, I'm clearly not using these functions correctly.
Essentially, I have a property, "Test", in my applications work class. I'm calling the following in js:
var foo = pega.ui.d.getProperty("Test");
However, 'foo' remains undefined.
I have an... imperfect understanding of pages. I've tried specifying the page in these functions, for instance:
pega.ui.d.setPropery("Test", "600", "pyWorkPage");
with no luck. Probably because the property isn't actually on pyWorkPage. But I have no idea where it would be.
I would be grateful for any insight anybody has. Thanks!
**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.
Keep up to date on this post and subscribe to comments