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



Nov 10, 2011, 4:07 PM
19 Posts
topic has been resolvedResolved

Invoking Java method and using repeat control to display a table

  • Category: Server Side JavaScript
  • Platform: Windows
  • Release: 8.5.2
  • Role:
  • Tags: Repeat Control,Java
  • Replies: 2
Hello everybody
 
I have a Java class and a Java method which uses web services to fetch data. I could make my Java method to return a table in different format as a 2-dimensional vector, 2-dimensional array, or Notes Document Collection or whatever I wish to.I want to show the data as a table in a XPages. I do not need to save the data as a documents in the database! I just want to display the data as a table by repeat control when I fetch it by Web Services.
 
I have successfully invoked my Java method from a XPage and got the data in a Label or Computer Field as for example a vector with comma between each element. 
 
I have also successfully used a view to display a table by using Repeat Control but with documents which has been already saved in the database. The thing is that I want to use the Repeat Control to display my data which isn't saved in a database. How do I do that???
 
Obviously I can create Document objects without saving them in the database and put them in a Document Collection object and let my Java method return the Collection... But I haven't been able to make it work to display a any data by Repeat Control???
 
I have been sitting many hours with this problem without any success? Can you help with some ideas??? Many thanks. 
Nov 10, 2011, 4:58 PM
19 Posts
Re: Invoking Java method and using repeat control to display a table
Yeeeeeeeeees, I solved it :))
Nov 11, 2011, 6:14 AM
54 Posts
Re: Invoking Java method and using repeat control to display a table
It is a good practise to share the actual solution as well :)

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