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


Feb 28, 2014, 8:25 AM
8 Posts

Old values reapear in multivalue fields

  • Category: Notes Client
  • Platform: Windows
  • Release: 9.0.1
  • Role: Developer,End User
  • Tags: bug,multivalue,error
  • Replies: 1

When using numeric multivalue field, and setting the field with some values with
doc.replaceItemValue( fieldname, arrayOfNumbers ). 

 

Then clearing the values with 
doc.replaceItemValue( fieldname, "" ) or doc.removeItem( fieldname ) and setting the field with other values, OLD Values reappear !

Where do they come from?

With text multivalue fields it works normally.

Mar 11, 2014, 7:41 PM
82 Posts
Works for me ....
don't forget to save


Dim db As NotesDatabase, doc As NotesDocument,session As New NotesSession
        Set db = session.Currentdatabase
        Set doc = db.Unprocesseddocuments.Getfirstdocument()
        Dim nums(2) As Integer
        nums(0)=5
        nums(1)=15
        nums(2)=25
        'Call doc.Replaceitemvalue("numbers", nums)  'before
        Call doc.Replaceitemvalue("numbers", "")    'after
        Call doc.save(True,False)

Before After
Field Name: numbers
Data Type: Number List
Data Length: 28 bytes
Seq Num: 1
Dup Item ID: 0
Field Flags: SUMMARY

5
15
25
Field Name: numbers
Data Type: Text
Data Length: 0 bytes
Seq Num: 2
Dup Item ID: 0
Field Flags: SUMMARY

""


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