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



May 24, 2012, 11:54 AM
51 Posts

make new documents on selected ones from view

  • Category: Other
  • Platform: Not Applicable
  • Release: 8.5.3
  • Role: Developer
  • Tags:
  • Replies: 1
 I have an Xpage like this :
 
A view 
   country1  | item1a | item 2a | item3a | item4a
 x country1 | item1b | item 2b | item3b | item4b
 x country1 | item1c | item 2c | item3c | item4c
   country1  | item1d | item 2d | item3d | item4d
 x country1 | item1e | item 2e | item3e | item4e
 
and then 
 make new lines for country : country2  NEW
 
The user has to select lines in the view. (here in this example marked with x) 
Then the user selects another country (dialog list) and clicks NEW , which makes 3 new documents with contents from column 1, 2 ,4 for the country from the dialog list.
 
 
 How can I do this ?
 
May 28, 2012, 6:56 AM
135 Posts
Re: make new documents on selected ones from view
Have you tried accessing those check box values in server side Javascript? If that does not work you could get the values in client side Javascipt with
 

dojo.query('input[type=checkbox]:checked');

 
and place them to an edit box. Then you can create the new documents in server side Javascript based on the selection. Both CSJS and SSJS can be placed to the onclick event of a button.

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