Flex Repeater instances binding to query

It is not clear to me how to bind a table from DB query to the instances:

exist some examples?

What are you trying to do? Post a drawing or diagram if it helps.

I try to be more clear:


this simple sample has a "view" with a parameter "label" and I want to repeat based on a query. How to do?

Setup a Named Query to return all of the "labels" you want. Make sure the returned content from your query contains a column which has a name of "label".

Bind instances against this named query. I recommend also changing the return format from auto to json for readability reasons (I try to avoid datasets just because I get no immediate insight into their content).

Note here that I have renamed the column being returned to label:

This is the result:
Screen Shot 2022-10-20 at 9.29.20 AM

great

2 Likes

Hello,

Is it possible to not only bind the instances to a Named query, but also place an expression binding on the parameter name imported from the query?

I'm not quite sure I understand your question. Named Queries do allow for supplying parameters to the query. To do so, select your Named Query in the Project Browser, and in the Authoring tab add a parameter (and then use that parameter within the query). Save your chnages, and then use that Named Query in your binding. There will be an input field which allows for specifying the parameter of the Named Query as an expression.

This post in a different thread should give you a better visual, though note that the post is parameterizing the database instead of a value of the query.

If you mean generate properties that have bindings, no, you can't.
You'll need to compute everything where you generate the instances.