Importance of Data Class and Page Property In PEGA || Harsha Trainings

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 ธ.ค. 2024

ความคิดเห็น • 15

  • @prateekalmighty
    @prateekalmighty 2 ปีที่แล้ว +2

    Hello Harsha Sir,
    How can I acheive parent child relationship like we have in SQL, for example employees table have relationship with address table with primary and foreign key. How same can be achieved in Pega while designing data class for employee and address class?

    • @HarshaTrainingsacademy
      @HarshaTrainingsacademy  2 ปีที่แล้ว +1

      Hi Prateek, we could do this in direct DB. In the data type wizard we dont have this option.
      We offer pega trainings with 4 real time projects, complete hands on. If you or any one of oyur friends looking for same , please forward our number 9652532753.
      New batch stared from sept 9, time 7 PM to 830 PM IST
      Please do not forget to subscribe our channel. Your Subscription will help us to do more better videos. Also hit the BELL icon for new video notifications.
      Harsha Trainings is one of the leading and Placement Consultant Provided training with qualified trainers on PEGA,DEVOPS, PowerBI,JAVA,DATA SCIENCE, MULESOFT ,Spring&Microservices,OracleFinance,Appian,Core&Advance java,Django,Communication&Varbal and other various leading software technologies….
      For those who have gap after education, we have job placement assurance courses...
      Subscribe to our channel to learn best of best in technology... For training call us on 9652532753, 9885312299

    • @prateekalmighty
      @prateekalmighty 2 ปีที่แล้ว

      @@HarshaTrainingsacademy Thanks for the reply... Sure will do!

  • @gopikrishnapeddagamalla6949
    @gopikrishnapeddagamalla6949 2 ปีที่แล้ว +1

    Hi Harsha,
    Can you do video on Active MQ configuration for JNdi server

  • @brahma007
    @brahma007 2 ปีที่แล้ว

    Are we do person details in Organization Level Data class.and why you choosen application level( Bajaj-Data-Person)

    • @HarshaTrainingsacademy
      @HarshaTrainingsacademy  2 ปีที่แล้ว

      Hi Brahma the reason is , person class is very common across entire application

  • @chitraka7979
    @chitraka7979 2 ปีที่แล้ว

    Personal pega training will be done ?please reply

  • @jhanupilli
    @jhanupilli 4 หลายเดือนก่อน

    How to calculate the field in work class and data class(combination)?

    • @HarshaTrainingsacademy
      @HarshaTrainingsacademy  4 หลายเดือนก่อน

      Steps to Calculate Fields in Work Class and Data Class
      1. **Identify the Classes and Fields**
      - Determine the work class (e.g., `Work-MyWorkClass`) and data class (e.g., `Data-MyDataClass`) involved.
      - Identify the fields in these classes that you want to use in your calculation.
      2. **Create or Edit a Data Transform**
      - In the work class or a relevant data class, create or edit a data transform to perform the calculation.
      - In the data transform, use the `Set` action to define and calculate the fields.
      3. **Referencing Data Class Fields in Work Class**
      - Use a Page property in the work class to refer to an instance of the data class.
      - For example, if your work class has a page property `.DataPage` of type `Data-MyDataClass`, you can reference fields in the data class using `.DataPage.FieldName`.
      4. **Perform the Calculation**
      - Within the data transform, perform the calculation using the referenced fields.
      - Example: Set `.CalculatedField` = `.WorkField + .DataPage.DataField`.
      Example Data Transform Steps:
      1. Set `MyDataPage` to reference the data class instance.
      - Action: Set
      - Target: `MyDataPage`
      - Relation: `=` (equal to)
      - Source: `D_GetDataPage[Primary.ID]` (assuming a data page that fetches the data class instance based on an ID from the work class)
      2. Perform the calculation.
      - Action: Set
      - Target: `.CalculatedField`
      - Relation: `=` (equal to)
      - Source: `.WorkField + .MyDataPage.DataField`
      Example of a Data Transform in Work Class
      ```plaintext
      Step 1:
      Action: Set
      Target: MyDataPage
      Relation: =
      Source: D_GetDataPage[Primary.ID]
      Step 2:
      Action: Set
      Target: .CalculatedField
      Relation: =
      Source: .WorkField + .MyDataPage.DataField
      ```
      Using Activities
      Alternatively, you can use activities to perform these calculations, but it is generally recommended to use data transforms for maintainability and simplicity.
      Example of an Activity
      1. Create an activity in the work class.
      2. Add steps to set the page properties and perform the calculation.
      ```plaintext
      Step 1:
      Method: Page-New
      Step Page: MyDataPage
      Class: Data-MyDataClass
      Step 2:
      Method: Property-Set
      Step Page: MyDataPage
      Properties:
      - DataField (assign the value from a data source or calculation)
      Step 3:
      Method: Property-Set
      Properties:
      - CalculatedField = WorkField + MyDataPage.DataField
      ```
      Using Declare Expressions
      Declare expressions allow for automatic calculation when the relevant properties change.
      1. Create a declare expression in the work class.
      2. Define the expression to calculate the value using fields from both the work class and the data class.
      Example of a Declare Expression
      - Target Property: `.CalculatedField`
      - Expression: `.WorkField + .DataPage.DataField`
      Summary
      1. Identify the relevant work class and data class fields.
      2. Use data transforms, activities, or declare expressions to perform the calculations.
      3. Ensure proper referencing of data class fields within the work class.

    • @jhanupilli
      @jhanupilli 4 หลายเดือนก่อน

      @@HarshaTrainingsacademy
      Tq Harsha for the immediate response
      I am anable to understand it, could you plz tell me in another way

  • @brahma007
    @brahma007 2 ปีที่แล้ว

    Hii Harsha, Can I know why you chosen data class as concrete class

    • @HarshaTrainingsacademy
      @HarshaTrainingsacademy  2 ปีที่แล้ว +1

      Hi Brahma, some times we may have to store the instances into this data classes. that why we choose it to be concrete class..
      For the best course that is suitable for your , please call / whats app us on +91-9652532753, our team will assist you in a right way...

    • @brahma007
      @brahma007 2 ปีที่แล้ว

      Thank you.