Specific Syntax in a Flow

So I have a flow, and I want to set the value of an external variable be a string that includes a value returned by a Server Connect that has just run in the flow.

Here is the run part of my flow:

run: {
   action: "{{user_message.setValue('This event is currently being edited by NAME so is being opened for you in read-only mode.')}}"
     }

I want to replace NAME with the value of:

sc_lock_event.data.returned_values.text_value

What syntax within the run action will allow me to do this?

(I’ve tried various options in the user interface and not found a way to make it create the text-value-text combination I am looking for)

Best wishes,
Antony.

Just use the data pickers to select your data. They always choose the right data for you.

I’ve tried but I cannot find a way to user the user interface to combine the text:

'This event is currently being edited by '

followed by the value:

sc_lock_event.data.returned_values.text_value

followed by the additional text:

' so is being opened for you in read-only mode.'

Here is what happens:

When I type in the set value box of user_message:

'This event is currently being edited by NAME so is being opened for you in read-only mode.'

Then select the word NAME and use the data picker to over-type it, then all the other text is removed and I am just left with:

user_message.setValue(sc_lock_event.data.returned_values.text_value)

Is this a bug, or do flows not allow us to use a dynamic value in this situation?

In the meantime, it would be really helpful just to know the syntax to type into my code!

Best wishes,
Antony.

All expressions in Wappler follow the javascript standard for expressions.

So if you have a variable, lets call it var1 you can:

prefix it with text:

'my test ' + var1

or append a text like:

var1 + ' is awesome'

or do some calculations if var1 is a number:

var1 * 2 + 3
1 Like

Many thanks @George! :slight_smile: