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
You'll need to add more details. What do you mean by 'Get a milestone'? If you go full screen, do more options appear?
Based on my status for a particular id i need to show the status tracking through milestone
Did you look at the documentation? There's several good examples for how to configure this: this: https://docs.appian.com/suite/help/latest/Milestone_Component.html
You are showing two variables, local!steps and local!steps1 - what's the difference between them? I think you only need one of these. Also, it looks to me like your milestone is showing the correct selection (it's showing the first item since you have active: 1). What value are you trying to show in the milestone?
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.
Hello friend,
If I understand you correctly, you are trying to display the milestone that your current request is in. That particular index should be attributed to the parameter "active" which you currently have hard coded as "1"
Nevertheless, your current variables are returning steps = 5 items and steps1 = 14 items (due to the fact that your iconSteps is null so it's returning all). Therefore, if your local!steps1 is the index, you'd need to pass that value into your active parameter as a number. since it seems you're returning text, you'll need to do a wherecontains() to get the index from local!steps.
Second, your parameter of "steps", should be the variable: local!steps, this will be the one that will display all the different steps in the milestone bar.
As best practice, I would consider renaming your variables, they can be confusing and should be more specific to what each variable should contain.
Best of luck!
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) ) )
Yeah Sure . Thank you I got it .
can you share your code?