Hello all,
suppose I had 4 stringlists for a store: Itemlist, Patronlist, DateBoughtList, DateReturnedList.
And suppose I had it lined up like this:
INDECES: 0 1 2 3 4
Item: LoTR HarryPotter 007 MarioKart Clothes
Patron: Bob Sally Bob Bob Frank
DateBought: march june july july august
DateReturned: sept. sept oct dec november
INDECES: 0 1 2 3 4
Item: LoTR HarryPotter 007 MarioKart Clothes
Patron: Bob Sally Bob Bob Frank
DateBought: march june july july august
DateReturned: sept. sept oct dec november
To copy to clipboard, switch view to plain text mode
I need to get a report that organizes this data by patron ( where each UNIQUE patron gets his/her own page with the appropriate items sorted out on)
This is not a printing question, but what I was wondering is how can I group together the patron elements into unique elements, letting these elements retain multiple indeces (I would suspect QMultiHash, but am not too familiar with the API at this point.... still new at it)
For example, if I were to isolate Bob: he has indeces 0,2, and 3. This would allow me to organize the data by printing out those lists at those indices on his patron page. Like so:
Patron Bob(unique element 1):
**note that the items displayed on his page I am also trying to keep sorted by item for the program
(item),(date bought),(date returned)
007, july, oct
LoTR..
MarioKart..
Patron Frank(unique element 2)
clothes,..
etc.
Patron Bob(unique element 1):
**note that the items displayed on his page I am also trying to keep sorted by item for the program
(item),(date bought),(date returned)
007, july, oct
LoTR..
MarioKart..
Patron Frank(unique element 2)
clothes,..
etc.
To copy to clipboard, switch view to plain text mode
based off of this, is there any way to make it so I can match a patron value with multiple indeces while being organized enough to conduct a report?
***if I am not being clear, let me know
Bookmarks