How can I use RunExternalCommand with ZoomToExtent?
When specific users log in to the map, the initial extent is set to their area of interest by a startup workflow that uses RunExternalCommand on "ZoomToNamedExtent" with command parameter being a bookmark name. But there is not a bookmark suitable for some users' areas of interest, and I do not want to create more bookmarks. I am looking either for a way to create a bookmark but hide it from the list in the viewer, or else use RunExternalCommand on "ZoomToExtent". This I find tricky.
Tricky, because for me to use ZoomToExtent with command parameter of
"455118.87433,4861551.09378,455118.87433,4861551.09378,26917"
I get a workflow error saying:
t.isInstanceOf is not a function
What I would like to learn from someone here, please, is in what format must I enter the command parameter for what I understand to be an esri.geometry.extent. I have tried as the quoted string above, and also as "new esri.geometry.Extent(455118.87433, 4861551.09378,455118.87433,4861551.09378,26917)", and as "(455118.87433, 4861551.09378,455118.87433,4861551.09378,26917)" but each of these return the same error I mentioned.
I will appreciate any help.
Thanks,
Justin
0
-
Thanks so much, Shawn!
From your example I achieved exactly what I wanted.
From it I used the Parallel activities with their assign activities changed to be the XMin, YMin, XMax, and YMax values from my original post (which I found today I had mistyped), and instead of your Point.spatialreference assignment I assigned Extent.spatialreference to follow after (of course) the Extent assignment, and substituted your WKID on that with what I use here.
Works perfectly!
Cheers,
Justin0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
1 kommentar