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 14, 2011, 6:17 AM
26 Posts

iFrame substitute in XPages

  • Category: Other
  • Platform: All
  • Release: 8.5.2
  • Role: Developer
  • Tags: iFrame
  • Replies: 5
 Hi,
 
I am trying to implement iFrames (or its substitute) in xPages. As a usual application layout, the homepage is divided among the top header, left navigation menu and center area, same as this forum. My requirement is that, the left menu would be links to views (using xpages). Few  of the links needs to show data from a RDBMS, hence I was planning to use to query the RDBMS and generate a HTML UI via agent (before i started using xpages). Also the links in the views would be directed to servlet of different  server but has to be opened in the same iFrame.
 
I hope I am able to explain the scenario. 
 
Appreciate any help on this. 
 
Thanks for your time. 
 
Regards, 
Yusuf 
Apr 14, 2011, 7:06 AM
149 Posts
Re: iFrame substitute in XPages
 
What is the problem? if you want to do an iframe just type your -iframe- tags in the xpages source pane.
the only drawback of using your own html instead of controls is that you can't use ssjs to get or set the content.

 
 
 hope it helps
Thomas Adrian
http://www.notessidan.se
Apr 14, 2011, 12:10 PM
122 Posts
Re: iFrame substitute in XPages
As an alternative, for showing content from an RDBMS, I would strongly suggest looking at the slides of Paul Calhoun's session on integrating with RDBMS from XPages. He's presented the session at a variety of LUGs, so they are freely available - here's a link I found immediately http://iamlug.org/iamlug/IamLug2010.nsf/0/4157F9B285855BEC8625770F0053CA57/$FILE/iamlug.xml.jdbc.xpages.calhoun.pdf.
 
This may perform better than redirecting to a servlet and may allow you greater flexibility and functionality.
 
During "Ask The Developers" at Lotusphere earlier this year it was also announced that RDBMS controls for the Extension Library are also being built. I'm not sure of the timescales, but that may also be worth bearing in mind when considering how you implement writing your content - it may make it easier to integrate the controls when they become available.
Apr 15, 2011, 3:13 PM
26 Posts
Re: iFrame substitute in XPages
 Thanks Paul for your suggestion. I will surely look into this and update this post if I find any solution for RDBMS.
 
Regds, 
Yusuf 
Apr 16, 2011, 6:21 PM
3 Posts
Re: iFrame substitute in XPages
@Thomas - not sure you can just put in the iFrame tags in the source.
@Yusuf - It took me some time to find it but I think it was a blog entry from Tripcony or Hodge but one of them was using a computed field.  I think this falls in line with what you are trying to do with the html that the rdbms is spewing.  Here's what I did as an example:
  1. create sample xpage
  2. put computed field on xpage
  3. in properties make sure that content type is HTML
  4. in properties in the values tab click the advanced radio button for the Bind option
  5. paste your iframe stuff in there.  or really any html code. 
Here's my source(the real URL's were obsfuscated to protect the innocent):
<xp:text escape="false"
                                    id="computedField1">
                                    <xp:this.value><![CDATA[<iframe title="YouTube video player" width="640" height="390" src="http://www.youtube.com/M" frameborder="0" allowfullscreen></iframe>]]></xp:this.value>
                                </xp:text>
 
I hope this helps.
Apr 18, 2011, 7:13 AM
26 Posts
Re: iFrame substitute in XPages
 Thanks a lot for further directions. I would give this a try and post back here. My objective is to retrieve a set of rows from RDBMS filtered by the logged-in user's ID. And the returned set of values should be displayed on the UI and has to be a link to a specific lotus database. 
 
I really appreciate. 
 
Regards,
Yusuf 

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