I can display MySQL data in a grid or a list with no problem, but I can’t get the data to bind to other display objects. I’ve spent a lot of time, trying every variation I can think of, but I am clearly just not understanding the basics. I also use the non-Touch version for desktop sites, and have no trouble displaying data however I want–it works.
But the Touch app is different. There is no active sample on-line or with the downloaded samples and demos that demonstrates this. There are a few examples in the tutorials, but the code they display is unclear, and since it is not a live example, I can’t see what’s going on.
One example of something that I don’t understand is this code, in an on-line tutorial:
$$(“topForm”).setValues( $$(“grid”).item(id) );
First of all, I don’t see that the form has the ID “topForm” assigned. However, assigning it still doesn’t help me. Still won’t work.
Also, in the function where “.item(id)” is in the code, it is not clear if this is literal, and should be left exactly as on the page, or if I am supposed to substitute and id from elsewhere–like a row id or similar.
Most of my code works. I can test the onAfterSelect by placing another action there–and it works. It’s the filling the form that doesn’t work.
Many times, I want to just display some detail fields on the same page as a grid. These are not really “form” items, in that they are for display only, so I understand that I should also be able to bind labels and similar items to the grid. Is that true?
Thanks. I would not trouble everyone here if I had not already spent way too many hours trying to get this working.