Question
Real time example of "Page-Change-Class" method
Hi All,
I understand that "Page-Change-Class" is used to change the "pxObjClass" of the existing page assuming that the target class has all the properties referenced in the exisiting page but can anybody give me a real time example of in which situation do we use such a method? Also, how is this different from "Append and Map to" in a Data Transform? Thanks in advance.
**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.
Use this method to change the class of the top-level page identified in the Step Page column. (To change the class of an embedded page, see How to Change the Class of a Page.)
Before changing the class of a page, be sure that all properties referenced on the page are also defined in the target class (the destination class).
How to change the class of a page
Use the Page-Change-Class method to change the class of a top-level page.
Use the Property-Set method to change the class of an embedded page. Ordinarily, the Property-Set method requires that the source (of values) and the destination (to receive the values) be alike — assigning a string value into a string property, a page value into a page property, and so on.
However, you can establish the class of an embedded page using a special Property-Set syntax:
When the system executes this method, it sets the value of the pyObjClass property in the page to the string value. This changes the class of the page.
Please refer https://pdn.pega.com/sites/pdn.pega.com/files/help_v721/procomhelpmain.htm#methods/page-change-class/page-change-class.htm?Highlight=page-change-class
https://pdn.pega.com/sites/pdn.pega.com/files/help_v721/procomhelpmain.htm#howto/howto2/howtochangepageclass.htm?Highlight=page-change-class