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 10, 2011, 7:13 PM
261 Posts

Re: Using a view panel and trying to show number of responses

  • Category: Other
  • Platform: Windows
  • Release: 8.5.2
  • Role: Developer
  • Tags: Responses,Total
  • Replies: 2
You could calculate the number of responses for every entry using:
rowData.getDocument().getResponses().getCount()
That way you don't need the @AllDescendants in the view selection.
 
This formula will calculate the responses probably a bit slower, but (depending on the size of your application) you might not even notice that.

Mark
May 10, 2011, 7:30 PM
14 Posts
Re: Using a view panel and trying to show number of responses
Performance smchmormance who cares. :) Thanks Mark works like a charm. You rock! 
 
FYI for formating purposes I used: 
 
"(" + rowData.getDocument().getResponses().getCount().toString()+ ")" 
 
Elijah 

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