<?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>Get task id in grid with selection</title><link>https://community.appian.com/discussions/f/general/35514/get-task-id-in-grid-with-selection</link><description>Hello I&amp;#39;m trying to get the task id from my read only grid with selection function of grids. I&amp;#39;m trying to store the task id in rule input, but what this is doing now is when I select one row it&amp;#39;s storing all task id&amp;#39;s in the rule input not only the single</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Get task id in grid with selection</title><link>https://community.appian.com/thread/138546?ContentTypeID=1</link><pubDate>Tue, 23 Jul 2024 18:57:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0cf36f6a-04c3-4790-8d4a-706ba7453e47</guid><dc:creator>Shwapx</dc:creator><description>&lt;p&gt;This is what I did and it&amp;#39;s working perfect&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get task id in grid with selection</title><link>https://community.appian.com/thread/138423?ContentTypeID=1</link><pubDate>Mon, 22 Jul 2024 06:06:01 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:068556b9-34a9-4a53-87af-3bde12dc53f5</guid><dc:creator>Yogi Patel</dc:creator><description>&lt;p&gt;&lt;span&gt;AFAIK, you can&amp;#39;t use the &amp;#39;Reassign Task&amp;#39; smart service to assign multiple tasks. However, you can do Multiple Node Instance (MNI).&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get task id in grid with selection</title><link>https://community.appian.com/thread/138412?ContentTypeID=1</link><pubDate>Sun, 21 Jul 2024 17:55:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f1a0a3b4-3a11-4d8e-85be-3ab3426ab3f6</guid><dc:creator>Shwapx</dc:creator><description>&lt;p&gt;That works, perfect. And now the intention is to pass that array let&amp;#39;s say user selected 4 rows of task which they want to reassign in reassign smart service. I hope I can pass the array in the smart service and user be able to reassign with&amp;nbsp;in bulk way.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get task id in grid with selection</title><link>https://community.appian.com/thread/138411?ContentTypeID=1</link><pubDate>Sun, 21 Jul 2024 17:55:24 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7669aad9-3d8c-48a6-b0aa-895f55cc4b59</guid><dc:creator>venkatrea696188</dc:creator><description>&lt;p&gt;Just cast it with tointeger()&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get task id in grid with selection</title><link>https://community.appian.com/thread/138410?ContentTypeID=1</link><pubDate>Sun, 21 Jul 2024 17:54:21 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2421c5b4-7629-4464-a2f1-0b1ecf267d65</guid><dc:creator>Konduru Chaitanya</dc:creator><description>&lt;p&gt;Hello &lt;a href="/members/vasilc0001"&gt;Shwapx&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Use toInteger(fv!selectedRows.c19) and tointeger(fv!deselectedRows.c19).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get task id in grid with selection</title><link>https://community.appian.com/thread/138409?ContentTypeID=1</link><pubDate>Sun, 21 Jul 2024 17:52:37 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e5fb6f25-f3dd-423e-85b5-3e6c529aab3a</guid><dc:creator>Shwapx</dc:creator><description>&lt;p&gt;No I&amp;#39;m pulling it directly from the report. This save the value, but get error:&lt;br /&gt;&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/11/pastedimage1721584329626v1.png" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;And yes my rule input is integer since this is the value:&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;pageSize: 20,
    selectable: true,
    selectionValue: local!selection,
    selectionSaveInto: {
      local!selection,
      /*This save adds the full rows of data for items selected in the most recent user interaction to local!selectedEmployees. */
      a!save(
        ri!test,
        append(
          ri!test,
          fv!selectedRows.c19
        )
      ),
      /*This save removes the full rows of data for items deselected in the most recent user interaction to local!selectedEmployees. */
      a!save(
        ri!test,
        difference(
          ri!test,
          fv!deselectedRows.c19
        )
      )
    },
    showSelectionCount: &amp;quot;ON&amp;quot;,
    rowHeader: 1&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get task id in grid with selection</title><link>https://community.appian.com/thread/138408?ContentTypeID=1</link><pubDate>Sun, 21 Jul 2024 17:49:24 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:be943ab2-138b-405d-93f9-031f2a88705c</guid><dc:creator>venkatrea696188</dc:creator><description>&lt;p&gt;just use fv!selectedrows.c19, aren&amp;#39;t you indexed this way to show it on grid itself?? &lt;strong&gt;fv!row.c19&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get task id in grid with selection</title><link>https://community.appian.com/thread/138407?ContentTypeID=1</link><pubDate>Sun, 21 Jul 2024 17:47:20 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e02dfe3c-c3a6-4fe3-b836-3e11aac427e9</guid><dc:creator>Shwapx</dc:creator><description>&lt;p&gt;That&amp;#39;s the problem I don&amp;#39;t have a column the column is hidden and I got the value from local variable report which is storing the taskID in c19 field.&lt;br /&gt;&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/11/pastedimage1721584033533v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get task id in grid with selection</title><link>https://community.appian.com/thread/138406?ContentTypeID=1</link><pubDate>Sun, 21 Jul 2024 17:32:31 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7527fcd4-63d1-4ddc-89bb-9b23d713adfa</guid><dc:creator>venkatrea696188</dc:creator><description>&lt;p&gt;Just index the column&lt;strong&gt; fv!selectedRows.columnName.&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get task id in grid with selection</title><link>https://community.appian.com/thread/138405?ContentTypeID=1</link><pubDate>Sun, 21 Jul 2024 17:25:30 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2cdcf611-1efa-46df-abef-1cdf0e3ba0a5</guid><dc:creator>Shwapx</dc:creator><description>&lt;p&gt;Okay but that save the whole row of data from the process report. how to save for each row task id which is located here -&amp;nbsp;local!report.data["c19"]&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;pageSize: 20,
    selectable: true,
    selectionValue: local!selection,
    selectionSaveInto: {
      local!selection,
      /*This save adds the full rows of data for items selected in the most recent user interaction to local!selectedEmployees. */
      a!save(
        ri!test,
        append(
          ri!test,
          fv!selectedRows
        )
      ),
      /*This save removes the full rows of data for items deselected in the most recent user interaction to local!selectedEmployees. */
      a!save(
        ri!test,
        difference(
          ri!test,
          fv!deselectedRows
        )
      )
    },&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get task id in grid with selection</title><link>https://community.appian.com/thread/138404?ContentTypeID=1</link><pubDate>Sun, 21 Jul 2024 16:59:23 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e320a8c6-e11b-40c2-a573-44cabdaee5bf</guid><dc:creator>venkatrea696188</dc:creator><description>&lt;p&gt;Whatever the source might be &lt;strong&gt;fv!selectedRows and fv!deselectedRows&lt;/strong&gt; holds the data of selected/deselected rows.&amp;nbsp; In your save remove the index you are doing and use&amp;nbsp; the template that pasted by Abhishek (replace local!selectedEmployees with ri!test).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get task id in grid with selection</title><link>https://community.appian.com/thread/138403?ContentTypeID=1</link><pubDate>Sun, 21 Jul 2024 16:53:49 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2837b9ca-a1d2-4b0c-b346-4f5f147f5dc0</guid><dc:creator>Shwapx</dc:creator><description>&lt;p&gt;How I can implement that in my code?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get task id in grid with selection</title><link>https://community.appian.com/thread/138402?ContentTypeID=1</link><pubDate>Sun, 21 Jul 2024 16:52:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7cee1f6a-19fb-458f-8263-aae415b503cf</guid><dc:creator>Shwapx</dc:creator><description>&lt;p&gt;My grid is coming from process report, I need to see if i can adjust as per mention&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get task id in grid with selection</title><link>https://community.appian.com/thread/138397?ContentTypeID=1</link><pubDate>Sun, 21 Jul 2024 14:45:51 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f458fce2-650e-41e0-a8eb-c72db201d068</guid><dc:creator>Karumuru Abhishek</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;a href="/members/vasilc0001"&gt;Shwapx&lt;/a&gt;&amp;nbsp;you need to follow the below code for having selection in reading only grid. You can make the changes for the below code as per your requirement&amp;nbsp;&lt;/p&gt;
&lt;p&gt;selectionSaveInto: {&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; local!selection,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a!save(&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; local!selectedEmployees,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; append(&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; local!selectedEmployees,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; fv!selectedRows&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; )&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ),&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /*This save removes the full rows of data for items deselected in the most recent user interaction to local!selectedEmployees. */&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a!save(&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; local!selectedEmployees,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; difference(&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; local!selectedEmployees,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; fv!deselectedRows&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; )&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; )&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get task id in grid with selection</title><link>https://community.appian.com/thread/138394?ContentTypeID=1</link><pubDate>Sun, 21 Jul 2024 12:32:00 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f2a0e6cd-bb1e-4b35-be81-26ea62557727</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;When you follow this example&lt;/p&gt;
&lt;p&gt;&lt;a id="" href="https://docs.appian.com/suite/help/24.2/recipe-limit-the-number-of-rows-in-a-grid-that-can-be-selected.html"&gt;https://docs.appian.com/suite/help/24.2/recipe-limit-the-number-of-rows-in-a-grid-that-can-be-selected.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;you will see that &amp;quot;fv!selectedRows&amp;quot; will contain only the selected items.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>