Manbir
(manbir)
March 5, 2021, 1:34pm
#1
Hello everybody!
So as the title says, I want to convert label to a list.
Example:
This is one item of a list.
I want all the texts in <>
to be included in a list
Like
Item 1= nm.[],nm pf.[],pf mbd.[],mbd
Item 2= nm.[],nm pf.[],pf mbd.[],mbd
…and so on
Thanks in advance!
why don’t you use list view component? but that depends on the amount of label data you wanna show in a list. If it’s small you can just design a simple layout or else if the data is more and want to show dynamically you can use dynamics components.
Manbir
(manbir)
March 5, 2021, 1:47pm
#3
Umm well I don’t think we can use listview to convert label to list
2 Likes
I am not understanding your problem
Manbir
(manbir)
March 5, 2021, 3:37pm
#5
This is the text:
From this, I want to make a list with elements:
Manbir:
Item 1= nm.[],nm pf.[],pf mbd.[],mbd
Item 2= nm.[],nm pf.[],pf mbd.[],mbd
In simple words, I want to get all the values within <> and add them in list
Hey @Manbir is this isnt possible using Kodular’s Component. If not then i will make a custom extension for you.
1 Like
ADDYLIN
(ADDYLIN)
March 5, 2021, 4:26pm
#8
Try Using Split Text,
Text - Label Text
At - ><
3 Likes
I had little knowledge about Yailist but after this post I searched on community and found more about Yailist, I made an extension then, and its working too going to share this extension here for him and found that Addylin already had solved it.
SADLYF
RIP My Extension:
@RudraFromIndia
3 Likes
Manbir
(manbir)
March 6, 2021, 1:49am
#12
You can @theanonymous
Probably it might help some other ones.
And thanks a lot for the gift
And thank you too @ADDYLIN
ADDYLIN:
Try Using Split Text
Only one question.
Will it return a list?
(Bcoz I can’t test it right now)
EDIT: I remember in my previous app, @Mohamed_Tamer said it returns a list.
3 Likes
iamwsumit
(Sumit Kumar)
March 6, 2021, 2:11am
#13
Manbir:
Will it return a list?
Yes it will return a list
3 Likes
Manbir
(manbir)
March 6, 2021, 12:43pm
#14
Hi @ADDYLIN
I tried your method.
split text:
text=
<nm.manbir,nm pf.,pf mbd.abcd manbir,mbd> <nm.manbir11,nm pf.,pf mbd.abcd manbir1,mbd>
at= ><
and it returns a list wit only 1 item: ()
while it should return two items:
Item 1: nm.manbir,nm pf.,pf mbd.abcd manbir,mbd
Item 2: nm.manbir1,nm pf.,pf mbd.abcd manbir1,mbd
Manbir
(manbir)
March 6, 2021, 1:00pm
#15
@theanonymous Can you please share your extension?
@manbir I literally have deleted that code and all my pc non-important files today. I will again start from scratch and make it for you.
Manbir:
Item 1: nm.manbir,nm pf.,pf mbd.abcd manbir,mbd
Item 2: nm.manbir1,nm pf.,pf mbd.abcd manbir1,mbd
can you please reply me with an easy looking ,somethinhg like with Item1: a,b,c like that…
1 Like
Manbir
(manbir)
March 6, 2021, 1:06pm
#17
Label: <a><b>
Item 1: <a>
Item 2: <b>
Manbir
(manbir)
March 6, 2021, 1:09pm
#18
The maximum I am able to reach is:
Here getPost
is <a><b><c>
but, the list (global list_of_comments
) has only one item: (a b c)
Then i was making a wrong extension yesterday. Check my PM
1 Like
@Manbir Check my messages …
1 Like