Questions on Iframes and PAR structures

Hi,
I have a few questions on Iframes, JSP's and PAR structure for Portal Application Projects in NWDS.
1. Can I change the source of an iframe from one jsp to another instead of one html to another.
2. My Jsp's are in Portal-Inf/pagelet because whenever I add a new JSP I add a new Portal application object. So how do you refer to the relative path in the calling JSP. e.g <iframe name = "myframe" src ="<relative path>BlankPage.jsp" width="100%">. What would be the relative path. I tried pagelet\jspname.jsp but it does not work.
3. In general how do you type the relative path for objects in a PAR project structure?

Hi Prem,
1.Yes,you can.
2.You dont have to,you can copy and paste as many as Jsp's inside the pagelet.I use beans to customize the BHTML UI properties.So you can make your IFRAME source tag as variable.
<iframe
     id="Nedbrowser"
     name="Nedbrowser"
     style="relative"
     width="<%=myBean.getFrameWidth()%>"
     height="<%=myBean.getFrameHeight()%>"
     frameborder="yes"
     marginheight="0"
     marginwidth="0"
     scrolling="yes" 
     src="<%=myBean.getUrl()%>">
</iframe>
Your approach of setting relative path wont work as it is.You have to do something more
1. in JSP you have to use a import statement like
<%@ page import="com.sapportals.portal.prt.resource.IResource" %>
<% IResource rs = componentRequest.getResource(IResource.JSP , "pagelet/BalnkPage.jsp");  %>
and in the IFRAME tag you can do something like this
<iframe
     id="Nedbrowser"
     name="Nedbrowser"
     style="relative"
     width="300"
     height="400"
     frameborder="yes"
     marginheight="0"
     marginwidth="0"
     scrolling="yes" 
     src="">
</iframe>
<% Nedbrowser.setSrc(rs.getResourceInformation().getURL(componentRequest)); %>
3.There are so many forum pages on this matter.Just go ahead and search for IResource in SDN.
Goodluck
regards
Senthivel

