I have the following tables

db.define_table('tag',
    SQLField('name',requires=[IS_NOT_EMPTY(),IS_NOT_IN_DB
(db,'tag.name')] ))
db.define_table('bookmark',
    SQLField('title', requires=IS_NOT_EMPTY() ),
    SQLField('tag','text'),
    ...
db.bookmark.tag.requires=IS_IN_DB
(db,'tag.id','tag.name',multiple=True)


and the controller
def bookmarks():
    records=db(db.bookmark.id>0).select(orderby=~db.bookmark.title)
    return dict(records=records)

Now in the view I would like have the Record-ID and the Names from
this multiple file for creating links. So the data are saved like "|1|
2|" and I would like to have [[1,"tagname1"],[2,"tagname2"]].

How to get this information?

Thanks
Daniel


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to