question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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 issue

Is 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:closed
  • Created 3 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
nickvarascommented, Mar 8, 2021

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!

0reactions
maribethbcommented, Dec 7, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found