I've been battling this for some time.
I have a UX, not Mobile, with a List Control based on a MySQL Table. This List is displaying Images. The table supplies the image path and name. All that's great.
My UX is running in a Tabbed UI. I never need to see the full List of images. Always a filtered list. And, in fact, the List is hidden on the UX until it's needed.
The filter is a single word typed in by the user and then a search button is clicked. Then, the List is displayed and shows a filtered set of images.
The filter is going against a mediumtext field... lots of text in there... and so it needs to be a "Like" Where clause.
I'm trying to get the List Control to not render anything until I ask for it. This is because the table has about 2000 records and that takes about 15 seconds to display all those images.
I need to filter this server-side.
I think the best way is to use an argument in the List Select statement. I've tried this... but it displays everything in the List. In the SQL Builder it works.
If I do this... all is good.... both SQL and the List work. But that's doesn't really help much.
but doing the following doesn't work...
and this doesn't work...
Any thoughts? Thanks.
I have a UX, not Mobile, with a List Control based on a MySQL Table. This List is displaying Images. The table supplies the image path and name. All that's great.
My UX is running in a Tabbed UI. I never need to see the full List of images. Always a filtered list. And, in fact, the List is hidden on the UX until it's needed.
The filter is a single word typed in by the user and then a search button is clicked. Then, the List is displayed and shows a filtered set of images.
The filter is going against a mediumtext field... lots of text in there... and so it needs to be a "Like" Where clause.
I'm trying to get the List Control to not render anything until I ask for it. This is because the table has about 2000 records and that takes about 15 seconds to display all those images.
I need to filter this server-side.
I think the best way is to use an argument in the List Select statement. I've tried this... but it displays everything in the List. In the SQL Builder it works.
Code:
SELECT ImageId, ImageName, Concat('Images/', ImageName) AS ImagePathName, ImageCategory, annotation FROM tbltcvimages WHERE annotation LIKE CONCAT('%', :argImageAnnot, '%') ORDER BY ImageName
Code:
WHERE annotation LIKE '%heart%'
Code:
WHERE annotation LIKE :argImageAnnot
Code:
WHERE annotation LIKE '%:argImageAnnot%'
Comment