Hi,
what is the difference between the primary page and top page in pega?
Regards,
Venkatesh
Hi,
what is the difference between the primary page and top page in pega?
Regards,
Venkatesh
@VenkateshK0758
Primary: Primary refers to the in which class your running
TopPage: In the context of an embedded page, identifies the top-level page to which the current embedded page belongs.
@VenkateshK0758
link below will give you better understanding.
Hi @VenkateshK0758,
In Pega, the terms “primary page” and “top page” refer to different contexts within the rule execution and data handling processes.
Primary Page
The primary page is the main clipboard page used by a rule when it executes. It contains the context and data relevant to that rule.
Examples: For a flow action, the primary page might be the work item page. For a decision table, it might be a data page containing the input data.
Top Page
The top page is the highest-level page in the clipboard structure when you trace the hierarchy of embedded pages. It is often the page representing the entire case or work object.
Examples: In a case management scenario, the top page might be the page representing the entire case, from which all other pages (like work item pages, assignment pages, etc.) are derived.
Regards,
Mohd Qizer Uddin
Hi @VenkateshK0758
Primary page will represent the class on which the activity is created, it will take the context of the current class. during execution it will set the values on the executing class.
Top page will represent the top level class above the primary page class. we have activity A in class A and activity B in class A-B and wen we call the activity B in activity A and inside activity B if we use Primary it will represent the Class A-B context and when we use Top it will represent the class A context.
@VenkateshK0758
Hi,
Primary Page always refers to the page context under which your current rule is being executed. When the primary page is an embedded page (Ex: MyTopPage.EmbbeddedPage), then TOP always refers to the top level page of your current page context (that means MyTopPage refers to TOP). If there are multiple levels, it always refers to the TOP most.