Choose which results-component to display data in
Hello
I am trying to achieve a functionality where workflow A displays its results in a Result table, and workflow B shows its result in a Result list. Preferably without them interfering with eachother. In the current setup with both a Result table and a Result list in the app leads to the results from a identify task og workflow is show in both.
I have found this command: results.set-display-components. However I can not seem to get it to work.
Does anyone know how to use and set up this command in both a workflow environment as well as the command-window in Vertigis Studio Web Designer?
Any help would be much appreciated.
Kind regards
Tor
-
Hi Tor,
Please let me know if you figure this out. I was trying to use to the same command to ensure that the results from a workflow were displayed in in a Table View. I can't figure out what the argument is suppose to be.
Thanks,
Frank
0 -
Hi Frank
I used this command:{"name": "results.set-display-components","arguments": “results-table”}
The corresponding argument for Results List is “results-list”.
It kinda worked, but another problem appears if you want to display something in the results-list instead. Then you haveto switch back. And if you have both the Results table and the results list open at the same time, the result will appear in both. So it appears you can only show one set of results at a given time. Instead of beeing able to show one set of results that persists, say for instace to see the content of a feature layer in the table, and one set of results for a query made that should appear in the results list.
Smarter people than me have probably solved this, but this is how far I have come.
Hope you find a better solution than me. Good luck.
Knock em dead
T
1 -
Hi Tor,
That command works for what I need. You're right, you have to reset the display component so the next activity (identify, another workflow, etc.), displays the results in the results-list if that's what's needed.
Thanks so much for your help. I really appreciate it.
Frank
0 -
Good to hear that it worked, Frank.
I was struggling a while with that one myself. And I am still a bit crestfallen that the documentation still does not have any good examples in them. Fortunately the communities exists.Maybe they should start to link to the communities for examples in the documentation…
Have a good one, Frank.
T0 -
How is it possible to reset the display component?
Because I wan't to use this approach to have two separate result list in my application.
One ‘decicated’ result list for showing the result of some workflows.
One ‘general’ result list for showing the results of all other worklfows, identify, …0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
5 Kommentare