When to use Field Value
What are all the places we can use Field Value
- If we want to add Local Values(Means in State DropDown we have to give multiple State Names).
- For Adding New Status(basically we use pega status only, if we want we can create our own Status and we can use that too.)
- We can add Dynamic Lable Value using Field Values.
Using Field Value, How to add Local Values???
Normally How we add Local Values ? If we want to add an property Gender to a section we will Drag and Drop a Radio Button, and we will give an Property Name for that Radio Button and We will add the Gender Male Female in Local List.
Now we will try how to use Field Value, Our requirement is we have to list all the Country using DropDown .
First I Drag and Drop one DropBown from Basic
On the property rule, I select Field Value(Not Local List)
It will asks for Field Class Name and Field Name. So I create One Field Value from Create->Data Modal->Field Value
In Label Field we have to give the country we want to display and in Field Name we have to give The property (.Country)
Now I created field value(India ) in Field Name Country
Then I created another one field value(China) under Field Name(Country)
I gave for sample 5 Country then after creating Field Value we have to refer that in our property rule, open Country property rule , there in Field Name we have to give Country(Without Dot ) and Field Value Class Name We created(TGB-HRApps-Work)
Then on run below output will come,
Now I am creating the Field Value for Status GettingDetails
After Click Create and Open the window look like this.
and I created another one Field Value for Status InPaymentDetails.
Here u can see i am in assignment Enter ExpenseDetails , and I am adding the status for that assignment as GettingDetails, after we add there the status it will display here
In Payment Assignment I added the status InPaymentDetails, that we created it listed here.
Now after I run the Flow, Control is in First Assignment, eventhough I not added any Section we can see the Status Below. "GettingDetails"
This is the way of adding status by Field Value, If have any doubt means ask in Comment Box.
Now on creation of field Value, I gave Field Name as pyCaption and Label as ShowCaseInformationLabel.
In the below image I gave parameter value as 1 and 2, this place will be removed by dynamic property value on run time.
Here I pass the String "ParameterOne" for parameter 1 and "ParameterTwo" for parameter 2
First I Drag and Drop one DropBown from Basic
In the Below image I added one property Country
On the property rule, I select Field Value(Not Local List)
It will asks for Field Class Name and Field Name. So I create One Field Value from Create->Data Modal->Field Value
In Label Field we have to give the country we want to display and in Field Name we have to give The property (.Country)
Now I created field value(India ) in Field Name Country
Then I created another one field value(China) under Field Name(Country)
I gave for sample 5 Country then after creating Field Value we have to refer that in our property rule, open Country property rule , there in Field Name we have to give Country(Without Dot ) and Field Value Class Name We created(TGB-HRApps-Work)
Then on run below output will come,
How to Create New Status in Pega using Field Values???
This is the Case Type where we are going to set the Status
Now I am creating pyStatusWork property in TGB-HRApps-Work .
Now I am creating the Field Value for Status GettingDetails
After Click Create and Open the window look like this.
and I created another one Field Value for Status InPaymentDetails.
In Payment Assignment I added the status InPaymentDetails, that we created it listed here.
Now after I run the Flow, Control is in First Assignment, eventhough I not added any Section we can see the Status Below. "GettingDetails"
This is the way of adding status by Field Value, If have any doubt means ask in Comment Box.
Adding Dynamic Values in Label Using Field Value
Now I Drag and Drop one label, by default it will be Sample Text, remove that and Give any Name and Click that ribbon button, then it will open a Field Value Rule.
In the below image I gave parameter value as 1 and 2, this place will be removed by dynamic property value on run time.
After I run the Flow Result will be like.
Now in above picture u can see the parameter is passed successfully.
If U have any doubt ask in Comment :)
Good Initiative Bro! Keep It up. Really very Informative stuff...
ReplyDeleteThank You Bro.
DeleteNice post .Keep updating pega online course bangalore
ReplyDeleteThank You
Deletehi,
ReplyDeletecan i use field value for chceck box same as you have used for dropdown.
Thanks in advance.
Kalyani
we have 11 values for check box, or please provide we have any option to select multiple values in dropdown.
DeleteHi Kalyani,
DeleteThanks for ur comment, We can't map field value for checkbox value. We can use checkbox in a repeating grid layout to achieve this requirement. Checkbox will be display in vertical order. In Pega 7 Multi select option is not there , we can achieve multi select in pega 7 using custom HTML Code, In Pega 8 Multi select list option is there we can use that to display multiple options.
Hi Bharathan,
ReplyDeleteAs i used field value option in property level and created some field values under one ABC field name.
But in pyworkpage the Field value label is getting displayed but i need value of that field value.
Can you help me in that issue.
Thanks in advance,
Kalyani
Nice post thx for information
ReplyDeleteI am using getlocalizedtext() function in a Data Transform. How can I use the same logic to pass the parameter and show the message in the UI? As I can see here you are hardcoding it on the section Label.
ReplyDelete