Creating an embedded editor
About this task
You can embed an editor into a form. One use of the embedded editor is to let you embed one or more forms into an existing form. Another use of the embedded editor is targeting in which you link an embedded editor to an embedded view. Targeting allows the user to edit documents in a view without having to open separate windows.
You can do almost everything in an embedded editor that you can do in a document. However, you cannot include the following in an embedded editor: buttons, action hotspots, formula popup hotspots, computed text, or navigators. Note also that you should not use embedded editors in animated tables.
To create an embedded editor
Procedure
- Create a form or open an existing form.
- In the form, place the cursor where you want to create the embedded editor.
- Choose Create - Embedded Element - Editor. The Insert Embedded Form dialog box appears.
-
Choose one of the following options:
- None
- An existing form from the list of forms
- Insert form based on formula
-
Choose Element - Editor Properties to open the Embedded Editor Properties box. Click the Info tab, and then set any of the following properties:
- Name - enter a name for the embedded editor. Entering a name is necessary only if you are targeting to an embedded view.
- Size - enter a size in inches for the width and height of the embedded editor. Alternately, you can check "Fit to window" for the width and for the height.
- Type and Value - these fields are automatically filled out, depending on how the editor is created. The following values may appear:
- Hide action bar - selecting this causes the action bar of the form you inserted to be hidden. If it is unchecked, the action bar is displayed.
- Disable scroll bars - selecting this hides scroll bars. If it is deselected, the embedded editor shows scroll bars when all of its content does not fit on the screen.
To use an embedded editor for targeting
About this task
You can place one or more embedded views on a form and then link them to one or more embedded editors. This feature, called targeting, allows users to edit documents in a view without having to open separate windows.
Procedure
- Create a new form.
- Choose Create - Embedded Element - Editor.
- Select None in the Insert Embedded Form dialog box and click OK.
- Choose Element - Editor Properties. The Embedded Editor Properties box opens.
- Specify a name for the embedded editor and close the properties box.
- Choose Create - Embedded Element - View. The Insert Embedded View properties box appears.
- Choose a view and click OK.
- Choose Element - View Properties. The Embedded View Properties box opens.
- In the "Target Frame" (for single click) field, enter the name of the embedded editor that you want to link to. Close the properties box.
- Save and close the new form.
- Create a new document with the form.
- Highlight a document in the embedded view. The document opens in the embedded editor. You can now edit that document in the embedded editor. You can then switch to another document in the embedded view and continue editing.