Upon clicking on an icon, a process model is called.

Hi,

I added an icon column in my record type and I would like to whenever the user clicks on the icon, it calls a process model. Can someone give me some direction on how I can accomplish that?

This is what I have so far where it opens the record, but I want to call a process so a user input form is presented to the user.

a!documentImage(
  document: a!iconNewsEvent(
    icon: "COMPOSE"
  ),
  link: a!recordLink(
    label: rf!ssId,
    recordType: rp!type,
    identifier: rp!id
  )
)

Thank you in advance.

Roberta

  Discussion posts and replies are publicly visible

Parents
  • Hi,

    How it would be if you could use a!dynamicLink() instead of a!recordLink().

    a!dynamicLink() has saveInto parameter, u can call a processmodel using it.

    a!localVariables(
      local!exportId,
      {
        a!linkField(
          labelPosition: "COLLAPSED",
          links: a!dynamicLink(
            label: "Render Excel File",
            saveInto: {
              a!exportProcessReportToExcel(
                report: cons!REPORT,
                documentName: "Report " & now(),
                saveInFolder: cons!TARGET_FOLDER,
                onSuccess: a!save(
                  local!exportId,
                  fv!newDocument
                )
              )
            }
          )
        )
      }
    )

Reply
  • Hi,

    How it would be if you could use a!dynamicLink() instead of a!recordLink().

    a!dynamicLink() has saveInto parameter, u can call a processmodel using it.

    a!localVariables(
      local!exportId,
      {
        a!linkField(
          labelPosition: "COLLAPSED",
          links: a!dynamicLink(
            label: "Render Excel File",
            saveInto: {
              a!exportProcessReportToExcel(
                report: cons!REPORT,
                documentName: "Report " & now(),
                saveInFolder: cons!TARGET_FOLDER,
                onSuccess: a!save(
                  local!exportId,
                  fv!newDocument
                )
              )
            }
          )
        )
      }
    )

Children