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 >>>>
- Best Udemy python course | Udemy python for data science | python 3
- Who is the best dancer in Tollywood
- Buy Headphones & Earphones Online at Best Price
- Upcoming Telugu movies on amazon prime | Upcoming Telugu movies | Amazon prime movies list
- Pega 8.5 Features | What’s New in Pega Platform | Pega New Features
- Download eclipse IDE | Eclipse Downloads | How do I download and install Eclipse IDE
- How to type Indian Rupee symbol from the keyboard in Windows | How do you insert the currency symbol in Word
- How many emails can you send from Gmail | Gmail Sending Limits
- How to Factory Reset your Gmail Account | How to reset my Gmail settings
- How can I find a person by email | How to Find the Person Name Behind Gmail Address