cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Jebelsan
New Member

Text analyst

I'm trying to create an app and I'm facing the following problem.
I first scan a QR code, from which I get information separated by punctuation marks:
Title1,Information1;Title2,Information2;Title3,Information3;
With this information I want to fill in several information boxes in which the title is already (coincides in both). In other words, I want you to fill in the Title1 box with the Information1.
Could you help me with this problem of how to analyze a complete text?
Thank you

1 ACCEPTED SOLUTION

Accepted Solutions
v-yutliu-msft
Community Support
Community Support

Hi @Jebelsan ,

Do you want to fill in information to corresponding textinput controls by using a long text?

If so, I've made a similar test for your reference:

1)insert a lable named Label1

set it Text: 

"Title1,Information1;Title2,Information2;Title3,Information3;"

2)insert 3 lables named  Label2, Label3, Label4

insert 3 textinputs named textinput1,textinput2,textinput3

Set Lable2's Text: "Title1"

Set textinput1's Default: 

Replace(LookUp(Split(Label1.Text,";"),Label2.Text in Result,Result),1,7,"")

Set Lable3's Text: "Title2"

Set textinput2's Default: 

Replace(LookUp(Split(Label1.Text,";"),Label3.Text in Result,Result),1,7,"")

Set Lable4's Text: "Title3"

Set textinput3's Default: 

Replace(LookUp(Split(Label1.Text,";"),Label4.Text in Result,Result),1,7,"")

 

Then, the corresponding textinput controls will be filled in corresponding information.913.PNG

 

 

Best regards,

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-yutliu-msft
Community Support
Community Support

Hi @Jebelsan ,

Do you want to fill in information to corresponding textinput controls by using a long text?

If so, I've made a similar test for your reference:

1)insert a lable named Label1

set it Text: 

"Title1,Information1;Title2,Information2;Title3,Information3;"

2)insert 3 lables named  Label2, Label3, Label4

insert 3 textinputs named textinput1,textinput2,textinput3

Set Lable2's Text: "Title1"

Set textinput1's Default: 

Replace(LookUp(Split(Label1.Text,";"),Label2.Text in Result,Result),1,7,"")

Set Lable3's Text: "Title2"

Set textinput2's Default: 

Replace(LookUp(Split(Label1.Text,";"),Label3.Text in Result,Result),1,7,"")

Set Lable4's Text: "Title3"

Set textinput3's Default: 

Replace(LookUp(Split(Label1.Text,";"),Label4.Text in Result,Result),1,7,"")

 

Then, the corresponding textinput controls will be filled in corresponding information.913.PNG

 

 

Best regards,

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (3,614)