<?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 would like to copy the value from a selectable SAIL gridField into a rule inpu</title><link>https://community.appian.com/discussions/f/general/2234/i-would-like-to-copy-the-value-from-a-selectable-sail-gridfield-into-a-rule-inpu</link><description>I would like to copy the value from a selectable SAIL gridField into a rule input ri!selectedDoc. Currently the local variable called local!selectedDocumentId holds the selected value of the grid. I tried doing the following: 1) local!selectedDocumentId</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: I would like to copy the value from a selectable SAIL gridField into a rule inpu</title><link>https://community.appian.com/thread/7871?ContentTypeID=1</link><pubDate>Wed, 05 Mar 2014 00:59:07 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:92baf6f1-4ed0-4163-a5cd-3e298e5581df</guid><dc:creator>joshuaq</dc:creator><description>There is no separate rule called myRule....I am using the selectedDocumentId inside of the same rule where I have all the grid functionality being written....and I want to pass the value of selectedDocumentId into a rule input ri!selectedDoc inside the same rule.....later I will pass this rule input into a pv variable which can be used inside a Delete Document smart service to delete that document using its id that was passed from local!selectedDocumentId to ri!selectedDoc to the pv! variable I declared.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I would like to copy the value from a selectable SAIL gridField into a rule inpu</title><link>https://community.appian.com/thread/7868?ContentTypeID=1</link><pubDate>Wed, 05 Mar 2014 00:18:56 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4bbb28e0-0c46-4d04-b1cd-5423fcb13fda</guid><dc:creator>Tim</dc:creator><description>As stated in the answer to your previous post the ri! namespace cannot be used as a target for saving a value. You need to have local!selectedDocumentId in the load() section of your expression and then in the with() section you can pass it into a rule: &lt;br /&gt;load(local!selectedDocumentId,&lt;br /&gt;with(&lt;br /&gt;a!gridField(...),&lt;br /&gt;local!exprResult: rule!myRule(local!selectedDocumentId)&lt;br /&gt;))&lt;br /&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>