Skip to main content
Known Participant
Feb 4, 2022 7:17 AM UTC
Question

Not able to pass value from parent interface to child interface?

Hi Team,

I have 2 interface one is parent and another is child interface.

From child interface i am submitting the form and found that value is not passing from child to parent.

I am using same rule input for both parent and child.

help me on this to get the solution.

Thanks,

12 replies

stefanhelzle0001
Brainy
Feb 4, 2022 7:32 AM UTC

Submit means that the task in a process is completed and the process flow continues.

In interfaces, data can be shared between top-down from parent to children. Sharing data then means that you need to use a rule input or a local on the parent and pass it to a rule input of the child. Then changing a value in the child will reflect in the parent.

agamb0001
Participating Frequently
Feb 4, 2022 7:35 AM UTC

Can you provide some screenshot / code of your way of implementation ?

Also, did you try to test the interfaces individually, as in does the rule input gets updated in the parent / child interfaces

Known Participant
Feb 4, 2022 7:53 AM UTC

PARENT INTERFACE

rule!RLM_section_updateAssignee(
requestId: ri!requestId,
buttonValue: ri!buttonValue,
requestData: ri!requestData,
comments: ri!comments
)

CHILD INTERFACE

a!paragraphField(
label: "Comment",
instructions: "(" & 255 - len(ri!comments) & ")",
value: ri!comments,
saveInto: a!save(ri!comments,save!value),
refreshAfter: "KEYPRESS",
readOnly: false()
),

I want to pass the comment value from child to parent which I am going to use in process model.

I have test interface individually and it is working fine, but value is not passing from child interface

agamb0001
Participating Frequently
Feb 4, 2022 8:06 AM UTC

It looks okay to me

Can you check what are the data types of comment in both the interfaces?