I’m using a color swatch as a computed table cell background to indicate ‘required field’; field is blank, table cell is colored; put the data in, cell goes clear/white.
It works great in the client.
MOST of the cells show the background color in the designer - I’m guessing the designer sees the referenced fields as blank so the cell image is displayed in the designer.
Except for one field/cell combination. The field is a date field using a date selector. In the designer client, the cell shows white/clear.
Not a big deal since the cells actually work in the client, but it seems a bit odd and I can’t figure out what’s going on. Anybody know?
Thank in advance.
Doug
Cell formulas are along the lines of @If(MyField = “”;“blue.jpg”;“”)
Subject: RE: Computed table backgroud - works in client, but designer, not so much
Hmm, well, looks like Domino Designer is smarter than the Notes Client: Designer knows immediately, that DueDate is a date field, so it’s value can never be the empty string.
Put @Text around DueDate, and it works in Designer as well. Not that this is of any use (as far as I can see), but it comes as as surprise.
Subject: RE: Computed table backgroud - works in client, but designer, not so much
The fields are both computed (formula = field name) and open for user entry. In this case, the field name is ‘DueDate’, it’s a date field, calendar control, and the cell image formula is @If(DueDate = “”;“blue”;“”).
Text, computed, name “PartNumber”, value set via a button that looks up a list of Part Numbers and sets the field value once selected. Table image formula: @If(PartNumber = “”;“blue”;“”)
Like I said, all the fields follow the same concept, use pretty much identical formulas structures and all of them work in the client (ie, DueDate is blank, cell image is blue - select a date using the date picker, tab out to another field and the cell image goes clear/white).
It is ONLY in the designer that the cell color is white/clear and just for the DueDate field.
Subject: RE: Computed table backgroud - works in client, but designer, not so much
No default value. If there was, then the client would be missing the blue image when a new doc is created and that’s not happening; new doc, blank field, blue image background.
It’s like the designer thinks date fields have some default value but the client knows that’s not the case…