Xojo Conferences
MBSOct2019CologneDE

DynaPDF Manual - Page 217

Previous Page 216   Index   Next Page 218

Function Reference
Page 217 of 767
" for (var i = 0; i < oParam.oDoc.numFields; ++i)\n"
"
{\n"
"
var strFieldName = oParam.oDoc.getNthFieldName(i);\n"
"
var f = oParam.oDoc.getField(strFieldName);\n"
"
if (f != oParam.oTarget && f.type != \"button\")\n"
"
{\n"
"
if (bNeedTab)\n"
"
{\n"
"
if (oParam.bFieldNames)\n"
"
strNames += \"\\t\";\n"
"
strValues += \"\\t\";\n"
"
}\n"
"
if (oParam.bFieldNames)\n"
"
strNames += strFieldName;\n"
"
strValues += f.value;\n"
"
bNeedTab = true;\n"
"
}\n"
"
}\n"
"
if (oParam.bFieldNames)\n"
"
return strNames + \"\\n\" + strValues;\n"
" else\n"
"
return strValues;\n"
"}\n"
"try\n"
"{\n"
" event.value = strTabDelimited({oDoc: this, oTarget:"
"event.target, bFieldNames: true});\n"
"}\n"
"catch(e)\n"
"{\n"
" event.value = \" \";\n"
"};\n";
act = pdfCreateJSAction(pdf, updateBarcode);
// Add the action to the barcode field
pdfAddActionToObj(pdf, otField, oeOnCalc, act, f);
pdfEndPage(pdf);
// Make sure that a viewer updates the field appearance
pdfSetNeedAppearance(pdf, true);
retval = pdfCloseFile(pdf);
pdfDeletePDF(pdf);
return retval;
}
 

Previous topic: CreateBarcodeField

Next topic: CreateCheckBox