15
Views
2
Comments
Solved
Two inputs box
Application Type
Reactive

Hai Everyone!

I have two text  inputs box and one button 

Ex: 

Input_1 = To text any kind of words I have given. for example, hai hai hai hai Good Morning

Input_2 = if I text the input_2 boxes (hai) and check the input_1 texted how many times( hai )words it having and after  I click button  message it says input_1 has (morning )4

Regards,

Shaik 

2016-04-22 00-29-45
Nuno Reis
 
MVP
Solution

Hello Shaik.

That is a basic exercise. You should practice a bit more. For instance, by doing this: https://www.outsystems.com/forums/discussion/69104/learn-by-doing-21-outsystems-low-code-exercises/

Here is a possible solution. I splited the sentence into tokens by spces and count the words that match the expression.

Note that this doesn't deal with any characters but white space, so "hai,hai" will get 0 and "hai, hai" will get one.

If you need to count exact matches, you need to adapt this to use indexof and cut the string.


Hai.oml
UserImage.jpg
Shaik Asik

Hello  Nuno Reis,

Thanks for your response , yeah sure 


Kindly  Regards,

shaik


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