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



Dec 21, 2011, 4:30 PM
22 Posts
topic has been resolvedResolved

How to get a handle to a selected Document in a view panel from a link

  • Category: Server Side JavaScript
  • Platform: All
  • Release: 8.5.3
  • Role: Developer
  • Tags: getSelectedDocuments
  • Replies: 2
I have a viewpanel and the first column shows checkboxes. Above the panel, I have a link control. I want to set some item values on the selected doc in the viewpanel.
How do I do this? I have tried to use Modify Field action, but it does not do anything. 
Any snippet available to push me into the right direction?
 
tia
Dec 22, 2011, 8:47 AM
261 Posts
Re: How to get a handle to a selected Document in a view panel from a link
The viewPanel has a getSelectedIds() property. It returns a list of note id's of the selected documents.
 
See here for a description on the Notes and Domino AD Wiki.
 
Mark
Dec 22, 2011, 8:35 PM
17 Posts
Re: How to get a handle to a selected Document in a view panel from a link
if we talk about the onclick event, then it's easy. However once Ulrich is talking about link control - I'd be interested to know if it's somehow possible to manipulate the url of the link from an action on the page - say its own onclick event - for example to add an additional parameter.
 
The problem probably is that the link url gets calculated on page load. So it cannot know what docs will get selected. You can process the docs in the onclick event but cannot change the link url. or there is a way - in onclick event it finds the link control and modifies it? can it work?
 


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