APPLICATION DESIGN
To set applet properties
1. Select the Java(TM) applet and choose Java Applet - Java Applet Properties.
2. Click the Info tab to set any of these properties.
You can hide an applet so it appears only under certain conditions in the form or page.
1. Select the Java(TM) applet and choose Java - Java Applet Properties.
2. Click the Hide-When tab and choose one of the following:
You can hide the applet according to what client is being used to access the application. For example, you might hide an applet from a mobile user to improve the performance of the mobile application. Or you might hide an applet from a Notes user but choose to display the applet to Web clients.
You can hide the applet according to how the document is being used. For example, you might hide the applet when the document is open for editing.
You can customize the conditions for hiding the applet by writing a hide-when formula that specifies the criteria for hiding the applet.
1. Create a field named HTTP_USER_AGENT in the form where you imported or linked the applet, or in the form used by the document where you imported or linked the applet.
2. For the field type, select Text and Computed for display. Optionally, you can hide the field.
3. Enter the following formula for the field value:
When a user accesses a document that uses this form, the Web server fills in the field with a string describing the browser type and version. The format of the string differs according to the browser. Some examples:
Mozilla/3.0Gold (WinNT; I)
Mozilla/2.0 (compatible; MSIE 3.02; Update a; Windows 95)
@Contains(HTTP_USER_AGENT; "MSIE")