Affichage des articles dont le libellé est Funny Problem. Afficher tous les articles
Affichage des articles dont le libellé est Funny Problem. Afficher tous les articles

Funny Problem

vendredi 13 mars 2015

This is sort of a brain-teaser (if that is allowed here). I already have a work-around but thought it interesting to share it with the board to see if perhaps better solution might exist.



I have created a fancy-schmancy form for a payroll program which can be used to enter time sheet data into the current pay period or read time sheet data from all periods. I created all the necessary handling of the switching between the size of the filter and allowing/disallowing edits on the form. Then I created a checkbox to that purpose. Alas, the switch could be only flipped once. Then it would not respond. As I was particularly thick that night, I could not figure out why. When the fog lifted I realized that the button was a form control and so itself was subject to the "Allow Edits" setting, so when the property was turned off, the check box (or radio button) would not flip. Great !



So all that work for nothing ! Luckily, I found a solution which allowed to keep all the references to "CheckEdits" switch intact with only a minor cosmetic change. How would you fix it ?



Best,

Jiri

Funny Problem

Labels