Home > Domino Tips > Developer > Other > Combining text fields and html for the best of both worlds
Domino Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

OTHER

Combining text fields and html for the best of both worlds


Todd Carey
03.06.2002
Rating: -2.67- (out of 5)


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


I have a form which is being accessed via Notes as well as Web browser. I was using pure html for the Web version of a text field per documentation on the IBM Web site:
http://www-1.ibm.com/support/manager.wss?rs=0&rt=0&org=sims&doc=0B17BC13887324AB862565E90057BE29

This allowed me to control the size and behavior of the text box. (Using the html attributes of a text field, you can only control how long a field is, and how many characters you can enter. )

Problems with this setup - when you open an existing document in read mode via Web browser the html will not display the existing text field value and more importantly, when you do switch to edit mode, any previous value entered will not be displayed.

Solution:
I have an editable text field called Comments_1 with a hide when formula of:

@IsDocBeingEdited & @IsMember("$$WebClient";@UserRoles)

I have a computed text field whose formula and hide when formulas are:

"[<TEXTAREA NAME=" + "" + "Comments_1"+ ""+ " ROWS=7 COLS=50>]"+Comments_1+ "[</TEXTAREA>]"
!@IsDocBeingEdited | @IsNotMember("$$WebClient";@UserRoles)

This gives me the best of both worlds. I am able to use html to format the fields as I want, and I don't lose any values when accessing a previously created document via the Web browser.
(NOTE: Only tested using I.E. 5.5)


Rate this Tip
To rate tips, you must be a member of SearchDomino.com.
Register now to start rating these tips. Log in if you are already a member.




Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED CONTENT
Other
Create a dynamic user-driven navigator for a Notes/Domino application
How to apply XSL style sheets to XML views
Comparing replicas on clustered Lotus Domino servers
Creating a Lotus Notes view column categorized by month
Using the XMLHTTP object for integration with Domino or any RDBMS back end
Hiding field properties/data from DocProperties box
Export a view to Excel without coding
Prevent document deletion if there are response documents
Switching between test IDs quickly
AddParameter to a NotesXSLTransFormer

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary

DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



Domino & Lotus Notes Security Solutions: Authentication, Antispam, Encryption and Antivirus
HomeTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersDomino IT Downloads
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 1999 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts