1 Reply Latest reply: Mar 4, 2013 3:35 AM by VikrantKorde 1 RSS

    Send NULL value in DATE while creating document in IPM 11g

    Shah
      Hi ,

      I am working on IPM 11.1.1.5 and i have a requirement where i have to create a custom form and have to create a document using IPM API'S.

      I have followed this document and achieved my functionality :-

      http://docs.oracle.com/cd/E21764_01/dev.1111/e12784/co4_document.htm#DAFDDFBB

      but in my form i have "Leavers Date" field which may contain blank in case of some employees.
      then how should i send the blank value in Date field to IPM in that case :-
      Below is a small snapshot of my code :-


      String fileName = "C:/PathToImages/invoice1234.tif";
      DataHandler fileData = new DataHandler(new FileDataSource(fileName));
      String uploadToken = docContentService.uploadDocument(fileData,
      "invoice1234.tif");

      // Index the document
      List<Document.FieldValue> fieldValues = new
      ArrayList<Document.FieldValue>();
      fieldValues.add(new Document.FieldValue("EMP NUMBER", 1234));
      fieldValues.add(new Document.FieldValue("SALARY", 4321));
      fieldValues.add(new Document.FieldValue("LOCATION", "Acme Supply"));
      *//Now in the Leavers Date i need to send blank/Null in some cases.How should i send the blank value or Null value.*
      fieldValues.add(new Document.FieldValue("Leavers Date", ???? ));
      docService.createDocument(uploadToken, invoicesAppNameId,
      fieldValues, true);

      Please suggest!!!

      Regards,
      SHAH