<?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>I have a cdt which have two fields   [field1=,field2=150],[field1=230,</title><link>https://community.appian.com/discussions/f/user-interface/6344/i-have-a-cdt-which-have-two-fields-field1-field2-150-field1-230</link><description>I have a cdt which have two fields [field1=,field2=150],[field1=230,field2=],[field1=23,field2=] Either field1 or field2 will have a value in each record. I need to Check which field is not empty and display in the single column of the grid. Please help</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: I have a cdt which have two fields &lt;br /&gt;&lt;br /&gt;[field1=,field2=150],[field1=230,</title><link>https://community.appian.com/thread/24786?ContentTypeID=1</link><pubDate>Tue, 17 Nov 2015 22:24:25 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7add482c-1199-48a4-93e4-1894206c2f43</guid><dc:creator>Shyam Bommakanti</dc:creator><description>If you have Appian common objects app deployed, there&amp;#39;s a rule you can use&lt;br /&gt;APN_replaceNull (Returns nullableValue only if it is not null. Else return replacementValue.)&lt;br /&gt;&lt;br /&gt;Use apply on the grid it will only display and not update CDT.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I have a cdt which have two fields &lt;br /&gt;&lt;br /&gt;[field1=,field2=150],[field1=230,</title><link>https://community.appian.com/thread/24758?ContentTypeID=1</link><pubDate>Tue, 17 Nov 2015 12:32:25 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9dccabf8-1021-4daa-9b19-e01a634247a6</guid><dc:creator>harshav</dc:creator><description>may be you can try like this, write a expression like if(isnull(field1),field2,field1)&lt;br /&gt;Then you do this function in apply like apply(fn!rulesaidabove,merge(field1,field2))&lt;br /&gt;May be you need to do a little work around if the merge is not working, Hope this would help!!! :)&lt;br /&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I have a cdt which have two fields &lt;br /&gt;&lt;br /&gt;[field1=,field2=150],[field1=230,</title><link>https://community.appian.com/thread/24747?ContentTypeID=1</link><pubDate>Tue, 17 Nov 2015 11:18:08 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c3026c38-e14a-49e6-83ee-494621944436</guid><dc:creator>srinivasulup</dc:creator><description>Here you are not updating the original CDT, store the result in the temporary variable and map to the grid&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I have a cdt which have two fields &lt;br /&gt;&lt;br /&gt;[field1=,field2=150],[field1=230,</title><link>https://community.appian.com/thread/24746?ContentTypeID=1</link><pubDate>Tue, 17 Nov 2015 11:12:06 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:296d4338-2cde-4a5d-8f72-349676e13be4</guid><dc:creator>Dharsana</dc:creator><description>i dont want to update the cdt.. only while displaying in grid i need to apply&lt;br /&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I have a cdt which have two fields &lt;br /&gt;&lt;br /&gt;[field1=,field2=150],[field1=230,</title><link>https://community.appian.com/thread/24745?ContentTypeID=1</link><pubDate>Tue, 17 Nov 2015 11:11:53 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:313417fa-39c6-49dd-91e6-fe4f01133b3e</guid><dc:creator>srinivasulup</dc:creator><description>fn!apply(rule!customRule(_), ri!array)&lt;br /&gt;&lt;br /&gt;customRule:&lt;br /&gt;fn!if(&lt;br /&gt;  fn!isnull(&lt;br /&gt;    ri!array.field1&lt;br /&gt;  ),&lt;br /&gt;  ri!array.field2,&lt;br /&gt;  ri!array.field1&lt;br /&gt;)&lt;br /&gt;&lt;br /&gt;This gives you an array and map the same to the grid field.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I have a cdt which have two fields &lt;br /&gt;&lt;br /&gt;[field1=,field2=150],[field1=230,</title><link>https://community.appian.com/thread/24744?ContentTypeID=1</link><pubDate>Tue, 17 Nov 2015 11:10:00 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:51523d5c-add6-44d3-ab7f-37dd842497c8</guid><dc:creator>Stefan Helzle</dc:creator><description>Why not create an expression that checks which value is available and then shows that. You can apply this to your list of CDTs.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>