Calling an Child Interface from Parent Interface

My Child Interface has Submit and Cancel Button. It has File Upload functionality. Below are the 2 Rule Inputs it has:

  • Cancel Rule Input (Type Boolean)
  • excelData Rule Input (Type Document)

I have a Parent Interface which uses Navigation, in one of the Navigation link I need to have this Child Interface appear. I was using rule!Child Interface, but its asking me to pass 2 parameters. Can you please help me on how I can pass those 2 parameters from Parent Interface?

Regards,

Mahesh

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer

    If your parent interface is being used in a process model as either Start Form/User Input task and you need those two rule input data to be passed to the PM from child interface, then create two new rule inputs in the parent interface and map them to the child rule wherever you are calling in the parent. 

    If that's not the case, then you can create two new local variables in the parent interface and pass them as parameters where you are calling the child.

    Approach may change based on how you want to utilize the data in those rule inputs

Reply
  • 0
    Certified Lead Developer

    If your parent interface is being used in a process model as either Start Form/User Input task and you need those two rule input data to be passed to the PM from child interface, then create two new rule inputs in the parent interface and map them to the child rule wherever you are calling in the parent. 

    If that's not the case, then you can create two new local variables in the parent interface and pass them as parameters where you are calling the child.

    Approach may change based on how you want to utilize the data in those rule inputs

Children
  • Hi Aditya,

    I have created 2 local variables on the parent stand-alone interface. I called the child interface by passing those 2 parameters. When I am testing the Site, the Submit/Cancel buttons are doing nothing. Below is how I am calling the Child Interface, both the local variables are defined on the parent interface.

    {

    rule!DD_Review_Bulk_Upload_Interface(local!Cancel, local!excelData)

    }