Setting a frame target for an xpage viewpanel link

With the help of forum contributors, I’ve got an xpage viewpanel with a column that launches a standard web enabled form (instead of an xpage form).

My problem is that I need to specify a target frame and I can’t figure out how or where to do this. I’ve tried a few things but none seem to work and to be honest, xpages are so new to me, I don’t know where to turn. Any suggestions would be GREATLY appreciated.

Thanks, Mike

Subject: Couple of things

Take a look at this wiki article on how to generally compute your own URL links in a viewpanel:http://www-10.lotus.com/ldd/ddwiki.nsf/dx/xpages-compute-urls-in-viewpanel.htm

Here’s a link on how to compute a specific URL format for non-XPages to launch a doc in a specific frameset:

http://searchdomino.techtarget.com/tip/0,289483,sid4_gci536389,00.html

Hope this helps!

Thomas - IBM

Subject: on the right path…

Thanks Thomas. Actually, That first link got me started in this process. I appreciate the other link as well but my issue is I’m actually trying to break out of an iFrame and write to a target of “_top” and thus far, I can’t set that target so, I guess you could say I’m not really targeting a particular frame in a frameset but rather, a way to for the linked document to re-write the current page.

I’ve tried a gazillion different variations and anytime I put something in the pageUrl it comes out as part of the href statment which won’t work. I toyed with xsl attributes but they aren’t bound and I’m not sure how to make those work either. My code is (and you’ll recognize this I’m sure). I’m truly just looking for where I would put target=“_top”:

<xp:viewColumn id=“viewColumn1” displayAs=“link”

		openDocAsReadonly="true" columnName="CreatedDate">



		<xp:this.pageUrl>			

		<![CDATA[#{javascript:return "0/" + rowData.getUniversalID() + "?OpenDocument"}]]>

		</xp:this.pageUrl>

		

		<xp:this.converter>

			<xp:convertDateTime type="date" dateStyle="short"></xp:convertDateTime>

		</xp:this.converter>

		<xp:viewColumnHeader value="Created"

			id="viewColumnHeader1">

		</xp:viewColumnHeader>

	</xp:viewColumn>

Subject: Compute the URL to call a client-side JavaScript function…

So instead computing the URL link to be something like"0/123123123123123123123?OpenDocument"

compute the URL like so:

openMyUrl(“0/123123123123123123123?OpenDocument”)

and include a client-side javascript library which implements that function “openMyUrl”, which

takes the Url to open as the input argument and then set the href with the _top window etc. (at this point, it’s standard browser DOM stuff)

Thomas - IBM

Subject: tried it…

I attempted this but the url is relative to I end up with a computed link of http://server/pathDatabase/openMyURL(computedUrl) instead of openMyUrl(computedUrl).

Any ideas how to make that work? Sorry, this is very new to me so I feel like a fish out of water but I want to make this a win for xpages in our organization if at all possible.

Thanks,

Mike

Subject: SOLVED!

Terribly easy solution once you stumble on it.

on the Properties tab for the View Column in question, just below where we computed the pageUrl property put

window.open(href,“_top”);

in the onClick events property and it will load the doc in the window and overwrite the frameset.

-Mike