<?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>Interface</title><link>https://community.appian.com/discussions/f/user-interface/25937/interface</link><description>I am having a editable grid in that there is a field that should autopopulate a value 
 eg. there are two fields start date and end date I want to find the difference and then in days field it autopopulate the no of days 
 In interface level the value</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Interface</title><link>https://community.appian.com/thread/101429?ContentTypeID=1</link><pubDate>Mon, 19 Sep 2022 12:03:39 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4fc73e99-ebf8-4dce-9dd1-cbc6e1771b59</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;The real important thing to learn here is that the &amp;quot;saveInto&amp;quot; parameter of a component does &lt;em&gt;&lt;strong&gt;absolutely nothing&lt;/strong&gt;&lt;/em&gt; unless you actually change the value referenced in that component.&amp;nbsp; Until then, the saveInto will never execute.&amp;nbsp; That&amp;#39;s why if you have a field where all it does is display a calculated value based on other fields, if you actually need that calculation stored somewhere, you need to do the work to save that value in some other location.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interface</title><link>https://community.appian.com/thread/101427?ContentTypeID=1</link><pubDate>Mon, 19 Sep 2022 11:57:30 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a55e19cd-b874-4060-badd-a7411e3248e0</guid><dc:creator>udhayakumarm000856</dc:creator><description>&lt;p&gt;It&amp;#39;s Worked Thanks &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interface</title><link>https://community.appian.com/thread/101425?ContentTypeID=1</link><pubDate>Mon, 19 Sep 2022 11:47:48 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9e79a5aa-703e-495f-8883-ad8ffecdb80b</guid><dc:creator>ujjwalr0002</dc:creator><description>&lt;p&gt;Actually you are passing the logic in the value field try to pass the same on the saveInto end date field. Save Into for a field works when you perform some action on that field.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Use the below code for saveInto of your end date. Value will be saved to your rule input.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;{
    fv!item.enddate
    if(
      a!isNullOrEmpty(
        fv!item.enddate
      ),
      {},
      a!save(
        fv!item.demandhours,
        (
          tointeger(
            tointervalds(save!value) - tointervalds(fv!item.startdate)
          )
        )
      )
      )
    )
  }&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interface</title><link>https://community.appian.com/thread/101423?ContentTypeID=1</link><pubDate>Mon, 19 Sep 2022 11:11:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:17d91a62-e5fc-4102-9c16-d04ceb9808ce</guid><dc:creator>udhayakumarm000856</dc:creator><description>&lt;p&gt;a!integerField(&lt;br /&gt; value: (&lt;br /&gt; if(&lt;br /&gt; a!isNullOrEmpty(&lt;br /&gt; ri!RMS_AddResourceModelContractPricing.enddate&lt;br /&gt; ),&lt;br /&gt; {},&lt;br /&gt; (&lt;br /&gt; tointeger(&lt;br /&gt; tointervalds(&lt;br /&gt; ri!RMS_AddResourceModelContractPricing.enddate) - tointervalds(ri!RMS_AddResourceModelContractPricing.startdate&lt;br /&gt; )&lt;br /&gt; )&lt;br /&gt; )&lt;br /&gt; )&lt;br /&gt; ),&lt;br /&gt; saveInto: fv!item.demandhours&lt;br /&gt; ),&lt;/p&gt;
&lt;p&gt;This code for no.of days grid field&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interface</title><link>https://community.appian.com/thread/101422?ContentTypeID=1</link><pubDate>Mon, 19 Sep 2022 10:52:45 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f5ce3e65-ca61-49f8-bcf7-ad243e8706b6</guid><dc:creator>ujjwalr0002</dc:creator><description>&lt;p&gt;share some reference for your code it should work.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interface</title><link>https://community.appian.com/thread/101421?ContentTypeID=1</link><pubDate>Mon, 19 Sep 2022 10:50:53 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:40197a66-2cd6-41b2-bed3-93f155ac3f29</guid><dc:creator>udhayakumarm000856</dc:creator><description>&lt;p&gt;I was using a grid field In that the value is not saving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interface</title><link>https://community.appian.com/thread/101420?ContentTypeID=1</link><pubDate>Mon, 19 Sep 2022 10:44:15 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5b92b109-a420-46aa-8c7e-dc798c251c44</guid><dc:creator>ujjwalr0002</dc:creator><description>&lt;p&gt;Apply the below logic on your end date it will directly save the number of days to your rule input.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!dateField(
label: &amp;quot;End Date&amp;quot;,
value: ri!date,
saveInto: {
ri!date,
a!save(
ri!days,
tointeger(tointervalds(save!value) -tointervalds(today()))/*today is your start date*/
)
}
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interface</title><link>https://community.appian.com/thread/101419?ContentTypeID=1</link><pubDate>Mon, 19 Sep 2022 10:42:24 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:25fded06-763d-4023-9da7-ed51ea976d3e</guid><dc:creator>Praful Singhal</dc:creator><description>&lt;p&gt;then in saveinto set the value of differnece in case of whenever user set value in any of the date field.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interface</title><link>https://community.appian.com/thread/101417?ContentTypeID=1</link><pubDate>Mon, 19 Sep 2022 10:35:21 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fb04ec94-a29d-4d31-9e7e-562bb3fbd5d6</guid><dc:creator>udhayakumarm000856</dc:creator><description>&lt;p&gt;Only no of days needs to be auto populate after user selecting the start date and end date&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interface</title><link>https://community.appian.com/thread/101415?ContentTypeID=1</link><pubDate>Mon, 19 Sep 2022 10:33:12 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f6d39e8c-a931-454e-8f90-4db6abcea90f</guid><dc:creator>Praful Singhal</dc:creator><description>&lt;p&gt;As start date, end date and day values are auto populated then please set them in the CDT/ dictionary/ map at the start of your UI, don`t use default value function in the value. Whenever there is a change in the start date or end date recalculate the difference and store it in the day.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interface</title><link>https://community.appian.com/thread/101401?ContentTypeID=1</link><pubDate>Mon, 19 Sep 2022 09:43:12 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9bc7ada6-5794-4b7f-86b7-2d0a802adfe4</guid><dc:creator>ujjwalr0002</dc:creator><description>&lt;p&gt;To save the values to the rule input you need to perform a action try using a button or dynamic link to save the values to rule input.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interface</title><link>https://community.appian.com/thread/101396?ContentTypeID=1</link><pubDate>Mon, 19 Sep 2022 09:31:49 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ed4b1ad6-6554-4143-9c36-3d4a74e8c4de</guid><dc:creator>udhayakumarm000856</dc:creator><description>&lt;p&gt;yes&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interface</title><link>https://community.appian.com/thread/101395?ContentTypeID=1</link><pubDate>Mon, 19 Sep 2022 09:31:12 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7d97a11f-cd99-45fe-a660-9cf59e835990</guid><dc:creator>Gabriele Camilli</dc:creator><description>&lt;p&gt;Hi, sorry for the question, but did you save the value in the rule input in the correct place?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>