You can run IQJam in your company on your Domino server. Learn how...
Username: Password:
Reset Password | Register
 
Home | Leader Board | Tags | Help
Should Domino objects return values of type java.lang.string? 
I am not a java expert but I was doing some work with an XPage application in which I needed to test an attachment to find out the type of attachment (as denoted by the file extension).
 
NotesXSPDocument's getAttachmentList[0].getName() method returns the name of the first attachment but it is of a data type java.lang.string.  When I attempt to use the documented JavaScript string  methods such as toLower() or endsWithIgnoreCase() they do not work.  I find I have to use what appear to be java toLowerCase() and endsWith() methods.  Am I just so confused I don't know what I am doing or is this in some way inconsistent with what I should be expecting?
Domino Development / XPages
Tagged
Peter Presnell - 9 months ago |  |  | Viewed 36 times

There is 1 Answer

0votes
I'm of the opinion that objects returned should be Javascript if possible and then fail over to Java if there is no obvious equivalent. However, I agree with you that there are quite a lot of inconsistencies in what is returned, I find them most often when dealing with Arrays and Vectors. I'd much rather have an array in every case.
 
So not really an answer, more of a confirmation that you're not going mad! 


Matt White - 9 months ago | 
Voting
Vote on the answer to show whether you think the answer is correct or useful to the rest of the community.

Answers with more votes are more visible to the rest of the community


 

Latest Answers for Domino Development / XPages