Skip to main content
 
developerWorks
AIX and UNIX
Information Mgmt
Lotus
New to Lotus
Products
How to buy
Downloads
Live demos
Technical library
Training
Support
Forums & community
Events
Rational
Tivoli
WebSphere
Java™ technology
Linux
Open source
SOA and Web services
Web development
XML
My developerWorks
About dW
Submit content
Feedback



developerWorks  >  Lotus  >  Forums & community  >  Notes/Domino 6 and 7 Forum

Notes/Domino 6 and 7 Forum

developerWorks

  

Sign in to participate PreviousPrevious NextNext

SOLVED: View Display Error
Kevin Pettitt 9.Apr.07 03:18 PM a Web browser
Domino Designer 7.0 All Platforms


@SetViewInfo will filter the view according to your needs. Here's the solution.

1 - Keep the simple Selection formula as:

SELECT Form = "TF"

and get rid of the rest.

2 - Make sure that the first column of the view points to the "EmpName" field (not a formula of some sort) AND is categorized.

3 - Add the following to the PostOpen event of the view:

@SetViewInfo([SetViewFilter];@Name([CN]; @UserName);"EmpName";1)

4 - Add the following to the QueryClose event of the view:

@SetTargetFrame("NotesView");
@UpdateFormulaContext;
@Command([OpenView]; @Subset(@ViewTitle; -1));
@SetViewInfo([SetViewFilter];"";"EmpName";1)

This assumes that you've named the frame in which the view displays "NotesView", which is the normal standard. If not, either change the frame name or if you must, change the code above to reflect your naming.

Note: This code assumes EmpName is formatted as a common name (e.g. Kevin Pettitt) as opposed to an abbreviated name (e.g. Kevin Pettitt/MyDivision/MyCompany). Change the @Name code above to @Name([Abbreviate]... or whever format required if you need to ensure the formats match.

Note 2: If you decide to change the *column* to a formula (e.g. @Name([CN]; EmpName) ) in order to match formats, then you will need to change the "EmpName" part of the formulas to the *programmatic* name of the column (look on the last tab of the column properties box - rename the Name field there if you like but make sure that value matches the formulas)

Something like $EmpName should work, in which case your new formula for step 3 would be:

@SetViewInfo([SetViewFilter];@Name([CN]; @UserName);"$EmpName";1)

Good luck,

Kevin
www.lotusguru.com




(Unsolved) View Display Error (Sudip Singha Ro... 9.Apr.07)
. . RE: (Unsolved) View Display Error (Varun K Singh 9.Apr.07)
. . RE: (Unsolved) View Display Error (Venkatesh Saiku... 9.Apr.07)
. . RE: (Unsolved) View Display Error (Peter LaComb 9.Apr.07)
. . SOLVED: View Display Error (Kevin Pettitt 9.Apr.07)


Document Options






  Document options
Print this pagePrint this page

Search this forum

Forum views and search


  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Author
Category
Platform
Release
Advanced search

Sign In or Register

 Sign In or Register
Sign in
Forgot your password?
Forgot your user name?
Create new registration

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS
More Lotus RSS feeds

Resources

 Resources
Forum use and etiquette
Native Notes Access
Web site Feedback

Lotus Support

 Lotus Support
IBM Support Portal - Lotus software
Lotus Support documents
Lotus support by product
Lotus support downloads
Lotus support RSS feeds

Wikis

 Wikis
IBM Composite Applications
IBM Mashup Center
IBM Connections
IBM Connections Cloud Developers
IBM Docs
IBM Forms
IBM Mobile Connect
IBM Sametime
IBM SmartCloud for Social Business
IBM Web Experience Factory
Lotus Domino
Lotus Domino Designer
Lotus Expeditor
Lotus Foundations
Lotus iNotes
Lotus Instructor Community Courseware
Lotus Notes
Lotus Notes & Domino Application Development
Lotus Notes Traveler
Lotus Protector
Lotus Quickr
Lotus Symphony
IBM Web Content Manager
WebSphere Portal

Lotus Forums


 Lotus Forums
Notes/Domino 9.0
Notes/Domino 8.5 + Traveler
Notes/Domino XPages development forum
Notes/Domino 8
Notes/Domino 6 and 7
IBM Connections
IBM Mobile Connect
IBM Sametime
IBM SmartCloud Notes
Lotus Enterprise Integration
Lotus Protector
Lotus Quickr
Lotus SmartSuite