How to set static name and id for IFRAME html generated

Hi,
The name and the id of the Iframe is generated dynamically as shown in this example (final html generated):
<IFRAME frameBorder=0 id="ivuFrm_page0ivu3" name="pb_837905732" title="Direccion Comunicaciones Integradas Home" src="home_direccion_comunicaciones_integradas.html" style="WIDTH:100%;HEIGHT:455px;" fixedHeight="455px" ></IFRAME>
However, we need to link to this iframe using the  "target" property which has not been possible because we need static iframe name.
Anny suggestions?
THANKS.

Hi,
first of all  i think it is possible, you just need create a layout with nwds,  Thats possible in a .Par project you need this referance in portalapp.xml ;
<property name="ClassName" value="com.sapportals.portal.pb.layout.PageLayout"/>
after creating this  you need create a jsp file for coding, it is possible with writing this in portalappxml ;
<property name="com.sap.portal.reserved.layout.TemplateFile" value="example.jsp"/>
in this jsp page write this code:
<%@ taglib uri="prt:taglib:com.sap.portal.reserved.layout.TagLibLayout" prefix="lyt" %>
<%@ page import = "com.sapportals.portal.prt.pom.IPortalNode" %>
<%@ page import = "com.sapportals.portal.prt.connection.IPortalResponse" %>
<%@ page import = "com.sapportals.portal.prt.connection.PortalHtmlResponse" %>
<%@ page import = "com.sapportals.portal.prt.util.html.HtmlDocument" %>
<%@ page import = "com.sapportals.portal.prt.util.html.HtmlMeta" %>
<%@ page import = "com.sapportals.portal.prt.util.html.HtmlTitle" %>
<%@ page import = "com.sapportals.portal.prt.util.html.HtmlDocType" %>
<%
IPortalNode portalNode = componentRequest.getNode().getPortalNode();
IPortalResponse portalResponse =
     (IPortalResponse) portalNode.getValue(
          IPortalResponse.class.getName());
