To see an example how to use Healthy Living, run the viewlet, which can be found on OTN, in the sample code area. This is, however, a functioning application and you don't need to follow a certain script.
After the Form starts up, you may either logon as an existing supplier or simply
type a supplier name and password to create a new one. The danger is that you
might mistype an existing supplier name, and inadvertently create a new user.
If you installed the demo data, then there is a supplier called Sportek
whose password is sportek.
In the Supplier Information screen, Contact Name and Email
are mandatory. Email must contain an @ to be considered valid.
In the Products screen, you may create and edit as many products as you like, upload images, etc. The only "gotcha" is that pressing the New Products button navigates you to a new record so that you can create a product. You should then press the Save button to commit the changes.
In the Products screen, the Product Tree is always present. The right
side of the screen shows either the product details, or an image. Pressing the
View Image button will toggle the image on or off. When it is on, it
covers the product details.
Whether the details or the image pane are showing, you can click around the
Product Tree. The right side will update.
Press the Upload Image button to load an image for the currently selected
product. You can upload an image for a product that already has an image. The
newer one will replace the existing one. FYI, the images are uploaded to the
middle tier, and then stored in the database.
If you upload an XML file, it needs to follow a certain format, which is still
XML. Use the products.xml file in the multimedia
directory as a template. Bascially, all of the tags need to be there, and in
the right order.
You can logon again without closing the application. Simply enter a supplier
name and password on the left, and press Go.
You can refresh the database by running
%ORACLE_HOME\\forms\\demos\sql\refresh.bat.
You will need to supply the connect string, so invoke it like this:
%ORACLE_HOME\\forms\\demos\sql\refresh.bat hl/hl@orcl
You might want to create a shortcut icon which passes the connect string. Then
you can simply double-click it. For even more convenience, you can edit the
file and hardcode the connect string. Then you can create a shortcut icon for
it, or even double-click it from the Windows Explorer.
You can even refresh the database while Healthy Living is running. Just logon
on again in the left pane, and press Go.