<?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>populating the date field values in a grid</title><link>https://community.appian.com/discussions/f/general/10875/populating-the-date-field-values-in-a-grid</link><description>Hi All, 
 
 
 
 Id 
 date1 
 date2 
 
 
 1 
 5/8/2017 
 7/9/2017 
 
 
 2 
 7/9/2017 
 8/10/2017 
 
 
 
 Actually, the issue is we need populate the data as above in grid. Firstly the value in date1 column is original date and if we select a new date that</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: populating the date field values in a grid</title><link>https://community.appian.com/thread/47638?ContentTypeID=1</link><pubDate>Wed, 16 Aug 2017 11:46:18 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e0f1360b-f9e7-4ef6-823d-fadeeead0933</guid><dc:creator>sravanis</dc:creator><description>Hi,&lt;br /&gt;
&lt;br /&gt;
Thanks for your suggestions, I will try in above format.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: populating the date field values in a grid</title><link>https://community.appian.com/thread/47637?ContentTypeID=1</link><pubDate>Wed, 16 Aug 2017 10:47:22 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:091e2286-4f78-4e43-b2e3-e5a1d58e640b</guid><dc:creator>Vinay Kumar Rai</dc:creator><description>&lt;p&gt;Hi Sravansi,&lt;br /&gt;&amp;nbsp; &amp;nbsp;Agree with Jocob, you can create the additional CDT with all the filed on the GRID and use of apply function to populate the data on the CDT variable,&lt;br /&gt;Example :&lt;br /&gt;&amp;nbsp; local!AllDetails:&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;apply(&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; rule!CreateDataFormat(&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Index:_&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; MainData:local!MainData&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;),&amp;nbsp;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1 + enumerate (count(local!MainData))&lt;br /&gt;&lt;br /&gt;&amp;nbsp;and On the Expression : CreateDataFormat&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;type!MyNewCDT(&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Id : ri!MainData[ri!Index].Id,&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;date1: ri!MainData[ri!Index].date,&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;date2: index(ri!MainData,ri!Index+1,null)&lt;br /&gt;&amp;nbsp; &amp;nbsp; )&lt;/p&gt;
&lt;p&gt;hope it helpful&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: populating the date field values in a grid</title><link>https://community.appian.com/thread/47626?ContentTypeID=1</link><pubDate>Wed, 16 Aug 2017 05:43:18 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:66ce28ef-949b-4390-8364-a8b86c63855f</guid><dc:creator>Shivam Gupta</dc:creator><description>Hi Sravanis,&lt;br /&gt;
     Can you brief me more about the scenario, like what you meant by &amp;quot;original date&amp;quot;? and how date2 column is changing upon selecting date1 field ?&lt;br /&gt;
Also if you just want to show the date2 of row 1 in date1 of row 2 while you add a row. Just create a local variable and save the date2 value of row1 as it changes and have the same value in row2 date1 field when you create a new row..&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: populating the date field values in a grid</title><link>https://community.appian.com/thread/47620?ContentTypeID=1</link><pubDate>Wed, 16 Aug 2017 04:27:07 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1c68e981-7f5d-4b9d-aeeb-bab78577dbdf</guid><dc:creator>sravanis</dc:creator><description>Hi,&lt;br /&gt;
&lt;br /&gt;
Actually the data in database should not change, I need to show that format only in grid.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: populating the date field values in a grid</title><link>https://community.appian.com/thread/47559?ContentTypeID=1</link><pubDate>Mon, 14 Aug 2017 14:53:06 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:73f57ef8-ebc8-4807-9aee-7a1cb3ff4051</guid><dc:creator>Jacob Grafenstein</dc:creator><description>There are many implementation strategies you could use to achieve this desired result. What do your CDTs look like?  One way of achieving this would be to create a field in your CDT that acts as a pointer back the previous CDT. For the first CDT in the list, the pointer would be null. For every subsequent CDT in the list, the pointer would point back to the previous CDT. Then, you can access the previous CDT&amp;#39;s date2 field.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>