This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



May 10, 2012, 10:03 AM
5 Posts

Why is getItemValue's parameter case sensitive?

  • Category: Other
  • Platform: All
  • Release: 8.5.2
  • Role:
  • Tags:
  • Replies: 2
Scenario: new document
 
code: NotesXspDocument.replaceItemValue("NAME","Aldrin");
  
then, why
 
NotesXspDocument.getItemValue("NAME")
 
AND
 
NotesXspDocument.getItemValue("Name") 
 
yield different result? 
May 10, 2012, 2:32 PM
10 Posts
Re: Why is getItemValue's parameter case sensitive?
Since XPages are based on JSP/JSF, which is Java, and since Java is inherently case sensitive, I would presume that this carries through.
May 11, 2012, 5:20 AM
5 Posts
Re: Why is getItemValue's parameter case sensitive?
Thanks Alex! I fully undestand that.
 
but I was not referring to the function/method itself; I was referring to the parameter it carries, which is the item name.
 
example - a field that doesn't exist yet in the document: "DocTitle"
 
in NotesDocument class:
 
NotesDocument.replaceItemValue("DocTitle", "Test123");
 
then: 
NotesDocument.getItemValue("DocTitle"); //returns the supposed value 
NotesDocument.getItemValue("DOCTITLE"); //returns the supposed value 
NotesDocument.getItemValue("doctitle"); //returns the supposed value 
NotesDocument.getItemValue("dOcTiTlE");// returns the supposed value 
 
but in NotesXspDocument class: 
NotesXspDocument.replaceItemValue("DocTitle", "Test123");
 
then:
NotesXspDocument.getItemValue("DocTitle");// returns the supposed value 
NotesXspDocument.getItemValue("DOCTITLE");// returns null
NotesXspDocument.getItemValue("doctitle");// returns null
NotesXspDocument.getItemValue("dOcTiTlE");// returns null

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal