get value from variable created in custom view
In my custom view I have created a session like variable.
Now in one of my workflows I would like to retreive that variables value from the workflow.
I'm guessing I need to register event? And then use the collect external events? (Any examples?)
Or can the workflow call the access the custom view to get the variable?
ex. some way of calling
geocortex.essentialsHtmlViewer.sdk.samples.modules.Custom.CustomViewModel.myvariable
-
I think you need to write a custom activity (a dynamic external) in the same module as the view, that can access and return the variable. Then use that activity in your workflow.
0 -
Hi Berend,
perhaps the new Get Execution Property activity in combination with the Get/Set External Value activities might provide you with a way of implementing what you want. The other idea I have would be to consider a SQL based storage of the value.
regards,
EdmondFrom the Geocortex Essentials 4.0 Release Notes
Get Execution Property. A generic utility activity that allows you to obtain an Execution Property by name from a running workflow. One specific use of this activity is to obtain the collection of buttons of a Display Form activity so that they can be manipulated in the runtime modifications sequence.
Get/Set External Value. Two activities that allow a workflow to store a value in the client application and then retrieve the value later in the workflow, or in another workflow running in the same viewer.
0 -
Hi Jason,
As advised above the best and easiest way to do it would be to use Listen For External Event activity and let your custom function trigger and pass the required variables.
Another way would be to write an activity handler for Dynamic External Activity and let it collect all the variables and pass it to the workflow.
I am sorry to be late, let me know if you are interested in any of these two approaches working example, I can share it with you.
Regards,
Mohammad Ashraf0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
3 Kommentare