<?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>editable grid</title><link>https://community.appian.com/discussions/f/user-interface/17914/editable-grid</link><description>hi , 
 
 i need to created a grid in which data is coming from a table in DB. 
 The user can update any column value from that grid. On click of submit , the new column values will be saved into DB. 
 User should be able to delete a row or any column</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: editable grid</title><link>https://community.appian.com/thread/70648?ContentTypeID=1</link><pubDate>Mon, 25 Nov 2019 13:42:54 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7cc5f387-a703-4afc-87fd-b02b261b7af3</guid><dc:creator>ST07</dc:creator><description>&lt;p&gt;Yes mike , it was a comma mistake in the highlighted part . Thanks for pointing out.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: editable grid</title><link>https://community.appian.com/thread/70643?ContentTypeID=1</link><pubDate>Mon, 25 Nov 2019 12:58:25 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3e0d6a24-9e90-44b0-89ac-ff5ff907f0c6</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Did you correct the error I highlighted above?&amp;nbsp; Because the error message you&amp;#39;re reporting here suggests that the process modeller still thinks the interface has an error that I would expect might be related to that error.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: editable grid</title><link>https://community.appian.com/thread/70637?ContentTypeID=1</link><pubDate>Mon, 25 Nov 2019 07:06:31 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:23e7f21f-b2ca-4362-b077-4723721634cd</guid><dc:creator>ST07</dc:creator><description>&lt;p&gt;hi , the grid is working , but i am getting error on publishig the process model .&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;neither variables nor rules found :content&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: editable grid</title><link>https://community.appian.com/thread/70629?ContentTypeID=1</link><pubDate>Fri, 22 Nov 2019 12:59:03 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:517f0b42-6fc2-4f93-aa2a-964d5d3c1f51</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;I don&amp;#39;t have any way of verifying that this is the only issue, but there&amp;#39;s a major error in your code here:&lt;/p&gt;
