Joe Sharples
Posts: 0
Joined: Mon Aug 18, 2014 1:31 pm

proj parameter self populating.

I have a service with the parameter 'proj'.

I use this service on multiple pages, some pages I use the 'proj' parameter, other pages I leave it blank because i want all the data.

Even though the 'proj' param is empty on calls from certain pages it still shows value when i test the app.

service under data tab:
Image

the default for the service:
Image

test using chrom dev tools:
Image

For some reason it populates the parameter even though I leave it blank.

Not sure what is causing this to happen. I tried clearing my browser data but it didnt seem to change anything.

A fix for this is to add the JS pre return "";/pre to the parameter.

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

proj parameter self populating.

Hello Joe,

I can't see "proj" parameter in your screenshot: https://d2r1vs3d9006ap.cloudfront.net...

M&M
Posts: 0
Joined: Tue Nov 11, 2014 6:59 am

proj parameter self populating.

A simple thing to do will be this: Have a local storage variable and map it to proj parameter in "Before send" event. Before calling the Service either set the local storage variable to blank, or some other value as required.

Joe Sharples
Posts: 0
Joined: Mon Aug 18, 2014 1:31 pm

proj parameter self populating.

Thanks M&M

Return to “Issues”