Advertisement

07.21.2008 at 05:12AM PDT, ID: 23581483
[x]
Attachment Details

Domino Formula: dblookup query not returning results

Asked by captainreiss in Lotus Domino Email Server, Lotus Notes

Tags: IBM, Domino, 8.01, Designer

Hi

i am having a real dense day and as time pushes along I need some quick help on the formula I created.

I have a need to use a button to populate a field with names from a particular group in the directory. When I use the code below the choices appear but the field is not populated. Field exists and has correct properties.
So I wonder what's going awry...?

thanks capt.Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
REM {Data options};
      targetFieldName := "Studio";
      sourceViewName := "Groups";
      sourceGroup :="Acc-Managers";
      sourceField := "Members";
      sourceServer := "server";
      sourceDatabase := "Names.nsf";
 
      REM {Prompt options};
      promptTitle := "Studio Select";
      promptMessage := "Assign studio staff from the list:";
      promptError := "No choices are available.";
promptError1 := "Your choice returned no result.";
      promptMultiple := @False;
 
      REM {Get the choices.};
      viewLookup := @DbLookup("":"NoCache"; sourceServer : sourceDatabase; sourceViewName; sourceGroup;sourceField );
      @If(@IsError(viewLookup); @Return(@Prompt([Ok]; "Lookup Error"; promptError)); "");
      choiceList := @Name([CN];viewLookup);
      @If(choiceList = ""; @Return(@Prompt ([Ok]; "No Choices"; promptError)); "");
 
      REM {Display the prompt};
      noSelection := 1;
      selection := @Prompt(@If(promptMultiple; [OkCancelListMult]; [OkCancelList]); promptTitle; promptMessage; @GetField(targetFieldName); choiceList);
      @If(selection = noSelection; @Return(""); "");
 
      REM {Lookup value from the return column};
      selection := @DbLookup("":"NoCache"; sourceServer : sourceDatabase; sourceViewName;sourceGroup; sourceField);
      @If (@IsError(selection); @Return(@Prompt([Ok]; "Lookup Error"; promptError1)); "Y");
 
      REM {Update the target field};
      @SetField(targetFieldName; selection);
      @Command([ViewRefreshFields])
[+][-]07.21.2008 at 05:52AM PDT, ID: 22049999

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.21.2008 at 06:10AM PDT, ID: 22050129

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.21.2008 at 06:21AM PDT, ID: 22050211

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.21.2008 at 08:16AM PDT, ID: 22051295

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.21.2008 at 08:22AM PDT, ID: 22051355

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.21.2008 at 08:27AM PDT, ID: 22051401

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.21.2008 at 08:29AM PDT, ID: 22051420

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.21.2008 at 08:53AM PDT, ID: 22051654

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.21.2008 at 08:54AM PDT, ID: 22051661

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.21.2008 at 09:50AM PDT, ID: 22052156

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Lotus Domino Email Server, Lotus Notes
Tags: IBM, Domino, 8.01, Designer
Sign Up Now!
Solution Provided By: olaraak
Participating Experts: 2
Solution Grade: A
 
 
[+][-]07.21.2008 at 09:52AM PDT, ID: 22052169

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]07.21.2008 at 10:21AM PDT, ID: 22052401

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628