Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid BasiGX.view.form.AddWms when using combobox for URLs #704

Open
geographika opened this issue Aug 16, 2022 · 0 comments
Open

Invalid BasiGX.view.form.AddWms when using combobox for URLs #704

geographika opened this issue Aug 16, 2022 · 0 comments

Comments

@geographika
Copy link
Contributor

BasiGX.view.form.AddArcGISRest and BasiGX.view.form.AddWms both allow a URL to be entered in a textbox, or via a URL. The form however is only valid if the textbox has a value - when using a combobox this is never the case.

A workaround is to add the following listener to the forms:

  listeners: {
      render: function () {
          var me = this;
          var cmb = me.down('combobox[name=urlCombo]');
          cmb.on('select', function () {
              var val = cmb.getValue();
              // following field is not used when there is a combobox but the form is invalid when set to blank
              me.down('textfield[name=url]').setValue(val);
          });
      }
  }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant