Skip to main content
sanjuktab2257
November 4, 2024
Question

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

  • November 4, 2024
  • 5 replies
  • 0 views

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.

    5 replies

    kumara0180
    November 4, 2024

    Create a ruleInput of same type in both the interfaces and then when calling the child interface from parent , you can pass the values as rule input. if you want to pass the values from one interface to another interface you would need to create a PM and in that a process variable of  same type. and then configure two user input task and then pass the value from first interace to Process variable then that Process variable can pass the value to interface

    shanmathip7466
    November 4, 2024

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

    HI [mention:9ce4b939559d45dc807b9271b84c0a9b:e9ed411860ed4f2ba0265705b8793d05] ,

    What difficulty or issue you are facing here? Create a rule input of your CDT type in the StudentDetails and pass the value.

    gayatria0439
    November 8, 2024

    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).

    sanjuktab2257
    November 30, 2024

    Thank you Gayatri, it was really helpful.

    stefanhelzle0001
    November 30, 2024

    A blog post I wrote a while ago also might help you to understand how to manage data in interfaces.

    https://appian.rocks/2022/07/05/data-in-interfaces/