I have several Several Servers (notes and PHP) and want to show some Informations of my Notes Server inside (!) a PHP Page. But Notes always generate a and Section
OR
shows HTTP Web Server: Application Exception - Documents treated as HTML cannot be edited
What i am trying to do:
A have one view, containing 1 hidden Column to sort and 2 Second Column with HTML Tags
i want to search this view so i have a $$SearchTemplate for this View Containing some composed Fields like
query , query_search , totalhits and $$Viewbody
If i set Content Type of the mask to “Treated as HTML” other Others “application/xhtml” it get this message:
HTTP Web Server: Application Exception - Documents treated as HTML cannot be edited
I searched a lot on the Notes forum, but all sugestions i found does not help …
PS: If i Use ?OpenView with that view, i see the Infos, so i think it must be something with the $SearchTemplate
Call the form with the url …/formAlias?ReadForm, so it never tries to open it in edit model.
Find out about the $$HTMLFrontMatter field in the form, not sure, but it seems it could help your purpouse.
Regards, J R
Custom declaration
If the field $$HTMLFrontMatter is present on a form, its contents will be placed in the generated HTML, ahead of the tag, and the web server will not generate anything there automatically.
The expected use of this feature is to supply a custom declaration for the generated HTML.
Note that as with other of these special fields, it is the application designer’s responsibility to insure that the field is not visible on the form and that it does not allow POSTing of that field.
The content of the field is not used by the web server in any other way - it has no other effect on the generated HTML other than as described above. For example, suppling a doctype of HTML 4.01 STRICT will not cause the web engine to generate strict HTML. The content of the field is not validated in any way.
Thanks for the 2 suggestions … (but does not help …
Open with Read Form does not work for me:
i need to set “?SearchView&query=xyz” to search my View so i cannot set also a ?ReadForm
(or Better : Notes ignores the second option … )
$$HTMLFrontMatter
If this filed Includes a DocType info, it will apear on the page as Suggested … but if it is empty , Notes will add this unwanted and also some Javascript