General Category > Help for ParamQuery Pro

dataModel url post parameter value

(1/1)

omerix:
Hello,

I am taking Json data from asp file by sending some parameters in DataModel.

Datas I am sending are like 13%MK_13. I mean I am using "%" and "_" operators to use in sql and sometimes I a using Turkish characters. However if there are ascii characters, I can not send datas.

Can I send datas which are requested as additional to url,  to URL via POST method in dataModel? 


It sends below values to the file in url:
pq_curpage=1,
pq_datatype=JSON,
pq_rpp=100

I want to do the same way:
KOD= 13%MK_13
                               
--- Code: ---dataModel: {
                                               //recIndx: "Id",
                                               location: "remote",
                                               sorting: "remote",
                                               paging: "remote",
                                               dataType: "JSON",
                                               method: "POST",
                                               //sortIndx: "Id",
                                               //sortDir: "down",
                                               colIndx:"Id",
                                               url: "json.asp?isl=Json&OZEL1=<%=Request("OZEL1")%>&OZEL2=<%=Request("OZEL2")%>&GRUP=<%=Request("GRUP")%>&KOD=<%=Request("KOD")%>",
                                               curPage: 1,
                                               rPP: 100,
                                               rPPOptions: [1, 10, 20, 30, 40, 50, 100, 500, 1000],
                                               getData: function (dataJSON) {
                                                               return {curPage: dataJSON.curPage, totalRecords: dataJSON.totalRecords, data: dataJSON.data };
                                               }
                               },

--- End code ---
Thanks

paramvir:
[ Only Pro members may read this post. ]

bravanet:
I wonder if you could solve your problem, I'm having the same problem, the lack of concrete examples of sending and receiving data this a bit difficult, if possible can you explain me how to solve?

paramvir:
[ Only Pro members may read this post. ]

paramvir:
[ Only Pro members may read this post. ]

Navigation

[0] Message Index

Go to full version