Skip to main content
This forum is closed to new posts and responses. New discussions are now taking place in the IBM Developer Answers forum.
 
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

  

PreviousPrevious NextNext

RE: Database search formula
Andre Guirard 27.Apr.06 09:12 AM Lotus Notes
Domino Designer 6.0.2 CF2 Windows XP


You created a document that you think matches the search criteria, but apparently it doesn't. Find the document in a view, open the document properties dialog (still from the view) and use the second tab to see the values of the Form and notify fields. If it seems unclear, you can use the Execute Formula function of the Developers' Toolbar Icon code below to try out your search formula on that document, one clause at a time, to see which of the expressions you're &ing together return False.

If you use the toolbar button to try out your whole search expression on your document and it returns true (1), then there's something else going on that we can't know about because you're still not giving much information. For instance: you're searching the wrong database, you're interpreting the results of Search incorrectly, you're accidentally destroying the contents of coll before you go look at it, ...? There's so little we can tell from two lines of code.

Note: This article on the Notes Toolbar contains other developer aids you can install into your toolbar, including a version of the code below that offers more functions.
Hide details for Developers' Toolbar Icon codeDevelopers' Toolbar Icon code
    config :=
    "Edit Master Profile:MasterProfile" :
    ("Edit Personal Profile:PersonalProfile;"+@UserName) :
    "Refresh Selected Documents:~" :
    "Run Hidden Agent:" :
    "Execute formula:" :
    "My Roles:~" :
    "Design Icon:~" :
    "This DB info:~";

    choices := @Left(Config; ":");

    sel := @Prompt([OkCancelList];
    "Special Actions";
    "Please select an action:";
    "";
    choices
    );

    REM {See what they chose, by position in the list.};
    tsel := @If(@IsNumber(sel); @Return(0); sel = ""; @Return(0); @Member(sel;
    choices));

    REM {if additional info needed, choose default value for it. (n/a = no  additional information needed)};
    defarg := @Right(config[tsel]; ":");

    REM {obtain additional info if required.};
    arg1 := @If(defarg = "~"; ""; @Prompt([OkCancelEdit]; "Special Actions - " +
    sel; "Enter additional argument to operation."; defarg));

    REM {carry out the selected operation.};

    @If(sel = "My Roles";
    @Prompt([Ok]; "My roles in " + @DbTitle; @Implode(@Unique(@UserRoles); ";  "));
    sel = "Edit Master Profile":"Edit Personal Profile";
    @Command([EditProfile]; @Word(arg1; ";"; 1); @Word(arg1; ";"; 2));
    sel = "Refresh Selected Documents";
    @Command([ToolsRefreshSelectedDocs]);
    sel = "Design Icon";
    @Command([DesignIcon]);
    sel = "This DB info";
    @Prompt([OkCancelEdit]; "Database Info"; "Copy info to clipboard with Ctrl+C"; @Implode(@Trim(@DbName : @ReplicaID); ":") );
    sel = "Run Hidden Agent";
    @Command([RunAgent]; arg1);
    sel = "Execute formula";
    @Do(
       tmp := @Eval(arg1);
       @Prompt([Ok]; "formula result";
          @If(@IsError(tmp);
             "error: " + @Text(tmp);
          @IsText(tmp);
             @Implode("\"" + tmp + "\""; ", ");
             @Implode(@Text(tmp); ", ")
          )
        )
      );
    ""
    )





Database search formula (Liza Davila 27.Apr.06)
. . RE: Database search formula (Andre Guirard 27.Apr.06)
. . . . RE: Database search formula (Liza Davila 27.Apr.06)
. . . . . . RE: Database search formula (Andre Guirard 27.Apr.06)


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

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