Client Machine in Lotus Notes: Not picking up last machine

275 pts.
Tags:
Domino Designer
Lotus Notes
I have created a toolbar button to send emails to help desk. The code looks up Clntmachine field in names.nsf. It works okay but is not picking up last machine logged onto. How can I make it choose last Machine access on list? Excuse the code (its clunky but works almost I only know basic format language. I am an administrator)

tmp_RepID := "aaaa"; Unit := @DbLookup("Notes":"NoCache"; tmp_RepID ; "($VIMPeople)";@Name(

Answer Wiki

Thanks. We'll let you know when a new response is added.

First, I’d like to draw your attention to the @NameLookup function.

Can you please revisit this code and make sure it’s an exact copy of what you’re using? It doesn’t pass syntax check, and I don’t see the name ClntMachine in it anywhere.

From looking at my own names.nsf record, it appears that the most recent client is listed as the last entry of the multivalue field ClntMachine. Use @Subset(…; -1) to pick out the last one.

Discuss This Question: 8  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • hume
    Hi Thanks for response yep there was a typo there correct syntax is below. Barcode:= @DbLookup("Notes":"NoCache"; tmp_RepID ; "($VIMPeople)";@Name(
    275 pointsBadges:
    report
  • hume
    @DbLookup("Notes":"NoCache"; tmp_RepID ; "($VIMPeople)";@Name(
    275 pointsBadges:
    report
  • hume
    done it again see it correctly before I hit discuss button but and then it disappears..
    275 pointsBadges:
    report
  • AGuirard
    I believe this editing interface treats open square bracket as a special character. Use the "code" button to tell the editor to put your code through verbatim.
    520 pointsBadges:
    report
  • hume
    Hi AGuirard I am not to sure where to put the subset parameter do you mind helping thanks Barcode:= @DbLookup("Notes":"NoCache"; tmp_RepID ; "($VIMPeople)";@Name(
    275 pointsBadges:
    report
  • hume
    repasted code correctly
    Barcode:=
    
    @DbLookup("Notes":"NoCache"; tmp_RepID ; "($VIMPeople)";@Name(				
    275 pointsBadges:
    report
  • hume
    Barcode:=
    
    @DbLookup("Notes":"NoCache"; tmp_RepID ; "($VIMPeople)";@Name(				
    275 pointsBadges:
    report
  • hume
    Thankyou for your help it works now
    @DbLookup("Notes":"NoCache"; tmp_RepID ; "($VIMPeople)";@Name(				
    275 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following