<?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/new-to-appian/24070/editable-grid</link><description>Hi..my requirement is to delete the uploaded documents ,I am getting added by and adden on values before uploading documents.I have written this code.Can anyone suggest me on this. 
 a!localVariables( local!crCustFolder_cdt: rule!CR_CUST_QE_getfolderIdDetailsBasedOnCif</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: editable grid</title><link>https://community.appian.com/thread/92758?ContentTypeID=1</link><pubDate>Fri, 25 Mar 2022 12:51:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:da7df234-b297-4f4d-968f-27a1428ef8fe</guid><dc:creator>Peter Lewis</dc:creator><description>&lt;p&gt;Yeah I think it would be helpful to describe what your goal is here. Some things I did notice in the code are that your delete icon doesn&amp;#39;t currently do anything (there&amp;#39;s no saveInto), and your added by and added columns are always read only, so your current code doesn&amp;#39;t provide any way of editing them.&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/92744?ContentTypeID=1</link><pubDate>Fri, 25 Mar 2022 09:51:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cb4a6d32-75ee-4771-8cc3-314c20776367</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Way better.&lt;/p&gt;
&lt;p&gt;What exactly to you mean with &amp;quot;&lt;span&gt;delete the uploaded documents ,I am getting added by and adden on values before uploading documents&amp;quot;?&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/92740?ContentTypeID=1</link><pubDate>Fri, 25 Mar 2022 09:30:08 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0ae247c7-5a30-4647-9477-602dada961d9</guid><dc:creator>sid</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!crCustFolder_cdt: rule!CR_CUST_QE_getfolderIdDetailsBasedOnCif(
    cif_int: ri!cif_int
  ),
  local!getFolderId_int: index(
    local!crCustFolder_cdt,
    &amp;quot;folderId_int&amp;quot;,
    tointeger(null)
  ),
  a!gridLayout(

    label: {ri!sectionName_txt &amp;amp; if(ri!sectionName_txt = cons!CR_CUST_SECTION_NAME[1], cons!CR_CUST_GRID_LABEL[1], cons!CR_CUST_GRID_LABEL[2])},
    headerCells: {
      a!gridLayoutHeaderCell(
        label:cons!CR_APP_DOCUMENTS[1]
      ),
      a!gridLayoutHeaderCell(
        label:cons!CR_APP_DOCUMENTS[2]
      ),
      a!gridLayoutHeaderCell(
        label:cons!CR_APP_DOCUMENTS[3]
      ),
      a!gridLayoutHeaderCell(
        label:cons!CR_APP_DOCUMENTS[4]
      ),
      
      a!gridLayoutHeaderCell(
        label:&amp;quot;&amp;quot;
      )
    },
    columnConfigs: {
      a!gridLayoutColumnConfig(
        width: &amp;quot;DISTRIBUTE&amp;quot;,
        weight: &amp;quot;1&amp;quot;
      ),
      a!gridLayoutColumnConfig(
        width: &amp;quot;DISTRIBUTE&amp;quot;,
        weight: &amp;quot;1&amp;quot;
      ),
      a!gridLayoutColumnConfig(
        width: &amp;quot;DISTRIBUTE&amp;quot;,
        weight: &amp;quot;1&amp;quot;
      ),
      
      a!gridLayoutColumnConfig(
        width: &amp;quot;DISTRIBUTE&amp;quot;,
        weight: &amp;quot;1&amp;quot;
      ),
      
      a!gridLayoutColumnConfig(
        width: &amp;quot;ICON&amp;quot;
      )
    },

    rows: a!forEach(
      items: ri!crCustDoc_cdt,
      expression: a!gridRowLayout(
        id:fv!item.id_int,
        contents: {
          a!textField(
            label:&amp;quot;&amp;quot;,
           
            /*value: a!linkField(*/
              /*label: if(isnull(fv!item.docId_int),&amp;quot;&amp;quot;,*/
              /*document(fv!item.docId_int, &amp;quot;name&amp;quot;)),*/
              /*links: a!documentDownloadLink(*/
                /*label: if(isnull(fv!item.docId_int),&amp;quot;&amp;quot;,*/
                /*document(fv!item.docId_int, &amp;quot;name&amp;quot;)),*/
                /*document: fv!item.docId_int*/
              /*)*/
            /*)*/
          ),
         
         
          a!textField(
            value: rule!APN_FN_getDisplayName(
              userId: index(
                fv!item,
                &amp;quot;addedBy_txt&amp;quot;,
                {}
              )
            ),
            readOnly: true()
           
          ),
          a!textField(
            value: rule!CR_FN_nbfDateTimeFormat(
              input: fv!item.addedOn_dt
            ),
            readOnly: true()
            
           
          ),
          
          a!fileUploadField(
            label: &amp;quot;File Upload&amp;quot;,
            labelPosition: &amp;quot;ABOVE&amp;quot;,
            target: tofolder(
              ri!folderId_int
            ),
            maxSelections:1,
            value: ri!uploadedDoc_int,
            
            saveInto: ri!uploadedDoc_int,
            showWhen: if(
              ri!IsReadOnly_boolean,
              false(),
              true()
            ),
           
           
            required: true(),
            validations: {
              a!localVariables(
                local!invalidExtensions: difference(
                  upper(
                    fv!files.extension
                  ),
                  {
                    cons!CR_CUST_FILE_EXTENSION
                  }
                ),
                if(
                  length(
                    local!invalidExtensions
                  ) &amp;gt; 0,
                  cons!CR_CUST_VALIDATION_MESSAGE[1] &amp;amp; index(
                    fv!files,
                    &amp;quot;name&amp;quot;,
                    wherecontains(
                      local!invalidExtensions,
                      upper(
                        fv!files.extension
                      )
                    ),
                    {}
                  ),
                  &amp;quot;&amp;quot;
                )
              ),
              if(
                or(
                  fv!files.size &amp;gt; cons!CR_CUST_MAX_UPLOAD_FILE_SIZE
                ),
                cons!CR_CUST_VALIDATION_MESSAGE[2] &amp;amp; index(
                  fv!files,
                  &amp;quot;name&amp;quot;,
                  where(
                    fv!files.size &amp;gt; cons!CR_CUST_MAX_UPLOAD_FILE_SIZE
                  ),
                  {}
                ),
                &amp;quot;&amp;quot;
              )
              
            }
          ),
          
          a!richTextDisplayField(
            label: &amp;quot;Remove&amp;quot;,
            value: a!richTextIcon(
              icon: &amp;quot;REMOVE&amp;quot;,
              caption: &amp;quot;Delete&amp;quot;,
              link: a!dynamicLink(
                value: cons!CR_APP_TXT_AUDIT_STATUS[3]

              ),
              linkStyle: &amp;quot;STANDALONE&amp;quot;,
              color: &amp;quot;NEGATIVE&amp;quot;

            )
          )

        }
      )  
    ),
    addRowLink: a!dynamicLink(
      label: &amp;quot;Add Documents&amp;quot;,
      value: true(),
      saveInto: {
        a!save(
          ri!crCustDoc_cdt,
          append(
            ri!crCustDoc_cdt,
            &amp;#39;type!{urn:com:appian:types:NBF}CR_Cust_Doc&amp;#39;(
              cif_int: ri!cif_int,
              folderId_int:ri!folderId_int ,
              
              
            )
          )
        )
      }
      
    )
  )
)&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/92738?ContentTypeID=1</link><pubDate>Fri, 25 Mar 2022 09:24:00 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:33f077b7-4e99-4026-bfcd-aa02a82195c5</guid><dc:creator>sid</dc:creator><description>&lt;p&gt;okay&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/92737?ContentTypeID=1</link><pubDate>Fri, 25 Mar 2022 08:40:22 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:28451f02-f873-435a-bd37-7d99a80b3572</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Your code is almost impossible to read. Could you remove the commented blocks and use this&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/62/pastedimage1648197597885v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>