Change/Load Event problem
I'm having a weird situation - I put on a load event, and I can not delete it. I also have a change event that seems not to be running - I put an Alert 1st thing, and that does not come up. I deleted all the items in the load event, but that one still fires (I put an Alert). So my real question I guess, is ?what's the best way to debug GW5s besides adding alerts? Where do I see log files?
-
Hello Mike,
When you create a new event, there should be a Delete button that appears beside the event in the Events section for the form element.
How the change event fires is dependent upon the form element type; which element are you using in this case?
The Load event only fires once when the form initially loads.
Alerts can be useful but using the Log can provide a lot more useful information and help you to see the underlying structure of objects returned. If you enter the ID of an object in an expression, like =$query1 for the results of a Query Layer, within a Log then run the workflow and open the browser console (within the Console tab), you can see all of the results and the structure of the output object. No log files are created.
Thanks,
Stefan
0 -
When I said that I could not delete it, I meant that when I click the delete button, nothing happens.?
0 -
Could you try refreshing the browser tab, reload your workflow and attempt to delete the event again?
0 -
Yes, I had already tried all of that. I was afraid I might have to delete the droplist and rebuild it, but there is a lot of logic in the change event - is there a way to copy and save that now??
0 -
Sorry to hear that, if you can recall the process that you did to get the event into its current state, we can try to reproduce the issue and hopefully fix it. You can copy and paste the workflow within the events using Ctrl+Mouse Drag to multiselect, then right+click Copy, then you can pasts this content in a new workflow.
0 -
I ended up using a droplist instead, and I was able to get it to work. Is there any way to allow the user to do an Identify? Or to open the Charting window??
0 -
I would use the Run Command activity for both, but I'm not sure which command can be used for Idenitfy. It might be ActivateTool, with a parameter as Identify, but I'm not sure.
Charting View
Command Name: ActivateView
Command Parameter: ChartingView
0 -
Okay, I added the Run Command onto a button click event for the Charting View and it worked, except that it did not open the default chart...?
0 -
@Latgeo - To add onto this we've noticed some issues with the CHANGE event associated with Radio Buttons. The CHANGE event seems to only fire once, then never again. We do not see this issue with the DropDown form item
0 -
Hello Tom,
There was an issue with older workflows and Radio Groups (Beta period) and the Change event only firing once. Could you try deleting and re-adding the Display Form and configuring the event?
0 -
Hello Mike,
You can see a list of the GVH supported commands here: http://gedemo.geocortex.com/SamplesViewer/#commands
In this case, you'll want to add another Run Command with DisplayChartById and the parameter set to the Id of your chart.
0 -
So I first need to open the chartview, and then do the DisplayChartByID, or can I just do the last step? Also, I have about 10 layers that the user can choose from before they do the chart, and each chart has a separate ID. Would I need to also then query which layer they have open, so I know which ID to use? Or could I use the same chart for all the layers, which are subsets of a larger file?
0 -
I believe that you need to use both commands.
I think those type of layer and chart implementation details are based on your use cases and intended behaviours. If you have a single chart for a single layer, then your ID system should work.
0 -
@Stefan Schweigert? Hi Stefan, I was reviewing how to open the ChartView and that worked, and I used a second run command tool to DisplayChartById but that did not work. Would there be another way?
0 -
Hi Sean,
I'm assuming you are referring to GVH's commands? If so, when you use a Run Command with DisplayChartById, the Command Parameter input should be the ID of the chart that you want to display.
Thanks, Stefan
0 -
@Stefan Schweigert? Yes, sorry, I was referring to GVH's command. That's what I did; entered the ID of the chart that I wanted to display, but it was not working.
0 -
Hi Sean,
I've been able to reproduce this issue in the latest release, but previous releases were working as expected; I'll raise the priority on this to be fixed in 4.14.
Thanks, Stefan
0 -
@Stefan Schweigert? Great, thanks.
0 -
Hi Sean,
I'm not sure if this is the case for your site but if you are using site inheritance, the ID of the chart that you are referencing will not be the same as it appears on the parent site. For example, if the chart on your child site is named 'Chart' and it has been inherited from the parent site named 'Main Site', then the command parameter will be 'Main_Site-Chart'.
Thanks, Stefan
0
Vous devez vous connecter pour laisser un commentaire.
Commentaires
19 commentaires