Gossamer Forum
Home : Products : DBMan SQL : Discussion :

Re: [assombracao] Show relational field

Quote Reply
Re: [assombracao] Show relational field In reply to
Hi,

You can use <%Dbsql::Relation::HTML::generate_description('primary_table', 'foreign_key', 'description_field')%> in your template to get the description of foreign key.

E.g: The Book table is related to Category table on CatID which is the foreign key field, so the command should be:

<%Dbsql::Relation::HTML::generate_description('Category', 'CatID', 'CatName')%>

Hope thats help.

TheStone.

B.
Subject Author Views Date
Thread Show relational field assombracao 5417 Nov 12, 2002, 11:46 AM
Thread Re: [assombracao] Show relational field
604 5329 Nov 12, 2002, 1:28 PM
Thread Re: [TheStone] Show relational field
assombracao 5302 Nov 13, 2002, 5:08 AM
Thread Re: [assombracao] Show relational field
604 5296 Nov 13, 2002, 9:41 AM
Thread Re: [TheStone] Show relational field
assombracao 5293 Nov 13, 2002, 11:35 AM
Thread Re: [assombracao] Show relational field
604 5287 Nov 13, 2002, 11:47 AM
Thread Re: [TheStone] Show relational field
assombracao 5293 Nov 13, 2002, 12:31 PM
Thread Re: [assombracao] Show relational field
604 5287 Nov 13, 2002, 12:57 PM
Post Re: [TheStone] Show relational field
assombracao 5285 Nov 13, 2002, 2:01 PM
Thread Re: [TheStone] Show relational field
assombracao 4945 Nov 6, 2003, 5:53 PM
Post Re: [assombracao] Show relational field
assombracao 4914 Nov 19, 2003, 3:09 AM
Thread Re: [assombracao] Show relational field
jaspercram 5266 Nov 15, 2002, 3:49 PM
Post Re: [jaspercram] Show relational field
assombracao 5244 Nov 16, 2002, 8:26 AM