Click here to Skip to main content
15,891,657 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,
i am trying to zoom the plots which having plot numbers like
1
102,103
101&10
A/1
2-(A)
and ect.its working fin for all combination numbers except 101,102&103 combination its trowing error:
C#
1 feature types requested, but found 2 view params specified

views in geoserver:
C#
select * from plotboundary where nmindar='%nmindar%' and plno='%plno%'


parametrs:
C#
Name   |Default Values|Validation regular expression
nmindar|Hanagawadi I A|^[\w\d\s]+$
plno   | 1            | ^[ A-Za-z0-9_ *@.#&+-,()-_\/{,&}]*$


passing values using ajax:
C#
var nmindar = $("#ddlIndustrialarea").val();
      var plno = $('#ddlPlot').val();
      $.ajax({
          url: 'http://192.168.XX:8089/geoserver/XX/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=XX:vwplot&maxFeatures=5000&outputFormat=text/javascript',
          contentType: 'application/json',
          dataType: 'jsonp',
          jsonpCallback: "parseResponse",
          data: {
              viewparams: "nmindar:" + nmindar + ";plno:" + plno
          },


What I have tried:

i have tried to change regex but getting same error
Posted
Comments
Herman<T>.Instance 15-Jul-16 2:34am    
Did you debug?
Veena Hosur 15-Jul-16 2:55am    
in firebug its showing ajax response like that

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900