Write a Custom Work Item Form

HTML form is used to write a work item. The HTML form is used as input to XMLC. XMLC generates a compiled Java class (XMLC component). Each ID in the HTML page is converted to an access method in XMLC component. The XMLC component is used by the application to access HTML element using XMLC APIs, set values and generate HTML.

The compiled Java class implements application interfaces such as IMqContent and IWorkItemDisplayDoc. These interfaces are used by the application to access the HTML elements. That is why your HTML page must have the following elements with a predefined ID. The IDs are:

  • hiddenRetURL
  • hiddenURLCtr
  • divHeadId
  • divBodyId
  • command
  • work itemid
  • closedgroup
  • opengroup
  • numberOfRows
  • status
  • endday
  • endmonth
  • endyear
  • startday
  • startmonth
  • startyear
  • buyer
  • marketplace
  • recordcount
  • pagebeginid
  • pageendid
  • dir
  • doctype
  • setbeginid
  • numberOfRows
  • trAttachments
  • aAttachments
  • trPrintableVersion
  • aPrintablePO

You can use these IDs appropriately in your page.

Apart from these elements you may want to display some additional information from the source XML which will be an MLXML document for the work item.

Use an HTML editor to draw the layout and appearance of the form. Assign unique IDs to each HTML section that needs to be populated with a value.