01-18-2017 05:59 AM
I have a workflow list with an FormAction of type="row". If I click on this action the row should be marked and the map should be centered on this feature.
This works fine - but only the first time.
On the second time, when I try to cick on the action in an other row only the new row is marked. But the old row did not get unmarked and also the map get not centered on the new point.
If I refresh the page by the refresh button or on the workflownode, I get the list unmarked and for the next click on the action it works (but also only on the first time).
So I like to find a function that I can refresh the list after the click on action. Or better, a function before the current action that unmark the past row and let the action everytime works.
At the moment my row action looks like:
Does someone has an idea?
Solved! Go to Solution.
01-18-2017 06:37 AM
you did not mention which version of GMSC you are using. I guess it is 15 because on 16 the behavior is different (the row should not stay marked).
I guess in your trigger the current feature is set somehow in the session. What you can do is to clear the selected feature using IG.clearSelectedElements() and then do the rest.
If not enough you may try to reload the list using IG.list.refreshList().
01-18-2017 07:15 AM
I use GMSC 2015 (sorry that I forget to mention it).
As far as I know this trigger came from the standard and my log show for this:
As far as I can test, the table HIGHLIGHT has the correct values - but I get no change on this features on map, no change of center location and furthermore the new line is selected.
Your suggestion that the current feature is set somehow in the session is in my case not true.
IG.clearSelectedElements() help only that everything work as it should, but did not unmark the selected row.
IG.list.refreshList() only unmark the selected row - but after the first time the mark and center of map did not work.
So I tried to use both and it works. Means that I start with IG.clearSelectedElements() before my current code and I finish it with IG.list.refreshList().
Thank you Stefano