Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I need to create a Chart/Table where the user can input a list of codes, and it will return rows where ANY of those codes appear in a string field
Example, data contains the field
Row1 P925945|P924974|P928690|P931245|P937145|P929622|P972233|P972583|P972583|P925777|P946333|
Row2 P952515|P921182|P954323|P925945|P924974|P928690|P931245|P937145|P929622|P972233|P972583|P972583|
Row3 P932986|P952515|P937145|P929622|P972233|P972583|P972583|P925777|P946333|
If user enters P925945, P924974 it will return Row1
If user enters P928690 it will return rows 1 & 2
If user enters P937145, P929622 it will return Rows 1, 2 & 3
Kind regards
MJ.
Where these Rows are?
I mean in which objects?
Where you want user to enter values?
Hi,
Use search object..
Regards
Hi Martyn
Using this script
Data:
LOAD
Row,
Data
Where Len(Data) >0;
Load
Row,
SubField(DataLine,'|') as Data;
Load
RecNo() as Row,
DataLine;
LOAD * INLINE [
DataLine
P925945|P924974|P928690|P931245|P937145|P929622|P972233|P972583|P972583|P925777|P946333|
P952515|P921182|P954323|P925945|P924974|P928690|P931245|P937145|P929622|P972233|P972583|P972583|
P932986|P952515|P937145|P929622|P972233|P972583|P972583|P925777|P946333|
];
you can add a listbox on the field Data and a textbox with the expression Concat(DISTINCT Row,', ') will give the row numbers.
Cheers
Andrew