dear friends,
I have a simple question:
how can I add a simple button in toolbar tasks that directly edit a binary field from 0 to 1 in a selected record? I found documentation about _DELETE_, _EDIT_, _NEW_ but nothing about a binary modification.. please if possibile I just want to change a field called input_status from 1 to 0 directly from a toolbar button on the selected records.
Sorry for my poor english
thank you
Hello,
this is explained in the help string below the toolbar buttons field:
_BINARY_:Publish/Unpublish:1:Comment.published
where "Comment.published" is the MODEL.field
Regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
Hi,
This string is correct:
_BINARY_:Publish/Unpublish:1:input_status
But if you have a Model id then you have to add it before the table's column name:
_BINARY_:Publish/Unpublish:1:MODEL.input_status
How do you know it doesn't work ? what about the other toolbar buttons ? do they work fine ?
Regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
Hi Max
I tried your solution and it works only if you change the state from 0 to 1, not from 1 to 0
dont you know where is the problem?
thx
Hi,
It should work in all cases assuming that you have the latest versions and everything is setup correctly.
Do you need to do the switch through a toolbar button ? you can do it through the "binary fields" list.
You may also contact me through the "contact us" page to test this on CCv5, its better but has a different interface.
Regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
Hi Max,
I tried it with binary field, but with same result. If field has 0 and I click on then it changes to 1. but from 1 to 0 it doesnt works.
thx