I dont get it. A project status is a perfect field for a DB.
The query would even group the project in the right way.
select status , projectname
from todolist
group by statusRank
;
then you could have some code that goes through the objects
print project { arraycontainer.projectname }
If (arra
Hi François,
I support this idea:
Why don't you build a model that is built in two step during creation, first,
build the 6 entries, then build the rest ?
Regards,
Lucien
- Mail original -
> De: "Michael Fuchs"
> À: "Sailfish OS Developers"
> Envoyé: Vendredi 17 Avril 2015 12:30:45
>
Hi Francois,
Am 17.04.2015 um 12:24 schrieb François K.:
To make things more clear, I'm building a to-do app. The first screen
is a list where the first items are : "Today", "Overdue",
"Completed", "Trash", ... And then, I want to have the list of
"Projects" (which are gathered from the database
Hi Lucien,
Thanks a lot for your blazingly fast answer :D
> Can't you simply make the hard-coded entries dynamic too. Just add a
> column in the db saying that these entries are the hardcoded ones ?
Sadly, nope, I can't hard-code them in the database because they are entry
point to a different
Hi François,
Can't you simply make the hard-coded entries dynamic too. Just add a column in
the db saying that these entries are the hardcoded ones ? With this, you got
only one query.
And when doing db stuff, don't forget to use transactions. It can help speeding
up stuff a lot.
Regards,
Luc
Hi !
Today, my issue is probably more about Qt than SailfishOS, but I'd like to try
my luck with you first :)
I want to build a list where the first 6 items are "fixed" (they have to always
be here) and the following ones are retrieved from a database.
For each of these items, I'd like to also