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


Aug 27, 2018, 1:54 AM
51 Posts

Insert not Append to Text List

  • Category: Domino Designer
  • Platform: All Platforms
  • Release: 9.0.1
  • Role: Developer
  • Tags:
  • Replies: 2

Unfortunately, I cannot locate an Inserttotextlist method. :) I'm needing to insert a new alias in users' person documents (shortname field). Ideally for us, the new alias would be 1st in the list vs. appended or last. What's the best method to accomplish?

...
newAlias = CStr(DataArray(x,2))
Set item = naDoc.Getfirstitem("ShortName")
Call item.Appendtotextlist(newAlias)
Call naDoc.Save(True,False)
...

Aug 28, 2018, 11:19 AM
107 Posts
There is no such method, but..
...the same can easily be achieved using built-in LotusScript functions.

...
ReDim newValues(0 to 0) As String
newValues(0) = DataArray(x, 2)
Call naDoc.ReplaceItemValue("ShortName", FullTrim(ArrayAppend(newValues, naDoc.GetItemValue("ShortName"))))
...
Aug 29, 2018, 1:36 AM
51 Posts
RE: Insert not Append to Text List

Jochen, thanks, worked perfectly!


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