marcq
Member
Hi,
I have created a custom detail form template.
I have created a Picklist element and added the following query in the Eval populate field.
In my custom detail form template I added the following code to display my Picklist element :
I'm unable to drag an element from "Bacounis" to "Equipage".
I've checked the access rights which are ok.
http://www.screencast.com/t/kuMYFuhc
and I've got the following error
displayed in my debug console.
Thank you in advance for your support.
Cheers,
Marc
ps: last Joomla version
last Fabrik github
I have created a custom detail form template.
I have created a Picklist element and added the following query in the Eval populate field.
Code:
$bookingid = JRequest::getVar('rowid');
$mydb = JFactory::getDbo();
$mydb->setQuery("SELECT id, nom FROM fab_crew");
$myrows = $mydb->loadObjectList();
foreach ($myrows as $row) {
$options[] = JHTML::_('select.option', $row->id, $row->nom);
}
return $options;
In my custom detail form template I added the following code to display my Picklist element :
Code:
$equipage = $this->groups['Cahier de service - Patron - Equipage'];
$elementsequipage = $equipage->elements;
$crewmember = $elementsequipage['book_crewmember']->element;
Code:
<tr>
<td>Equipage</td>
<td colspan="2"></td>
<td colspan="3"><?php echo $crewmember; ?> </td>
<td colspan="3">Parcours</td>
</tr>
I'm unable to drag an element from "Bacounis" to "Equipage".
I've checked the access rights which are ok.
http://www.screencast.com/t/kuMYFuhc
and I've got the following error
Code:
Uncaught TypeError: a.getElement is not a function picklist-min.js:2
displayed in my debug console.
Thank you in advance for your support.
Cheers,
Marc
ps: last Joomla version
last Fabrik github