Dropdown list: It needs to be kept that the default variable from the XML even if it doesn't exist in the `options` in the definition.
See original GitHub issueIs your feature request related to a problem? Please describe.
I’m always lost my default variable from XML if it doesn’t exist in the options
in the definition.
Describe the solution you’d like
Pin the default variable top even if it doesn’t exist in the present options
definition array.
Describe alternatives you’ve considered
Read the default from the XML ==> options.unshift(default variable) ==> render the dropdown component
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Overview of XML in Excel - Microsoft Support
Microsoft Excel makes it easy to import Extensible Markup Language (XML) data that is created from other databases and applications, to map XML...
Read more >Elements to be used in the XML description of the plugin
Provides a list of available strings (not R objects) to be selected in one or more accompanying <valueslot>s. String options can be defined...
Read more >XSL Transformations (XSLT) Version 3.0 - W3C
XSLT shares the same data model as XPath 3.0, which is defined in [XDM ... Required Type of a Parameter; 9.2.2 Default Values...
Read more >Chapter 17 Binding between XML Schema and Java Classes
The directory must already exist; xjc will not create it for you. -p package. Specify an alternate output directory. By default, the XJC...
Read more >Menus - Android Developers
Defining a Menu in XML; Creating an Options Menu ... Actions in a popup menu should not directly affect the corresponding content—that's ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I was referring specifically to non-variable values in dropdown fields. For my application I ended modifying the function class validation function to just add missing values to the list of options, so for now the suggestion can be ignored. I’m aware of the dynamic lists functionality and that’s probably the proper way to accomplish this.
What you say about the change taking place a few years ago is accurate, I just hadn’t updated the library for a while and when I did that change caused some problems.
Thank you for taking the time to answer!
We’re going to continue to require that the selected value in the (built-in) dropdown field is valid, so we’re not planning to implement this feature request. You can work around this by either using the dynamic dropdown options, or doing as you’ve done and create a subclass of FieldDropdown that behaves as you want in the validator.