How to simulate a radion button group in Extender Enterprise
Is there some way to have a hidden field or a variable on the window that gets set to TRUE whenever a checkbox is checked? If the variable is set to TRUE and a user tries to check a checkbox they will get an error. They would then have to uncheck the checkbox for the Primary which will set the variable to FALSE, and then they can check another row as Primary.
Any ideas or code snippets to do something like this would be much appreciated. I'm not yet Dexterity literate. Thank you.
Could they do something like dynamically populating a dropdown with the values from a representtive field in the detail, then on exiting the drop down or saving the window, run a script (SQL?) to clear all of the check marks except the one for the row selected in the drop down?
1. If you put a lookup to the manufacturer in the header portion of the window to select the primary, you could leave the checkboxes off on the bottom half.
2. You could do the lookup to the manufacturer in the header and still have the checkboxes in the bottom, but this would take some detail code to get it to read each line to see if it is that manufacturer and then what happens if the manufacturer is selected twice in the detail as that isn't going to restrict it from happening.
3. We could write a Dexterity script to check to see if you have multiple options checked as primary when you save the window and prompt the user to fix that before saving.
If you are interested in having us write something for you, just let us know by e-mailing email@example.com.
If you would like to submit an answer or comment, please sign in to the eOne portal.