I run a query, add a boolean column called ‘Selection’, and assign it to a custom property. I have a power table bound to the custom property and I want to show the Boolean column as a built-in icon because the standard Boolean check box is too small. I use the following code in configureCell. My print statements show that everything is working and the returned attributes are correct, however it still shows the standard Boolean check box. What am I missing?
I tried that, but when I press the icon to change it from 1 to 0 or vice versa it just highlights the cell to where I have to physically punch in the new value and hit enter. This will not work for my situation. I guess I’m stuck with the tiny, default icon
"check2.png" in my code sample should match the image path; I didn’t have the builtin icons so I just dropped one in the root level of my image management. "Builtin/icons/24/check2.png" should work on your system.
If you close and re-open the window in the designer it should work - the initialize function of the power table doesn’t fire each time you enter preview mode, so the client property probably was either outdated or missing entirely.
Old post, sorry to bring it back but it shows on search results.
I wanted to share another possible solution instead of changing the renderers.
Just change the original value (i.e. change the query if it comes from a database) to be an integer 0 or 1, instead of a boolean, and then use iconPath on the return of the configureCell function. That way the Power Table won’t try to use a checkbox as a renderer and use the icon you want.