<?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>Load and With with local variable</title><link>https://community.appian.com/discussions/f/user-interface/12672/load-and-with-with-local-variable</link><description>Hi , 
 I know it could be an silly question but as i am learner so for me need to understand Why ?? 
 Why with is not accepting load variable and throwing Could not display interface. Please check definition and inputs. Interface Definition: Expression</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Load and With with local variable</title><link>https://community.appian.com/thread/56681?ContentTypeID=1</link><pubDate>Fri, 15 Jun 2018 07:20:52 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b89cb747-4f35-47b5-9bd6-9a468e248dba</guid><dc:creator>paragk998</dc:creator><description>use the code in Expression rule both will work.&lt;br /&gt;
&lt;br /&gt;
in above code your output return is local!a+local!b+local!c&lt;br /&gt;
which is not a SAIL component but integer value&lt;br /&gt;
&lt;br /&gt;
if you use interface then interface output must be SAIL component to display it.&lt;br /&gt;
but interface will not be able to display without any SAIL component.(as you are using hare in code)&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Load and With with local variable</title><link>https://community.appian.com/thread/56676?ContentTypeID=1</link><pubDate>Fri, 15 Jun 2018 01:15:08 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0033e2c5-5b84-47a6-bd8f-62bdce027cd3</guid><dc:creator>vimalkumars</dc:creator><description>&lt;p&gt;Hi sauravk,&lt;/p&gt;
&lt;p&gt;Looks like you are trying to use an expression in the interface design instead of rule&amp;nbsp;design.&lt;/p&gt;
&lt;p&gt;Same code you have shared will work good in rules.&lt;/p&gt;
&lt;p&gt;It throws an error in interface because interface expects a SAIL Components as an output.&lt;/p&gt;
&lt;p&gt;Below code works in interface because this contains Integer SAIL Component as an output&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;load(
  local!c: 10,
  with(
    local!a: 10,
    local!b: 20,
    a!integerField(
      value: local!a + local!b + local!c
    )
  )
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Load and With with local variable</title><link>https://community.appian.com/thread/56648?ContentTypeID=1</link><pubDate>Thu, 14 Jun 2018 10:45:10 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0eb13185-a063-4358-ac2a-e3fdda234073</guid><dc:creator>ravalik</dc:creator><description>Hi  sauravk,&lt;br /&gt;
&lt;br /&gt;
The error occurred due to invalid component i.e you need to provide a text or integer component so that it displays the result with out any error.Give the values to the respective components and try it.&lt;br /&gt;
&lt;br /&gt;
load(&lt;br /&gt;
local!a:1,&lt;br /&gt;
&lt;br /&gt;
with(&lt;br /&gt;
&lt;br /&gt;
local!b:2, local!c:3, &lt;br /&gt;
&lt;br /&gt;
a!textField(&lt;br /&gt;
value: local!a+local!b+local!c&lt;br /&gt;
)&lt;br /&gt;
)&lt;br /&gt;
)&lt;br /&gt;
Thanks,&lt;br /&gt;
ravalik&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Load and With with local variable</title><link>https://community.appian.com/thread/56644?ContentTypeID=1</link><pubDate>Thu, 14 Jun 2018 10:24:16 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2ab9ee1a-5b7c-4b63-9475-fcf1cd677ac0</guid><dc:creator>sauravk</dc:creator><description>Thanks its working.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Load and With with local variable</title><link>https://community.appian.com/thread/56643?ContentTypeID=1</link><pubDate>Thu, 14 Jun 2018 10:21:21 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b6755f1b-f69d-4ef0-a814-d7ef4034696c</guid><dc:creator>arikd398</dc:creator><description>Hi &lt;a href="/members/sauravk"&gt;sauravk&lt;/a&gt; ,&lt;br /&gt;
&lt;br /&gt;
Even though the method you are following is not the correct one for debugging purpose also.&lt;br /&gt;
&lt;br /&gt;
But &lt;br /&gt;
&lt;br /&gt;
load(&lt;br /&gt;
local!c:10,&lt;br /&gt;
&lt;br /&gt;
with(&lt;br /&gt;
&lt;br /&gt;
local!a:10, local!b:20, &lt;br /&gt;
&lt;br /&gt;
local!a+local!b+local!c)&lt;br /&gt;
) &lt;br /&gt;
&lt;br /&gt;
the above code is giving the same error as its reverse code:&lt;br /&gt;
&lt;br /&gt;
Could not display interface. Please check definition and inputs. Interface Definition: Not a valid component. Received: 40&lt;br /&gt;
&lt;br /&gt;
So please check it once.&lt;br /&gt;
&lt;br /&gt;
And as suggested by everyone please use integer field or text field for debugging in interface.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Load and With with local variable</title><link>https://community.appian.com/thread/56640?ContentTypeID=1</link><pubDate>Thu, 14 Jun 2018 09:47:55 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5c3a6af2-63d8-4055-9815-83ea68b1822f</guid><dc:creator>soujanyac0001</dc:creator><description>Hi Saurav,&lt;br /&gt;
&lt;br /&gt;
Try it like this .Since you have not given a valid component you are getting error&lt;br /&gt;
&lt;br /&gt;
load(&lt;br /&gt;
local!c:10,&lt;br /&gt;
&lt;br /&gt;
with(&lt;br /&gt;
&lt;br /&gt;
local!a:10, local!b:20, &lt;br /&gt;
&lt;br /&gt;
a!integerField(&lt;br /&gt;
  value: local!a+local!b+local!c&lt;br /&gt;
)&lt;br /&gt;
)&lt;br /&gt;
)&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Load and With with local variable</title><link>https://community.appian.com/thread/56611?ContentTypeID=1</link><pubDate>Thu, 14 Jun 2018 08:10:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4e02dca9-a09b-4f0e-9f34-3d4cb8368b59</guid><dc:creator>santoshd378</dc:creator><description>Interfaces can&amp;#39;t show literal values without any components, Instead test them in Expression rules&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Load and With with local variable</title><link>https://community.appian.com/thread/56605?ContentTypeID=1</link><pubDate>Thu, 14 Jun 2018 07:52:48 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6655f776-7040-4057-97d3-85c9ed56c181</guid><dc:creator>sauravk</dc:creator><description>But without that its giving result at the end of error . I am just doing this for debugging purpose.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Load and With with local variable</title><link>https://community.appian.com/thread/56603?ContentTypeID=1</link><pubDate>Thu, 14 Jun 2018 07:45:20 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:eb0d9c0c-4e54-4d2d-a344-1747a636b4d2</guid><dc:creator>santoshd378</dc:creator><description>Hi Saurav,&lt;br /&gt;
&lt;br /&gt;
As you are trying to display the number in interface without any components, so the error appears.&lt;br /&gt;
Try to show that value in a component, for example let us say an integer field. Then the interface should render.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>