Stubborn error
Stubborn error
nskwortsow
Posts: 120Questions: 0Answers: 0
Hi,
I have followed everything to the letter, but get the following error:
Undefined index: tblExerciseEquipment in /Users/nathan/Sites/x/functions/datatables/Editor/Join.php on line 474
### Editor:
{
"label": "Equipment:",
"name": "tblExerciseEquipment[].EEquipmentID",
"type": "checkbox"
}
### PHP:
Join::inst( 'tblExerciseEquipment', 'array' )
->join(
array( 'EID', 'f_EID' ),
array( 'EEquipmentID', 'f_EEID' ),
'tblExercisesXEquipment'
)
//->set(false) // Isolated the error to this join
->field(
Field::inst( 'EEquipmentID' )->validator( 'Validate::required' ),
Field::inst( 'EquipmentName0' )
)
### Database:
3 tables:
tblExerciseEquipment
tblExercises
tblExercisesXEquipment
All primary keys are INT(autoincrement).
As shown in your examples, my goal is to update tblExercisesXEquipment with the exercises checked on the user form.
###
I would appreciate any pointers!
- Nathan
I have followed everything to the letter, but get the following error:
Undefined index: tblExerciseEquipment in /Users/nathan/Sites/x/functions/datatables/Editor/Join.php on line 474
### Editor:
{
"label": "Equipment:",
"name": "tblExerciseEquipment[].EEquipmentID",
"type": "checkbox"
}
### PHP:
Join::inst( 'tblExerciseEquipment', 'array' )
->join(
array( 'EID', 'f_EID' ),
array( 'EEquipmentID', 'f_EEID' ),
'tblExercisesXEquipment'
)
//->set(false) // Isolated the error to this join
->field(
Field::inst( 'EEquipmentID' )->validator( 'Validate::required' ),
Field::inst( 'EquipmentName0' )
)
### Database:
3 tables:
tblExerciseEquipment
tblExercises
tblExercisesXEquipment
All primary keys are INT(autoincrement).
As shown in your examples, my goal is to update tblExercisesXEquipment with the exercises checked on the user form.
###
I would appreciate any pointers!
- Nathan
This discussion has been closed.
Replies