Creating Shared Applets

The shared applet resource provides a storage area within an application for an applet and all its related files. When this is added to the database, you can reference the shared applet from multiple agents in the database. It also makes it easy to create applets in a template file and apply those elements to multiple databases.

You can create a shared applet resource from the Design pane for applets. The New Applet Resource button provides the ability to locate the Java applet files in a dialog box, as shown in Figure 7.11. This dialog box operates in the same way as the Define Java Agent Files dialog box, in that it is accessed from the Agent design screen when importing a Java applet. This is covered in detail in Chapter 18, "Writing Java for Domino Applications." After the files have been selected, a name must be entered for the applet resource. Domino then creates the entry for the shared applet resource by making it available in the Work pane.

Figure 7.11. Files can be selected from the Locate Java Applet Files dialog box.

graphics/07fig11.jpg

A shared applet resource can be refreshed after modifying the applet and also can be exported. Use the Refresh button to refresh the applet, and use the Export button to export (save a copy of) the applet to your computer.

To insert the applet files using the applet resource in a form, page, subform, or rich-text field, choose Create, Java Applet from the menu bar. Choose the Locate button to invoke the Locate Java Applet Files dialog box to select the applet and add it to the form, page, subform, or rich-text field.

Part I. Introduction to Release 6

Whats New in Release 6?

The Release 6 Object Store

The Integrated Development Environment

Part II. Foundations of Application Design

Forms Design

Advanced Form Design

Designing Views

Using Shared Resources in Domino Applications

Using the Page Designer

Creating Outlines

Adding Framesets to Domino Applications

Automating Your Application with Agents

Part III. Programming Domino Applications

Using the Formula Language

Real-World Examples Using the Formula Language

Writing LotusScript for Domino Applications

Real-World LotusScript Examples

Writing JavaScript for Domino Applications

Real-World JavaScript Examples

Writing Java for Domino Applications

Real-World Java Examples

Enhancing Domino Applications for the Web

Part IV. Advanced Design Topics

Accessing Data with XML

Accessing Data with DECS and DCRs

Security and Domino Applications

Creating Workflow Applications

Analyzing Domino Applications

Part V. Appendices

Appendix A. HTML Reference

Appendix B. Domino URL Reference

show all menu



Lotus Notes and Domino 6 Development
Lotus Notes and Domino 6 Development (2nd Edition)
ISBN: 0672325020
EAN: 2147483647
Year: 2005
Pages: 288
Similar book on Amazon

Flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net