×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Error in onLoad object

Error in onLoad object

Error in onLoad object

(OP)
Good day everyone.

Recently a .nsf file was updated. This file is used to load values for a form. The drop-down field doesn’t show the updated version of the values. The onLoad object shows the following:

if (valueElement("DirName")!="—Please Select--"){
getElement("DirCode").value = valueElement("DirName").substring(0,2);
ajax_getFrmElement(valueElement("DBName"),"MgrAdmin", valueElement("DirCode"),"MgrAdminId");
ajax_getFrmElement(valueElement("DBName"),"AssignedDirName", valueElement("DirCode"),"Director");
ajax_getFrmElement(valueElement("DBName"),"AssignedDirId", valueElement("DirCode"),"DirectorId");
}

When loaded, the form sends the message “Could not find a field with 'Id' or 'Name' DirectorId“

The application has not been modified in a while and the change in the .nsf file was expected to be transparent to it.

My knowledge of java and Lotus Notes is limited.

I appreciate your recommendations.

Stay safe.

RE: Error in onLoad object

Hi there,

Always difficult to do remote debugging without the entire code base, but it looks to me as if the code is trying to get elements from a parameter document, and something doesn't click any more.
I'm more of a LotusScript guy, but I'm willing to try and help you. However, your snippet is not enough for me to check on what's going on. Would it be possible for you to paste the entire OnLoad code so I can review what is actually happening ?

Pascal.

I've got nothing to hide, and I demand that you justify what right you have to ask.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close