I am trying to open a view column link into new window or tab. I am not able to get through. I have used numerous ways like mentioned in some of the pages under same category. Here is my sample code.
<xp:viewColumn columnName="$5" id="viewColumn1"displayAs="link">
<xp:this.pageUrl><![CDATA[#{javascript:try{
var row = getComponent("viewPanel1").getChildren().toArray();
var va= row[5].getValue();
var href = "some html page";
return href+"?confId="+va;
}catch(e){
}
}]]></xp:this.pageUrl>
I have used below code to work around
<xp:viewColumn columnName="fname" id="viewColumn1" displayAs="hidden">
<xp:link escape="true" target="_blank">
<xp:this.text><![CDATA[#{javascript:try{view1.getColumnValue("lname");}catch(e) {}}]]></xp:this.text>
<xp:this.value><![CDATA[#{javascript:try{thisid = view1.getColumnValue("lname");
var calculatedlink = "www.google.com";
return calculatedlink}catch(e){}}]]></xp:this.value>
</xp:link>
<xp:viewColumnHeader value="First Name" id="viewColumnHeader1">
</xp:viewColumnHeader>
</xp:viewColumn>