Flows: Setting values from a SC call's data doesn't work on first run

OS info

  • Operating System : Mac OSX 19.0.0
  • Wappler Version : 2.6.1

Problem description

Pretty weird stuff.

So I’ve got this flow.

image

The flow is called when an input changes its value.

image

And this is the result:

image

I changed the value of the input twice.

First time var1 variables do not evaluate -> undefined
The modal which is shown in between var1 and var1_copy evaluation has a binding in it’s text.

image

As you can see it’s the same expression as the one evaluated for var1 and var1_copy. However the variables will evaluate on the second run, but showing the result of the SC from the first run.

Steps to reproduce

  1. See above.

I see that somehow your variables have wrong paths.

As var1 is just directly under sc1 it should assign value like: sc1.data.hits

and not prefix it with the whole flow path.

Same is for var1_copy

Btw nice tip to use now as timing function :slight_smile:

Also make sure you are using the last App Connect 1.9.1

As we show now the flow debug info only after you enter in devtools:

dmx.debug = true
1 Like

I will do some further tests.

image

It’s the picker who’s setting the path. It’s picking the full one.

image

Thanks for the dmx.debug tip

I confirm it works now. Thanks George.
This goes to my notes :smiley:

Is this default behavior of the data picker? Will it pick the full path if it’s not able to distinguish where I am calling it from?

I will investigate the picker - it has to do how the flow is nested on your page.

1 Like