conor roche
Posts: 0
Joined: Wed Mar 25, 2015 6:56 pm

numeric values mapped from storage to query parameters for a service which uses parameter substitution causes an error

numeric values mapped from storage to query parameters for a service which uses parameter substitution causes an error. Appery.js line 564:

var newValue = value && value.replace(this.PARAM_PATTERN, __performParametersSubstitution);

it should convert the value to a string first.

A workaround is in the js of the mapping to return "" + value;
but that is awkward.

Image

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

numeric values mapped from storage to query parameters for a service which uses parameter substitution causes an error

Hi Conor -

In what builder version have you find this, in AngularJS or jQuery Mobile?

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

numeric values mapped from storage to query parameters for a service which uses parameter substitution causes an error

Hi conor,

Please use following JS line of code in top of event handler:

pre

value = String(value);

/pre

Regards.

conor roche
Posts: 0
Joined: Wed Mar 25, 2015 6:56 pm

numeric values mapped from storage to query parameters for a service which uses parameter substitution causes an error

while your workaround will work my point was that having to put js in the event handler rather than simply dragging and dropping the mapping is a pain, i think appery should handle non string values as param vals

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

numeric values mapped from storage to query parameters for a service which uses parameter substitution causes an error

Hi Conor,

Please show us your service response parameters screen shot.

  1. open service.

  2. navigate to service tab.

  3. make screen shots

    Thanks.

conor roche
Posts: 0
Joined: Wed Mar 25, 2015 6:56 pm

numeric values mapped from storage to query parameters for a service which uses parameter substitution causes an error

here is the mapping of storage vars to service request params
Image

i have added js to convert to string. if i don't it raises an error as shown in the original screenshot when i opened this topic.

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

numeric values mapped from storage to query parameters for a service which uses parameter substitution causes an error

Hi Conor,

Unfortunatly it's not a requested information.

See details example that we need:
http://prntscr.com/6vwfe3/direct

Regards.

conor roche
Posts: 0
Joined: Wed Mar 25, 2015 6:56 pm

numeric values mapped from storage to query parameters for a service which uses parameter substitution causes an error

I don't understand why you are asking for service response parameter screenshot, the problem is with making requests and with the request parameters being numeric not handling the response.

conor roche
Posts: 0
Joined: Wed Mar 25, 2015 6:56 pm

numeric values mapped from storage to query parameters for a service which uses parameter substitution causes an error

anyways for this particular service here are the screenshots of the response. note that for this service there is no response body e.g. its a simply 200 ok response.

Image

Image

Return to “Issues”