A
|
alang 8/24/2008 |
The easiest way to do this in PHPR is to set up the Owners table as a detail table of Companies on the Datasource tables tab. When you display the list view of Companies, you will have an "Owners" (If you specify that as Caption) hyperlink against each company entry. After adding a new company, you would just click on this link to add the owners for that new company. |
J
|
jemmy239 author 8/24/2008 |
Thanks! I think I do just that for now. |
J
|
Jane 8/25/2008 |
Hi, global $conn; $sql = "update othertable set joinedfield=".$vales["joinedfield"]." ... "; db_exec($sql,$conn); unset($vales["joinedfield"]); |
J
|
jemmy239 author 8/29/2008 |
Hi, PHPRunner doesn't support updating multiple tables on one page. You can implement this manually using Before record updated/added events. I.e. use something like this:
|
J
|
Jane 8/29/2008 |
Hi, select table1.id1, table1.field1, table1.field2, table2.field3 from table1 inner join table2 on table1.id1=table2.id2
global $conn; $sql = "update table2 set field3=".$vales["field3"]." where id2=".$values["id1"]; db_exec($sql,$conn); unset($vales["field3"]); |