I can't get anything to work. Here is a simple workflow to echo user selected point. what am I doing wrong?
-
Hi Ethan,
This workflow runs successfully for me. The Log activity logs the object's data to the browser console.
Take a look at this section in our documentation for more information: https://docs.geocortex.com/workflow/latest/help/Default.htm#wf5/help/logging.htm#Log_Debugging_Information_to_the_Console%3FTocPath%3DAuthoring%2520Aids%7CLog%2520Debugging%2520Information%2520to%2520the%2520Console%7C_____0
Thanks, Stefan
0 -
I had been doing that, however when the log returns "Undefined" or "[object object]" or "Application Experiencing Issues While performing this Operations" it becomes unhelpful. To get helpful logging, you still need to get the syntax correct for which you cannot rely on autocomplete.
0 -
I agree in general, but there can be some useful information found. Returning Undefined could indicate that setting a value earlier in the workflow didn't occur or the value was scoped incorrectly. [object Object] usually means that you are trying to output/access the object itself rather than a property of it.
0 -
What I like to do is return the whole value object and then see what's in it. So instead of:
=$form1.state.geometryPicker1.value.geometry[0]
I would use:
=$form1.state.geometryPicker1.value
Then in the console, you can right click on the logged object and save it as a global variable (first variable will be assigned to "temp0" or something like that). Then you can explore the value in the console to see what's in it and it will autocomplete as well.
0 -
That's helpful. I'm coming from Python paradigm with different techniques to expose the variables. Its starting to gel. :)
0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
5 kommentarer