FORUM PLAN UPDATE
Date revision: This forum will remain open to new posts and responses until December 1, 2018. (After that date, you will still be able to view and search the forum.) Also, we're taking a second look at the best place to host future conversation. For now, keep using this forum, and stay tuned for more news.



Jul 11, 2012, 5:42 AM
126 Posts

Re: Additional param in ViewControl.

  • Category: Server Side JavaScript
  • Platform: All
  • Release: 8.5.3
  • Role: End user,Developer,Administrator
  • Tags:
  • Replies: 8
I see now, now you can't simply drop another control inside it and use its attributes / functionality. The text that you where clicking on was coming from the viewPanel but you
had the params set on the link which had no text and wasn't being clicked. The below will do what your looking for:
 
**Note: I changed some of the values to test it on teamroom** 
 
<xp:viewPanel rows="30" id="viewPanel1" viewStyle="width:100.0%" var="rowData">
        <xp:this.facets>
            <xp:pager partialRefresh="true" layout="Previous Group Next"
                xp:key="headerPager" id="pager1">
            </xp:pager>
        </xp:this.facets>
        
        <xp:this.data>
            <xp:dominoView var="view1" viewName="xvwDocsByActiveDate"></xp:dominoView>
        </xp:this.data>
        
        <xp:viewColumn columnName="$143" id="viewColumn1"
        displayAs="link">
        <xp:this.pageUrl><![CDATA[#{javascript:
        return "/topicThread.xsp?documentId=" + rowData.getUniversalID() + "&test=value";
        }]]></xp:this.pageUrl>
        <xp:viewColumnHeader value="Topic" id="viewColumnHeader1">
        </xp:viewColumnHeader>
        </xp:viewColumn>
</xp:viewPanel>  

FORUM PLAN UPDATE
Date revision: This forum will remain open to new posts and responses until December 1, 2018. (After that date, you will still be able to view and search the forum.) Also, we're taking a second look at the best place to host future conversation. For now, keep using this forum, and stay tuned for more news.