Open windows explorer from a link from Interface

Hello Everyone,

we have a requirement to open specific folder (probably a shared folder / windows explorer) from appian interface (link needs to be provided in the interface for that folder). 

Could you please help us out resolve this issue ?

Thanks,

Tejal

  Discussion posts and replies are publicly visible

Parents
  • Hey Tejal - Can you try the below code and let know if it satisfies your requirement.

    a!localVariables(
      local!links: {
        ""
      },
      local!value,
      {
        a!forEach(
          items: local!links,
          expression: a!sideBySideLayout(
            items: {
              a!sideBySideItem(
                item: a!richTextDisplayField(
                  value: a!richTextItem(
                    text: "Shared Folder Link",
                    style: "STRONG",
                    
                  ),
                  align: "CENTER",
                  showWhen: fv!isFirst
                )
              ),
              a!sideBySideItem(
                item: if(
                  isnull(
                    fv!item
                  ),
                  a!textField(
                    value: fv!item,
                    saveInto: {
                      fv!item,
                      a!save(
                        local!links,
                        append(
                          local!links,
                          ""
                        )
                      )
                    }
                  ),
                  a!linkField(
                    links: a!safeLink(
                      label: fv!item,
                      uri: fv!item
                    )
                  )
                )
              ),
              a!sideBySideItem(
                item: a!richTextDisplayField(
                  value: a!richTextIcon(
                    icon: "trash-o",
                    size: "MEDIUM_PLUS",
                    color: "NEGATIVE",
                    link: a!dynamicLink(
                      value: "",
                      saveInto: {
                        a!save(
                          local!links,
                          if(
                            fv!itemCount = 1,
                            local!links,
                            remove(
                              local!links,
                              fv!index
                            )
                          )
                        )
                      }
                    ),
                    linkStyle: "STANDALONE"
                  )
                )
              )
            }
          )
        )
      }
    )

Reply
  • Hey Tejal - Can you try the below code and let know if it satisfies your requirement.

    a!localVariables(
      local!links: {
        ""
      },
      local!value,
      {
        a!forEach(
          items: local!links,
          expression: a!sideBySideLayout(
            items: {
              a!sideBySideItem(
                item: a!richTextDisplayField(
                  value: a!richTextItem(
                    text: "Shared Folder Link",
                    style: "STRONG",
                    
                  ),
                  align: "CENTER",
                  showWhen: fv!isFirst
                )
              ),
              a!sideBySideItem(
                item: if(
                  isnull(
                    fv!item
                  ),
                  a!textField(
                    value: fv!item,
                    saveInto: {
                      fv!item,
                      a!save(
                        local!links,
                        append(
                          local!links,
                          ""
                        )
                      )
                    }
                  ),
                  a!linkField(
                    links: a!safeLink(
                      label: fv!item,
                      uri: fv!item
                    )
                  )
                )
              ),
              a!sideBySideItem(
                item: a!richTextDisplayField(
                  value: a!richTextIcon(
                    icon: "trash-o",
                    size: "MEDIUM_PLUS",
                    color: "NEGATIVE",
                    link: a!dynamicLink(
                      value: "",
                      saveInto: {
                        a!save(
                          local!links,
                          if(
                            fv!itemCount = 1,
                            local!links,
                            remove(
                              local!links,
                              fv!index
                            )
                          )
                        )
                      }
                    ),
                    linkStyle: "STANDALONE"
                  )
                )
              )
            }
          )
        )
      }
    )

Children
No Data