Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8012131
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T19:14:08+00:00 2026-06-04T19:14:08+00:00

Working on an XPage. Have a button that when clicked sets the value of

  • 0

Working on an XPage.

Have a button that when clicked sets the value of the “b_BugNum” field to “2” using SSJS:

document1.ReplaceItemValue("b_BugNum","2");

Keep receiving this error when run:

[TypeError] Error calling method ‘ReplaceItemValue(string, string)’ on
an object of type ‘NotesXspDocument [Static Java Wrapper,
com.ibm.xsp.model.domino.wrapped.DominoDocument]’

The b_BugNum field is an edit box that was placed on form with no modification.

Changed the link to be:

currentDocument.ReplaceItemValue("b_BugNum","2");

and still gives error.

Have the data source set to be a Notes document and other fields are binding to fields on document and displaying the proper values.

Any ideas as to why the error?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T19:14:10+00:00Added an answer on June 4, 2026 at 7:14 pm

    The error message indicates that the method you’re calling doesn’t exist or have wrong number of parameters/wrong parameter data type.

    In your case, the error is that there is no method called ReplaceItemValue. The correct casing is replaceItemValue. Java is case sensitive.

    All good Java APIs use camelCase when naming class methods. It might be confusing in the beginning, if you’re used to LotusScript.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Working sample using one Table SELECT t.* FROM ( SELECT TITLE.name, (TITLE.value-TITLE.msp) AS Lower,
Working with a Lucene index, I have a standard document format that looks something
Working on a console application using Delphi 7, and have run into a problem.
Working on a SQL query here, I have an ID column that I created
Working with Sharepoint 2010, I have a class that inherits SPPersistedObject with various settings:
Working on a small game using an HTML5 canvas, and javascript. And it's working
Working with an undisclosed API, I found a function that can set the number
Working with Reporting Services 2008 r2. So here's my issue: We have 5 reports
Working on a project using Entity Framework (4.3.1.0). I'm trying to figure out how
Working on an extension that use the new experimental devtools apis. How do you

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.