In this article, I will explain about what is Data Transform in Pega and how to use Data Transform with simple realtime examples.
What is Data Transform in PEGA
A data transform defines the way to convert data that’s in one format into data of another format . The supported formats are clipboard and JSON. employing a data transform rather than an activity to line property values races development and makes application maintenance easier.
How to use Data Transform in PEGA
1.Whenever we want to set values to class properties or To copy the Data from one page to another page or from one page to another Page List then we can create a Data Transforms
2.Based upon when conditions if we want to set the Values to Properties or To copy the Data from one page to another page or To Copy the Data from One Page list to another Page then we can create a Data Transforms
3.By using Data Transforms we can Sort the Page List results based upon Ascending or Descending order.
4.We we can loop the Page list results to another page list By using Data Transforms.
5.We can call the Data transform inactivity by using the Apply-DataTransforms method in an Activity step.
Real-Time Scenario Example
Lets us consider a simple example that we have a screen with some properties for personal details like First name, last name, full name, date of birth, etc.,
When the user enters the first name and last name, then automatically full name should be populated ( we all know that full name is the combination of first name and last name).
Lets us see how we can populate full name automatically by using data transform with simple easy steps.
Get Full Name Using Data Transform
Create New Data Transform
Create a new data transform with any name as you like, here I am creating new data transform as Set Full Name.
.FullName = .FirstName+” “+.LastName
Create New Section
After the creation of data transform, we need to create a section with some basic properties like the first name, last name, full name, date of birth, etc., as shown in the screen below.
Now to the section which you have created these properties and select and Last Name property ( Because in our scenario on change of the last name the full name is to be calculated ) as shown in the screen below.
Now open full name properties and got to the actions tab and click on Create An Action Set option you can see 2 options as Add an Event and Add an Action as shown in the screen below.
Click on Add an Event and select On Change Option & Click on Add an Action and select Refresh this section as shown in the screen below.
In Refresh this section, you can see an option for Data Transform, Enter the name of the data transform that you have created ( In my case my data transform name is Set Full Name) see the screen below for reference.
Now your flow and check whether the data transform is working fine or not. You can observe from the below screen that the full name is automatically populated when I entered the first name and last name.
This is all about the simple example of what is Data Transform in Pega and how to use Data Transform with simple realtime examples.
Thanks for your support we will provide more tricks & tips for you. If you like our article, share these with your friends and join my Telegram Channel for more new concepts.
Also Read Our New Trending Articles >>>>
- Amazon daily offers | Headphones offer today | Amazon loot offer today
- Amazon offers american express | save money with american express card
- How do you make money on ClipClaps | Make $10 from ClipClaps daily
- What is a section in PEGA | How to create a section in PEGA
- Earn money online without investment for students | Work from home jobs
- Buy headphones online | Buy headphones online at the lowest price
- Passport Number Validation In Pega | Passport validation regex
- Should you buy a flagship phone in 2021 | Do You Really Need a Flagship Phone
- Smart Contract Auditing | Top 6 FAQ Answers on Smart Contract Auditing
- Smart Content Writing and Editing Tools for Bloggers