Hi,
It seems that when I add required as validation to a datetime field, this is not enforced. Not sure if this is the way to point out bugs?
Also, I would like to create a form to use for CRUD actions on one row in a table in my Joomla! database. Possibly I can use DB Record Loader and DB Save for that. However, I can find no information as to how to use these 'actions'. Is there an example out there I could use for reference?
Hint/tips appreciated!
Thanks,
Joop
It seems that when I add required as validation to a datetime field, this is not enforced. Not sure if this is the way to point out bugs?
Also, I would like to create a form to use for CRUD actions on one row in a table in my Joomla! database. Possibly I can use DB Record Loader and DB Save for that. However, I can find no information as to how to use these 'actions'. Is there an example out there I could use for reference?
Hint/tips appreciated!
Thanks,
Joop
Hi joop,
Just recording for Max to pick up:
around line 23 of html_helper.php an extra line is needed to removed a PHP Notice:
The date picker validation problem is one for Max to sort out.
You can enable the validation by adding
Like you I think you can do the CRUD with those two actions; but I find the Help notes a bit baffling, though trial and error would probably work it out. I think that the Model ID might help but I have no real idea quite what this is or how it works :-(
Bob
Just recording for Max to pick up:
around line 23 of html_helper.php an extra line is needed to removed a PHP Notice:
$tag['type'] = $fieldoptions['type'];
$tag['name'] = $fieldname;
$tag['checked'] = ''; // bugfix
The date picker validation problem is one for Max to sort out.
You can enable the validation by adding
case 'datetime':
at line 612 of admin.chronoforms.php BUT because of the way the datepicker code works the error message is hidden :-(Like you I think you can do the CRUD with those two actions; but I find the Help notes a bit baffling, though trial and error would probably work it out. I think that the Model ID might help but I have no real idea quite what this is or how it works :-(
Bob
Hi Joop,
I have placed alot of hints in the last version for the DB actions, I'm planning to add a "delete record action", but for now you may use some custom php for that, the db record loader can load only 1 record, and the multi record can load more than 1 and group them if the data is associated through many tables.
You can create and update using the db save, very easy, many hints are there as well, but if you need any help then just ask here and i will try to answer asap.
The date field validation may not work for the reason mentioned by Bob, may try to find some solution though.
Thanks Bob for the fixes🙂
Regards,
Max
I have placed alot of hints in the last version for the DB actions, I'm planning to add a "delete record action", but for now you may use some custom php for that, the db record loader can load only 1 record, and the multi record can load more than 1 and group them if the data is associated through many tables.
You can create and update using the db save, very easy, many hints are there as well, but if you need any help then just ask here and i will try to answer asap.
The date field validation may not work for the reason mentioned by Bob, may try to find some solution though.
Thanks Bob for the fixes🙂
Regards,
Max
This topic is locked and no more replies can be posted.