How to change extraParams delimiter in ExtJS proxy?

I am stuck with issues related to additional ExtJS repository ports. I need to change the default parameter separator and configure it; since the web service I am accessing is not responding to &.

Is there a way to change the delimiter?

Leaders, Andreas

+4
source share
2 answers

ExtJS does not have anything built in to allow the setting of the parameter separator - the use of '&' is in fact the de facto standard.

However, you can change the default behavior if you need to override Ext.Object.toQueryString

Ext.define('Ext.override.CustomQueryString', {
  override: 'Ext.Object',
  toQueryString: function() {
    var queryString = this.callParent(arguments);
    return queryString.replace('&', ':');
  }
})

- . .

+1

Sencha:

yourStore.proxy.url = 'your/url/' + yourParameter + ';.....';

URL.

0

Source: https://habr.com/ru/post/1609295/


All Articles