<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Calling an Child Interface from Parent Interface</title><link>https://community.appian.com/discussions/f/new-to-appian/37969/calling-an-child-interface-from-parent-interface</link><description>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</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Calling an Child Interface from Parent Interface</title><link>https://community.appian.com/thread/143076?ContentTypeID=1</link><pubDate>Mon, 25 Nov 2024 12:40:36 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7525ec4c-4b1c-4b60-b5ea-5728f5572b52</guid><dc:creator>Prasanta Paul</dc:creator><description>&lt;p&gt;Keep the same parameters as rule inputs for parent and pass it to the child&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Calling an Child Interface from Parent Interface</title><link>https://community.appian.com/thread/143027?ContentTypeID=1</link><pubDate>Fri, 22 Nov 2024 15:48:32 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1114da72-21a8-483e-9de0-4c95d5bb4914</guid><dc:creator>maheshg821223</dc:creator><description>&lt;p&gt;I got my issue resolved. Local variables are not passing the values correctly to Child Interface. I instead set up my process model on the Site and called the Child Interface from the Site page. This resolved the issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Calling an Child Interface from Parent Interface</title><link>https://community.appian.com/thread/142951?ContentTypeID=1</link><pubDate>Wed, 20 Nov 2024 14:54:00 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:db477cc9-fe4a-43ac-a0d3-42b70cfeb158</guid><dc:creator>maheshg821223</dc:creator><description>&lt;p&gt;Hi &lt;a href="/members/mageshwarang0609"&gt;Magesh Waran G&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please see below 2 screenshots. excelData is the parameter I am passing.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/62/pastedimage1732114392028v2.jpeg" alt=" " /&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/62/pastedimage1732114391981v1.jpeg" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Calling an Child Interface from Parent Interface</title><link>https://community.appian.com/thread/142931?ContentTypeID=1</link><pubDate>Wed, 20 Nov 2024 07:12:27 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fb9f9de8-7e0a-44a8-aa7a-f9df09e0c2e5</guid><dc:creator>Magesh Waran G</dc:creator><description>&lt;p&gt;&lt;a href="/members/maheshg821223"&gt;maheshg821223&lt;/a&gt;&amp;nbsp; can you try checking the value of output parameters of Import Excel to Database node&amp;nbsp;by saving into PVs to check whether any error occurred during the import?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Calling an Child Interface from Parent Interface</title><link>https://community.appian.com/thread/142917?ContentTypeID=1</link><pubDate>Tue, 19 Nov 2024 19:11:48 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:02a7db63-cefb-40a9-b968-11d6ad633a8d</guid><dc:creator>maheshg821223</dc:creator><description>&lt;p&gt;Hi &lt;a href="/members/mageshwarang0609"&gt;Magesh Waran G&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have modified my Process model and removed the call to Child Interface. Also I have modified the Child Interface Submit button to use a!startProcess(), code provided below for reference.&lt;/p&gt;
&lt;p&gt;Then I call the Parent Interface from the Site and click on Bulk Upload, select an excel to upload, and then click on Submit , In both the cases (Process Model calling the Child Interface or Child Interface calling the Process Model), Process Model seems to trigger end to end, but the data is not getting written to the database.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;When I test the Child Interface or Process Model separately, they both load the data into database successfully.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;{
  a!sectionLayout(
    label: &amp;quot;&amp;quot;,
    contents: {
      a!fileUploadField(
        label: &amp;quot;&amp;quot;,
        labelPosition: &amp;quot;ABOVE&amp;quot;,
        target: cons!VWHIAP_BULK_LOAD_FOLDER,
        fileNames: &amp;quot;DD Review File &amp;quot; &amp;amp; now(),
        value: ri!excelData,
        saveInto: {ri!excelData},
        validations: {}
      ),
      a!buttonArrayLayout(
        buttons: {
          a!buttonWidget(
            label: &amp;quot;Cancel&amp;quot;,
            value: true,
            saveInto: ri!Cancel,
            submit: true(),
            style: &amp;quot;OUTLINE&amp;quot;
          ),
          a!buttonWidget(
            label: &amp;quot;Submit&amp;quot;,
            value: false,
            /*saveInto: ri!Cancel,*/
            saveInto:  a!startProcess
            (
              processModel: cons!VWHIAP_Bulk_Upload_Process_Model,
              processParameters: 
                {
                  cancel: false(),
                  excelData: ri!excelData
                },
              onSuccess: null(),
              onError: null()
            ),
            submit: true(),
            style: &amp;quot;OUTLINE&amp;quot;
          )
        },
        align: &amp;quot;START&amp;quot;,
        marginBelow: &amp;quot;NONE&amp;quot;
      )
    }
  )
}&lt;/pre&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/62/pastedimage1732043339638v1.jpeg" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Calling an Child Interface from Parent Interface</title><link>https://community.appian.com/thread/142908?ContentTypeID=1</link><pubDate>Tue, 19 Nov 2024 15:58:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0791c459-b19f-4f13-8eb0-292d7d48b8e9</guid><dc:creator>Magesh Waran G</dc:creator><description>&lt;p&gt;&lt;a href="/members/maheshg821223"&gt;maheshg821223&lt;/a&gt;&amp;nbsp; hope you configured the child interface either as a start form or user input task in the process model and that is why it was working when you test it from the child interface. Instead try removing the form from the process model and call the process model using&amp;nbsp;a!startProcess() in the saveInto parameter of the submit button to start the process model&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Calling an Child Interface from Parent Interface</title><link>https://community.appian.com/thread/142907?ContentTypeID=1</link><pubDate>Tue, 19 Nov 2024 15:33:15 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:dfef7344-fc14-4617-84f6-57b58753f938</guid><dc:creator>maheshg821223</dc:creator><description>&lt;p&gt;Thank you &lt;a href="/members/gayatria0439"&gt;gayatria0439&lt;/a&gt;&amp;nbsp;,&amp;nbsp; My parent interface is just a stand-alone Interface. Parent Interface has Navigation on the left side. Each Navigation link should open a new interface on the right hand side. I have attached screenshot for your reference. For example, upon click of Bulk Upload Navigation link it has to open Child Interface. In this case, Child Interface has File Upload utility and with Cancel/Submit button. Child Interface has 2 Rule Inputs which are Cancel (Boolean) and excelData (DocumentType). Child Interface has a process model to process the data from the File Upload.&lt;/p&gt;
&lt;p&gt;I am now able to call the Child Interface successfully from parent interface by passing parent interface localVariables to them. But when I click Submit button on the Child Interface, nothing happens, I mean the file upload does not trigger.&lt;/p&gt;
&lt;p&gt;It works fine when I test the Child Interfaced Process Model.&lt;/p&gt;
&lt;p&gt;I am new to Appian, can you please advise if I am doing something wrong here?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/62/Intefaces.JPG" alt=" " /&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/62/Bulk-Upload.JPG" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Calling an Child Interface from Parent Interface</title><link>https://community.appian.com/thread/142887?ContentTypeID=1</link><pubDate>Tue, 19 Nov 2024 07:20:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:46793dfd-4172-4be2-8b84-aac9c66eb8a2</guid><dc:creator>gayatria0439</dc:creator><description>&lt;p&gt;Regarding interface layouts, we cannot use form layouts when calling an interface within another, as form layouts are top-level layouts and cannot be nested. Instead, we should use section layouts for such scenarios.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Calling an Child Interface from Parent Interface</title><link>https://community.appian.com/thread/142886?ContentTypeID=1</link><pubDate>Tue, 19 Nov 2024 07:11:49 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:85c15b8d-e209-4b8d-97af-4aa6c291e660</guid><dc:creator>gayatria0439</dc:creator><description>&lt;p&gt;Hi &lt;a href="/members/maheshg821223"&gt;maheshg821223&lt;/a&gt;&amp;nbsp;,&lt;br /&gt;&lt;br /&gt;Whenever we call an interface within another interface, we need to pass the necessary parameters to handle actions or transfer values between interfaces. We can use either local variables or rule inputs, depending on the specific requirements. Rule inputs function as global variables and can be managed through the process model. Alternatively, if you need to use the values within the interface itself, you can pass local variables.&lt;/p&gt;
&lt;p&gt;For example:&lt;br /&gt;&lt;strong&gt;rule!Interface&lt;/strong&gt;(&lt;span style="color:#808080;"&gt;cancel&lt;/span&gt;: ri!cancel/local!cancel,&lt;span style="color:#808080;"&gt;fileUpload&lt;/span&gt;: ri!fileUpload/local!fileupload)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Calling an Child Interface from Parent Interface</title><link>https://community.appian.com/thread/142878?ContentTypeID=1</link><pubDate>Mon, 18 Nov 2024 20:25:19 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e573032d-e0bb-4981-b2e5-9980084eb1e6</guid><dc:creator>maheshg821223</dc:creator><description>&lt;p&gt;Hi Mike,&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;a!buttonWidget(&lt;br /&gt; label: &amp;quot;Cancel&amp;quot;,&lt;br /&gt; value: true,&lt;br /&gt; saveInto: ri!Cancel,&lt;br /&gt; submit: true(),&lt;br /&gt; style: &amp;quot;OUTLINE&amp;quot;&lt;br /&gt; ),&lt;br /&gt; a!buttonWidget(&lt;br /&gt; label: &amp;quot;Submit&amp;quot;,&lt;br /&gt; value: false,&lt;br /&gt; saveInto: ri!Cancel,&lt;br /&gt; submit: true(),&lt;br /&gt; style: &amp;quot;OUTLINE&amp;quot;&lt;br /&gt; )&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Calling an Child Interface from Parent Interface</title><link>https://community.appian.com/thread/142877?ContentTypeID=1</link><pubDate>Mon, 18 Nov 2024 20:11:13 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:af8ea603-54bd-42a0-93e9-4b26284633aa</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;make sure your button widgets have the correct setting for the &amp;quot;submit&amp;quot; parameter.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Calling an Child Interface from Parent Interface</title><link>https://community.appian.com/thread/142876?ContentTypeID=1</link><pubDate>Mon, 18 Nov 2024 20:10:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c8b1fc17-9af5-4008-9d16-2b2bb1d7b1dd</guid><dc:creator>maheshg821223</dc:creator><description>&lt;p&gt;Hi Aditya,&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;rule!DD_Review_Bulk_Upload_Interface(local!Cancel, local!excelData)&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Calling an Child Interface from Parent Interface</title><link>https://community.appian.com/thread/142875?ContentTypeID=1</link><pubDate>Mon, 18 Nov 2024 20:09:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:48567d9b-3953-426a-9d8c-1b919a4f38a6</guid><dc:creator>maheshg821223</dc:creator><description>&lt;p&gt;Hi Soma,&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;rule!DD_Review_Bulk_Upload_Interface(local!Cancel, local!excelData)&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Calling an Child Interface from Parent Interface</title><link>https://community.appian.com/thread/142874?ContentTypeID=1</link><pubDate>Mon, 18 Nov 2024 20:05:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:15ce1cfd-a3cb-4a67-863f-65b143539026</guid><dc:creator>maheshg821223</dc:creator><description>&lt;p&gt;Thank you Mike, I have created an interface with section layout instead of Form layout.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Calling an Child Interface from Parent Interface</title><link>https://community.appian.com/thread/142815?ContentTypeID=1</link><pubDate>Fri, 15 Nov 2024 16:37:24 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a71eb541-8d2b-477c-a848-86844b887ddd</guid><dc:creator>Mike Schmitt</dc:creator><description>[quote userid="291585" url="~/discussions/f/new-to-appian/37969/calling-an-child-interface-from-parent-interface/142814"]The contents field on a column layout cannot contain a form layout[/quote]
&lt;p&gt;This error message is pretty self-explanatory.&amp;nbsp; A child interface cannot contain &amp;quot;a!formLayout()&amp;quot;, since a!formLayout() cannot be nested at all.&amp;nbsp; You really don&amp;#39;t need it though, you can do almost everything you need with a!sectionLayout; the Form Layout component only needs to be used in the top-most form in any case (and even then, it&amp;#39;s not 100% required, just makes certain configuration aspects easier for a user input task interface).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Calling an Child Interface from Parent Interface</title><link>https://community.appian.com/thread/142814?ContentTypeID=1</link><pubDate>Fri, 15 Nov 2024 16:28:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:007c9c27-79a7-491a-8349-79016ca2bce1</guid><dc:creator>maheshg821223</dc:creator><description>&lt;p&gt;I have added Child Interface and Parent Interface screenshots. Child Interface is a Form that has File Upload, Cancel and Submit Button. It has 2 Rule Inputs Cancel (boolen) and excelData (Document).&lt;/p&gt;
&lt;p&gt;Parent Interface has Navigation as shown in the screenshot, My expectation is when user clicks on Bulk Upload, it should show the Child Interface. So in the Parent Interface Bulk Upload Section Layout, I have added rule!Child Interface, when its asking for parameters, I have passed on 2 local variables and I was getting below error message:&lt;/p&gt;
&lt;p&gt;The contents field on a column layout cannot contain a form layout. Received a form layout at index 1.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Calling an Child Interface from Parent Interface</title><link>https://community.appian.com/thread/142813?ContentTypeID=1</link><pubDate>Fri, 15 Nov 2024 16:20:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fb8107d6-49b1-4eb5-a3b3-d8747756035b</guid><dc:creator>maheshg821223</dc:creator><description>&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/62/Child-Interface.JPG" alt=" " /&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/62/Parent-Interface.JPG" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Calling an Child Interface from Parent Interface</title><link>https://community.appian.com/thread/142808?ContentTypeID=1</link><pubDate>Fri, 15 Nov 2024 08:35:27 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d6567fe4-a53f-46eb-8b89-71d34cf33728</guid><dc:creator>Soma</dc:creator><description>&lt;p&gt;There are multiple ways of doing it.&lt;/p&gt;
&lt;p&gt;1. If your parent interface needs to get and pass values to process model, then&lt;/p&gt;
&lt;p&gt;a. Create two rule inputs in child interface and pass it to child interface. The data flow will be as below&lt;/p&gt;
&lt;p&gt;process variable &amp;gt;&amp;gt; parent interface rule input &amp;gt;&amp;gt; child interface rule input&amp;nbsp;&lt;/p&gt;
&lt;p&gt;2. If your parent interface is standalone, then you can use localvariables to initialise the two rule inputs&lt;/p&gt;
&lt;p&gt;local!cancel &amp;gt;&amp;gt; ri!cancel&lt;/p&gt;
&lt;p&gt;local!excelData &amp;gt;&amp;gt; ri!excelData&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Calling an Child Interface from Parent Interface</title><link>https://community.appian.com/thread/142801?ContentTypeID=1</link><pubDate>Fri, 15 Nov 2024 06:22:10 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9b770500-0420-436d-a91f-16ce0524d931</guid><dc:creator>adityae736199</dc:creator><description>&lt;p&gt;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.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If that&amp;#39;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.&lt;/p&gt;
&lt;p&gt;Approach may change based on how you want to utilize the data in those rule inputs&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Calling an Child Interface from Parent Interface</title><link>https://community.appian.com/thread/142792?ContentTypeID=1</link><pubDate>Fri, 15 Nov 2024 03:43:14 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:42b31dc1-7690-47d0-8789-87fdbd2356ef</guid><dc:creator>Kumar Agniwesh</dc:creator><description>&lt;p&gt;can you share the parent interface code. I am not sure on what do you mean by navigation link&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Calling an Child Interface from Parent Interface</title><link>https://community.appian.com/thread/142791?ContentTypeID=1</link><pubDate>Fri, 15 Nov 2024 02:13:49 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:febb69e9-4bf3-41a5-b01c-3159a1606e91</guid><dc:creator>kaushik12</dc:creator><description>&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/62/Screenshot-2024_2D00_11_2D00_15-074047.png" /&gt;&lt;br /&gt;&lt;a href="/members/maheshg821223"&gt;maheshg821223&lt;/a&gt;&amp;nbsp; You need to pass the parameters like this, let me know if you still have any confusion.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>