Tutorial
Best Practice
A simple tutorial
This simple tutorial is to guide you
publish a table to web step by step. We just use text editor to edit
metadata files. To configure more complex table relationship and use
openbiz eclipse plugin, please refer to tutorial.pdf
and plugin designer manual available at the openbiz web site.
1.
Prepare
- Make sure you follow the openbiz installation steps described in
the openbiz manual
- You can bring up demo applications correctly
2. Map a
table to a DataObj
- The table must have a single primary key column (composite key is
supported in 2.1)
- We can use the attendee table in the demo database
- Copy BOAttendee.xml to BOTest.xml. Open BOTest.xml and modify the
column to field mapping under <BizFieldList>.
For example, remove the "OtherName" field.
3. Map a
DataObj to Form
- Copy FMAttendee.xml to FMTest.xml. Open FMTest.xml and modify the
column to field mapping under <BizCtrlList>.
For example, remove BizCtrl with FieldName as "OtherName"
4.
Include a Form in a View
- Copy AttendeeView.xml to TestView.xml. Open TestView.xml and
replace the FMAttendee to FMTest.
5. Test
the View
- "http://localhost/demoapp/bin/controller.php?view=demo.TestView"
- The OtherName column is not shown on the view. |