Similar Messages

  • Question about Sender and Receiver Structure for JDBC

    Dear All,
    I want to know why there is a fixed format for sender and receiver structure for JDBC. why cant we use the structure like what we want? explain me in detail.
    Thanks

    Good Question:
    We have to create our data structure based on the existing database table structure. While reading or writing , JDBC adapter convert our data type structure in to SQL Query Statements that matches Table structure.

  • When I try to load a pdf in iframe and I disable PDF toolbar, Its working fine in Internet Explorer and lower versions of Firefox, but in Firefox 19 its not

    When I try to load a PDF inside Iframe and I disable toolar=0 (as guided by adobe). I am able to see the iframe with PDF with no toolbar in IE and lower versions of Firefox (till version 14).
    But in my current version 29, The PDF is visible with toolbar on top.
    Can you please let me know the way to display pdf with no toolbar in Firefox 29?

    I replied on your similar question here: https://support.mozilla.org/questions/1005225

  • I have a question on paths and templates

    I have a question on how I should structure my site
    At my root directory on my server I have this set up.
    index.html
    /pages
         page1.html (all of these were created from my own template)
         page2.html
         page3.html
         and so on....
    /webReadyGraphics
    /css
    /library
    /templates
         genericTemplate.dwt
    Each folder has their own respective files in it.
    The problem I'm bumping into is relative and absolute paths in my DW templates/assest.  I will do my best to explain.
    I've create a menu with text that links to various pages.  An example would be a home button which always returns you to the index.html.  I turned that home button into an asset.  I've placed that asset into my genericTemplate.dwt. The link attached to the home button is a relative path and looks something like ../index.html.
    I have used my genericTemplate to create all my pages, even index.html.  So on my index page is my home button which tries to link to a parent directory ../index.html.  I decided to use absolute paths instead which is great on my local machine but when I go to upload to my server won't this be a problem?  As browsers will be looking for a local absolute path?
    How should I structure my website?  I've been thinking about putting all my pages at the root directory but that just gets mess looking.
    I hope I explained that well.  My understanding of web theory is a bit novice.
    Thanks!
    -Dweinin

    How do I do that? The pages which have the asset (button)  have different paths to get to the index.html...  some paths would be ../index others would be ../../index.html
    I don't know how to explain this.  I have 1 button.  that button is on 15 webpages.  Those pages are located at various directories from within my website.  So all their paths would be different but I only have 1 button.  So how do I put a relative path in there?
    I can put all the pages in 1 location so the button path would be the same.  That's not a problem BUT! I also have that button on my index.html page which is at the root of my site. 
    All of my pages would be located at root/pages/______.html.  The button would have a relative path of ../index.html
    The index is located at root/index.html  and that SAME button would have an incorrect path of ../index.html and return an error saying page not found.
    I want to keep the button an asset since I will likely be changing it's destination in the future or may want it to link a different page.  So I made the button an asset so that I when I do want to change it I only have to do it once and it updates across all my pages.
    Does that make sense?  Should I just put all my pages at the root?  Is that normal to do?  My root would start to look pretty mess with 15-20+ html pages.
    -Drew

  • Hi, why do we use the break and continue structure?

    Hi, I was wondering why do we use the break and continue structure in some program such as:
    for ( int i = 1; i <= 10; i++ ) {
    if ( i == 5 )
    break;
    So, now why do we use those codes, instead of achiving the same results by not using the if structure.
    I am new in java so I can be totaly wrong that is why my question come to you guys.
    I will appriciate if you let me understand more.

    I may not completely understand your question, but - imagine the following scenario:
    // Looking for some value in a long, unsorted list
    Object target = null;
    int index = -1;
    for (int i = 0; i < list.size(); i++) {
        Object curObject = list.get(i);
        if (curObject.equals(source)) {
            target = source;
            index = i;
    if (target != null){
        System.out.println("Found it at " + index);
    }You will always run through the entire long list, even if the thing you are looking for is the first thing in the list. By inserting a break statement as:
    // Looking for some value in a long, unsorted list
    Object target = null;
    int index = -1;
    for (int i = 0; i < list.size(); i++) {
        Object curObject = list.get(i);
        if (curObject.equals(source)) {
            target = source;
            index = i;
            break;
    if (target != null){
        System.out.println("Found it at " + index);
    }You can skip whatever's left in the list.
    As for continue, yes, I suppose you could use a big if, but that can get burdensome - you end up with code like:
    for (int i = 0; i < list.size(); i++) {
        Object curObject = list.get(i);
        // you want to do the rest only if some condition holds
        if (someCondition) {
            // do some stuff -
            // And you end up with lots of code
            // all in this if statement thing
            // which is ok, I suppose
            // but harder to read, in my opinion, than the
            // alternative
    }instead of
    for (int i = 0; i < list.size(); i++) {
        Object curObject = list.get(i);
        // you want to do the rest only if some condition holds
        if (!someCondition) {
            continue;
        // do some stuff -
        // And you end up with lots of code
        // all outside of any if statement thing
        // which is easier to read, in my opinion, than the
        // alternative
    }Hope that helped
    Lee

  • Issues with IFrame and calling an application outside the IFrame

    Hi
    I have an issue which is really turning my head 360 degrees in a "dead loop":)
    I have a WebDynpro application, one component and three views in a viewset.
    The first view will always be placed in column one and depending on some action the two other views should be loaded one by one. So in the main view the users will select three parameters from three dropdownboxes and then a call with the given parameters to an html file in KM - which then again is passing the parameters to a swf file which is presenting an Business Objects dashboard. The BO Dashboard is presented in an iFrame.
    The users selects an element in the Dashboard and is then again calling the webdynpro application with four parameters, the three first from the dropdownboxes, but also a new one which is used to call the third view. I am using NavigationTarget in the URL to load the application at the given position in the portal. And the logic is working, BUT the portal is presented in the IFram of the first View.
    So my question is - How to navigate from the IFrame and "back into the portal"????
    Regards
    Kay-Arne

    There was an issue with the serialization file created.
    Creating a new serilaization file via AAMEE and running it resolved the issue.
    Create a serialization file via AAMEE: http://wwwimages.adobe.com/www.adobe.com/content/dam/Adobe/en/devnet/creativesuite/pdfs/Ad obeApplicationManagerEnterpriseEditionDeploymentGuide_v_3_1.pdf
    And then run it via command line.
    Here are the steps:
    AdobeSerialization (serialization file created using AAMEE 3.1) is not a double clickable file. You need to run it via command line to serialize the products. the command line is -
    AdobeSerialization --tool=VolumeSerialize --stream --provfile=”Absolute_Path_of_prov.xml”
    where
    --tool=VolumeSerialize:  specifies that the tool needs to process the prov.xml file to serialize.
    --provfile” specifies the absolute file path to the prov.xml file,
    By default, the tool looks for the prov.xml file in the same directory as the executable file and so
    typically you do not need to specify this option. (Specify this option only if the prov.xml file is in some
    other location.)
    Make sure you invoke command prompt with Admin privileges. Return code of zero means success.
    Tiffany can you please confirm the same?
    -Pragya

  • Basics of Enterprise Structure and Personal Structure

    Enterprise Structure and Personal structures are key structures for any organizations while implementing SAP.  The enterprise structure is created by SAP FICO consultant and Personal Structure is created by a SAP HR Consultant for a Company.
    Enterprise Structure consists of :
    1. Company code
    2. Personal Area
    3. Personal Sub Area
    Personal Structure Consists of:
    1. Employee Group
    2. Employee Subgroup
    5 Basic Steps in Creating Enterprise Structure to Personal Structure:
    Step 1:
    Creation of Company Code, Personal Area and Personal Subarea
    Step 2:
    Creation of Employee Group and Employee Subgroup
    Step 3
    Assigning Personal Area to company code
    Step 4
    Assigning of Employee Group to respective employee Subgroup
    Step 5
    Creating a Number Range Interveal and Assigning the enterprise structure to personal structure in "NUMKR" Feature.
    All Other Modules in SAP are dependent on these two structures so, we should be very sure and clear of creating this structures for a hassel free configuration.
    Appreciate yoru Mail for any further details.
    Regards
    D.V.D.Raju

    Am Sorry I presented my text in the wrong place.  Its actually an information gathering text.  Any way thanks for the replies and I have a question followed by the above text as below.
    Can we run Hiring action having the same default position for all hirings and later assign them in OM?
    If yes how can we do that?
    Regards
    D.V.D.Raju

  • Relation between LIS datasources and Extract Structures

    Roberto,
    Your detailed information does make it very clear why the SAP creates 2 SnnBIW1, SnnnBIW2 tables, and a structure.
    I have another question related to this process.
    Once you create a datasource from the custom LIS structures, you can assign a Development class to that datasource.
    But the automatically created 2 tables and the structure are local objects, and you cannot reassign them to other object. That is fine because when you export/import the transport, all the other objects are also transported.
    But when we enhance the extract structures, it creates a structure ZASnnnBIWS which also HAS TO BE a local object. This creates a problem of how do we transport these changes?
    I would appreciate your insight into this.
    Thanks
    InduBala

    I check from LBWE maintenance structure column, and the fields are there on the left hand side for the selection criteria.
    How would I check "..<i>fields you have enhaced are ready to use</i>...." from LBWE.
    From RSA6, I would doubleclick on the LIS datasource, and I see no enhanced fields and therefore could not see if they are hidden.
    "<i>Did you check in LBWE if your strcutures have the fields ready to use?" </i>How would I do this? Maybe this is the problem.
    Thanks
    Message was edited by:
            NoNoNo ...

  • IFrame and Mouse Wheel conflict

    Hi
    A question, if someone can help it would be great !
    I made a fonction on the stage, I listen to the mouse wheel, that works perfectly ! but then I call an iFrame and put it in one symbole, at this moment each time I use the mouse wheel, when I am over this symbol it stop working, outside it is style working
    Any idea ?
    Code of the mousewheel function
    $(window).bind('DOMMouseScroll', function(event) { }
    thanks

    Hi, So the Shockwave Flash Object...ActiveX Control...Flash10e.ocx is installed in the manage add ons and it is enabled.
    Is that the only one listed that way, no other Shockwave Flash Object? If so then that is correct.
    The Flash files for Firefox (or other browsers): Flashplayer.xpt, uninstall_plugin.exe, NPSWF32.dll and NPSWF32_FlashUtil.exe are correct IF when you right click on the 2 NPSWF files and click on Properties and they are the version 10.0.45.2.
    The Flash files for IE: FlashAuthor.cfg, FlashUtil10e.exe, install.log and uninstall_activeX.exe are correct. The FIDbg10e.ocx is a debug version. The FlashPlayerTrust I don't see too often. My research tells me this was similar to the current Settings Manager but for older Flash Player versions. Anytime I see that or the FIDbg10e.ocx, or even older versions I recommend removing it. Sometimes a user will even have an older version of the debug .ocx.
    I don't know what Flash files are installed if say a user has only the debug version. But what I see here is a mix. The IE Flash files have the current version (the first three listed) and a debug .ocx. I would think that would certainly cause a conflict. The correct file should be Flash10e.ocx.
    If you were just concerned about your Flash Player working correctly or not, I would suggest removing the FIDbg10e.ocx and the FlashPlayerTrust.
    You might want to go to this Adobe Flash Player test site: http://www.adobe.com/software/flash/about/ I would be interested in knowing what that result is.
    Thanks,
    eidnolb

  • Unsecured Iframe and ability to make JS calls to Iframe

    I setup a sandboxed iframe parent/child in which I call in a remote content from an html page for sake of example we will say: http://127.0.0.1/ui.html
    This remote page includes some content from a third party website (an embedded youtube video, and some external JS includes), as well as its own content. I also have setup functions which I have exposed to the parent and can call them. (simple alerts)
    I cannot view the embedded video, or include any scripts residing outside the sandboxed url path the remote content or any content included (outside of the ui.html).
    The documentation states:
    "HTML content in remote (network) security sandboxes can only load CSS, frame, iframe, and img content from remote sandboxes (from network URLs)."
    Which is in line with the occurances.
    My question is...
    Is there any way to allow these external includes as well as maintain the ability to perform script calls from the parent to the child sandbox?

    Hey abc1174,
    Welcome to the BlackBerry® Support Community Forums.
    Currently this feature is not available for the BlackBerry Z10 smrtphone.
    Thank you.
    -HB
    Come follow your BlackBerry Technical Team on twitter! @BlackBerryHelp
    Be sure to click Kudos! for those who have helped you.Click Solution? for posts that have solved your issue(s)!

  • Doc heirarchy and doc structure

    does any one of you give me a clear picture of document heirarchy and documnet structure
    thanks in advance
    Regards
    surya

    Hi Surya
    Jagruti has given best example for Document Structure and Document hierrachy.
    Answer to your questions
    *1. how can i maintain a document structure and is it so, document browser has to be activated for this? how to activate? *
    for creating Document Structure please check link
    http://help.sap.com/saphelp_erp60_sp/helpdata/en/c1/1c296d43c711d1893e0000e8323c4f/content.htm
    You dont have to activate Document Browser for this.
    For Creating Document Hierrachy please check Link
    http://help.sap.com/saphelp_erp60_sp/helpdata/en/c1/1c265143c711d1893e0000e8323c4f/content.htm
    2. where can i see the heirarchy of a doc ( as a report)
    Go to DIR In th top Menu
    Go to Extras>Hierrachy F9 or Clich Iocn on the Menu Bar.
    If the DIR is having Hierrachy  the Green Indicator is visible in the Header Data of DIR.If not in Hierrachy then the Indicator is Grey.
    3. where can i see the document structure ( as a report)
    If the DIR is having Structure the Green Indicator is visible in the Header Data of DIR.If not in structure then the Indicator is Grey.If you want to see Structure go to Environment>Document Structure>Create, change , Display options are available.
    Hope I have covered your all points
    With Regards
    Mangesh Pande

  • Exporting entire library and its structure.

    Hello, I've seen this question before, but not with straight answers. I'm gonna ask one more time just to be safe.
    I'm changing my computer, I have my music library stored in a 1Tb external HD. As you may imagine it has several thousands songs and in iTunes they are organized in several hundreds folders, many of them (probably hundreds) are nested folders and so on.
    *Is there a "safe" way to export my entire library and ITS STRUCTURE (organization) to my new computer?* so next time I open lunch iTunes in my new computer it looks exactly the same as my old one. (of course after importing and setting everything)
    Thanks in advance

    Connect the external to the other computer.
    Hold Option and launch iTUnes.
    Select *Choose library*.
    Select the *iTunes library* file in the iTunes folder on the external.

  • I asked this question in iMovie and told it belonged here. When i try to copy homemade movie _TS format it will not auto load in DVD player original does. How do I make a copy that will auto load?

    I asked this question in iMovie and told it belonged here. When i try to copy homemade movie _TS format it will not auto load in DVD player original does. How do I make a copy that will auto load?

    garysm99 wrote:
    Not familiar with structure view. How do I go there?
    click in IDVD on this button

  • Basic question about storage and safety in iMovie '11

    A very basic question about storage and safety:
    I want to keep a backup of my raw footage on my external hard drive prior to begin working on the movie in iMovie. I want to do this:
    1. Upload the digital files from my camcorder to my Desktop *(as opposed to iMovie)*
    2. Duplicate that footage/clips.
    3. Put the duplicate clips/footage into a folder labeled with the name of that footage (like "Fun At the Dentist" or "Jimmy Learns How to Yodel").
    4. Drag the folder with the footage/clips into my external hard drive into a pre-existing folder titled "Backups/duplicates of all of my raw footage/clips." This big granddaddy folder will house all of the child folders of different movies.
    5 Then, open up iMovie '11 and import the raw footage/clips from my Desktop rather than from my camcorder.
    6. Then I want to make a duplicate of my finished movie and put it in my external hard drive in a "Finished Movies" folder.
    I know that the original raw unedited footage will always be in iMovies '11 but I want the original to also exist immediately accessible in my external hard drive.
    QUESTION:
    Is this viable? Is it wise? (I know it goes an extra unnecessary step, but aside from that.)
    *Do you have any precautionary advice?* Should I do something in my iMovies '11 preferences? What?
    In earlier years with iMovie '04 or '06 (cannot recall) I made many novice errors and ended up losing audio to my finished movie. I also lost footage.
    This time around with iMovie '11 I don't to make such novice, ignorant errors.
    Thanks so much for any comments to this question.
    -L

    Yes I'm sure it will work great for you.
    The iFrame format is something Apple has come up with. The reason for its existence is unknown to me so I can only speculate. But it seems to me that Apple "invented" this format in order to have devices such as Ipod/Ipad/Iphone/Ixxx create clips that are editable on consumer hardware such as already mentioned devices but also standard Mac computers, without the need for format conversion.
    iMovie converts most input formats during import, which takes a lot of time, and this need for conversion often comes as a surprise to most people new to home video editing.
    iFrame has a resolution of 960x540 which is long way from the common standards of 1920x1080 and 1280x720. If your end target is YouTube however, this may not be too bad though. However if you intend to go with YouTube HD, you may find iFrame footage to look wrong since they are effectively upscaled to a higher resolution.
    Technically iFrame uses the H.264 algorithm, a smaller frame size (960x540) and a rather low compression scheme. This will result in large files, but the plus side is that the files are ready for editing without the need for any conversion and iMovie will natively edit the files.

  • What are the logical structure and physical structure in oracle

    what are the logical structure and physical structure in oracle and how can allocate a DB block size as default size is 8192?

    From the Concepts Guide
    http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14220/toc.htm
    The physical structures are:
    Datafiles
    Control Files
    Redo Log Files
    Archive Log Files
    Parameter Files
    Alert and Trace Log Files
    Backup Files
    The Logical Structures are:
    Tablespaces
    Oracle Data Blocks
    Extents
    Segments

Maybe you are looking for

  • Error while posting TDS through J1INC

    Hi,      My client is posting TDS with TCode: J1INC and while executing error message ," FI/CO interface: Inconsistent FI/CO line item data for updating" is displayed. Message No is RW016. I have checked all the configurations for Tax codes and its f

  • I've lost my menu bar and command bar. How do I get them back?

    Now that they're gone, right clicking does not bring up an option to re-enable them. By "command bar" I mean the edit box where you enter a new website. Maybe it's called the address bar.

  • How to downlaod full version of adobe photshop 7.0 i have only 30 days trail version

    hey i am new in this forum and using adobe photshop 7.0 trial version but after 30 days it not work and display meassage to buy full version how can i extend its free version.

  • Need help skype update

    hi,  how can i disable the updates for skype, um like every time i turn my laptop on it always say skype to update or not now and its kinda annoying now.... I need older version of skype please, i really do not like the new UI.. Ive tried this: Go to

  • BW Basic Knowledge needed

    Hello to all, Can anyone in here give me the SAP Basic BW knowledge that I need to know to start supporting the said system? In terms of issues encountered, I think for me is important to have knowledge is comparing data from R/3 and BW, how are data