Service request parameters now returning name of parameter instead of blank.
Hi!
I am now making versjon 2 of my app
But I have come across a change in Appery builder that I have not seen before when setting up request parameters for a service.
In version one of my app I had a service like this (two parameters):
getprojects/searchfilter/numberofdays
So when I wanted to return all projects used the last 30 days the service looked like this.
getprojects//30
(Please observe the two "/" after each other. This gives med default values for that parameter in this service and in this case it means return all projects.)
But in the the last builder in the exctly same situation the name of the parameter are returned instead. In this example the name "searchfilter" with brackets on each side {searchfilter}.
I can check with javascript and I can trap the error. The value here is blank and not the text "{searchfilter}" as I had hoped. Returning a blank like "" is really what I want to do. But of course this takes me nowhere and will just give me back the error
if (value =="") {
// My code for trapping error here:
return "";
}
else{
return value;
}
Please help.
Kind regards
Ole Henrik Oftedal
Timeflex Systemer AS
Sandefjord, Norway
http://www.timeflex.no
http://www.timeflex.com