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



Mar 15, 2012, 3:11 PM
12 Posts

adding attributes to view columns

  • Category: Other
  • Platform: All
  • Release: 8.5.3
  • Role:
  • Tags:
  • Replies: 0
I'm trying to re-create Notes view with response document format where response column "spans" until the end of table.
 
My first try was to implement this post-load in UI script. That was working fine on first load, but I do not manage to trigger a script upon clicking of "next page" or expand/collapse. Edited: I found that I could just add a JS to footer of the view that gets executed each time view gets refreshed either via collapse/expand or next/previous page. So I just kept this UI hack/solution.
 
After I tried to calculate "colspan" attribute for the view columns.
 
            <xp:column id="column2">
                <xp:this.attrs>
                    <xp:attr name="colspan">
                        <xp:this.value><![CDATA[#{javascript:2}]]></xp:this.value>
                    </xp:attr>
                </xp:this.attrs>
                <xp:text escape="true" id="computedField2"
                    value="#{javascript:1}">
                </xp:text>
            </xp:column>
 
 For all I can tell this works only if I use Data Table and calculate JS array as input, while if I use Notes View as source (either for View or Data Table control), xpage ignores any xp:attribute tag.
 
I wonder if there is more to this - and you can make it work with Notes View as a source or all I can do is to read the view in SSJS, create JS dataset and use it instead. A bit lame, but can do...
 
 
 

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