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



Jan 5, 2012, 2:16 PM
26 Posts

Editable "Names" fields?

  • Category: Other
  • Platform: Windows
  • Release: 8.5.3
  • Role: Developer
  • Tags:
  • Replies: 4
What is the best way to deal with a names fields in Xpages that I want to be editable?   I was told to have two copies of the field on the Notes form.    One computed that is a names field and an editable field that is text.   The editable field would be the one used on the Xpage and would be converted to canonical when the document is saved.   Seems like it should work but also seems awfully inefficient.   Is there a better way to do this?
 
Jan 5, 2012, 8:36 PM
122 Posts
Re: Editable "Names" fields?
 One alternative I've used before is set the fields as Names / Readers / Authors and use computeWithForm. Alternatively, if you're creating / saving the doc in SSJS you could set the field as a Names field there.
Jan 6, 2012, 2:18 PM
26 Posts
Re: Editable "Names" fields?
Thanks.   Sounds to me like I would need two fields on the document?   Kind of like I mentioned?
 
Jan 6, 2012, 6:32 PM
122 Posts
Re: Editable "Names" fields?
Not necessarily. You can set a pre-existing field to a Names field with SSJS, same as in LotusScript.
Jan 12, 2012, 6:25 PM
26 Posts
Re: Editable "Names" fields?
I think that is what I am doing now.
 
What I do is use script to set the Edit box to a names field in  afterPageLoad  and I save it back in the submit button.   Using the appropriate script to convert it back an forth.  I don't bind the editbox to anything.
 
Does this sound like a proper way of doing this?
 

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