StatusArgs?
So I'm reading through the Admin and Developer guide, and I come across this in 2.4:
"Note: In order to use this command in a workflow, you must pass the statusArgs parameter as a string."
Statusarges being an instance of geocortex.essentialsHtmlViewer.mapping.infrastructure.commandArgs.AddStatusArgs.
Problem is, I don't find the definition of geocortex.essentialsHtmlViewer.mapping.infrastructure.commandArgs.AddStatusArgs anywhere. That makes it a bit tricky to pass as a parameter, if I don't actually know what I'm supposed to be passing. It's not defined in the Developer guide, a search on the support center returns nothing, the Javascript API site doesn't show me anything, and it's not a referenced assembly in the workflow designer so intellisense isn't helping me.
I'll need an ID so I can pulse/remove status, so that obviously is supposed to be worked in there someplace. I just don't know where.
What, exactly, is the format I'm supposed to pass to an addStatus now?
-
text: string
The message text to display.
imageUri?: string
The URI of the image icon to show beside the text.
userClosedCallback?: () => void
A callback function to invoke when the status message is dismissed by the user.
imageClass?: string
The css class name to apply so that an image can be shown using css.
id?: string
The ID of the status message. You can use this ID later on for the "PulseStatus" command and the "RemoveStatus" command. If you do not supply a value, an ID will be created and assigned to id property so that you can use it later on.
timeoutMS?: number
The timeout in milliseconds after which time the status message will go away. A value of 0 or less than 0 means never time out.
showBusyIcon?: boolean
If set to true, then a busy icon will be used - likely an animation to shown activity.0 -
for example you can pass the following argument:
Newtonsoft.Json.Linq.JObject.Parse("{text: 'your text',showBusyIcon:true}")0 -
I've been using the Newtonsoft.Json.Linq.JObject.Parse method in GE 4.6.3 and GVH 2.7.2, but now it is not working in GE 4.7 and GVH 2.8.
I get the following error:
Type 'Newtonsoft.Json.Linq.JToken' is a recursive collection data contract which is not supported. Consider modifying the definition of collection 'Newtonsoft.Json.Linq.JToken' to remove references to itself.
Any ideas on how to generate the StatusArgs object in GE 4.7 / GVH 2.8?0 -
Nevermind, just fixed my issue in GE 4.7 and GVH 2.8. It ended up being caused by a version mismatch, the Manager web.config file was still referencing version 8 of the Newtonsoft.Json assembly. When I did another install of GE 4.7 version 9 was referenced and then it worked. 0
Please sign in to leave a comment.
Comments
4 comments