Question
Virtusa
LK
Last activity: 21 Jul 2017 19:33 EDT
Purpose of NewClass in Page-New method
for what kind of situations are we using "NewClass" field in page-new. Is it going to be used to change the class of the created page in clipboard?
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Carelon Global Solutions India LLP
IN
Hi Sameer,
In general, it does not aims at changing the class of the created page. In order to understand better please go through the below link:
https://community.pega.com/sites/default/files/help_v72/procomhelpmain.htm
Thanks,
Praveen.
Virtusa
LK
Actually I read the help but I didn't clearly understood the explanation. Could you please explain it clearly?
Pegasystems Inc.
IN
As mentioned NewClass is not meant for change class since Page-New method always create a new page. If a page with same name exists it still creates a new page with this new class and deletes the old page. So it's not changing the class, it's actually deleting the old page.
Let us know if you need more information :)
Virtusa
LK
1.What happens if I give only new class field and not step page?
2. What happens if I give both of them?
Pegasystems Inc.
IN
1) Point 1 is not suggested and should be used with caution. See the notes below related to point 1.
Caution: Except in rare cases, identify in the Step Page field the name of the page to be created by this method. If the Step Page field of the step is blank, this method clears the primary page of the current activity and may change its class. This often is undesirable.
1) If you give both step page and NewClass. A new page will be created with class as NewClass and anything specified in Pages&Classes for that step page will be ignored.
1) Point 1 is not suggested and should be used with caution. See the notes below related to point 1.
Caution: Except in rare cases, identify in the Step Page field the name of the page to be created by this method. If the Step Page field of the step is blank, this method clears the primary page of the current activity and may change its class. This often is undesirable.
1) If you give both step page and NewClass. A new page will be created with class as NewClass and anything specified in Pages&Classes for that step page will be ignored.
Let us know if this helps :)
Virtusa
LK
In the above diagram within the page-new previous developers have used DCR functionaliy. What is happening in that case? They have given step page and used DCR also.both the classes mentioned in DCR and step page are also same.
Pegasystems Inc.
IN
If we specify NewClass param specifically, everything else is ignored. Pega will look at the NewClass and create a clipboard page with same.
Let us know if you need more information :)