Hi Chris and others,
yes I understand how to add more than one fields in the same append
command. The problem is that I would like to add hidden (not visible
for user) per ListItem. In my example which I send in my previous mail
was only one label which is visible for user, but how to add
what the problem? You not forced to use all fields in any visual elements.
You can use model.get(index).fieldname for getting any field from model
On 23.02.2014 14:17, Jukka Heikkilä wrote:
Hi Chris and others,
yes I understand how to add more than one fields in the same append
command. The
Hi,
that was the problem. Big thanks for your help.
Kind Regards,
Jukka
2014-02-23 10:21 GMT+02:00 Andrey Kozhevnikov coderusin...@gmail.com:
what the problem? You not forced to use all fields in any visual elements.
You can use model.get(index).fieldname for getting any field from model
I'm creating page which shows some information which is returned from
local storage. I have successfully created the next code which will
work:
Page {
root
Component.onCompleted: {
//External Function which return the items from Local Storage
items = DB.listItems();
Jukka
It is very easy to add multiple roles / fields with the same append command.
Here is an example culled from one of my apps:
var db = DB.DataModel();
var rs = db.getContacts(area_id, template_id);
for(var i = 0; i rs.rows.length; i++) {
contactModel.append({name: