I just tried to implement the same functionality (switchButton/Icons) in a real migxdb CMP grid, I used exactly the same configuration as for the normal migx tv discussed in this thread, the only thing I changed is the fieldname from "published" to "extended.hitparade" as I will have to add several of these switch options to each grid row (but for now just one, to try out =D)...
the cmp grid with 2 problems:
1. the switchOption images (also) don't show, like in the setup discussed earlier (same reason, /undefined as img source) but with the additional issue, that a click doesn't have any action, the grid gets reloaded, a post is made, but it doesnt change the value of the extended field and also, unlike the other setup, a click doesn't show the cross/tick image
2. the last column is a image tv with a local url in it, but when I turn on this.renderImage for that column (in MIGX configurator), the grid doesn't even load, no idea why...
EDIT: this works now, PR sent on github, was because I had several empty image fields (null) which broke the grid and prevented renderImage from running...
In the formtabs I have set up the field extended.hitparade as listbox type with input options Nein==0||Ja==1, default value 0
in the columns I added the field extended.hitparade with the switchAction renderer as is shown below...
I also ticked the this.handleColumnSwitch under handlers.
is it even possible to use the switchActions on extended fields or any other ideas what I may be doing wrong?
EDIT: seems like not, after looking into the code it seems to only respect "publish" / "unpublish"
[ed. note: exside last edited this post 13 years, 6 months ago.]