How to get application name?
My workflow needs to know which application is running it to turn on the proper layer theme. The apps are using the same map. Get Application Info just tells me it's a Studio Web app. I'm trying Get Browser Info and looking at the item id in the URL, but then it has to check for both the dev id # and the prod # id. It fails to work in the Web Designer because the URL that is retrieved is …."/vertigisstudio/web/index.html#no-bootstrap" so there's no app ID to check.
Is there a way of getting the application name OR a way to get the URL seen in the Web Designer?
-
It might be best for the host application to pass in an input to the workflow instead.
For example, provide a “themeName” parameter via the application, then the workflow could use the Get Workflow Inputs activity to retrieve this and use it to determine which theme to use.
1 -
Ken Lyon Thanks, that's a good idea!
Update: got it to work! Passed {"originapp":"old"} as the input arguments in the button that triggers the workflow in Web and then in Workflow I used Get Workflow Inputs and then directed the workflow based on if =$getWorkflowInputs1.inputs["originapp"] == "old"
0
Vous devez vous connecter pour laisser un commentaire.
Commentaires
2 commentaires