APPLICATION DESIGN


Displaying a view as an applet in Web applications
You can display a view or an embedded view as a view applet. Here is a view applet on the Web followed by an embedded view applet on the Web:

view applet

embedded view applet

What the view applet does for Web applications

With the view applet, Web users can:


To display a view applet in a Web application

When you embed a view in a form, subform, or page, you can display the embedded view as an applet.

1. Open a view.

2. Choose Design - View Properties to open the properties box.

3. Click the Advanced tab.

4. In the "For Web Access" section, select "Use applet in the browser."

To display an embedded view applet in a Web application

You can enable an embedded view as an applet independently of the element it is embedded in.

1. Open a form or page.

2. Place the cursor where you want the embedded view to display.

3. Choose Create - Embedded element - View and select the view you want to embed.

4. Choose Element - View Properties to open the properties box.

5. Click the Info tab. In the Web Access field, specify whether this view should display as an applet by choosing one of the following:

Font support in the view applet

The view applet provides limited support for fonts. Since current versions of the Java Developer's Kit (prior to SDK 1.2) provide very limited support for text fonts, mapping between the IBMR LotusR Domino(TM) Designer font set and the font set supported by a specific Web browser is constrained by the SDK supported by a browser. This can sometimes produce inconsistent results across different Web browsers. For best results use one of the following font faces: Courier, Helvetica, or Times Roman.

Note At this time, the view applet does not support DBCS.

To program a view applet

Use these @commands to program a view applet.
@commandDescription
ViewCollapseCollapses the selected document
ViewExpandExpands the selected document
ViewCollapseAllCollapses all documents
ViewExpandAllExpands all documents
ViewRefreshFieldsRefreshes view

Upon refresh, the view applet does not delete documents marked for deletion.

MoveToTrashCauses currently selected documents to be marked for deletion
EmptyTrashDeletes documents that are marked for delete
FolderMoves or copies the selected documents to a folder
RemoveFromFolderRemoves the selected document from the current folder

See Also