bea
Active Member
Hi,
I run into another problem...
In my form php I get data from my form and insert a new record into a different list.
I want to insert the id as a link into the new list. The new field is called parent_id. Is it possible to format the data as a guess link?
Cheers
I run into another problem...
In my form php I get data from my form and insert a new record into a different list.
I want to insert the id as a link into the new list. The new field is called parent_id. Is it possible to format the data as a guess link?
Cheers
Code:
...
$parent_id=$formModel->getElementData('fab_cp1_line_tour___id',true);
...
$query=$mydb->getQuery(true);
$query->insert('fab_deviation_standard')
->set('parent_id = '.$mydb->quote($parent_id))
...
$mydb->setQuery($query);
$mydb->execute();
$id=$mydb->insertid();