update input-field by Editing Logic Function
In the feature script, a parameter 'myCount' is limited less than or equal to another parameter 'maxOfMyCount' by Editing Logic Function.
https://cad.onshape.com/documents/bbe6f3ebb09eeeb200d9910f/v/9b806f66e23d3aee383b311e/e/c668a5d31e04466e5c8ebe6b?renderMode=0&uiState=676647ee9e78ce632fb5fa42
When I change 'myCount' to be greater than 'maxOfMyCount' in the edit dialog, the input-field of 'myCount' is not updated by the Editing Logic Function. After then the field is locked to be unable to be changed by mouse-scroll-wheel. It keeps locked even after 'maxOfMyCount' is changed to bigger.
After closing edit dialog for save and re-open the edit dialog, the field of 'myCount' is updated to the real value.
I think this is a problem of UI while Editing Logic Function correctly updates the real value inside.
Important points are:
- The real value is different from one displayed in the field of edit dialog.
- Users may be confused by lock of mouse-scroll-wheel.
This problem may be related by
https://forum.onshape.com/discussion/18685/featurescript-editing-logic-function-does-not-update-length-parameter-in-feature-ui
But this linked document is now not public, so I cannot see it.
Comments
-
Just a thought, but is your first if block even necessary? If you comment block that out does it give you the behavior you are expecting? You might also need to change the second if comparison to >= depending on whether you want the boolean to stay true, even after you continue increasing myCount.
2 -
Hi, GregBrown
I had assumed it is better that the value in the field does not exceed 'maxOfMyCount'.
I comment out the 'first if' and delete 'USHint.READ_ONLY' of isMax.
Changing 'isMax' makes 'myCount' to be minimum or maximum.
I delete 'copyOfMyCount' which is only for debugging.It has pretty good UI.
I am making the following document.
Parameter 'Current step number' is limited by max 'number of steps'.
Thank you
0

