XPages view control link manipulation

淺唱寂寞╮ 提交于 2019-12-23 02:46:09

问题


I have a view control and at least one column has the option "Display as link" set. The link is generated manually. What I want to achieve is to add a url parameter which is added to a view column link. The usual link would like this

"http://host/path/file.nsf/$$OpenDominoDocument.xsp?databaseName=server!!path/file.nsf&documentId=03871DD0B47F88D4C12576AB00623137&action=editDocument"

What I would like to have is:

"http://host/path/file.nsf/$$OpenDominoDocument.xsp?databaseName=server!!path/file.nsf&documentId=03871DD0B47F88D4C12576AB00623137&action=editDocument?param1=value1&param2=value2&etc..."

There must be a (presumably easy) way to achieve this - unfortunately I don't know how... Any help or hint is appreciated.

Many thanks in advance. Michael


回答1:


Follow the below steps: 1. go to All Properties of view Column which displays column values as link. 2. Compute the PageUrl with the below Code.

    var col:com.ibm.xsp.component.xp.XspViewColumn = getComponent("viewColumn1");
col.getDocumentUrl()+"&param1=value1"


来源:https://stackoverflow.com/questions/11741366/xpages-view-control-link-manipulation

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!