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



Jul 26, 2011, 3:17 PM
6 Posts

Repeat Control to show up in two column format

  • Category: Other
  • Platform: Windows
  • Release: 8.5.1
  • Role: Developer
  • Tags: Repeat Control
  • Replies: 3
Hi All,
 
I am trying to build a display which can show up data form a Notes View in a two column, multi-row format. The idea is the same as that of a product catalog, with multiple rows but 2 or 3 columns, where each cell showcases a particular product ( a document in the products view).
 
I have tried using a repeat control for now. But I'm not sure as to how to use/manipulate it to show the data from a Notes View in such a format.
 
Is there any way to implement this?
 
Thanks & Regards,
Sayan
Jul 26, 2011, 5:03 PM
122 Posts
Re: Repeat Control to show up in two column format
It's not hugely difficult. If you think about it from the aspect of working out what HTML you need, all you need to create is an HTML table, and work out when to open and close the tr tags. For that you can use the indexVar property of the repeat, which allows you to get a handle on the row number from your data. Then you can use the formula language @Modulo to divide by the relevant number and check the remainder, so whether you need to open or close the tag.
 
If you want to see how to do it, check out the session material from my views / repeat controls session I ran at various LUGs over the last 18 months, including at NLLUG http://hermes.intec.co.uk/Intec/Blog.nsf/dx/12092010215736HERSL3.htm. It's on the demoPeopleDashboard, the first repeat (the demo works best in Firefox, because IE tries to create the chart before the series has been written, because of how I'm generating that with a repeat).
 
Jul 29, 2011, 9:25 AM
6 Posts
Re: Repeat Control to show up in two column format
Thanks a lot Paul, the demo db really helped.
Jul 27, 2011, 10:52 AM
53 Posts
Re: Repeat Control to show up in two column format
You can use div tags instead of tables, then set them to display in this format. There's lots of tips on the web about how to do this - you need to set them to display: inline-block.

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