This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



Apr 16, 2011, 6:36 PM
3 Posts

Re: Client xPage question

  • Category: Other
  • Platform: All
  • Release: 8.5.2
  • Role: Developer
  • Tags:
  • Replies: 4
Well if you have a static link that your gonna use just use the 'Link' core control.
Here's what you want to do as an example:
  1. create sample xpage
  2. Drag 'Link' core control to xpage
  3. in properties window for link select 'Link type' as Open Page
  4. Select your page
  5. On the Window Behavior select 'Open New window or tab' option
Now with this there are some limitations, like only opening an already available xpage.  But if you look at the source of what you just completed it looks just like mine.
<xp:link escape="true" text="Link" id="link1" target="_blank" value="/somepage.xsp"></xp:link>
 
I've played around with the source and cant get it to open a link that is external to the database so you would be left with using a computed field and placing the good old href tags in the advanced bindings.  See my reply to the iframe thread for an explanation.
 
Apr 18, 2011, 1:46 AM
3 Posts
Re: Client xPage question
I figured out a way to get it done.  Thanks for the help.
 
onClick event:
var doc:NotesDocument = LinkList.getDocument();
doc.getItemValueString("Title")
var a:NotesAgent = database.getAgent("OpenWebApplication");
a.runWithDocumentContext(doc);
 
 
the agent:
    Dim s As New NotesSession
    Dim doc As NotesDocument
    Dim arg As String
    Dim ieApp As Variant
    set doc = s.DocumentContext
    arg = doc.Link(0)   
    Set ieApp = CreateObject("InternetExplorer.Application")
    ieApp.Navigate(arg)
    ieApp.Visible = True

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal