Creating a UDO Manually
To create a UDO manually, follow the steps:
- Inherit from the class JROblectTemplate to create a template file.
- Inherit from the class JRVisiableResult or JRObjectResult to create a result file.
- Implement JRObjectResultCreator to create a result creator file.
- Implement interface JRObjectRender to create a result render file. If you want to display a UDO in the Design area, implement interface JRObjectEditor. If your UDO is a group level object, implement interface JRGroupListener.
- Modify the file udo.ini in
<install_root>\lib
by adding the following:Begin name=MyDbField template=myudo.MyDbFld resultobject=myudo.MyDbFldRst resultcreator=myudo.MyDbFldCreator resultviewer=myudo.MyDbFldRender End
- Compile the Java files, add the classes to the ADDCLASSPATH variable of setenv.bat in
<install_root>\bin
.Note: If you want to use class files for the UDO which have been used in previous versions, you should re-compile the source files.
Following are two specific examples about creating UDOs: