jqGrid在postData.filters.rules []中添加其他参数

时间:2015-07-01 11:16:16

标签: jquery jqgrid

我使用jQuery UI Autocomplete。 我从服务器对象获取数据:

{
    value:"Aspirin"
    data:"678,677,676"
}

此值插入html输入

"Aspirin"
数据我打算放入隐藏的html元素 我们有以下内容:

{"groupOp":"AND","rules":[{"field":"prep","op":"cn","data":"Aspirin"}]}

我需要

{"groupOp":"AND","rules":[{"field":"prep","op":"cn","data":"Aspirin","id":"678,677,676"}]}
告诉我该怎么做 谢谢!

添加信息

当我从列表中选择ui.autocomplete时,我得到了id和值。 我需要为当前列保存这两个参数,并对其他列执行相同的操作

然后在

中添加ID
filters:"{"groupOp":"AND","rules":[{"field":"prep","op":"cn","data":"АСПИРИН"},{"field":"Dozirovka","op":"cn","data":"100"},{"field":"CountryName","op":"cn","data":"Германия"}]}"

这是一个例子

filters:"{"groupOp":"AND","rules":[{"field":"prep","op":"cn","data":"АСПИРИН","id":"678,677,676"},{"field":"Dozirovka","op":"cn","data":"100","id":"1968456"},{"field":"CountryName","op":"cn","data":"Германия","id":"59"}]}"

P.S。 Олегвыслучайнорусскийнезнаете?)

0 个答案:

没有答案