<?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>Want to preload editable grid having Dropdown values with file upload .</title><link>https://community.appian.com/discussions/f/general/29929/want-to-preload-editable-grid-having-dropdown-values-with-file-upload</link><description>Actually I am having editable grid which is shown below .. contains components dropdown and file upload field and Text Field 
 
 
 I want to preload the required values of dropdown , when user opens the page he should see the grid with selected dropdown</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Want to preload editable grid having Dropdown values with file upload .</title><link>https://community.appian.com/thread/118820?ContentTypeID=1</link><pubDate>Fri, 08 Sep 2023 00:31:08 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e5717f46-7afa-40c2-b945-c58ef934ee05</guid><dc:creator>venkatasaisatyanarayanaraot1090</dc:creator><description>&lt;p&gt;HI Klaus34&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;if you want to pre upload the data, u can store the data in the locals and the pass the locals to the grid.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please find the below attached code for the reference.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!data: {
    a!map(
      id : 1,
      dropDownValue: &amp;quot;Value 1&amp;quot;,
      fileUploadValue: null
    ),
    a!map(
      id : 2,
      dropDownValue: &amp;quot;Value 2&amp;quot;,
      fileUploadValue: null
    )
  },
  {
    a!gridLayout(
      headerCells: {
        a!gridLayoutHeaderCell(
          label: &amp;quot;Drop Down&amp;quot;
        ),
        a!gridLayoutHeaderCell(
          label: &amp;quot;File Upload&amp;quot;
        ),
        a!gridLayoutHeaderCell(
          label: &amp;quot;Remove&amp;quot;
        )
      },
      columnConfigs: {
        a!gridLayoutColumnConfig(
          width: &amp;quot;DISTRIBUTE&amp;quot;
        ),
        a!gridLayoutColumnConfig(
          width: &amp;quot;DISTRIBUTE&amp;quot;
        ),
        a!gridLayoutColumnConfig(
          width: &amp;quot;ICON&amp;quot;
        )
      },
      rows: {
        a!forEach(
          items: local!data,
          expression: {
            a!gridRowLayout(
              contents: {
                a!textField(
                  value: fv!item.dropDownValue
                ),
                a!fileUploadField(
                  value: fv!item.fileUploadValue
                ),
                a!richTextDisplayField(
                  labelPosition: &amp;quot;COLLAPSED&amp;quot;,
                  value: {
                    a!richTextIcon(
                      icon: &amp;quot;times&amp;quot;,
                      linkStyle: &amp;quot;STANDALONE&amp;quot;,
                      link: a!dynamicLink(
                        saveInto: {
                          a!save(
                            local!data,remove(local!data,fv!index)
                          )
                        }
                      )
                    )
                  }
                )
              }
            )
          }
        )
      }
    )
  }
)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Want to preload editable grid having Dropdown values with file upload .</title><link>https://community.appian.com/thread/118817?ContentTypeID=1</link><pubDate>Thu, 07 Sep 2023 23:20:22 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6ceb1ea1-48d9-4678-be48-d7bcd3c22f0e</guid><dc:creator>Mathieu Drouin</dc:creator><description>&lt;p&gt;Not sure in which context this is done.&lt;/p&gt;
&lt;p&gt;You can pre-populate it in the process before passing as an input to the form as described here:&amp;nbsp;&lt;a href="https://docs.appian.com/suite/help/23.3/recipe-set-the-default-value-of-an-input-on-a-task-form.html"&gt;docs.appian.com/.../recipe-set-the-default-value-of-an-input-on-a-task-form.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Otherwise, if you want something self-contained, you basically load the rule input in a local, set the values with a!update and then save the local back into the rule input when the user submits the form.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!entity: a!update(ri!entity, &amp;quot;preloadedField&amp;quot;, &amp;quot;value1&amp;quot;),
  {
    a!textField(value: local!entity.preloadedField),
    a!buttonArrayLayout(
      buttons: {
        a!buttonWidget(
          label: &amp;quot;Submit&amp;quot;,
          saveInto: { a!save(ri!entity, local!entity) }
        )
      }
    )
  }
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>