Skip to main content
March 26, 2024
Solved

Task is not Opening

  • March 26, 2024
  • 6 replies
  • 0 views

a!gridColumn(
  label: "Task Name",
  sortField: "c0",
  value: a!linkField(
    links: a!processTaskLink(label: fv!row.c0, task: fv!identifier)
  )
)

Tasks active only when I am trying open the tasks from the site. I am getting below error. Could anyone give suggestions.

Thanks in Advance

    Best answer by stefanhelzle0001

    I think that, as I already mentioned, fv!identifier does NOT hold the task ID. But that is something you can easily check. In my reports, I typically add one field to hold the task id and use that to create the link.

    6 replies

    stefanhelzle0001
    March 26, 2024

    Are you sure that the identifier holds the task id?

    March 27, 2024

    a!queryProcessAnalytics(
            report: cons!RF_PROCESS_REPORT,
            contextProcessModels: cons!RF_PROCESS_MODEL,
            query: a!query(
              pagingInfo: fv!pagingInfo
            )
          )

    In the grid field when I am using above code It is working as expected. Below one throwing the error

    a!queryProcessAnalytics(
      report: cons!RF_PROCESS_REPORT,
      contextProcessModels: cons!RF_PROCESS_MODEL,
      query: a!query(
        pagingInfo: a!pagingInfo(startIndex: 1, batchSize: - 1)
      )
    ).data

    stefanhelzle0001
    March 27, 2024

    I think that, as I already mentioned, fv!identifier does NOT hold the task ID. But that is something you can easily check. In my reports, I typically add one field to hold the task id and use that to create the link.

    davidj137213
    March 26, 2024

    I agree with Stefan... seems the value stored in fv!identifer is not correct, or maybe it's null