BUG with Checkbox on Layout Region!

I have a checkbox on a layout region, which dynamically changes the choices depending on the value of another field.

I have a combobox field, Reason, which stores reasons for absence, options being “Vehicle Breakdown”, “Sick”, “Family Emergency”, “Jury Duty”, etc.

When the value is “Sick”, the checkbox (which stores details of supporting documentation) has the options “None”, “Self Certificate” and “Doctors Certificate”.

When the value is “Vehicle Breakdown”, the checkbox has options of “None”, “Evidence Produced”.

When the value is “Jury Duty”, the checkbox has one option, “None”.

This all works as it should, but when a user selects “Sick” in the combobox, and then changes the value to “Vehicle Breakdown”, the old options don’t disappear. What is displayed to the user are options of “None”, “Evidence Produced” and “Doctors Certificate”. The third option cannot be selected, so this is a bug with the checkbox “not clearing it’s lines” when the choices change. This can be seen when I put a border round the checkbox, it overwrites half of the third option. This also happens when I use a hide when formula. The last one or two options are always left intact, when the whole field should be hidden.

This is for a dialog box, so a layout region really must be used, due to other constraints when this is displayed.

Anyone, any ideas??

Using different checkbox fields is not an option either, as there may be many different reasons for absence, which are added dynamically. Also I may still have problems hiding the old checkbox field.

INFO:

My “Reason” field is a Combobox, Editable and has “Refresh Fields On Keyword Change” selected. This is the formula for it’s choices:

rs:=@Unique(@DbLookup(“”;“”;“vwSystemLookup”;“ShiftReason”;2));

@If(@IsError(rs);

“NO REASONS DEFINED”;

rs)

My “Documentation” field is a Checkbox, Editable and has “Refresh Choices On Document Refresh” selected. It has 1 column. This is the formula for it’s choices:

docs:=@Unique(@DbLookup(“”;“”;“vwSystemLookup”;“ShiftReason”+Reason;2));

@Trim(“None”:@If(@IsError(docs);“”;docs))

My options are stored in documents in a “lookup view” and have the following values:

ShiftReason

Operator Error|1

Sick|2

No Show|3

Vehicle Breakdown|4

Previous Client Emergency|5

Family Emergency|6

Late Request|7

Weather Emergency|8

Jury Duty|9

ShiftReason1

(no values)

ShiftReason2

Self Certificate|1

Doctors Certificate|2

ShiftReason3

(no values)

ShiftReason4

Evidence Produced|1

ShiftReason5

(no values)

ShiftReason6

Evidence Produced|1

ShiftReason7

Evidence Produced|1

ShiftReason8

(no values)

ShiftReason9

Evidence Produced|1

The “Documentation” field (checkbox) also has a Hide-When formula:

!Reason=“2”:“4”:“5”:“6”:“7”:“8”

TIA

Charlie

Subject: BUG with Checkbox on Layout Region!!

Are you sure you want a checkbox? Usually, when I’m sick, I should not be able to check both None, Self and Doctors certificate…?So then you could replace the checkbox with a listbox (which is always of the same size, thus the bug goes away).

You probably also want to set the value of that field to nothing in case of “Jury Duty” - and hide the listbox?

Not a solution, but your problem goes away?

Subject: RE: BUG with Checkbox on Layout Region!!

I need a checkbox, cause you can have a self certificate and if your still sick after 7 days then you need a doctors certificate too. I have code to uncheck “None” if another is checked and vice versa.

Got it all working using layers though!

Thanks for your input anyway, I’ve only just seen it!!

Charlie

Subject: BUG with Checkbox on Layout Region!!

Look at NoCache or ReCache rather than using “” which equals Cache. That might be causing your issue.

Also, make sure you are refreshing choices on the checkbox (2nd tab I think).

Subject: RE: BUG with Checkbox on Layout Region!!

The problem is with the displaying of the options, not retreiving them. That works fine, when the options are retrieved, the old one remain visible, but not selectable!

I have selected the appropriate check boxes.

Charlie

Subject: RE: BUG with Checkbox on Layout Region!!

Sorry to hear that you’re having a problem. However, it may not be as necessary as you believe to use a layout region for this. I’ve designed a lot of dialogs, and situations where you can’t use a table are pretty rare. Since you don’t explain what your reasons are, it’s hard to say for sure in your case. But I haven’t created any layout regions for at least two years.

Subject: RE: BUG with Checkbox on Layout Region!!

The main reason I am using the layout region, is because of the layout the dialog has to follow. There are many more fields on the form, which “overlap” each other and are turned “on” and “off” using Hide-When formulas. It would be nigh on impossible to achieve this using a table or simple form, but I may have to.

Point is, this MUST be a BUG in Notes, surely? The whole point of having “Refresh Choices On Document Refresh” goes out the window if, when the new list of choices is smaller, the old choices are not cleared from the screen.

Thanks for your input,

Charlie.

Subject: RE: BUG with Checkbox on Layout Region!!

I personally still prefer layout regions to tables for my dialog boxes, and while I can’t say that I’ve ever seen the behavior you describe, it is possible that it’s a bug specific to checkbox fields in layout regions.

Try using a one-cell table containing layers to meet your positioning/overlap needs. Layers put the last nail in the layout region’s coffin by providing, well, layering (that works in both Notes and the web) without the need for layout regions.

Subject: RE: BUG with Checkbox on Layout Region!!

The bug does only happen in a layout region.

Layers! Well I haven’t tryed them before, but I did come accross a post on here about a bug when using checkboxes on a layer, so I was trying to stay clear of that!

http://www-10.lotus.com/ldd/nd6forum.nsf/55c38d716d632d9b8525689b005ba1c0/0d36115ae20e7d2385256c550042be3d?OpenDocument

But if all else fails, you have to explore all options, so I’ll give it a go. Wish me luck!

Thanks for your suggestion,

Charlie.

PS

How do I go about letting IBM/Lotus know about the bugs I find??

Subject: RE: BUG with Checkbox on Layout Region!!

How do I go about letting IBM/Lotus know about the bugs I find??

http://www-1.ibm.com/support/docview.wss?uid=swg27002638