Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
Pass all row data back to PHP
24/09/2011
22:15
Avatar
RustedBucket
Member
Members
Forum Posts: 8
Member Since:
24/09/2011
sp_UserOfflineSmall Offline

So here's the bullk of my grid:

    colNames:['Catalog', 'UPC', 'Description', 'Sales Qty.', 'Back Order', 'Need', 'Order Qty.', 'Min. Qty.', 'Purchase U/M', 'Ext. Cost'],
       colModel:[
           {name:'catalog_number',index:'catalog_number', width:25, align:"center", sorttype:'int'},
           {name:'barcode',index:'barcode', width:25, align:"center",sorttype:'int'},
           {name:'description',index:'description', width:25, align:"center"},
           {name:'quantity',index:'quantity', width:25, align:"center"},
           {name:'backorder',index:'backorder', width:25, align:"center"},
           {name:'need',index:'need', width:25, align:"center",editable:true, classes: 'activecell' },
           {name:'quantity',index:'quantity', width:25, align:"center"},
           {name:'minimum_purchase_quantity',index:'minimum_purchase_quantity', width:25, align:"center"},
           {name:'stocking_unit_quantity',index:'stocking_unit_quantity', width:25, align:"center"},
           {name:'cost',index:'cost', width:25, align:"center"},
       ],
           rowNum:10,
           rowList:[10,20,30],
           pager: '#pcrud',
           altRows: false,
    viewrecords: true,

    loadonce:true,
    sortorder: "asc",
    autowidth: true,
    shrinkToFit: true,    
    height:"auto",
    scrollOffset: false,
    sortname: 'catalog_number,barcode',
   
       onSelectRow: function(id)
        {
            var gr = jQuery("#bwdetail").jqGrid('getGridParam','selrow');
            if( gr != null ) jQuery("#bwdetail").jqGrid('editGridRow',gr,{height:280,reloadAfterSubmit:false,closeAfterEdit:true});
            else alert("Please Select Row");
        },
    editurl: "/app/buyworksheetdetail/updategrid/"

Basically what it's doing is creating a grid of rows with only one cell in the row editable. If I click the cell, the modal pops up with the form for that cell. Changing the value and hitting submit works, the form is submited and I can print_r the post data but only the field I edited is passed.

I need to pass all the values in the row, but only want one editable. Any pointers? Thnx

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
51 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

OlegK: 1255

markw65: 179

kobruleht: 144

phicarre: 132

YamilBracho: 124

Renso: 118

Member Stats:

Guest Posters: 447

Members: 11373

Moderators: 2

Admins: 1

Forum Stats:

Groups: 1

Forums: 8

Topics: 10592

Posts: 31289

Newest Members:

, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information