&lt;p&gt;&lt;img height="224" src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/13/pastedimage1574427503964v1.png" width="419" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;In general when trying to get any interface to work in a task / process model, you need to make sure it&amp;#39;s working within interface designer first.&amp;nbsp; The above typo would keep this code (assuming you copied it 1:1) from working at all.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: editable grid</title><link>https://community.appian.com/thread/70618?ContentTypeID=1</link><pubDate>Fri, 22 Nov 2019 06:44:23 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:75dea28a-c38f-4b2e-b445-4903daed0c1c</guid><dc:creator>ST07</dc:creator><description>&lt;p&gt;this is the grid , on clicking cross items (rows)should get deleted&amp;nbsp; from the DB.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/13/pastedimage1574419661029v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: editable grid</title><link>https://community.appian.com/thread/70617?ContentTypeID=1</link><pubDate>Fri, 22 Nov 2019 06:42:59 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e1e38d51-af22-4888-a5af-2e031d526c42</guid><dc:creator>ST07</dc:creator><description>&lt;p&gt;I tried this using the other approach , but my process model isnt getting published due to that.&lt;pre class="ui-code" data-mode="text"&gt;load(
  local!pagingInfo: a!pagingInfo(
    startIndex: 1,
    batchSize: 20,
    sort: a!sortInfo(
      field: &amp;quot;prdcr_cde&amp;quot;,
      ascending: false()
    )
  ),
  local!selectedRows,
  local!tableDetails: rule!APAC_getproducerDetails(
    pagingInfo: local!pagingInfo
  )a!sectionLayout(
    contents: {
      a!gridLayout(
        label: &amp;quot;&amp;quot;,
        headerCells: {
          a!gridLayoutHeaderCell(
            label: &amp;quot;Account Handler User &amp;quot; &amp;amp; local!tableDetails.id &amp;amp; &amp;quot; dfgdhhgdh&amp;quot; &amp;amp; local!selectedRows
          ),
          a!gridLayoutHeaderCell(
            label: &amp;quot;Producer Code&amp;quot;,
            
          ),
          a!gridLayoutHeaderCell(
            label: &amp;quot;Is Active&amp;quot;,
            
          ),
          a!gridLayoutHeaderCell(
            label: &amp;quot;&amp;quot;,
            
          )
        },
        columnConfigs: {
          a!gridLayoutColumnConfig(
            width: &amp;quot;DISTRIBUTE&amp;quot;,
            weight: 3
          ),
          a!gridLayoutColumnConfig(
            width: &amp;quot;DISTRIBUTE&amp;quot;,
            weight: 3
          ),
          a!gridLayoutColumnConfig(
            width: &amp;quot;DISTRIBUTE&amp;quot;,
            weight: 3
          ),
          a!gridLayoutColumnConfig(
            width: &amp;quot;ICON&amp;quot;
          )
        },
        rows: {
          a!forEach(
            items: local!tableDetails,
            expression: a!gridRowLayout(
              contents: {
                a!textField(
                  value: local!tableDetails[fv!index].ah_id,
                  saveInto: {
                    local!tableDetails[fv!index].ah_id,
                    a!save(
                      ri!mapping.ah_id,
                      save!value
                    )
                  }
                ),
                a!textField(
                  value: local!tableDetails[fv!index].prdcr_cde,
                  saveInto: {
                    local!tableDetails[fv!index].prdcr_cde,
                    a!save(
                      ri!mapping.prdcr_cde,
                      save!value
                    )
                  }
                ),
                a!textField(
                  value: local!tableDetails[fv!index].is_active,
                  saveInto: {
                    local!tableDetails[fv!index].is_active,
                    a!save(
                      ri!mapping.is_active,
                      save!value
                    )
                  }
                ),
                a!imageField(
                  label: &amp;quot;Delete &amp;quot; &amp;amp; fv!index,
                  images: a!documentImage(
                    document: a!iconIndicator(
                      &amp;quot;REMOVE&amp;quot;
                    ),
                    altText: &amp;quot;Remove Data&amp;quot;,
                    caption: &amp;quot;Remove &amp;quot;,
                    link: a!dynamicLink(
                      value: fv!index,
                      saveInto: {
                        a!save(
                          local!selectedRows,
                          local!tableDetails[save!value]
                        ),
                        
                      }
                    )
                  ),
                  size: &amp;quot;ICON&amp;quot;
                )
              }
            )
          )
        },
        addRowlink: a!dynamicLink(
          label: &amp;quot;Add Rows&amp;quot;,
          value: {
            startDate: today() + 1
          },
          saveInto: {
            a!save(
              local!tableDetails,
              append(
                local!tableDetails,
                save!value
              )
            )
          }
        ),
        rowHeader: 1,
        /*showWhen: toboolean(*/
        /*local!showLink*/
        /*) = true(),*/
        
      ),
      a!buttonLayout(
        primaryButtons: {
          a!buttonWidgetSubmit(
            label: cons!APAC_TEXT_ACTIONS[1],
            confirmMessage: &amp;quot;Are you sure you want to submit?&amp;quot;,
            value: cons!APAC_TEXT_ACTIONS[1],
            saveInto: {
              ri!buttonAction,
              if(
                isnull(
                  local!selectedRows
                ),
                {},
                a!deleteFromDataStoreEntities(
                  dataToDelete: {
                    entity: cons!APAC_SGP_PC_AH_MAP,
                    identifiers: local!selectedRows.id
                  }
                )
              )
             
            },
            style: &amp;quot;PRIMARY&amp;quot;,
            skipValidation: true()
          )
        },
        secondaryButtons: {
          a!buttonWidgetSubmit(
            label: cons!APAC_TEXT_ACTIONS[2],
            value: cons!APAC_TEXT_ACTIONS[2],
            saveInto: ri!buttonAction,
            style: &amp;quot;DESTRUCTIVE&amp;quot;,
            skipValidation: true()
          )
        }
      )
    }
  )
)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Here I have one delete icon in the grid , i want to delete that particular row/rows which user selects(local! selectedRows) . I am able to add a new row and data into the grid. But publishing the process model gives the error.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;neither variables nor rules found :content&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;I chechked online and found this error is due to interface error , but i am not able to detect the issue.&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: editable grid</title><link>https://community.appian.com/thread/70572?ContentTypeID=1</link><pubDate>Tue, 19 Nov 2019 19:34:07 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4ea91ca7-78c1-44c1-b6ac-c9901093708a</guid><dc:creator>Sikandar</dc:creator><description>&lt;p&gt;In the saveInto you would need to call the Process Model that you created and pass the local!tableDetails using the&amp;nbsp;a!startProcess()&amp;nbsp;&lt;/p&gt;
&lt;p&gt;one more thing Incase the user deletes the row that is already present in the table you would need to update the isActive to 0.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: editable grid</title><link>https://community.appian.com/thread/70553?ContentTypeID=1</link><pubDate>Tue, 19 Nov 2019 06:50:07 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0c57ba10-319c-42fb-aa01-aa25325fa11d</guid><dc:creator>ST07</dc:creator><description>&lt;p&gt;i have created the process model for that , but the new values that i fill in the grid , those dont update , how can i edit the grid ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: editable grid</title><link>https://community.appian.com/thread/70547?ContentTypeID=1</link><pubDate>Mon, 18 Nov 2019 17:56:46 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cf03ad7c-ae0e-404c-b1f8-ffba74371076</guid><dc:creator>Sikandar</dc:creator><description>&lt;p&gt;You would need to call a Process Model or&amp;nbsp;a!writeToDataStoreEntity() in the &amp;nbsp;saveInto: of the submit button and pass the ri!&lt;/p&gt;
&lt;h2 id="awritetodatastoreentity"&gt;&lt;/h2&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: editable grid</title><link>https://community.appian.com/thread/70508?ContentTypeID=1</link><pubDate>Fri, 15 Nov 2019 11:09:10 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7689b21a-4062-4e7d-ae07-e293026f34bd</guid><dc:creator>ST07</dc:creator><description>&lt;p&gt;Yes i have commented the show when line, it shows the grid now .&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: editable grid</title><link>https://community.appian.com/thread/70507?ContentTypeID=1</link><pubDate>Fri, 15 Nov 2019 11:03:31 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8f42daa9-0b5d-4b70-afc4-02a3df909fb5</guid><dc:creator>ST07</dc:creator><description>&lt;p&gt;this rules returns dictionary values, already used .data in the rule.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: editable grid</title><link>https://community.appian.com/thread/70506?ContentTypeID=1</link><pubDate>Fri, 15 Nov 2019 10:58:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b1896478-dbdd-47ba-8704-43a63add0739</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;There is a comma missing in line 11&lt;/p&gt;
&lt;p&gt;local!tableDetails[fv!index].prdcr_cde as in line 56 will not work. Please have a look at the recipe.&lt;/p&gt;
&lt;p&gt;Your showWhen is &amp;nbsp;hides the grid instead of the link&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: editable grid</title><link>https://community.appian.com/thread/70505?ContentTypeID=1</link><pubDate>Fri, 15 Nov 2019 10:58:12 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4f4820fc-dd63-4520-bbe2-d92b04c9df5e</guid><dc:creator>Krishna Chaitanya Mallavarapu</dc:creator><description>&lt;p&gt;&amp;nbsp;rule!APAC_SGP_getProducercodeAHmapDetails() is this rule returns data subset or dictionary ,if its data subset then&amp;nbsp;&lt;span&gt;&amp;nbsp;you need to do like rule!APAC_SGP_getProducercodeAHmapDetails().data&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: editable grid</title><link>https://community.appian.com/thread/70504?ContentTypeID=1</link><pubDate>Fri, 15 Nov 2019 10:56:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b6f31a60-d05d-4ed6-9daa-38d72b05bc87</guid><dc:creator>ST07</dc:creator><description>&lt;p&gt;I have fixed columns , three in number&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/13/pastedimage1573815418549v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: editable grid</title><link>https://community.appian.com/thread/70503?ContentTypeID=1</link><pubDate>Fri, 15 Nov 2019 10:54:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:bfdcc644-365e-4201-a287-8ba407a3a3d2</guid><dc:creator>Harshit Bumb (Appyzie)</dc:creator><description>&lt;p&gt;Do you have a fixed number of columns and their labels or that too should be created dynamically?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: editable grid</title><link>https://community.appian.com/thread/70502?ContentTypeID=1</link><pubDate>Fri, 15 Nov 2019 10:52:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:da0f431c-3fd8-4b3f-9294-b6c428233bdc</guid><dc:creator>ST07</dc:creator><description>&lt;p&gt;Grid isnt visible Attached the code.&lt;/p&gt;
&lt;p&gt;rule!APAC_SGP_getProducercodeAHmapDetails() this contains table values .&lt;pre class="ui-code" data-mode="text"&gt;load(
  local!pagingInfo: a!pagingInfo(
    startIndex: 1,
    batchSize: 20,
    sort: a!sortInfo(
      field: &amp;quot;prdcr_cde&amp;quot;,
      ascending: false()
    )
  ),
  local!showLink,
  local!tableDetails: rule!APAC_SGP_getProducercodeAHmapDetails()
  a!sectionLayout(
    contents: {
      a!gridLayout(
        label: &amp;quot;&amp;quot;,
        headerCells: {
          a!gridLayoutHeaderCell(
            label: &amp;quot;Account Handler User &amp;quot;
          ),
          a!gridLayoutHeaderCell(
            label: &amp;quot;Producer Code&amp;quot;,
            
          ),
          a!gridLayoutHeaderCell(
            label: &amp;quot;Is Active&amp;quot;,
            
          ),
          a!gridLayoutHeaderCell(
            label: &amp;quot;&amp;quot;,
            
          )
        },
        columnConfigs: {
          a!gridLayoutColumnConfig(
            width: &amp;quot;DISTRIBUTE&amp;quot;,
            weight: 3
          ),
          a!gridLayoutColumnConfig(
            width: &amp;quot;DISTRIBUTE&amp;quot;,
            weight: 3
          ),
          a!gridLayoutColumnConfig(
            width: &amp;quot;DISTRIBUTE&amp;quot;,
            weight: 3
          ),
          a!gridLayoutColumnConfig(
            width: &amp;quot;ICON&amp;quot;
          )
        },
        rows: {
          a!forEach(
            items: local!tableDetails,
            expression: a!gridRowLayout(
              contents: {
                a!textField(
                  value: local!tableDetails[fv!index].prdcr_cde,
                  saveInto: local!tableDetails[fv!index].prdcr_cde
                ),
                a!textField(
                  value: local!tableDetails[fv!index].ah_id,
                  saveInto: local!tableDetails[fv!index].ah_id
                ),
                a!textField(
                  value: local!tableDetails[fv!index].is_active,
                  saveInto: local!tableDetails[fv!index].is_active
                ),
                a!imageField(
                  label: &amp;quot;Delete &amp;quot; &amp;amp; fv!index,
                  images: a!documentImage(
                    document: a!iconIndicator(
                      &amp;quot;REMOVE&amp;quot;
                    ),
                    altText: &amp;quot;Remove Data&amp;quot;,
                    caption: &amp;quot;Remove &amp;quot;,
                    link: a!dynamicLink(
                      value: fv!index,
                      saveInto: {
                        a!save(
                          local!tableDetails,
                          remove(
                            local!tableDetails,
                            save!value
                          )
                        )
                      }
                    )
                  ),
                  size: &amp;quot;ICON&amp;quot;
                )
              }
            )
          )
        },
        addRowlink: a!dynamicLink(
          label: &amp;quot;Add Rows&amp;quot;,
          value: {
            startDate: today() + 1
          },
          saveInto: {
            a!save(
              local!tableDetails,
              append(
                local!tableDetails,
                save!value
              )
            )
          }
        ),
        rowHeader: 1,
        showWhen: toboolean(
          local!showLink
        ) = true(),
        
      ),
      a!buttonLayout(
        primaryButtons: {
          a!buttonWidgetSubmit(
            label: cons!APAC_TEXT_ACTIONS[1],
            confirmMessage: &amp;quot;Are you sure you want to submit?&amp;quot;,
            value: cons!APAC_TEXT_ACTIONS[1],
            saveInto: {
              ri!buttonAction,
              
            },
            style: &amp;quot;PRIMARY&amp;quot;,
            skipValidation: true()
          )
        },
        secondaryButtons: {
          a!buttonWidgetSubmit(
            label: cons!APAC_TEXT_ACTIONS[2],
            value: cons!APAC_TEXT_ACTIONS[2],
            saveInto: ri!buttonAction,
            style: &amp;quot;DESTRUCTIVE&amp;quot;,
            skipValidation: true()
          )
        }
      )
    }
  )
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: editable grid</title><link>https://community.appian.com/thread/70501?ContentTypeID=1</link><pubDate>Fri, 15 Nov 2019 10:40:10 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3ecb5cd3-09fc-4a1e-b1be-d91b6c5ba698</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Then replace the list for&amp;nbsp;local!employees with a queryEntity.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: editable grid</title><link>https://community.appian.com/thread/70500?ContentTypeID=1</link><pubDate>Fri, 15 Nov 2019 10:38:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e5de45d3-d1b5-4fea-a990-fe68686d8d2f</guid><dc:creator>ST07</dc:creator><description>&lt;p&gt;This is locally entering data, i want the data from DB using query entity.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: editable grid</title><link>https://community.appian.com/thread/70499?ContentTypeID=1</link><pubDate>Fri, 15 Nov 2019 10:34:03 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3fbcb28c-0338-4966-9bf1-d3c2a263796f</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;This recipe should give you a good start.&amp;nbsp;&lt;a href="https://docs.appian.com/suite/help/19.3/recipe-track-adds-and-deletes-in-an-inline-editable-grid.html"&gt;docs.appian.com/.../recipe-track-adds-and-deletes-in-an-inline-editable-grid.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>