Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

173
Views
Envío del valor de celda actual en dataURL

Usando jqGrid 4.15.6-pre - jqGrid gratis

En mi colModel estoy llenando una celda con dataURL. Quiero enviar el valor de celda actual al servidor con la URL. Lo siguiente envía el parámetro pero el valor (this.value) no está definido.

 colModel:[ {name:'id', index:'id', width:80, hidden: true, editable: true, editoptions:{ readonly:'readonly'}, editrules:{edithidden:true}, formoptions:{rowpos:1, colpos:1,label:"Index#:"}}, {name:'crrstatus', index:'crrstatus', hidden: true, editable: true, editrules:{edithidden:true}, formoptions:{rowpos:2, colpos:1,label:"Current Queue:", elmsuffix: " "}, edittype: "select", editoptions: { dataUrl: '/QMSWebApp/CustomerReturnRecordsControllerServletV8?lifecycle=customerReturnStatusOptionsLessInitialized&currentQueue='+this.value, selectFilled: function (options) { $(options.elem).select2({ dropdownCssClass: 'ui-widget ui-jqdialog zclassX2', width: 300 }); }}},
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

No puede hacerlo de esta manera en jqGrid (suponga que free-jqgrid también), ya que this.value se establece cuando se crea colModel y no está definido hasta este momento. Para hacer lo que quiere, necesitará usar un dataUrl como función y pasarle el valor de esta manera:

 colModel:[ {name:'id', index:'id', width:80, hidden: true, editable: true, editoptions:{ readonly:'readonly'}, editrules:{edithidden:true}, formoptions:{rowpos:1, colpos:1,label:"Index#:"}}, {name:'crrstatus', index:'crrstatus', hidden: true, editable: true, editrules:{edithidden:true}, formoptions:{rowpos:2, colpos:1,label:"Current Queue:", elmsuffix: " "}, edittype: "select", editoptions: { dataUrl: function ( rowId, value, name) { return '/QMSWebApp/CustomerReturnRecordsControllerServletV8?lifecycle=customerReturnStatusOptionsLessInitialized&currentQueue='+value, } selectFilled: function (options) { $(options.elem).select2({ dropdownCssClass: 'ui-widget ui-jqdialog zclassX2', width: 300 }); }}},
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!