Lotus notes - how to view forms as HTML? - lotus-notes

I have just installed lotus designer 9, and I created a new project with a notebook template. Now I am looking through forms, views, pages etc. and I can see all the controls, at the bottom I have so-called 'programmers pane', but if I wanted to put some of my own html, or adjust a little bit the existing one, I cannot.
So my question is - how do I enable html view? When I open a form, and go to View, I can see that there is an option HTML Editor, but it is grayed out, what am I missing?

HTML is not the storage format for forms, behind the scenes. Forms are stored in a proprietary rich text format, and conversion between that and HTML is not exact. So there is no "HTML view" of a Notes form.
You can type HTML text onto the form, highlight it, and designate it as "pass-thru" (Menu 'Text > Pass-Thru HTML'). If accessed via the web, the exact HTML you enter here will be included in the HTML sent to the browser. The Notes client will also convert pass-thru HTML to Notes rich text for display, provided this option has been enabled in the form properties.

Related

Can we get URL details of a HotSpot Link inside a richtext content

Is it possible to get the URL details of a Hotspot link inside a RichText content.
Like we can get the DocLink details inside richtext with the help of NotesRichTextDocLink class
Access to Rich text using the native classes of Domino is relly limited. Thus, I'd suggest to export the Rich Text to HTML and parse it to get the url of the link.
See: How to export Rich Text fields as HTML from Notes with LotusScript?
My prefered way is ConvertToMIME.

Orchard CMS adding an additional HTML part to page content type?

I'm trying to break my body into pre content, content, and post content so I can inject ads and what not within my articles. The only HTML field module is broken for 1.4 at the moment and I can't seem to add additional body parts to the page. I'm having to create my pre content in the body, then cut the HTML into a pre conntent text field. And do the same thing for post content. There's got to be a better way to do this. Is there any way to have more than one HTML editor field in the page editor?
As I told you in another answer, you can configure the Text field to use HTML. Just add the text field, and then expand it in the type editor. There is a drop-down where you can choose HTML.

InfoPath - Adding an iFrame into a Rich Text Field (web-enabled form)

This question Infopath textbox displaying html tags answers how to use an RTF in InfoPath to display HTML. As far as [b] and [img] go it all seems to work fine, but any use of [iframe] only seems to work in InfoPath preview mode, and not in the InfoPath browser forms at all. The RTF does not display the iframe and I can see no trace of it in the source of the page. My goal is to display a PDF from a SharePoint list in an InfoPath browser form.
Is this possible in InfoPath web forms?
From what i know, InfoPath Browser-Enabled Forms are very limited when it comes to RichTextBox's functionallity - only the OOTB tags (as given in the Toolbar) will work 100% correct.
I'm not sure if the ifram tag will work, but if it does, you'll have to code it like in this article.
copypasted snippet:
MainDataSource.CreateNavigator().SelectSingleNode("//my:rtfField", NamespaceManager).AppendChild("<h2 xmlns=\"http://www.w3.org/1999/xhtml\">Header Text</h2><p xmlns=\"http://www.w3.org/1999/xhtml\">This is some paragraph text.</p>");

Printing a webpage with JSF

I have seen webpage with a PDF icon, where you could click on it to print the content of that webpage.
The page i am intending to add the print feature is designed in JSF, so is there anyway where i could add a print button, to get the webpage printed ?
No, you must do this yourself. Get some PDF library (for example iText), then get web page output (plain HTML). Then you will have to iterate thru HTML and create PDF version (for example build iText document). You will probably have to do this yourself, because some elements (javascript powered) will need to turn into static content. Nobody but you knows how the output should look like.

How to change teamsite text layout programmatically?

I have a code that creates a teamsite. After that I add some web parts to wiki web part zone(rich content area). In SharePoint 2010 user can change a text layout of the rich content in page edit mode.
Is there any way to programmatically change the text layout of the rich text area? I would want to set "two columns with header"-layout after site creation has completed.
My site is created like this.
site = elevatedSite.SelfServiceCreateSite(params.....);
rootWeb = site.RootWeb;
rootWeb.ApplyWebTemplate("STS#0");
SPListItem currentItem = rootWeb.Item;
var xhtml = currentItem[SPBuiltInFieldId.WikiField] as string;
Now I can modify the xhtml string and save it back to the page. I have tried to change it so that it contains exatly the same html structure which have created by sharepoint itself, when changing the text layout. After that change, actually it is not recognized as "two columns with header"-layout in sharepoint. It is still default one-column layout. Is there anybody who knows is it possible to change the text layout of the rich text area programmatically?
I found answer from here http://donalconlon.wordpress.com/2010/05/04/sp2010-creating-a-wiki-page-using-the-om/. SharePoint stores the information about used layout to the hidden span-element in wiki page.
For example, this presents two column layout without the header or footer.
<span id="layoutsData" style="display: none">false,false,2</span>
first false = no header
second false = no footer
2 = two columns
I have been looking for some information on doing the same thing. I found this blog post that checks out the page, edits the content then publish and approves it.
SharePoint 2010 change page content data through Object Model / API – Console Application
If you need to modify pure HTML content, its better to use cutom IHttpHandler (wrapped in dll) and connect it to SharePoint via web.config. Is is also allowing to modify dynamic content like AJAX responses.

Resources