Serverside - how to export pdf/print a input value?
Serverside - how to export pdf/print a input value?
cmessori
Posts: 1Questions: 1Answers: 0
Hi there. im using ssp and i want to export a value from a input, only get column #6 with empty data.
This is my columndef that im using
{
targets: 6,
data: 'workorder_location_name',
render: function(data, type, row) {
return '<input type="text"' +
' style=\'font-size: 13px;padding-bottom: 16px;background:transparent;color:#000000;-webkit-transition: background .2s ease-in-out, border .2s ease-in-out;-moz-transition: background .2s ease-in-out, border .2s ease-in-out;-o-transition: background .2s ease-in-out, border .2s ease-in-out;transition: background .2s ease-in-out, border .2s ease-in-out;border: 0px solid #FFFFFF;\'" ' +
' class="form-control form-control-sm manageWorkordersLocationName"' +
' currentLocationName="'+data+'" ' +
' onClick="this.select();"'+
' disabled="disabled"' +
' workorderId="' + row.workorder_id + '"' +
' locationId="' + row.workorder_location_id + '"' +
' clientId="' + row.workorder_client_id + '"' +
' value="' + data + '"'';
},
},
This discussion has been closed.
Answers
You would use either orthogonal data data for that. See example here. You would get the value of the
input
element and return that.Or this thread offers another route: https://www.datatables.net/forums/discussion/50724/export-values-typed-in-input-box-excelhtml5#latest
Colin