Hello, I'm using PB 12.1 6639 on Windows 7. Is it possible to use a computed field in a datawindow in that way that it shows either a bitmap or a text conditionally. The functionality would be like an image in html (if the picture doesn't exist, the alt-text shows instead). My use case is, that I show products in a datawindow that can be selected by clicking the computed field (on a touchscreen). Not all products have a picture, in this case the product description should be displayed. The reason, why I use a computed field instead of a picture button is, that only the computed field can show text in multi-line style. I even implemented changing of the Border-style of the CF so the user has the button look and feel. Look at the attached jpg, to see how it should work! I tried expressions in the computed field like this: 1) if (prod_image <> '', bitmap(prod_image), prod_descr) // error on verify: second and third arguments of if must be same type 2) bitmap(if (prod_image <> '', prod_image, '')) + prod_descr // shows nothing in the computed field 3) added two hidden computed fields, one with the bitmap (cf_1), one with the description (cf_2), then wanted to show them conditionally in the visible CF with 'if (prod_image <> '', cf_1, cf_2)' // shows nothing I would be glad, if someone could give a solution for this tricky situation thanks in advance, Martin
↧