My Child Interface has Submit and Cancel Button. It has File Upload functionality. Below are the 2 Rule Inputs it has:
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
There are multiple ways of doing it.
1. If your parent interface needs to get and pass values to process model, then
a. Create two rule inputs in child interface and pass it to child interface. The data flow will be as below
process variable >> parent interface rule input >> child interface rule input
2. If your parent interface is standalone, then you can use localvariables to initialise the two rule inputs
local!cancel >> ri!cancel
local!excelData >> ri!excelData
Hi Soma,
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)
}
make sure your button widgets have the correct setting for the "submit" parameter.
Hi Mike,
Below are the parameters for my 2 buttons on the child Interface, please advise if you notice anything off here. Process Model for the child Interface works fine when I have tested it.
a!buttonWidget( label: "Cancel", value: true, saveInto: ri!Cancel, submit: true(), style: "OUTLINE" ), a!buttonWidget( label: "Submit", value: false, saveInto: ri!Cancel, submit: true(), style: "OUTLINE" )