<?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>Selecting ALL rows in a grid</title><link>https://community.appian.com/discussions/f/user-interface/28760/selecting-all-rows-in-a-grid</link><description>Hi, I currently have a a!gridField() that is being used to add a list of samples. We have made the grid list selectable so that all rows can be selected, however there is a current request to have all rows in the grid selected without having to page to</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Selecting ALL rows in a grid</title><link>https://community.appian.com/thread/113169?ContentTypeID=1</link><pubDate>Tue, 23 May 2023 17:46:45 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:975fb85a-24e3-4ff8-9bc4-a7918f70ff59</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;What are you doing with &amp;quot;ri!saves&amp;quot;?&amp;nbsp; You seem to be doing potentially-unnecessary redundant saving here - unless you &lt;em&gt;require&lt;/em&gt; holding a copy of all data from all selected rows in &lt;em&gt;ri!saves&lt;/em&gt;, which is what this is doing, it&amp;#39;s almost never necessary.&amp;nbsp; All you really need to do is save the identifiers for the selected rows, which is the value currently being saved into ri!selectedIndex in your pasted code - and also the value you&amp;#39;d need to be setting &lt;em&gt;selectionValue&lt;/em&gt; to.&lt;/p&gt;
[quote userid="73116" url="~/discussions/f/user-interface/28760/selecting-all-rows-in-a-grid/113168#113168"]It isn&amp;#39;t a local variable since it&amp;#39;s being called by a parent interface.[/quote]
&lt;p&gt;Then you&amp;#39;d need to pre-set it there, presumably in whatever local variable you have it set to (and if it isn&amp;#39;t currently a local variable, i&amp;#39;d recommend changing to use one there for this purpose).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Selecting ALL rows in a grid</title><link>https://community.appian.com/thread/113168?ContentTypeID=1</link><pubDate>Tue, 23 May 2023 17:10:30 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:80496e16-fb0a-4f7b-a716-20f256aaa968</guid><dc:creator>tracyli</dc:creator><description>&lt;p&gt;This is what I currently have in my selectionSaveInto parameter:&amp;nbsp;selectionSaveInto: {&lt;br /&gt; ri!selectedIndex,&lt;br /&gt; a!save(ri!saves, append(ri!saves, fv!selectedRows)),&lt;br /&gt; a!save(ri!saves,difference(ri!saves, cast(typeof(ri!saves),fv!deselectedRows))), &lt;br /&gt; }&lt;/p&gt;
&lt;p&gt;It isn&amp;#39;t a local variable since it&amp;#39;s being called by a parent interface. And I also have a rule input for a List of Save using ri!saves.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Based on the documentation here, it seems like I would need to create the preselection of the rows using the selectedValue parameter.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img height="99" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/13/pastedimage1684861792912v1.png" width="368" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Selecting ALL rows in a grid</title><link>https://community.appian.com/thread/113167?ContentTypeID=1</link><pubDate>Tue, 23 May 2023 16:55:59 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:39893ed1-1098-4e6f-ae8f-a5946bd8499a</guid><dc:creator>Mike Schmitt</dc:creator><description>[quote userid="73116" url="~/discussions/f/user-interface/28760/selecting-all-rows-in-a-grid/113165#113165"]have all grid checkboxes pre-selected [/quote]
&lt;p&gt;Whatever local variable you have as the target of SelectionSaveInto, you would simply configure it in the first place to contain all identifiers found in the entire grid&amp;#39;s data set (i wouldn&amp;#39;t recommend this if your data set would be even a little bit large for starters, but if it&amp;#39;s only medium or small, it&amp;#39;s pretty simple - would require a separate pre-query).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Selecting ALL rows in a grid</title><link>https://community.appian.com/thread/113165?ContentTypeID=1</link><pubDate>Tue, 23 May 2023 16:03:04 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c6f506ba-237d-4a6c-bae2-107b9d833063</guid><dc:creator>tracyli</dc:creator><description>&lt;p&gt;Is there a way to have all grid checkboxes pre-selected without having to add a button?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Selecting ALL rows in a grid</title><link>https://community.appian.com/thread/113161?ContentTypeID=1</link><pubDate>Tue, 23 May 2023 14:00:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:276c387b-77e2-49bc-b810-48ea9606495a</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Based on the example here:&amp;nbsp;&lt;a href="https://docs.appian.com/suite/help/23.1/recipe-limit-rows-to-one.html"&gt;https://docs.appian.com/suite/help/23.1/recipe-limit-rows-to-one.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You add a button that stores all employee IDs into local!selection.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Selecting ALL rows in a grid</title><link>https://community.appian.com/thread/113158?ContentTypeID=1</link><pubDate>Tue, 23 May 2023 13:46:59 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1444ef8b-ed7c-406b-9ef9-845941cb1242</guid><dc:creator>tracyli</dc:creator><description>&lt;p&gt;Can you give an example of how that would be implemented?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Selecting ALL rows in a grid</title><link>https://community.appian.com/thread/113154?ContentTypeID=1</link><pubDate>Tue, 23 May 2023 13:12:53 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:37d4609d-6f97-443e-b833-a82ab7d7b7cf</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;You can add a button on the UI which just adds all the identifiers to the selection value.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>