Hello,
how can i split a string into multi pieces?
Because our data is always different.
I use this in the label on Text:
With(
{
wMessage:
ForAll(Split(Title2_9;Char(10)); {Result: ThisRecord.Value})
};
If(IsBlank(Title2_9)||IsEmpty(Title2_9);
"Where: " & ThisItem.CATEGORY;
//not empty
Concat(
ForAll(
ForAll(Split(Title2_9;Char(10)); {Result: ThisRecord.Value}) As inFocus;
If(
Len(Title2_9)=0; Text(inFocus.Result);
Upper(Left(inFocus.Result;Len(Title2_9)))=Upper(First(wMessage).Result);
If(First(wMessage).Result ="PICKUP"||First(wMessage).Result ="DELIVERY"||First(wMessage).Result ="RETURN"||First(wMessage).Result ="ON HOLD"||First(wMessage).Result ="APPOINTMENT"; Text(inFocus.Result)
;
ThisItem.CATEGORY &Char(10)& inFocus.Result) ;
Left(inFocus.Result;7)));
ThisRecord.Value; Char(10))
))
And it works in normal values but sometimes we have more values (this field has choices) in a sharepoint
So the Title2_9 is a label in the gallery where i load the CATEGORY.
So how can i display the lines we wanna show and not all or mixed up.
Thank you