This topic is locked

Adding Read-Only Fields from Other Tables

4/27/2009 1:39:07 PM
PHPRunner General questions
J
jkeagle13 author

Hello,
I have a table that I am having users add/edit.
I want to include READ-ONLY fields in the add/edit/view windows that pull information from specific fields in other tables.
Thanks,

Joseph

J
Jane 4/28/2009

Hi,
you can join tables on theEdit SQL querytab, then add joined fields on the Choose field tab and set up these fields as readonly on the "Edit as" settings dialog on the Visual Editor tab.

J
jkeagle13 author 5/1/2009

Hello,
Is there a simpler way? I hate to do a query joining the records and needing to worry about the assignment of primary keys, etc. I understand database theory well enough to know that it can be done and that it is best to do it the "proper" way.
I am looking for quick shortcuts though. Is there any way to simply have a field that references another table without worrying about the SQL joins? I briefly played with the SQL join and sent my computer into an infinite loop. It isn't as if my aversion is completely for naught.
Thank you,

Joseph Irvine

Sergey Kornilov admin 5/1/2009

You can also use "Insert PHP code snippet" function in Visual Editor where you can run SQL query and display results on the page.