Question
Hawaii Medical Service Association
US
Last activity: 27 Oct 2016 0:01 EDT
Embedding the section by property reference
Would you please elaborate the use cases for embedding the section by property reference? I have been using the embedding the section by name, but what use cases property reference tool may have .
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Blue Rose Technologies GmbH
DE
The section by property reference is used when you want to dynamically pick the sections by property value during run time. Consider a banking application where you want to display details for different accounts say checking, savings, current. This can be accompolished by,
1) Creating section using property circumstancing (by account type) or
2) Creating sections like AccountDetails_Checking, AccountDetails_Saving.
If we have chosen second method for some reason, then during runtime we can dynamically generate the section names based on the option chosen by the end user and display the respective section accordingly.
Incessant Technologies
GB
Hi Dyan,
If you give the section by name,you will be hardcoding the section.But if you want to dynamically pass the section ,lets say you have two sections created and you want to show those sections dynamically basing on a property Value,then you can use by property reference.
Please note that at run time the property value should be one of the sections you created,so that the related section wil be shown.
Hawaii Medical Service Association
US
hello Shrijith,
is there more detailed resources in pdn or screenshot for implementing a use case? looking for an answer to dynamically referencing a section.
I am updating here to indicate that I am looking for some kind of elaboration on this topic.
Pegasystems Inc.
IN
Hi
are you talking about this option ?
If this is the one, then the idea is to use a property which will tell PRPC which page you are trying to refer at runtime.
This is more useful when you have same name section in multiple layers or multiple classes.
Foe example, lets say you have section A present in class B and Class C.
Now you have a sample text type property say myPage whose value you can set dynamically.
While embedding section A in your main section, you can chose this myPage property and at runtime based on its value ( Class B or C ) , PRPC will pick up the section.
This is what my understanding about it. Others can comment.
Blue Rose Technologies GmbH
DE
Hi Santanu,
Like you explained this particular setting is used for dynamic class referencing. The use case could be lets say we want to display details related to different data instance present in Pega and consider we want to pick properties from the current page and its heirarchy. Now this can be accompolished in two ways,
1) Create a section in all the Data- classes (or)
2) Create a single section in Data- Class and use the dynamic referencing.
Now how does it work ?
Dynamic class referencing decides the page context during run time. For ex. if the page property is of class "Data-Admin-Operator-Id", then during run time we will be able to display all the properties present in "Data-Admin-Operator-Id" class and all the properties under its class heirarchy eventhough the section is present in Data- Class. This is the flexibility we get using Dynamic Class referencing.
-
Tomohiro Yamashita
Accepted Solution
Blue Rose Technologies GmbH
DE
The section by property reference is used when you want to dynamically pick the sections by property value during run time. Consider a banking application where you want to display details for different accounts say checking, savings, current. This can be accompolished by,
1) Creating section using property circumstancing (by account type) or
2) Creating sections like AccountDetails_Checking, AccountDetails_Saving.
If we have chosen second method for some reason, then during runtime we can dynamically generate the section names based on the option chosen by the end user and display the respective section accordingly.
-
Halyna Klachko
Hawaii Medical Service Association
US
Thanks . please share if there are any other insights.