Skip to main content
February 4, 2022
Question

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

  • February 4, 2022
  • 12 replies
  • 0 views

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
February 4, 2022

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
February 4, 2022

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

February 4, 2022

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
February 4, 2022

It looks okay to me

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