Forums

how to customize toolbar tasks

silvered.dragon 23 Jul, 2013
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
Max_admin 27 Jul, 2013
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 ?
silvered.dragon 31 Jul, 2013
Hi admin and thank you for your reply but I'm totaly noob and I can't figure out from this, so please tell me if in my database table the binary field that I want to change with a toolbar button is "input_status" I will have to modify the string in this way

_BINARY_:Publish/Unpublish:1:input_status

right?
but obviously this is not working..sorry for my inexperience and please tell me the right way to customize this string.
thank you
Max_admin 05 Aug, 2013
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 ?
admin_wiky 06 Aug, 2013
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
Max_admin 10 Aug, 2013
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 ?
admin_wiky 13 Aug, 2013
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
silvered.dragon 23 Aug, 2013

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


thx max and sorry for my late answer but I still cannot figure out from this.. I have configured the right string and I don't have any model ID but when I check a box for use a toolbar button I always receive a message " You have to to check a record from the list" like in the attached immage..Delete and new buttons are working as well.
Any suggest?
This topic is locked and no more replies can be posted.