I’m using a $$ViewTemplate to process selected documents on the web. This solution is described at http://www.codestore.net/store.nsf/unid/EPSD-5GMT3B?OpenDocument
This solution requires that the embedded view in the $$ViewTemplate display its contents as HTML. However, this seems to prevent twisties from being added to a view with categorized columns.
As an alternative option, displaying the view contents as a Java applet allows twisties to be added, but it also results in HTML tags being displayed and hides a column with check boxes that are used to select documents.
I’m therefore interested in whether either of the following two options might be possible:
1.) Add twisties to a view that displays its contents using HTML.
2.) Hide HTML tags and include a column for checkboxes in a view that displays its contents using a Java applet.
Thanks.
Subject: $$ViewTemplate Question
-
Yes – but it takes a bit of doing. Lots o’ JavaScript in the view. Not for the faint of heart.
-
Feggeddabowdit.
3 - the unasked question being “if I use passthru HTML in a display-using-HTML view, which gives me twisties for free, can I still create the checkbox fields?”) Yes.
In a column, use:
“[” + “<input type="radio" name="whateverJakeSaid" value="” + @Text(@DocumentUniqueId) + “">]”
The “[” at the beginning is seaparate to get around the passthru-stripper on this forum.
Subject: RE: $$ViewTemplate Question
I didn’t follow what was suggested about using ‘passthru HTML in a display-using HTML view’. Here’s what I thought might have been suggested:
-
Modify the checkbox column in Jake’s solution by removing the and tags from this column (as well as the related tags from the other columns).
-
In the view properties (Advanced tab) deselect the HTML option (as well as the applet option).
-
On the $$ViewTemplate, swipe the $$ViewBody field and select ‘Convert to HTML’.
This resulted in no columns being displayed on the web. If possible, please clarify what was suggested. I’m assuming that this is intended to be compatible with Jake’s solution.
Thanks.
Subject: RE: $$ViewTemplate Question
The $$ViewTemplate is likely set to “Treat content as HTML”, then. You’s need to set it to “Notes” and get rid of the extraneous HTML. You can keep the necessary stuff as passthru HTML, and you’ll need to start the body content with a tag to close Domino’s default form before beginning your own. Change any JS references from forms[0] to forms[1], etc…
Or you can code the twisties yourself. Hint – hard-code an “expand me” image & link, then use JavaScript in the lower-level document rows to flip the image and link to “collapse me” when they’re displayed.