Display the words one by one everytime you press Button


As you can see the below images, I'm thinking about how to make that function happen. But I am having trouble implementing this. 

I know I should use String Split for that.But I'm not sure how I should make use of it.

I'd appreciate it if you could tell me about what is my next move.

Sorry about many insert images.


I need your help.I look forword to your reply!


Best regards,




Also I have attached my .oml file. I hope this helps as a reference....


Hi,


Just use the split function and split by space. On button submit(Ajax submit) refresh expression widget.


Thanks


JitendraYadav wrote:

Hi,


Just use the split function and split by space. On button submit(Ajax submit) refresh expression widget.


Thanks

Sorry,I'm not sure how to use Ajax Refresh..... Like above.

Which part should I tweak?


Tsubasa Yoshikawa wrote:


JitendraYadav wrote:

Hi,


Just use the split function and split by space. On button submit(Ajax submit) refresh expression widget.


Thanks

Sorry,I'm not sure how to use Ajax Refresh..... Like above.

Which part should I tweak?



Refresh the expression and use logic to get data from the split string as per counter.



Solution

Hello 

The steps to follow are 

1) Use String Split to split your input string to a list of sub strings (with space as a delimiter) 

2) Maintain a local variable counter 

3) Each time you click on hint button (Ajax submit), get the string from the list of strings based on the counter and increment the counter. 

4) Ajax refresh the expression to see the updated content.  Check help here 


Hope this helps !!! 

Solution