Radio Button clicking does not work if you click only once (Important Ergonomic issue) [message #1853871] |
Wed, 20 July 2022 13:36 |
Namea lasta Messages: 50 Registered: March 2022 |
Member |
|
|
Hello,
This is kind of a big problem in term of the user exprience (Ergonomics)
I made a radio button inside properties.
Lets say it contains informations about "status" or some object. (Complete, incomplete etc)
The user who selects the graphical node then select one of the radio buttons shown in the image, will find that his choice WAS NOT SAVED.
In other words: If your radio button had no value, and the user selects a new value, the new value is not saved, UNLESS you click /select TWICE or three times.
After that you will be able to select a new radio button value only once and it shall work.
Again: If you select the value of a button who has no value as a user, his selection is NOT saved unless he does several clicks.
This is a problem, because the user might think his choice was saved and move on to the next node, only to come back and find that all his choices were not saved.
|
|
|
Re: Radio Button clicking does not work if you click only once (Important Ergonomic issue) [message #1853965 is a reply to message #1853871] |
Tue, 26 July 2022 09:00 |
Glenn Plouhinec Messages: 22 Registered: April 2020 |
Junior Member |
|
|
Hi Namea,
I recently face a similar issue following https://www.eclipse.org/sirius/doc/developer/extensions-properties_provide_custom_widget_advanced.html. I created my own Widget with some text fieds and a checkbox, but the checkbox was not saved until I clicked on it several times...
In my CheckBoxPropertySection class, I had to modify the method org.eclipse.sirius.editor.properties.sections.common.AbstractCheckBoxPropertySection.getFeatureValue(String) For a checkbox, I cast the String values "true" and "false" as boolean, but in fact the returned type should match the type of the attribute defined in the metamodel (In "Custom Advanced Widget" doc, we defined an InterpretedExpression, which is a String), so the returned type for *PropertySection.getFeatureValue(String) should also be a String, otherwise the command executed in *PropertySection.handleSelectionChanged() cannot be created.
If this doesn't solve your problem, we will need more informations to help you: What did you do to add your radio button ? Did you follow this documentation? Where are you trying to add your radio button ?
Regards,
Glenn
Glenn Plouhinec - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02852 seconds