View Template Question

I have a view template to process selected documents. (The solution is described at http://www.codestore.net/store.nsf/unid/EPSD-5GMT3B?OpenDocument )

At the bottom of the view template is a tagset which appends a response form to display response documents.

Within this tagset the following was added:

1.) A button which opens a dialog box through its onClick event.

2.) A field to capture the value of the dialog box selections.

Both the button and the field were converted to HTML.

I’ve found that selected items in the dialog

box are not copied to the field described in item 2. However, selected items in the dialog box are copied to the field if the field is instead located on the view template. In other words, even though the dialog box (child) is launched by a button on the response form, the dialog box interprets the view template as being its opener (parent).

I’d appreciate any ideas on how the dialog box can copy selected items to a field on the response form rather than to a field on the view template.

Thanks.

Subject: View Template Question

The ViewTemplate is the whole page. There are now two or more forms on the $$ViewTemplate. If you use document.forms[0].FieldName, you are trying to get the field in the FIRST on the page. Look at the HTML source, and determine which you are aiming for. If it’s the second, use forms[1], the third, forms[2], etc. If the form is named (has a name= attribute in the HTML), then you can use document.forms[‘formname’].