Andy Donald commented on Feb 16, 2010

How can I open documents in a traditional Form rather than an XPage from a viewpanel?

Here is the answer to get _Top:

http://www-10.lotus.com/ldd/nd85forum.nsf/5f27803bba85d8e285256bf10054620d/e0f6df47f80e3f058525755a0074f023?OpenDocument

Andy Donald commented on Feb 16, 2010

How can I open documents in a traditional Form rather than an XPage from a viewpanel?

What url do we build in the pageURL attribute if:

A. I want the notes document to open so that it replaces the current page if the XPage is displayed in a frame on the page. Something like we do by window.top.location = 'url'?

I really need to know this. Can't find an answer anywhere. Please reply. Thanks

Gaurav O Natani commented on Nov 28, 2009

How can I open documents in a traditional Form rather than an XPage from a viewpanel?

Hello Thomas

The return "0/" + rowData.getUniversalID() + "?OpenDocument" opens the notes document (with the notes form) in the current window or the frame in which the XPage resides.

What url do we build in the pageURL attribute if:

A. I want the notes document to open so that it replaces the current page if the XPage is displayed in a frame on the page. Something like we do by window.top.location = 'url'?

B. I want to open the notes document in a new window?

Your help is much appreciated!

Regards**

Gaurav

Gaurav O Natani commented on Nov 28, 2009

How can I open documents in a traditional Form rather than an XPage from a viewpanel?

Hello Thomas

The return "0/" + rowData.getUniversalID() + "?OpenDocument" opens the notes document (with the notes form) in the current window or the frame in which the XPage resides.

What url do we build in the pageURL attribute if:

A. I want the notes document to open so that it replaces the current page if the XPage is displayed in a frame on the page. Something like we do by window.top.location = 'url'?

B. I want to open the notes document in a new window?

Your help is much appreciated!

Regards,

Gaurav

M Arfini commented on Sep 1, 2009

getUniversalID non working

Hi Thomas and thanks for your post!

I tried your example, but i had some troubles and some questions for you:

as you can see in first image, if you expand the data field you can find another "var" field.

What is that? what's the difference? Which one should I use?

Anyway, i set both of them, collData in external one and rowData in other.

When i click on the link in column i get:

using rowData --> Corrupt Data Exception;

using colldata --> Entry Not found in index

I notice that the UNID i get (either from colldata and rowData) changes everytime i refresh the page, seems as the unid is a kind of universal id for the row entry non for the notes document in the row.

Have you evere experienced something similar ?

I'm really confused, why such a simple thing shouldn't work?

Also..

why do you use "0/"? Wouldn't be enough UNID?OpenDocument ?

Thank you very much for any help you can give me.

I'm struggling with this...

Marco

Michael S Bryant commented on Feb 4, 2009

solved

A poster in the forum let me know that I had not set the pageUrl formula to be computed (sorry, I'm new to xpages) but it now works perfectly. Thanks for this entry!

Michael S Bryant commented on Feb 4, 2009

more..

Sorry about the link conversion above. Just look at the pop-up for the info. Also, I'm on the full 8.5 release and the db properties Allow JS and Enhanced HTML are both selected.

Michael S Bryant commented on Feb 4, 2009

Trying to do this...

I set the value of var in the view properties data section to rowData as described above and used the abbreviated script for the view column pageUrl property of return "0/"+rowData.getUniversalID()+"?OpenDocument".

My view shows the docs as expected but when I click a link I get a url of: { Link }

It looks like it's not computing the url and just spitting out a string. Suggestions??

Thanks,

Mike

Andrew Price commented on Dec 4, 2008

@2 Thanks for the quick reply ...

Thomas.

>"for one, in the script editor click the "Reference" tab, then select "XSP" from the "Libraries" dropdown list to see a list of all the XSP classes, their methods, poperties and parameters."

Doh!! I only have 3 classes shown in the list. Upgrading to beta2 :#

>_dump(_row);

That is very very handy to know. ta.

Uhoh. Even when my client is upgraded, the server is probably still beta1. Upgrade tomorrow.

More then ...

Andrew Price commented on Dec 3, 2008

Troubles ...

Hi Thomas,

Trying numerous options to get this code snippet to work, but I always get some variant of:

Script interpreter error, line=2, col=19: Unknown member 'getUniversalID' in Java class 'com.ibm.xsp.model.domino.DominoViewRowData'

Help!

And, where can I find docs on all these xsp classes?

Ta

aprice@healthspace.ca