Author Topic: How do I send user-defined variables to the server?  (Read 1671 times)

kjvjung

  • Pro Deluxe
  • Newbie
  • *
  • Posts: 33
    • View Profile
How do I send user-defined variables to the server?
« on: September 05, 2017, 11:44:36 am »

To achieve a specific purpose
How do I send user-defined variables and their values to the server?


For example,

<input name = "userDefine" type = "hidden" value = "12345" />

To the server is as follows.

pq_datatype:JSON
pq_filter:{"mode":"AND","data":[{"dataIndx":"company","value":"P","condition":"begin","dataType":"string","cbFn":""}]}
pq_sort:[{"dataIndx":"company","dir":"up"}]
pq_curpage:1
pq_rpp:100
userDefine : 12345


kjvjung

  • Pro Deluxe
  • Newbie
  • *
  • Posts: 33
    • View Profile
Re: How do I send user-defined variables to the server?
« Reply #1 on: September 05, 2017, 12:06:29 pm »
Sorry. I solved it myself.
We have done the following.

postData: function () {
                 return {
                     userDefine: 12345,
                     pq_curpage: pqIS.requestPage,
                     pq_rpp: pqIS.rpp
                 };
             },

Thank you ^ ^