Welcome, Guest Login

Support Center

VARIABLE

Last Updated: May 08, 2017 04:23PM EDT
VARIABLE



VARIABLE Tutorial app showcases
  • How to Capture User input and store the input in a variable.
  • How to set a Variable.


How does VARIABLE App Work?

We set the same variable: v_text in 2 different ways.

Using
  1. Set a Variable.
  2. Input Block#input

set
Set a Variable
 
When the user tap on one of the text block used as button, the 'Set a Variable' action is called to set the displayed variable to either GREAT or COOL
 


Here is the setting associated to the Tap event of the Text Block 'Set Variable to 'GREAT' 


The second action 'Refresh Block' is there to redraw the screen to reflect the change in the variable value.


input
Input Block
 
In that construct we use the Text Input Block to inform the value of the variable.




Text Input saves the tapped text into the variable v_text defined herein




When the user taps 'done' the Done event associated to the Text Input block fires.
We have attached a Refresh Block action to the Done Event to refresh the screen.
 
 

 

Help us improve! Rate this article:

Yes I found this article helpful

Ask a Question   

support@eachscape.com
http://assets0.desk.com/
false
eachscape
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
false
Invalid characters found
/customer/en/portal/articles/autocomplete