Milestone

I am unable to get a milestone for a particular id . Can anyone help me with it please

  Discussion posts and replies are publicly visible

Parents Reply Children
  • I am trying to show the status value ( eg: request created, meeting scheduled, application sent and request approved as seen in the above screenshot).

    So, for eg whenever I create a request, the status of that request changes to request created right so that I want to show it in a milestone way, and then when a meeting is scheduled for the same request the status changes to the scheduled meeting and it should be shown in milestone and so on.

    So how to get it dynamically for each request.

  • Ok you just have to update the "active" parameter to refer to the step you want to show as active. If your data is storing the text string instead of a number, you probably need to use the wherecontains() function to find the index of the value in your list.

    Something like this should work:

    a!localVariables(
      local!steps: { "One", "Two", "Three" },
      a!milestoneField(
        label: "Milestone",
        labelPosition: "ABOVE",
        steps: local!steps,
        links: a!forEach(
          items: local!steps,
          expression: a!dynamicLink(
            label: "Status",
            value: fv!item,
            saveInto: ri!request.status
          )
        ),
        active: wherecontains(ri!request.status, local!steps)
      )
    )