Note that there are some explanatory texts on larger screens.

plurals
  1. POjqgrid add row and send data to webservice for insert
    primarykey
    data
    text
    <p>I have been able to pull data from my DB using jQuery/Ajax from a webservice into the jQGrid. Now I would like to send added/edited data back to the webservice. I've seen some examples by using PHP and the editurl: command. Will that work for webservices as well (like how I pulled down the data originally)?</p> <p>I've looked over the examples several times. I even found <a href="https://stackoverflow.com/questions/2648905/how-to-edit-or-add-a-new-row-in-jqgrid">another question</a> that is similar to what I'm asking however, I am unable to find any real examples of how to do what I need. Do any exist? </p> <p><strong>:UPDATED:</strong></p> <pre><code>jQuery(document).ready(function () { jQuery("#list").jqGrid({ datatype: processrequest, mtype: 'POST', jsonReader: { root: "ListExercise", //arry containing actual data page: "Page", //current page total: "Total", //total pages for the query records: "Records", //total number of records repeatitems: false, id: "ID" //index of the column with the PK in it }, colNames: ['Id', 'Exercise'], colModel: [ { name: 'exercise_id', index: 'exercise_id',editable:false }, { name: 'exercise_value', index: 'exercise_value',editable:true } ], caption: 'MyFitnessApplication', pager: '#pager', rowNum: 10, rowList: [10, 20, 30], sortorder: "desc", viewrecords: true, height: '250px', loadonce: true, editurl: "../webService/exercise_ws.asmx/insertRecord" }).navGrid('#pager', { edit: true, add: true, del: false }); }); </code></pre> <p>As you can see I added the editurl tag. That does seem to call my webservice. Now I'm missing how to pass the actual parameters to the webservice. I'm missing something, and help is appreciated!</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload