Question
Coforge DPA UK Ltd.
IN
Last activity: 11 Jul 2017 4:49 EDT
What is the meaning of $ or some symbols in class definitions
Hi ,
I could see there are some special characters like $ in front of class definition, what is the meaning of it, what other characters can be used and where all can we use such notation in Pega?
Thank you.
Regards,
Durgarao J
***Edited by Moderator Marissa to update categories***
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Pegasystems Inc.
IN
$ in Pega are used to represent keywords which have some predefined meaning/purpose.
e.x.
Keyword $NONE can be used to create a classless page in Page-New method.
$ANY to make the class of the page assignable at runtime.
There are other keywords similar to this.
Point to be noted: Do not use the keywords $ANY, $CLASS, or $None in the Class column; these keywords are deprecated.
BUPA
AU
Hi,
Are you referring to $ANY or $NONE mentioned generally in Pages and Classes tab?
Coforge DPA UK Ltd.
IN
Hi Swarnendu,
Sorry for missing the examples. You are right yes in Pages and Classes tab we use these notations. Myself I didn't use them but there are some in some of the activities in our project. I wanted to know how it behaves in the run time. How rule resolution treat it.
For example, $ANY $NONE etc. are the notations I could observe.
As one of our friends mentioned $ANY is used to assign any class definition(dynamic) during run time and $NONE is a class less page name in Page-New method. But I want to understand it in a more clear way so that I can understand them in my project.
It would be helpful if I can get more information on this or any source to read on it.
Many thanks.
Durgarao J.
Pegasystems Inc.
IN
Hello DurgaRao,
Thanks for posting queries in PDN.
Can you please provide an example?, so that we can help you in better way.
Thanks & Regards,
Durga
Coforge DPA UK Ltd.
IN
Hi Durga,
For example, $ANY $NONE etc. are the notations of page names used in Pages&Classes tab of activity.
As Rawap explained nicely that $ANY is used to assign any class definition(dynamically) during run time and $NONE is a class less page name in Page-New method. But I want to understand it in a more clear way so that I can understand them in my project.
I wish to know how it behaves during run time. How rule resolution treats it.
It would be helpful if I can get more information on this or any source to read on it.
Many thanks.
Durgarao J.
Accepted Solution
Pegasystems Inc.
IN
$ in Pega are used to represent keywords which have some predefined meaning/purpose.
e.x.
Keyword $NONE can be used to create a classless page in Page-New method.
$ANY to make the class of the page assignable at runtime.
There are other keywords similar to this.
Point to be noted: Do not use the keywords $ANY, $CLASS, or $None in the Class column; these keywords are deprecated.
Coforge DPA UK Ltd.
IN
Hi Rawap,
Thanks for your answer. It cleared my doubt. It would be a great help if you can make me understand in which scenarios we oblige to use them and what are the alternatives of this as you are saying these are deprecated.
You are saying there are other keywords similar to this. can you please list them for me?
Regards,
Durgarao J.
Pegasystems Inc.
IN
You can look for other keywords and their usage in Pega help. Once you open help for anything you can click "Index" tab on the left bar and you will see all the keywords listed and explore from there onwards.
Pegasystems Inc.
IN
Attaching screenshot for clarity.
Updated: 11 Jul 2017 4:48 EDT
Coforge DPA UK Ltd.
IN
Hi Rawap,
It is simple but very useful. many thanks. This is another way of using Pega help. till now I used to search the content on Pega help. But some times we can check Index wise also for getting to know about some keywords like $ANY, $NONE etc.
Regards,
Durgarao J