<?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>Create an expression that takes a company and renders different grids</title><link>https://community.appian.com/discussions/f/rules/4616/create-an-expression-that-takes-a-company-and-renders-different-grids</link><description>Hello, I want to use an expression rule with an array of cdt_company as an input, to return 2 outputs: - a selectable grid with the company - the selected company from the grid I&amp;#39;ve attached the example, where I tried to return an array of the two elements</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Create an expression that takes a company and renders different grids</title><link>https://community.appian.com/thread/16769?ContentTypeID=1</link><pubDate>Tue, 07 Apr 2015 17:30:18 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e6ce686c-bedb-4a45-984a-ddf40a81e4ea</guid><dc:creator>sikhivahans</dc:creator><description>@georgeb768 It's very simple. If you make use of rule inputs and make use of process variables and activity class parameters of type Grid Selection in your process, you can satisfy the requirements. Attached the piece of code with few comments. Please go through it and let me know if you have any concerns still.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Create an expression that takes a company and renders different grids</title><link>https://community.appian.com/thread/16763?ContentTypeID=1</link><pubDate>Tue, 07 Apr 2015 16:08:00 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b5da9451-ce42-430a-b3e4-596432c18fa9</guid><dc:creator>georgeb768</dc:creator><description>The logic behind this is that I want to make the grid reusable. I also want to use the &amp;quot;selected company&amp;quot; further, in each interface that will need this grid.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Create an expression that takes a company and renders different grids</title><link>https://community.appian.com/thread/16762?ContentTypeID=1</link><pubDate>Tue, 07 Apr 2015 16:03:08 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:266c2096-092d-4abb-bcae-3a113aa058ae</guid><dc:creator>georgeb768</dc:creator><description>Thanks for your comments but what I need is a bit different. The rule returns the grid and I also need it to return (or to modify) another parameter, the selected company. &lt;br /&gt;&lt;br /&gt;To be more clear, I will express my problem in different ways. So, I need a rule that:&lt;br /&gt;- will be able to return 2 outputs: the grid and the selected company OR&lt;br /&gt;- will return an array with two elements: the grid and the selected company  OR &lt;br /&gt;- will return a grid and also will have a rule input (the selected company) that will be updated when the user interacts with the grid&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Create an expression that takes a company and renders different grids</title><link>https://community.appian.com/thread/16702?ContentTypeID=1</link><pubDate>Fri, 03 Apr 2015 18:32:49 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f9b3f07d-ba24-4b2e-9da7-be1aa0b07f6d</guid><dc:creator>sikhivahans</dc:creator><description>@georgeb768 Attached the modified code. Hope it helps!&lt;br /&gt;&lt;p&gt;&lt;a href="/cfs-filesystemfile/__key/communityserver-discussions-components-files/15/er_5F00_CL_5F00_companySummaryGrid-modified.sail77"&gt;er_CL_companySummaryGrid modified.sail77&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Create an expression that takes a company and renders different grids</title><link>https://community.appian.com/thread/16700?ContentTypeID=1</link><pubDate>Fri, 03 Apr 2015 18:11:59 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:844bbad4-b9de-4985-8f3a-92ae85827a10</guid><dc:creator>Conor Cahill</dc:creator><description>From your parent rule you can pass in a rule input for the selected company. Then instead of updating a local var in your subrule you would update the rule input. This way you would only need to return the selectable grid.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>