Hello!
I am able to read multiple values from a single firebase database path, and I need to place this information into a combobox,
currently when reading a single entry from the database I can add this to my combo box by the following;
firebaseDb.getValue("public/listEntries/title1",
{}, function(success, key, value) {
if(success) {
myArray.push(value); combobox.model = myArray
}
})
when I try to push the queried information to my combobox using the above method I receive the following information in my log;
file:MyDiary//qml/Main.qml:260: Unable to assign QJSValue to QString
line 260 of my code is
text: modelData
which links to my combobox model:
model: myArray [""]
what could be amended to handle this?
my query code is below;
firebaseDb.getValue("public/bigqueryobject", {
orderByKey: true,
startAt: 0,
endAt: 1000,
limitToFirst: 5
}, function(success, key, value) {
if(success) {
console.debug("Read value for key ", key, "fromFBDB: ", value);
myArray.push(value); combobox.model = myArray
}
})
Thanks