How to operate the localVariable defined in the sub interface in the parent interface?

Hi team,

There are two interfaces, namely interfaceA and interfaceB, and interfaceB is a sub-interface of interfaceA.

In the sub interfaceB, two localVariables are defined, namely b1 and b2.

In the parent interfaceA, there is a button. I want to implement a function. When the button in interfaceA is clicked, b1 and b2 in interfaceB can be operated.

How to achieve it?

Is there a recommended solution?

Thanks a lot!

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Associate Developer

    We cannot handle it through local variables. The name itself indicates that they are local, so we cannot access them globally or outside of that interface. If we need to pass or handle values from Interface A to Interface B, we need to create Rule Inputs. These rule Inputs will act as global variables to manage these situations. Or We need to pass these local variable values into the rule inputs of the B interface. By the end of this, we have to handle everything through rule inputs only.

Reply
  • 0
    Certified Associate Developer

    We cannot handle it through local variables. The name itself indicates that they are local, so we cannot access them globally or outside of that interface. If we need to pass or handle values from Interface A to Interface B, we need to create Rule Inputs. These rule Inputs will act as global variables to manage these situations. Or We need to pass these local variable values into the rule inputs of the B interface. By the end of this, we have to handle everything through rule inputs only.

Children
No Data