Preserve the input when changing a dropdown - how to crack it #14014
-
|
The feature description here: #13281 - shortly, when user changes Widget Selection option from one method/constructor call to another, and both have the same parameter name, the parameter value should be preserved. Here we have a problem with "dynamic" Widget Selection configuration ( From our brainstorming, we got 4 ideas: Just wait for expression updateMost "complete" solution, requiring work only on GUI side, but bad for the user, as they will see value restored (or removed, depending on our approach) only some time after changing selection. Require Argument names in dynamic configuration
Requires some work on libraries' side. Also, I'm not sure if we want "don't preserve arguments" being a default behavior. Additional engine's API for resolving expressionsWe might ask the engine about some expression, what method pointer it calls at a given argument place. Still asynchronous, but we could call it once the widget loads, to have the information handy when the user actually clicks an option. I think it require substantial work on the engine side Dynamic config with FQN and a flag to "autoscope it"Instead of getting just No solution seems ideal to me. Any comment or other idea will be welcome. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Simple Atom SwitchHello Adam. The example provided by James in #13281 shows a simple switch from one atom of a type to another atom of the same type. E.g. the picture
shows a switch from one
Based on the above information I believe the Enso Studio can insert Know"May know" or "may guess" - the exact conditions when it is safe to know and how much safe is safe may be subject of further discussion. |
Beta Was this translation helpful? Give feedback.

Simple Atom Switch
Hello Adam. The example provided by James in #13281 shows a simple switch from one atom of a type to another atom of the same type. E.g. the picture
shows a switch from one
Filter_Conditioninstance to anotherFilter_Conditioninstance. E.g. from Filter_Condition.Equals to Filter_Condition.Not_Equal...Equalsresolves to Filter_Condition.Equals.Filter_Conditionas they are provided by @4e6's suggestion DB..Not_Equalwill resolve to Filter_Condition.Not_EqualEqualsandNot_Equalatoms have an argumenttoBased on the abo…