318 IBM Workplace Forms: Guide to Building and Integrating a Sample Workplace Forms Application
// form=theForm.getLiteralByRefEx(null,"global.global.custom:dominoForm",
// 0, null, null);
//read xdfl form id to check, wether we already have the document
// in the database
String formID = theForm.getLiteralByRefEx(null,
"global.global.custom:formid", 0, null, null);
if (formID == null)
formID = ""; //ok no ID given - we can only insert a new doc
debugOut(" Form ID: " + formID);
//prepare piped streams to redirect xfdl data to inputstream
PipedOutputStream po = new PipedOutputStream();
PipedInputStream pi = new PipedInputStream(po);
//extract data instance from xfdl as stream
theForm.extractInstance(instanceID, null, null, po, 0, null, "[0]",
null);
debugOut(" ...