How to Use CDT Values as Parameters for Rule Inputs in Second Interface?

Hello Community,

I need help with setting up an interface. I have an "ElectivesProfile" interface that has two columns: Elective and Students.

  • If there are students for an elective, the Students column should show "Show More"; if not, it should show "-".
  • When someone clicks "Show More," a list of student names should appear, and each name should link to that student's ID.
  • Clicking on a student’s name should take the user to the "StudentDetails" interface, using the Student ID to show their details.

I want to create a CDT with the keys studentFullName and studentID. When the user clicks a name, I need to update these values in the CDT (I can do this part). Then, I want to send these values to the "StudentDetails" interface as rule inputs: fullName and studentID.

I'm having trouble using the CDT values as parameters in the "StudentDetails" interface.

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Associate Developer

    Hi, you can create a rule input of type CDT by defining it in your CDT and replicating the same rule inputs in the second interface. For example: Interface1(ruleInput1: Students --- type: CDT) and Interface2(ruleInput2: Students --- type: CDT). Then, call Interface2 in Interface1, or interface2 in interface1 like rule!Interface2(ruleInput2: ruleInput1).

Reply
  • 0
    Certified Associate Developer

    Hi, you can create a rule input of type CDT by defining it in your CDT and replicating the same rule inputs in the second interface. For example: Interface1(ruleInput1: Students --- type: CDT) and Interface2(ruleInput2: Students --- type: CDT). Then, call Interface2 in Interface1, or interface2 in interface1 like rule!Interface2(ruleInput2: ruleInput1).

Children