<?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>How to call decision rule in interface</title><link>https://community.appian.com/discussions/f/data/21668/how-to-call-decision-rule-in-interface</link><description>Here, I have created a decision rule, My requirements are if I call this decision rule in the interface in the orgName field the tax Id and Address should be displayed. 
 How can i configure this in the interface?</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to call decision rule in interface</title><link>https://community.appian.com/thread/84750?ContentTypeID=1</link><pubDate>Thu, 19 Aug 2021 05:59:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8aba41ad-c685-473e-94dd-3ec801c7feed</guid><dc:creator>gaddamv0001</dc:creator><description>&lt;p&gt;Yeah sure. Thank you&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to call decision rule in interface</title><link>https://community.appian.com/thread/84749?ContentTypeID=1</link><pubDate>Thu, 19 Aug 2021 04:58:32 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cb386d5b-e72b-437c-9bcf-4051d3e4e725</guid><dc:creator>Selvakumar Kumarasamy</dc:creator><description>&lt;p&gt;Decision objects in Appian are meant to return specific output values based on the input value. You have designed your decision like it&amp;#39;ll return only one output (tax Id &amp;amp; Address) for the given input name. So the output is always going to be a single map with two fields.&lt;/p&gt;
&lt;p&gt;This data is not apt for passing as choice values in a drop-down. I&amp;#39;d recommend rethinking your design approach.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to call decision rule in interface</title><link>https://community.appian.com/thread/84746?ContentTypeID=1</link><pubDate>Thu, 19 Aug 2021 03:47:20 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:580b6e15-c569-444f-bd9c-cf1feaa95d4b</guid><dc:creator>gaddamv0001</dc:creator><description>&lt;p&gt;Actually here. in this code i am trying to pass the decision rule in place of choice values and choice labels so when a person selects the field he can see the options.&lt;/p&gt;
&lt;p&gt;( In my decision rule the input1 values are me organisation name values and my ouput1 value is my taxid and my output 2 is my address)&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;a!sideBySideLayout(&lt;br /&gt; items: {&lt;br /&gt; a!sideBySideItem(&lt;br /&gt; item: a!dropdownField(&lt;br /&gt; label: &amp;quot;Organization Name&amp;quot;,&lt;br /&gt; labelPosition: &amp;quot;ABOVE&amp;quot;,&lt;br /&gt; placeholder: &amp;quot;Choose a value&amp;quot;,&lt;br /&gt; choiceLabels: local!address,&lt;br /&gt; choiceValues: local!address,&lt;br /&gt; value: local!address,&lt;br /&gt; saveInto: ri!donationDetails.orgName,&lt;br /&gt; disabled: ri!isReadOnly&lt;br /&gt; &lt;br /&gt; )&lt;br /&gt; ),&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to call decision rule in interface</title><link>https://community.appian.com/thread/84745?ContentTypeID=1</link><pubDate>Thu, 19 Aug 2021 03:40:24 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cfa0b8e6-83d4-488a-8dfc-241f76f0ef07</guid><dc:creator>Selvakumar Kumarasamy</dc:creator><description>&lt;p&gt;Sorry, I didn&amp;#39;t get your full code (or) what you&amp;#39;re trying to do exactly. But I&amp;#39;ve attached a sample of how the decision can be used.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!address: rule!ALM_decisionRule(input1: &amp;quot;AKSHARA FOUNDATION&amp;quot;),
  {
    a!sectionLayout(
      label: &amp;quot; &amp;quot;,
      contents: {
        a!boxLayout(
          label: &amp;quot;Donation Details&amp;quot;,
          contents: {
            a!sideBySideLayout(
              items: {
                a!sideBySideItem(
                  item: a!textField(
                    label: &amp;quot;Organization Tax Id&amp;quot;,
                    labelPosition: &amp;quot;ABOVE&amp;quot;,
                    readOnly: true(),
                    value: local!address.output1
                  )
                ),
                a!sideBySideItem(
                  item: a!textField(
                    label: &amp;quot;Organization Address&amp;quot;,
                    labelPosition: &amp;quot;ABOVE&amp;quot;,
                    readOnly: true(),
                    value: local!address.output2
                  )
                )
              }
            )
          }
        )
      }
    )
  }
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to call decision rule in interface</title><link>https://community.appian.com/thread/84744?ContentTypeID=1</link><pubDate>Thu, 19 Aug 2021 03:36:45 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0a736d13-fd0b-4008-a2a8-8149b35308e6</guid><dc:creator>gaddamv0001</dc:creator><description>&lt;p&gt;here in place of input: &amp;quot;Akshara foundation&amp;quot; i tried giving fv!item also bt it didnt wrk&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to call decision rule in interface</title><link>https://community.appian.com/thread/84743?ContentTypeID=1</link><pubDate>Thu, 19 Aug 2021 03:33:14 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b9212a18-4c28-447c-ace5-e4fbf1f38bce</guid><dc:creator>gaddamv0001</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!address:rule!ALM_decisionRule(input1: &amp;quot;AKSHARA FOUNDATION&amp;quot;),
  {
a!columnsLayout(
  columns: {
    a!columnLayout(
      contents: {
        a!sectionLayout(
          label: &amp;quot; &amp;quot;,
          contents: {
            a!boxLayout(
              label: &amp;quot;Donation Details&amp;quot;,
              contents: {
                a!pickerFieldUsers(
                  label: &amp;quot;Donor *&amp;quot;,
                  labelPosition: &amp;quot;ABOVE&amp;quot;,
                  placeholder: &amp;quot;Enter the name of the Donor&amp;quot;,
                  maxSelections: 1,
                  value: ri!donationDetails.donarName,
                  saveInto: ri!donationDetails.donarName,
                  readOnly: ri!isReadOnly
                ),
                a!sideBySideLayout(
                  items: {
                    a!sideBySideItem(
                      item: a!dropdownField(
                        label: &amp;quot;Organization Name&amp;quot;,
                        labelPosition: &amp;quot;ABOVE&amp;quot;,
                        placeholder: &amp;quot;Choose a value&amp;quot;,
                        choiceLabels: local!address,
                        choiceValues: local!address,
                        value: local!address,
                        saveInto: ri!donationDetails.orgName,
                        disabled: ri!isReadOnly
                  
                      )
                    ),&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to call decision rule in interface</title><link>https://community.appian.com/thread/84742?ContentTypeID=1</link><pubDate>Thu, 19 Aug 2021 03:29:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:aac88aaa-e2d4-463b-bd0f-53abb589be87</guid><dc:creator>Selvakumar Kumarasamy</dc:creator><description>&lt;p&gt;Can you please share your code?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to call decision rule in interface</title><link>https://community.appian.com/thread/84740?ContentTypeID=1</link><pubDate>Thu, 19 Aug 2021 03:29:20 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d2a9309b-516c-4215-b2f1-bf8793f53883</guid><dc:creator>gaddamv0001</dc:creator><description>&lt;p&gt;Yes i tried this way but its not working&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to call decision rule in interface</title><link>https://community.appian.com/thread/84738?ContentTypeID=1</link><pubDate>Thu, 19 Aug 2021 03:23:43 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cd808100-57cf-4e93-a731-45e6b80dfeee</guid><dc:creator>Selvakumar Kumarasamy</dc:creator><description>&lt;p&gt;You can simply call the decision like below, store it into a local variable and then use that data to show in the interface.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;rule!ALM_decisionRule(input1: &amp;quot;AKSHARA FOUNDATION&amp;quot; /*Desired input*/ )&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>