I’m using type ahead to give users a choice to pick a part number. All parts are stored in a separate db. They can use a radio field to choose to either search By Part Number or By Description. If they choose By Part Number, I simply use @DbLookup on a view column with [PartialMatch] and return the results. This works fine.
If they choose By Description, then I get a dcol with db.FTSearch, loop thru the results to create a string of choices, and then split the results to return an array. This does not work.
I used print statements in the loop to verify that I’m getting results, and I am. Since returning an array did not work, I also tried leaving the list of choices in a string, and set the Type Ahead delimiter property to ~, but that didn’t work either.
In help, it looks like split returns a string, so I tried using @Explode instead - that didn’t work either.
What do I have to do to return a list of choices from a string for Type Ahead?
(in simpler terms, how do I return “one,two,three” as Type Ahead choices)
Bob