Ben Langhinrichs

Photograph of Ben Langhinrichs
E-mail address - Ben Langhinrichs






March, 2017
SMTWTFS
   01 02 03 04
05 06 07 08 09 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31

Search the weblog





























Genii Weblog

Improving XPages rendering in five lines

Wed 13 Apr 2016, 11:11 AM



by Ben Langhinrichs
A customer wanted to know what it would take to enhance an XPages template with AppsFidelity so that the rich text content looked better on the web but also in Notes. They have lots of apps built on this same template. (I have changed one small point about the request to make it more generic.)
 
The answer in this case was, it would take five lines. Not code, but lines in the NOTES.INI on the servers where the apps lived.
 
 
1) A line to load AppsFidelity into a 32 bit Domino system (the appropriate software DLLs and license file are assumed to have been put in the Domino executable directory first)
 
extmgr_addins=AppsFidelityEdit32
 
 
2) A line to turn on AppsFidelity's XPage processing. Classic processing would take another line.
 
AppsFidelityXPagesEnabled=1
 
 
3) A line to allow all dbs with the "MegaMarketing43" template to use AppsFidelity (a single db could be specified as <dbname> or by replica as [repid])
 
AppsFidelityXPage1=Marketing43
 
 
4) A line to turn on processing when the "Research Policies" form is used
 
AppsFidelityXPage1Form1=Research Policies
 
 
5) A line to turn on processing specifically for the "Description" and "Justification" fields from the "Research Policies" form
 
AppsFidelityXPage1Fields1=Description,Justification
 
 
and that's it. Basically, you need one line per template, db or replica, and then two lines per form, though if the only rich text field on the form is "Body", you can skip the Fields line for that form. Of course, this not only allows rendering for viewing, but also editing on either the Notes client or web client.
 
Inline JPEG image
 
So, would you like to try for yourself? Request an evaluation license today.
 
 

Copyright © 2016 Genii Software Ltd.

What has been said:

No documents found

Have your say:

Name *:
E-mail:
e-mail addresses will not be displayed on this site
Comment *:


<HTML is not allowed>
Linking: Add links as {{http://xxx|title}}, and they will be activated once approved
Blocked? Unable to post a comment? Please read this for a possible explanation...