HtmlDocument htmlDocument = null;
if (portalResponse instanceof PortalHtmlResponse) {
     PortalHtmlResponse htmlResponse =
          (PortalHtmlResponse) portalResponse;
     htmlDocument = htmlResponse.getHtmlDocument();
     com.sapportals.portal.prt.util.html.Html htm = htmlDocument.getHtml();
     com.sapportals.portal.prt.util.html.HtmlBody body = htmlDocument.getBody();
     body.getElement("iframe name");
You can get elements and change, remove or add new elements to framework
%>
<table width ="100%" >
                   <lyt:template>
                       <tr>
                    <td width ="25%" align="center" valign="top">
                            <lyt:container id="column1" /> 
                       </td>
                    <td width ="50%" align="center" valign="top">
                         <lyt:container id="column2" />
                       </td>
                       <td>     
                    <td width ="25%" align="center" valign="top">
                         <lyt:container id="column3" />
                       </td>
                  </tr>
                  </lyt:template>
          </table>
After Deploying the layout, create a page with this layout and inculude the this empty  page to framework.
İts should be work.
Best regards.

Similar Messages

  • JList: how a set a "name" and "value" for a element

    my JList
    DefaultListModel listMBuddy;
    JList listBuddy;
    listMBuddy = new DefaultListModel();
    listBuddy = new JList(listMBuddy);
    listMBuddy.insertElementAt("buddy name 1", listMBuddy.size());
    listMBuddy.insertElementAt("buddy name 2", listMBuddy.size());
    listMBuddy.insertElementAt("buddy name 3", listMBuddy.size());a string "buddy name 1" will be show in JList, it is like a name of element.
    how i set value for "buddy name 1"? like html
    <select>
    <option value="5">buddy name 1</option>
    <option value="7">buddy name 2</option>
    <option value="2">buddy name 3</option>
    </select>
    thanks

    You have to write your own renderer.
    example:
    public class MyListsRenderer extends JPanel implements ListCellRenderer {
         JTextArea t;
         private LinkedHashMap<Integer, String> departmentsList;
         private LinkedHashMap<Integer, Boolean> checkedList;
         public MyListsRenderer(int tabSize) {
              t = new JTextArea();
              t.setTabSize(tabSize);
         public Component getListCellRendererComponent(JList list, Object value,
                   int index, boolean isSelected, boolean cellHasFocus) {
              Integer id = (Integer) value;
              // you need to create class that get an id (value) and return name
              //this is my example:
              String name = Contacts.getInstance().getContacts().get(
                        (Integer) value);
              t.setText(name);//this is the text in the list row
              add(t);
              return this;
    }

  • Please help me :How to set the width and height for my View page "test.htm"

    Hi,
        I have controller class. When i call the view[test.htm]from this controller class ,i am getting the view with output tableview..it is fine.
    My requirement:
                 the output view window is showing full browser window. I want the view output like showModeldialog. I want to set the width and height for the output view window. How is possible?
                 or
    i want to call the test.view in the window.showModelDialog..
    Please help me .. Urgent requirement.

    Yes you can set the width & Height of the view as follows..
    <div style="width:580px; height:750px; margin-top:15px; overflow:auto;">
    <htmb:form......>
    </htmlb:form>
    </div>
    <i>*Reward each useful answer</i>
    Raja T

  • How to set file name and destination folder without user interaction

    how can I set the file name and destination folder to generate a pdf file like "c:\myfolder\document.pdf" in this folder automatically.
    Is there a tag in .joboptions ?
    Goal: User click print button. In the background a pdf will be generated in e.g. "C:\myfolder\document.pdf".
    that`s it.
    I know that the query dialog for save as can be turned off. But the file name depends on the application.
    Thanks for your help.
    TK

    Hello,
    Please post this  in  PI forums
    Regards, Anil

  • How to set up DHCP and NAT for QNAP NAS MyCloud service?

    I have an Apple AirPort Extreme Base Station (AEBS) attached to my DSL model (no router in the modem).  My QNAP NAS is attached via ethernet to the QNAP NAS.  My iMac (running AirPort Utility 6.x) is connected to the AEBS via wifi.
    I've found several folks who've tried this (and apparently succeeded) but I'm a networking novice and am having trouble making this work.  What I did was to go into the AirPort utility and in the networking section configure "DHCP and NAT" and then called out the static IP and MAC address of the QNAP NAS (as well as the ports I'd like to remain open).  However, when I did this and applied the changes, my iMac (connected to the AEBS via wifi) could no longer see the AEBS, which then required me to reset the AEBS, re-configure it back to the previous known good conifiguration and start over.  After about 5 cycles of this I gave up.
    So, what am I doing wrong here?  Do I need to go in and configure every device that is going to access the AEBS as static and call out each device's IP and MAC address? (hopefully not, that'd be a major PITA).
    Help.  Anyone?

    When I run diagnostics with the QNAP, here is the reply I get (IPs redacted):
    ------ NAT PMP Diagnostics ------
    initnatpmp() returned 0 (SUCCESS)
    using gateway : xx.x.x.x
    sendpublicaddressrequest returned 2 (SUCCESS)
    readnatpmpresponseorretry returned 0 (OK)
    Public IP address : 192.168.xxx.xxx
    epoch = 2621
    closenatpmp() returned 0 (SUCCESS)
    ------ UPnP Diagnostics ------
    upnpc : miniupnpc library test client. (c) 2006-2011 Thomas Bernard
    Go to http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
    for more information.
    List of UPNP devices found on the network :
    desc: http://xx.x.x.x:60606/8CC1212D0C6D/Server0/ddd
    st: upnp:rootdevice
    desc: http://xx.x.x.x:9000/TMSDeviceDescription.xml
    st: upnp:rootdevice
    desc: http://xx.x.x.xx:55000/nrc/ddd.xml
    st: upnp:rootdevice
    desc: http://xx.x.x.xx:55000/dmr/ddd.xml
    st: upnp:rootdevice
    desc: http://xx.x.x.xx:49152/4/description.xml
    st: upnp:rootdevice
    desc: http://xx.x.x.xx:49152/2/description.xml
    st: upnp:rootdevice
    desc: http://xx.x.x.xx:49152/0/description.xml
    st: upnp:rootdevice
    desc: http://xx.x.x.xxx:8200/rootDesc.xml
    st: upnp:rootdevice
    desc: http://xx.x.x.xxx:49152/gatedesc.xml
    st: upnp:rootdevice
    desc: http://xx.x.x.xxx:49153/gatedesc.xml
    st: upnp:rootdevice
    desc: http://xx.x.x.xxx:49155/gatedesc.xml
    st: upnp:rootdevice
    desc: http://xx.x.x.xxx:9000/TMSDeviceDescription.xml
    st: upnp:rootdevice
    UPnP device found. Is it an IGD ? : http://xx.x.x.x:60606/
    Trying to continue anyway
    Local LAN ip address : xx.x.x.xxx
    GetConnectionTypeInfo failed.
    Status : , uptime=3217870016s, LastConnectionError :
      Time started : Wed Mar 13 17:04:03 1912
    MaxBitRateDown : 7 bps   MaxBitRateUp 0 bps
    GetExternalIPAddress() returned -3
    GetExternalIPAddress failed.
    GetGenericPortMappingEntry() returned -3 ((null))

  • How to set default encoding and charsets for jsp and servlets.

    Hi,
    Is there any possibility to set default encoding or charset for jsps and servlest (for both request and response)?
    For example in Weblogic such parameters can be set in weblogic specific configuration files (weblogic.xml).
    Thanks in advance.

    Hi,
    I created one request with logo in the header an page in the footer etc. and called StyleSheet. After you can import this formats by each request.
    You can do this in compound layout.
    Regards,
    Stefan

  • How to set password complexity and expiration for ClearPass admin users

    Requirement:
    As a server admin, i wish to set complexity for my ClearPass admin (management login) password and also as per company policy wish to set password expiration. This document explains how it can be achieved.
    Solution:
    From ClearPass 6.5.0 a new Password Policy Settings form was added for both local users and admin users.
    Configuration:
    To use this option, go to either Administration > Users and Privileges > Admin Users > Password Policy or Configuration > Identity > Local Users > Password Policy. Options that can be configured for the password include length, complexity, disallowed characters, disallowed words, disallowed user ID or repeated characters, and the number of days to expiration.
    Admin User
    Local User
    Verification
    In Password Policy updated the password complexity as following (atleast one uppercase and one lowercase letter and 3 as disallowed character). Also set the Password expiration to 5 days.
    After that tried to reset the admin password with character 3 and got an error as following

    Please follow below steps:-
    This is available starting in RUP4.
    The script to expire all passwords in the fnd_user table is $FND_TOP/patch/115/sql/AFCPEXPIRE.sql.
    It can be executed from SQL*Plus or as a Concurrent Program: sqlplus -s APPS/ @AFCPEXPIRE.sql
    or Submit concurrent request: CP SQL*Plus Expire FND_USER Passwords
    This script sets the fnd_user.password_date to null for all users which causes all user passwords to expire.The user will need to create a new password upon the next login.
    Thanks,
    JD

  • How to set up wifi and cellular for messaging

    My family has just purchased two iPhone 5Ss -- our first smartphones. When we message, sometimes we're message someone on an iPhone, but some of our friends have non-Apple devices. Yesterday, I was sending a group message to 3 people -- one on an iPhone and two on other devices. Wifi was on; cellular was off. The message failed to send until I turned cellular on. I would like to leave cellular off when I'm at home. Is there some combination of settings that will let messaging always work, no matter what the phone on the other end, with cellular off?

    Messages between iOS devices can be sent through wifi.
    If you're sending a group message and ANY member of the group has a different type of phone, the message will be sent as SMS or MMS, which require cellular service.
    You (and all of your contacts) would have to switch to a different messaging app, such as Whatsapp, in order for you to achieve what you want.
    ~Lyssa

  • How to set static IP for C4599 printer ???

    Was afraid if we clicked 'answered' <per 'answer' below> we may never get an answer to a followup question to 'PrintDoc'  at http://h30434.www3.hp.com/psg/board/message?board.id=Networking&thread.id=5277 .
    Hopefully this re-post will help.
    Question/s...
    1. When trying to set 'static IP', and click on 'this' link ( http://h30434.www3.hp.com/t5/forums/replypage/board-id/Networking/message-id/NetGear%20'RangeMax'%20... ) at your email < below> get...
    "An Unexpected Error has occurred."
    2. Also, getting printing error after HP Director shows C4500 wireless connected and starts printing.
    At 'Component Services' / 'Event Properties' shows...
    "The document http://wwwapps.ups.com/WebTracking/processInputRequest?HTMLVers owned by Alan failed to print on printer HP Photosmart C4500 series (Wireless). Data type: NT EMF 1.008. Size of the spool file in bytes: 48960. Number of bytes printed: 0. Total number of pages in the document: 2. Number of pages printed: 0. Client machine: \\AKM. Win32 error code returned by the print processor: 2250 (0x8ca).
    For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp."
    When click on 'events.aps' link get...
    'Event Viewer' showing 'xpsp2res.dll' file info ?
    Does #2. have anything to do with 'IP' question, and will 'static IP' fix ?"
    Please advise.
    Thanks much.
    Original answer...
    10-13-2009 10:03 AM
    PrintDoc 
    Master's Graduate
    Posts: 1383
    Registered: 08-19-2009
    Message 8 of 10
    Viewed 481 times
    Re: C4599, wireless Error-Printing, unable to 'communicate' with the device ???
    Sure we can set a static IP (actually we are going to reserve an IP address - even better).  But first, please mark the post that helped you solve the problem as "Accepted Solution".
    Connect to the wireless router by typing the IP address of the wireless router in the address field of your browser, then click Enter. 192.168.1.1 is the default IP address of the wireless router. The wireless router will prompt you to enter the user name of 'admin' and the password. The default password is 'password'.
    See the procedure on page 8-16 of this < http://h30434.www3.hp.com/t5/forums/replypage/board-id/Networking/message-id/NetGear%20'RangeMax'%20... > document to reserve and IP address for your printer. 
    You will need the MAC address of your printer (this is on the Network Config Page you printed from the front panel of the printer).
    (Although I am employed by HP, I am speaking for myself and not for HP)
    Original Posters - please mark the post that solves your problem as "Accepted Solution"
    Thanks again for your help !
    akm (XPproSP-3,IE-7,Office2003)
    This question was solved.
    View Solution.

    Thank you for the followup. 
    Just got back to this thread after trying what you suggested re new install program.
    Months ago, when originally tried to install new C4500, spent weekend, literally 4hrs on a Sat and 4hrs the following Sun with HP support on the phone trying to get C4500 wireless to work.
    Finally downloaded a new install program and after installing that and making other numerous setup adjustments, which I cant remember, it worked (the only saving grace for the time spent) for a while.
    But for the sake of trying, we did put in the original disk, just like page 4 (or our original paper manual) instructed (per your last post).
    The disk loaded and the program did its thing and then get...
    "A newer version fo this software is alredy installe on you HP HPPhotosmare C4500 series computer."
    So clicked 'finish'.
    Then loaded...
    PS_AIO_04_C4500_USW_Full_Win_enu_120_210_NB.exe
    ...which we thougth was the new installer program which we downloaded those months ago (same one you suggested).
    Started the '4 step' process.
    Got to 'step 3' and it connected to printer with usb cable.
    Along the way got message from 'network diagnostics'...
    "The PC and the printer are connected to different networks(192.168.1.0 and 192.168.0.0).  They must be connected to the same network.  This can happen when you use the manufacturer's default network name (SSID) and another nearby network is using the same name.
    The gateway address of the printer does not match the network to which the printer is connected. Reconfigure the setting on your printer to match."
    Tried changing ip addresses at network settings, but no help.
    Clicked on disregard and proceed.
    Started 'Network diagnostics' and got...
    HPPhotoshopEssential 'install' bar window.
    Either way, disk or new install program, get pop-up window with message...
    'The feature you are tryong to use is on a CD-ROM or tother removabledisk that inot available. Insert the 'HPPyotosmartEsesential' disk and click OK."
    Moved HP .msi and .cab files to same directory with ...NB.exe file.
    Install went ahead, and then needed 'setup.exe'.
    Opened setup.exe at disk and install went ahead.
    Installed latext updated 'HP Solution Center'.
    It showed both the C4500usb and wireless, but still wireless not 'connected'.
    Ran diagnostics and got same 'diagnostics' message as above.
    Made sure hardware enabled etc.
    How to fix ? 
    Thanks again for your help !
    akm (XPproSP-3,IE-7,Office2003)

  • How to fetch APPROVER NAME  and approval date dynamically for an user

    Hi all..
    How to fetch approver name and approval date dynamicall for an user in an email template..
    can any help me to sort out this pbm,i am new to IDM..
    Thanks in advance..

    Access policies get a static value.  You can't populate a field with an adapter.  If you must do this, leave the field blank, and put an adapter on the process form for your field that must be populated using code or logic.
    -Kevin

  • How do I get the user name and password for the Apple Extreme Router to connect to a Slingbox

    How do I get the user name and password for the Apple Extreme Router to set up my Slingbox?  It will not accept the Apple Extreme Name and password.

    The AirPort Extreme does not have a User Name, but it does have a device name and device password, which you may have already tried.
    There is also a Wireless Network Name and Wireless Network Password for the AirPort Extreme, which might be what the Slingbox is looking for if you are trying to connect it to your wireless network.
    There are no other "user names" or "passwords" on the AirPort Extreme.
    You established the device name, device password, wireless network name and wireless network password when you originally configured the AirPort Extreme.
    If you cannot remember these, you will need to perform a Soft Rest to reset everything. Follow the instructions in this Apple support document:
    Resetting an AirPort Base Station or Time Capsule FAQ

  • HT1386 How do I create one Apple ID and iTunes user name and password for all of my Apple products: iPad, iPhone, and iPod plus iTunes on my PC?

    How do I create one Apple ID and iTunes user name and password for all of my Apple products: iPad, iPhone, and iPod plus iTunes on my PC?

    Yes, I do have multiple devices and it appeared to me that every time I tried to sync or log onto iTunes, the password was incorrect.  Consequently, I was and am constantly changing it.  Wouldn't it be nice if Apple would simply say that you only need one Apple ID and one password regardless of the number of Apple devices you intend to sync via iTunes. 
    Barring the above, how about a way to merge all of the Apple IDs and passwords into one.

  • Firefox had saved my login name and password for a site, when I changed the password, FF won't ask to save/update it so I have to enter it manually now. How do I get it to prompt me in FF7.01?

    Using FF7.01 on a HP Pavilion dv6775us laptop running Vista Home (updated continuously)
    The site owner changed the rules in order to improve password security so I was required to create a new password. When I did so I was not prompted by FF7.01 to save the new password.
    When I next logged into the site, FF remembered the user name but presented the old (invalid) password. I was forced to manually enter the new password, but again was not prompted to save it to FF.
    I then went into FF Security, viewed the saved passwords and deleted the entry for the site in question. I expected that when I logged into that site the next time I would be asked if I wanted to save the username and password. I wasn't.
    I then exited from FF and relaunched it and again logged into the site in question. I was not prompted to save the username or password.
    How do I force FF to ask for and then save the username and password?

    Thank you for your reply.
    My problem isn't removing my log-in name and password for a site.
    The problem is I already had the log-in name and password saved by FF, but I was required by the site to change the password. FF did not recognize that it had changed and refuses to prompt me to save the new password.
    After several attempts to force the prompt, I deleted the site from the Saved Password list, hoping that the next time I entered my log-in name and password on that site FF would ask if I wanted to save both. That did not happen even after exiting FF and relaunching it.
    So, right now FF will not save my log-in name and password for a site that it used track for me. Given the complexity of the new password, I really do not want to manually enter it every time I use the site.
    Regards.

  • How do I find the image name and media_link for an ubuntu image in the Gallery?

    I am trying to create VM using Python API.  
    I have a custom Linux image:
    image_name = 'cloudN-Azure-20150205-os-2015-02-05'
    media_link = 'https://portalvhds10ssz63zgvb9g.blob.core.windows.net/vhds/cloudN-Azure-20150205-os-2015-02-05.vhd'
    When I used this image to create VM, it failed.
    I would like to use the ubuntu 1204 image in the Gallery.
    How do I specify the image_name and media_link in my Python code?  Basically, where and how do I find the image name and media_link for an image in the Azure image Gallery?
    Thanks in advance...

    hi sir,
    Did you try to use "List OS Image"? we can get the property form the results:
    result = sms.list_os_images()
    for image in result:
    print('Name: ' + image.name)
    print('Label: ' + image.label)
    print('OS: ' + image.os)
    print('Category: ' + image.category)
    print('Description: ' + image.description)
    print('Location: ' + image.location)
    print('Affinity group: ' + image.affinity_group)
    print('Media link: ' + image.media_link)
    print('')
    Please try it. Any questions or it doesn't work, please let me know.
    Regards,
    Will
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • My mac is not accepting my name and password for login because it is in arabic how am i suppose to login?

    my mac is not accepting my name and password for login because it is in arabic how am i suppose to login? how do i type Mark Yap in arabic, im typing it in pressing the actual letters on the keyboard but wint accept  it?

    I am assuming that you are trying to log in with the English language. If this is the case (or any other language for that matter), see if there is a button on the login screen that allows you to change your language.

Maybe you are looking for

  • How do I cause a form field to raise its blur event?

    I have a web form that displays an editable pdf document.  When a user clicks a button the form will get validated.  If one of the fields being validated has the focus its value will not get updated when I need to do the validation.  For example, if

  • ADF Faces + hardware device in the client side.( adf swing  or adf java fx)

    We are using adf+swing in desktop app. We like ADF Faces but we need interations with Hardware device in the client side: scan reader, web cam, bar code reader, finger prints reader - How to do that's in the adf faces web environment ( what about wit

  • Settings for yahoo, facebook, online banking messed up...thought it was norton caused the problem but they say not so...works with explorer???

    Cleaned up temp. files, etc with Norton and right after could not get yahoo, Facebook, or any of my bookmarked sites. Contacted Norton and they checked but said it wasn't their problem..suggested i contact Firefox. Everything runs normally with explo

  • Idoc unable to hit XI

    Hi All, Im actually executing the MM-SUS pre-shipped SAP scenario in XI. I have triggered the purchase order in the form of Idoc (orders.orders02) to XI (trans: me22n) It shows the status 03 in we02. but the idoc is not hitting xi and i dont see any

  • 3d graph display

    hi, i have a graph which is saved in a database. i want to create an application that displays this graph in 3D . i'm new to this (i played around with openGL once but that's about it) and so i have a few quesitons: (1) i read a few articles/posts an