EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: markalves on July 11, 2017, 09:06:11 AM



Title: Edatagrid how to add additional parameter to saveurl
Post by: markalves on July 11, 2017, 09:06:11 AM
Hi to all,
I would like to add additional parameters to the save url php script:
I tried to add these parameters to the url but they are not received from the saverow script either in POST or in GET,  in this way:
saveUrl: http://webserver.local/saverow.php?param1=1&param2=100
How I can do  ???



Title: Re: Edatagrid how to add additional parameter to saveurl
Post by: cbutaru on July 12, 2017, 12:09:22 PM
Hi markalves,
You can try to add some hidden fields with the values of your additional parameter
as <th field="param1" data-options="hidden:true  ..
If you cannot set the values for these parameters within the datagrid data
you can use calculated fields, assuming that this parameters values are changing
at the same time with the values in edited fields.
https://www.jeasyui.com/tutorial/datagrid/datagrid15.php