HardCorps88

Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
    Replies
  • in reply to: How to addrow to localdata and then batch save. #102243
    HardCorps88
    Participant

    Fixed my save issue up to a point.  Corrected code in my batch save but…when clicking my save button I can only get my current rows not my newrow I added.  I see all the ID’s but not sure how to get my new row added to the batch or ‘clientArray’ in order to save.  In addition how do I add the Id’s of each row including the new row to the batch?

    parameters2 = {
            rowid: ‘new_row’,
            initdata:{
                EmpID: “1234”,
                concatProjectTask: “Development”,
                TaskId: “3”,
                ActivityName: “Regular”,
                Sun: 0,
                Mon: 0,
                Tue: 0,
                Wed: 0,
                Thu: 0,
                Fri: 0,
                Sat: 0,
                Sun2: 0,
                Mon2: 0,
                Tue2: 0,
                Wed2: 0,
                Thu2: 0,
                Fri2: 0,
                Sat2: 0,
                Total: 0
           },
            position: “last”,
            edit: false
        }

    function NewRow2() {
           
            $(“#grid2”).jqGrid(‘addRow’, parameters2);
          
        }

    in reply to: How to addrow to localdata and then batch save. #102242
    HardCorps88
    Participant

    I thought I did when I used this function?

    function NewRow2() {
            var addNewRow = new Array();
            $(“#grid2”).jqGrid(‘addRowData’, ‘6’, parameters2);
          
        }

Viewing 2 replies - 1 through 2 (of 2 total)

Stay connected with us in your favorite flavor!