Home > Domino Tips > Developer > Other > Don't trick your users with a bad embedded view
Domino Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

OTHER

Don't trick your users with a bad embedded view


Dovid Gross
02.19.2002
Rating: -2.60- (out of 5)


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


Embedded views are great for displaying contextual data, in an almost relational way. There is a significant flaw (or is that feature?) to the way they work -- embedded views support "partial matches," and there is no way to turn it off.

Say, for example, you have a parts or products database. Each product has its own document (or page), and an embedded view shows marketing's comments on product campaigns.

Well, the old part number for a product is GOOD-1. And the new, improved version is GOOD-1A. Each has its own document, and separate marketing information.

Well, when you first create the GOOD-1A page, it will show embedded information for the old GOOD-1 product! That's because there are no matches for GOOD-1A (not for a day or two, right?) -- but there are matches for GOOD-1. GOOD-1 is a partial match for GOOD-1A.

How to fix this? Easy...



Code

Go to the underlying view's design. Select the categorized column that is used for selection by the show-single-category function (in this case, the part number column). Change the formula for the column. Instead of "plain" PART_NUMBER, use the following formula:
PARENT_PART_NUMBER + "%FORCE PERFECT MATCH%"

Then, in your form, in the embedded view object, make the single category formula match:

MY_PART_NUMBER + "%FORCE PERFECT MATCH%"

Voilà!


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