Icons on forms possible?

jeroen

New member
Hi,

Just installed last release of dadabik Pro.

Suppose I have a boolean field and want that to be represented on the details form by a red (0) or a green (1) icon.

I was wondering, if and how I can do that and if I can use custom icons.
(I suspect I will need the enterprise version and use create custom php pages...?)

Thx!
 

eugenio

Administrator
Staff member
Hello,
you just need a custom formatting function, available in DaDaBIK Pro as well.

Pay attention to this item (documentation, known limitations):

"Database BIT and Boolean field types at the moment are not fully supported, use INT (1/0) or char(Y/N) instead."

Beset,
 

jeroen

New member
I got the custom format function working but this would require me to check which icon belongs to which sensor within the function. So I am now trying a solution where I store the icons within the database.

So I now have two image fields in my database with an "icon_on" and a "icon_off" belonging to a specific sensor.
I would like to select/show the icon depending on the value of a field in another table. Can I do this within a datagrid template, maybe with PHP?

Or do you have another solution?

thx!
 

eugenio

Administrator
Staff member
Hello,
I don't think I have understood your question, you can use custom formatting functions even for the results grid, is there a specific reason why you want to use a template?

Best,
 
Top