22
Views
4
Comments
Solved
Display the words one by one everytime you press Button
Question


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....


FlashEnglish.oml
2024-12-19 12-19-39
Amal
 
MVP
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 !!! 

2024-06-19 07-19-32
JitendraYadav

Hi,


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


Thanks

UserImage.jpg
Tsubasa Yoshikawa


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?


2024-06-19 07-19-32
JitendraYadav

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.



2024-12-19 12-19-39
Amal
 
MVP
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 !!! 

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.