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



Feb 20, 2012, 1:57 PM
31 Posts

dynamic / tabPanel

  • Category: Other
  • Platform: All
  • Release: 8.5.3
  • Role: Developer
  • Tags:
  • Replies: 1
Is it possible to make lookups to a view to all documents in the view and create a tabPanel for each document a find. Intended to use the title of the document as a heading on tabpanel.
Can not find a place where I can code this dynamic. Only the tabPanel who shall be selected default
 
 
Regards
Fredrijk
Mar 28, 2012, 12:26 PM
1 Posts
Re: dynamic / tabPanel
 I was having some problems dynamically creating the <tabPanel>-s, by iterating over datastructures too. I think you will be able to apply my solution to your problem. Notice the ${...} used in tabPanel, not #{...}.
 
<xp:tabbedPanel partialRefresh="true">
<xp:repeat var="entry"
value="#{javascript: [{'label': 'first', 'content': 'foo'}, {'label': 'second', 'content':'bar'}]}" 
removeRepeat="true" 
repeatControls="true"
rows="30">

<xp:tabPanel>
<xp:this.label>${entry.label}</xp:this.label>
<xp:text escape="value" value="${entry.content}">
</xp:text>
</xp:tabPanel>
</xp:repeat>
</xp:tabbedPanel>

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