URL with Dynamic Content

Hi WD Gurus,
after executing a BAPI I get back a filename and an URL (generally it is an excel file)
The url is something like this:
"HTTP://srm.customerX.com:8000/sap/ebp/docserver/110/ScreenTemplateChanges.xls?attkget&KpId=26DE385E3F454BBA7B7244280B12C7&KpClass=BBP_L_DOC"
I want to expose the filename and the URL as its link.
At first it seems pretty straightforward... but I already tried LinkToURL, LinkToAction and FileDownload
but it seems that you have to have your excel file "pre-loaded" in your WD app, but I can't have that
because I get this the URL when the BAPI is executed....
Can somebody help me out? I am using Web AS 6.40 SP13
thanks,
Kentaro

Hi Maksim and Satyajit,
the problem is that I am getting a web resource not found message indicating that it can't find the excel file in the web AS server. Actually the file resides in the SRM server that is in a different url/machine.
I will get the detailed message as soon as I get in the office.
regards,
Kentaro

Similar Messages

  • Create Portal Page Design with Dynamic content in Moss2007(without using Visual Studio)

    Hi All,
    I am facing a issue while designing a page in MOSS 2007. I can't use custom code as the client doesn't want it to be used.
    The page is with dynamic content coming from sharepoint lists and picture library. I tried using SharePoint Listview after adding zones as per my page design..but was unsuccessful because I am unable to change its design and css styles in its xslt view.
    Plesae help me to find any alternative so that I can easily style my page with the dynamic content. Is there any way using Content editor webparts? Can we get List data in Content editor html as this can be easily styled. I googled and tried it by using javascript
    and jquery but again unsuccessful.
    Please help me with some solution.
    Thanks..!!

    I recommend your repost this in the WebLogic Portal forum.
    WebLogic Portal

  • Content Presenter taskflow - with dynamic content ID

    Hi there,
    I am using content presenter taskflow to display HTML content on my WebCenter portal page. I have create one generic page with a content presenter taskflow to display multiple generic pages with dynamically assigning the content ID. Please find below the code snippet for more information.
    <taskFlow id="doclibcontentpresenter1"
    taskFlowId="/oracle/webcenter/doclib/view/jsf/taskflows/presenter/contentPresenter.xml#doclib-content-presenter"
    activation="deferred"
    xmlns="http://xmlns.oracle.com/adf/controller/binding">
    <parameters>
    <parameter id="taskFlowInstId"
    value="${'a18cff64-091c-4181-a21c-513c52cf112a'}"/>
    <parameter id="datasourceType" value="${'dsTypeSingleNode'}"/>
    <parameter id="datasource"
    value="${'UCMCon#dDocName:'}${portalCommonComponents.contentIdForDetailPage}"/>
    <parameter id="templateCategory" value="${''}"/>
    <parameter id="templateView" value="${''}"/>
    <parameter id="maxResults" value="${''}"/>
    </parameters>
    </taskFlow>
    In the above code snippet I have added ${portalCommonComponents.contentIdForDetailPage} which will return the Content ID dynamically. The reason why I have used this approcach is that as per the requirment there are lot of detail pages.
    Everything is working fine but sometimes it's throwing exception for load cache.
    Please suggest is there something wrong with this approach, if so suggest me some alternative solution using single Content Presenter Taskflow to display in multiple pages by assigning content ID dynamically.
    Thanks

    Hi,
    I do not have any custome folder in default navigation.
    Please find the code snippet of default navigation.
    <?xml version="1.0" encoding="US-ASCII" ?>
    <navigationDefinition description="Default Navigation"
    id="default-navigation-model"
    name="Default Navigation"
    xmlns="http://xmlns.oracle.com/adf/rcs/catalog" visible="#{true}">
    <contents xmlns="http://xmlns.oracle.com/adf/rcs/catalog">
    <url visible="#{true}" id="mNav"
    factoryClass="oracle.webcenter.portalframework.sitestructure.rc.AdfPageResourceFactory"
    url="page://KACSTHomePage">
    <attributes>
    <attribute isKey="false" attributeId="Title" value="Main Nav"/>
    <attribute isKey="false" attributeId="Redirect" value="true"/>
    </attributes>
    <contents>
    <url factoryClass="oracle.webcenter.portalframework.sitestructure.rc.AdfPageResourceFactory"
    visible="#{true}" id="whatwedo" url="page://KACSTWhatWeDoPage">
    <attributes>
    <attribute value="WHAT WE DO?" isKey="false" attributeId="Title"/>
    <attribute value="true" isKey="false" attributeId="Redirect"/>
    <attribute value="level-one singlenav" isKey="false"
    attributeId="StyleClass"/>
    <attribute value="WHAT WE DO?" isKey="false"
    attributeId="NavigationTitle"/>
    <attribute isKey="true" attributeId="ArabicTitle"
    value="NAV.WHAT_WE_DO"
    resourceBundle="com.kacst.kacstportal.resourcebundle.KACSTPortalResourceBundle_ar"/>
    </attributes>
    <parameters/>
    <contents>
    <url factoryClass="oracle.webcenter.portalframework.sitestructure.rc.AdfPageResourceFactory"
    visible="#{true}" id="innovation"
    url="page://KACSTInnovationPage">
    <attributes>
    <attribute value="INNOVATION" isKey="false"
    attributeId="Title"/>
    <attribute value="innovation" isKey="false"
    attributeId="StyleClass"/>
    <attribute attributeId="Redirect" isKey="false" value="true"/>
    <attribute attributeId="ArabicTitle" value="NAV.INNOVATION"
    isKey="true"
    resourceBundle="com.kacst.kacstportal.resourcebundle.KACSTPortalResourceBundle_ar"/>
    <attribute isKey="false" value="innovation"
    attributeId="ExternalId"/>
    </attributes>
    <contents>
    <url factoryClass="oracle.webcenter.portalframework.sitestructure.rc.AdfPageResourceFactory"
    visible="#{true}" id="indprop"
    url="page://KACSTGenericDetailPage">
    <attributes>
    <attribute value="Industrial Property" isKey="false"
    attributeId="Title"/>
    <attribute value="true" isKey="false"
    attributeId="Redirect"/>
    <attribute isKey="true" attributeId="ArabicTitle"
    value="NAV.INDUSTRIAL_PROPERTY"
    resourceBundle="com.kacst.kacstportal.resourcebundle.KACSTPortalResourceBundle_ar"/>
    <attribute isKey="false" value="industrialproperty"
    attributeId="ExternalId"/>
    </attributes>
    <parameters/>
    <contents/>
    </url>
    <url factoryClass="oracle.webcenter.portalframework.sitestructure.rc.AdfPageResourceFactory"
    visible="#{true}" id="tiic"
    url="page://KACSTGenericDetailPage">
    <attributes>
    <attribute value="Technology Incubator and Innovation Centers"
    isKey="false" attributeId="Title"/>
    <attribute value="true" isKey="false"
    attributeId="Redirect"/>
    <attribute isKey="true" attributeId="ArabicTitle"
    value="NAV.TECHNOLOGY_INCUBATOR_INNOVATION_CENTERS"
    resourceBundle="com.kacst.kacstportal.resourcebundle.KACSTPortalResourceBundle_ar"/>
    <attribute isKey="false" value="techincubator"
    attributeId="ExternalId"/>
    </attributes>
    <parameters/>
    </url>
    <url factoryClass="oracle.webcenter.portalframework.sitestructure.rc.AdfPageResourceFactory"
    visible="#{true}" id="exi"
    url="page://KACSTGenericDetailPage">
    <attributes>
    <attribute value="Encouraging Excellence and Innovation"
    isKey="false" attributeId="Title"/>
    <attribute value="last" isKey="false"
    attributeId="StyleClass"/>
    <attribute isKey="false" attributeId="Redirect"
    value="true"/>
    <attribute isKey="true" attributeId="ArabicTitle"
    value="NAV.ENCOURAGING_EXCELLATION_INNOVATION_CENTERS"
    resourceBundle="com.kacst.kacstportal.resourcebundle.KACSTPortalResourceBundle_ar"/>
    <attribute isKey="false" value="encourageexcellence"
    attributeId="ExternalId"/>
    </attributes>
    <parameters/>
    </url>
    </contents>
    </url>
    <url factoryClass="oracle.webcenter.portalframework.sitestructure.rc.AdfPageResourceFactory"
    visible="#{true}" id="services" url="page://KACSTServicesPage">
    <attributes>
    <attribute value="SERVICES" isKey="false" attributeId="Title"/>
    <attribute value="true" isKey="false" attributeId="Redirect"/>
    <attribute value="last services" isKey="false"
    attributeId="StyleClass"/>
    <attribute attributeId="ArabicTitle" value="NAV.SERVICES"
    isKey="true"
    resourceBundle="com.kacst.kacstportal.resourcebundle.KACSTPortalResourceBundle_ar"/>
    <attribute isKey="false" value="services"
    attributeId="ExternalId"/>
    </attributes>
    <contents>
    <url factoryClass="oracle.webcenter.portalframework.sitestructure.rc.AdfPageResourceFactory"
    visible="#{true}" id="is"
    url="page://KACSTGenericDetailPage">
    <attributes>
    <attribute value="Information Services" isKey="false"
    attributeId="Title"/>
    <attribute value="true" isKey="false"
    attributeId="Redirect"/>
    <attribute isKey="true" attributeId="ArabicTitle"
    value="NAV.INFORMATION_SERVICES"
    resourceBundle="com.kacst.kacstportal.resourcebundle.KACSTPortalResourceBundle_ar"/>
    <attribute attributeId="ExternalId" isKey="false"
    value="informationservices"/>
    </attributes>
    <contents>
    <url visible="#{true}" id="ovrvw"
    factoryClass="oracle.webcenter.portalframework.sitestructure.rc.AdfPageResourceFactory"
    url="page://KACSTUnderConstructionPage">
    <attributes>
    <attribute value="Overview" attributeId="Title"
    isKey="false"/>
    <attribute value="true" attributeId="Redirect"
    isKey="false"/>
    <attribute isKey="false" attributeId="ArabicTitle"
    value="Overview"/>
    </attributes>
    <parameters/>
    </url>
    <url visible="#{true}" id="servcs"
    factoryClass="oracle.webcenter.portalframework.sitestructure.rc.AdfPageResourceFactory"
    url="page://KACSTUnderConstructionPage">
    <attributes>
    <attribute value="Services" attributeId="Title"
    isKey="false"/>
    <attribute value="true" attributeId="Redirect"
    isKey="false"/>
    <attribute isKey="true" attributeId="ArabicTitle"
    value="NAV.SERVICES"
    resourceBundle="com.kacst.kacstportal.resourcebundle.KACSTPortalResourceBundle_ar"/>
    </attributes>
    <parameters/>
    </url>
    <url visible="#{true}" id="infrmtnresrcs"
    factoryClass="oracle.webcenter.portalframework.sitestructure.rc.AdfPageResourceFactory"
    url="page://KACSTUnderConstructionPage">
    <attributes>
    <attribute value="Information Resources"
    attributeId="Title" isKey="false"/>
    <attribute value="true" attributeId="Redirect"
    isKey="false"/>
    <attribute isKey="true" attributeId="ArabicTitle"
    value="NAV.INFORMATION_RESOURCES"
    resourceBundle="com.kacst.kacstportal.resourcebundle.KACSTPortalResourceBundle_ar"/>
    </attributes>
    <parameters/>
    </url>
    <url visible="#{true}" id="infrmtnsrvcsfaq"
    factoryClass="oracle.webcenter.portalframework.sitestructure.rc.AdfPageResourceFactory"
    url="page://KACSTGenericDetailPage">
    <attributes>
    <attribute value="FAQ" attributeId="Title"
    isKey="false"/>
    <attribute value="true" attributeId="Redirect"
    isKey="false"/>
    <attribute isKey="false" attributeId="ArabicTitle"
    value="FAQ"/>
    <attribute isKey="false" value="faq"
    attributeId="ExternalId"/>
    </attributes>
    <parameters/>
    </url>
    <url visible="#{true}" id="cntctus"
    factoryClass="oracle.webcenter.portalframework.sitestructure.rc.AdfPageResourceFactory"
    url="page://KACSTUnderConstructionPage">
    <attributes>
    <attribute value="Contact Us" attributeId="Title"
    isKey="false"/>
    <attribute value="true" attributeId="Redirect"
    isKey="false"/>
    <attribute value="last" attributeId="StyleClass"
    isKey="false"/>
    <attribute isKey="true" attributeId="ArabicTitle"
    value="NAV.CONTACT_US"
    resourceBundle="com.kacst.kacstportal.resourcebundle.KACSTPortalResourceBundle_ar"/>
    </attributes>
    <parameters/>
    </url>
    </contents>
    </url>
    <url factoryClass="oracle.webcenter.portalframework.sitestructure.rc.AdfPageResourceFactory"
    visible="#{true}" id="ns"
    url="page://KACSTGenericDetailPage">
    <attributes>
    <attribute value="National Services" isKey="false"
    attributeId="Title"/>
    <attribute value="true" isKey="false"
    attributeId="Redirect"/>
    <attribute value="last" isKey="false"
    attributeId="StyleClass"/>
    <attribute isKey="true" attributeId="ArabicTitle"
    value="NAV.NATIONAL_SERVICES"
    resourceBundle="com.kacst.kacstportal.resourcebundle.KACSTPortalResourceBundle_ar"/>
    <attribute attributeId="ExternalId" isKey="false"
    value="nationalservices"/>
    </attributes>
    <contents>
    <url visible="#{true}" id="radiation"
    factoryClass="oracle.webcenter.portalframework.sitestructure.rc.AdfPageResourceFactory"
    url="page://KACSTGenericDetailPage">
    <attributes>
    <attribute value="Radiation" attributeId="Title"
    isKey="false"/>
    <attribute value="true" attributeId="Redirect"
    isKey="false"/>
    <attribute isKey="true" attributeId="ArabicTitle"
    value="NAV.RADIATIONS"
    resourceBundle="com.kacst.kacstportal.resourcebundle.KACSTPortalResourceBundle_ar"/>
    <attribute isKey="false" value="radiation"
    attributeId="ExternalId"/>
    </attributes>
    <parameters/>
    </url>
    <url visible="#{true}" id="rdtnmntrng"
    factoryClass="oracle.webcenter.portalframework.sitestructure.rc.AdfPageResourceFactory"
    url="page://KACSTGenericDetailPage">
    <attributes>
    <attribute value="Radiation Monitoring"
    attributeId="Title" isKey="false"/>
    <attribute value="true" attributeId="Redirect"
    isKey="false"/>
    <attribute isKey="true" attributeId="ArabicTitle"
    value="NAV.RADIATION_MONITORING"
    resourceBundle="com.kacst.kacstportal.resourcebundle.KACSTPortalResourceBundle_ar"/>
    <attribute isKey="false" value="radiationmonitoring"
    attributeId="ExternalId"/>
    </attributes>
    <parameters/>
    </url>
    <url visible="#{true}" id="spcimages"
    factoryClass="oracle.webcenter.portalframework.sitestructure.rc.AdfPageResourceFactory"
    url="page://KACSTGenericDetailPage">
    <attributes>
    <attribute value="Space Images" attributeId="Title"
    isKey="false"/>
    <attribute value="true" attributeId="Redirect"
    isKey="false"/>
    <attribute isKey="true" attributeId="ArabicTitle"
    value="NAV.SPACE_IMAGES"
    resourceBundle="com.kacst.kacstportal.resourcebundle.KACSTPortalResourceBundle_ar"/>
    <attribute isKey="false" value="spaceimages"
    attributeId="ExternalId"/>
    </attributes>
    <parameters/>
    </url>
    <url visible="#{true}" id="crscntobsrvtn"
    factoryClass="oracle.webcenter.portalframework.sitestructure.rc.AdfPageResourceFactory"
    url="page://KACSTGenericDetailPage">
    <attributes>
    <attribute value="Crescent Observation"
    attributeId="Title" isKey="false"/>
    <attribute value="true" attributeId="Redirect"
    isKey="false"/>
    <attribute isKey="true" attributeId="ArabicTitle"
    value="NAV.CRESCENT"
    resourceBundle="com.kacst.kacstportal.resourcebundle.KACSTPortalResourceBundle_ar"/>
    <attribute isKey="false" value="crescentobservation"
    attributeId="ExternalId"/>
    </attributes>
    <parameters/>
    </url>
    <url visible="#{true}" id="sptlinfrmtn"
    factoryClass="oracle.webcenter.portalframework.sitestructure.rc.AdfPageResourceFactory"
    url="page://KACSTGenericDetailPage">
    <attributes>
    <attribute value="Spatial Information"
    attributeId="Title" isKey="false"/>
    <attribute value="true" attributeId="Redirect"
    isKey="false"/>
    <attribute isKey="true" attributeId="ArabicTitle"
    value="NAV.SPATIAL_INFORMATION"
    resourceBundle="com.kacst.kacstportal.resourcebundle.KACSTPortalResourceBundle_ar"/>
    <attribute isKey="false" value="spatialinformation"
    attributeId="ExternalId"/>
    </attributes>
    <parameters/>
    </url>
    <url visible="#{true}" id="mngmntenrgycnsmptn"
    factoryClass="oracle.webcenter.portalframework.sitestructure.rc.AdfPageResourceFactory"
    url="page://KACSTGenericDetailPage">
    <attributes>
    <attribute value="Management Of Energy Consumption"
    attributeId="Title" isKey="false"/>
    <attribute value="true" attributeId="Redirect"
    isKey="false"/>
    <attribute value="last" attributeId="StyleClass"
    isKey="false"/>
    <attribute isKey="true" attributeId="ArabicTitle"
    value="NAV.MANAGEMENT_OF_ENERGY_CONSUMPTION"
    resourceBundle="com.kacst.kacstportal.resourcebundle.KACSTPortalResourceBundle_ar"/>
    <attribute isKey="false"
    value="managementofenergyconsumption"
    attributeId="ExternalId"/>
    </attributes>
    <parameters/>
    </url>
    </contents>
    </url>
    </contents>
    </url>
    </contents>
    </url>
    </contents>
    </url>
    </contents>
    <schema resourceBundle="oracle.adf.rc.attribute.nls.AttributeBundle">
    <descriptor multivalue="false" shortLabelKey="TITLE.SHORT_PROMPT_KEY"
    labelKey="TITLE.PROMPT_KEY" attributeId="Title"
    searchable="true" endUserVisible="true"/>
    <descriptor multivalue="false" shortLabelKey="ACCESS_KEY.SHORT_PROMPT_KEY"
    labelKey="ACCESS_KEY.PROMPT_KEY" attributeId="AccessKey"
    searchable="true" endUserVisible="true"/>
    <descriptor multivalue="false" shortLabelKey="DESCRIPTION.SHORT_PROMPT_KEY"
    labelKey="DESCRIPTION.PROMPT_KEY" attributeId="Description"
    searchable="true" endUserVisible="true"/>
    <descriptor multivalue="false" shortLabelKey="ICON_URI.SHORT_PROMPT_KEY"
    labelKey="ICON_URI.PROMPT_KEY" attributeId="IconURI"
    searchable="true" endUserVisible="true"/>
    <descriptor multivalue="true" shortLabelKey="SUBJECT.SHORT_PROMPT_KEY"
    labelKey="SUBJECT.PROMPT_KEY" attributeId="Subject"
    searchable="true" endUserVisible="true"/>
    <descriptor multivalue="false"
    shortLabelKey="REDIRECT_FLAG.SHORT_PROMPT_KEY"
    labelKey="REDIRECT_FLAG.PROMPT_KEY" attributeId="Redirect"
    searchable="true" endUserVisible="true"/>
    <descriptor multivalue="false" shortLabelKey="TARGET_FRAME.SHORT_PROMPT_KEY"
    labelKey="TARGET_FRAME.PROMPT_KEY" attributeId="Target"
    searchable="true" endUserVisible="true"/>
    <descriptor multivalue="false" shortLabelKey="TOOL_TIP.SHORT_PROMPT_KEY"
    labelKey="TOOL_TIP.PROMPT_KEY" attributeId="ToolTip"
    searchable="true" endUserVisible="true"/>
    <descriptor multivalue="false" shortLabelKey="MODIFIED.SHORT_PROMPT_KEY"
    labelKey="MODIFIED.PROMPT_KEY" attributeId="Modified"
    searchable="true" endUserVisible="true"/>
    <descriptor multivalue="false"
    shortLabelKey="CHANGE_FREQUENCY.SHORT_PROMPT_KEY"
    labelKey="CHANGE_FREQUENCY.PROMPT_KEY"
    attributeId="ChangeFrequency" searchable="true"
    endUserVisible="true"/>
    <descriptor multivalue="false" shortLabelKey="SIGNIFICANCE.SHORT_PROMPT_KEY"
    labelKey="SIGNIFICANCE.PROMPT_KEY" attributeId="Significance"
    searchable="true" endUserVisible="true"/>
    <descriptor multivalue="false" shortLabelKey="EXTERNAL_ID"
    labelKey="EXTERNAL_ID" attributeId="ExternalId"
    searchable="true" endUserVisible="true"
    resourceBundle="oracle.webcenter.navigationeditor.view.resource.NavigationEditorBundle"/>
    <descriptor multivalue="false" shortLabelKey=""
    searchable="true" attributeId="StyleClass"
    labelKey="" endUserVisible="true"
    xmlns="http://xmlns.oracle.com/adf/rcs/catalog"/>
    <descriptor multivalue="false" shortLabelKey=""
    searchable="true" attributeId="NavigationTitle"
    labelKey="" endUserVisible="true"
    xmlns="http://xmlns.oracle.com/adf/rcs/catalog"/>
    <descriptor multivalue="false" shortLabelKey=""
    searchable="true" attributeId="ArabicTitle"
    labelKey="" endUserVisible="true"
    xmlns="http://xmlns.oracle.com/adf/rcs/catalog"/>
    </schema>
    </navigationDefinition>
    Please let me know how to set the log level to FINEST in WebCenter portal, so that I will post he log for your analysis.
    Thanks

  • Iframe used to point to a URL with dynamic parameters??

    Hi guys,
    I am new to web dynpro java and having my first webdynpro project. Just wondering how to acquire the host name, port number and error message info. dynamically in order to form the following URL format. The iframe is directed to this following URL address.
    http://<%host name%>:<%port number%>/portal/ErrorPage.all?MSGID=<%=SYMSGID%>&NO=<%=SYMSGNO%>&PROG=<%=SYREPID%>
    I need to replace the <%...%> part with the dynamic content. Any one could provide me with some ideas? What java classes I should use? Thanks very much.

    Hi Libai
    Please refer to below docuement for getting host and port number in web dynpro for Java application.
    http://wiki.sdn.sap.com/wiki/display/WDJava/GettingPortalHostandPortNumberinWebDynpro+Application.
    http://santy.wikidot.com/wd-server-url-port
    Hope it helps
    Regards
    Arun

  • Need some help with dynamic content

    Okay so I have made a whole site design from the ground up, yea I know thats the easy part haha. Well now we have came into a problem in the coding aspect of the design. For the site we have dynamic content involved that is coded with PHP/HTML. The website contains a user system that requires them to log into view the content of the page.
    Well the issues I am having is I can not get flash to load this external file into a frame I have designated for it. Im not sure if flash can load external PHP/HTML and I need help to figure this issue out since I am new to Flash.
    Thank you for your time,
    Chris.

    One other thing you might try searching for, though to me it's just vague hearsay...  Someone may have written a class that can be use which enhances Flash's limited html capabilities and allows for thml content to be displayed (possibly being its own version of a browser of sorts)... but like I said, it's only hearsay to me, assuming I'm remembering the right hear.

  • Programm an static Design with dynamic Content

    Hello... I have an problem. I want programm an static design and and static menue, but the content must be dynamic. I know how it work with frames, but how does it work with an site only with tables... like this:
    http://www.galaxy-news.de/
    The menu is static but the content is dynamic and is work without frames.. But how? In the faces-config.xml is just an frame value:
    <navigation-case>
    <from-outcome>ok_next</from-outcome>
    <to-view-id>/masterDetail.jsp</to-view-id>
    </navigation-case>
    How does it work without frames. Here an example what I mean. It is an site with JSF without frames, but static design and dynamic content:
    http://www.irian.at/open_source.jsf
    Thanks for help

    <select name="gallerySelect" id="gallerySelect" onchange="dsGalleries.setCurrentRowNumber(this.selectedIndex);" spry:repeatchildren="dsGalleries" spry:choose="choose">
            <option spry:when="{ds_RowNumber} == {ds_CurrentRowNumber}" selected="selected">{sitename}</option>
            <option spry:default="default">{sitename}</option>
          </select>
    If i understand you correctly you want to use links, instead of a select.. You can do it like this:
    <ul spry:repeatchildren="dsGalleries">
         <li><a href="#{ds_RowNumber}" onclick="dsGalleries.setCurrentRowNumber(this.href.replace(/\#/g,''));">{sitename}</a></li>
    </ul>

  • Spry Menu with Dynamic Content

    I am having a problem with Spry Menus where the content is
    created dynamically, from another Javascript function.
    This seems to be a Firefox issue: it works in IE7.
    The menu content loads, but the drop down functions don't
    work. Is there a way to make this work.
    Here is an example:
    quote:
    <head>
    <script src="spry/SpryMenuBar.js"
    type="text/javascript"></script>
    <script type="text/javascript">
    <!--
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1",
    {imgDown:"../SpryAssets/SpryMenuBarDownHover.gif",
    imgRight:"../SpryAssets/SpryMenuBarRightHover.gif"});
    //-->
    function loadMenu() {
    ... script to build menu content (strMenu)...
    document.getElementByID(MenuBar1).innertHTML=strMenu;
    //-->
    </script>
    <body onload="loadMenu()">
    <div id="menu">
    <ul id="MenuBar1" class="MenuBarHorizontal">
    <ul id="MenuBar1" class="MenuBarHorizontal">
    <li><a class="MenuBarItemSubmenu" href="#">Item
    1</a>
    <ul>
    <li><a href="#">Item 1.1</a></li>
    <li><a href="#">Item 1.2</a></li>
    </ul>
    </li>
    <li><a class="MenuBarItemSubmenu" href="#">Item
    2</a>
    <ul>
    <li><a href="#">Item 2.1</a></li>
    <li><a href="#">Item 2.2</a></li>
    </ul>
    </li>
    </ul>
    </div>
    </body>
    I have tried putting the creation of the menubar widget after
    the menu was filled, but that did not work either.
    Thanks,
    Rob

    Hi,
    You should use observers to activate the Menu after the
    markup is built.
    This has to do with the way styles are applied.
    http://labs.adobe.com/technologies/spry/samples/menubar/MenuFromNestedData.html

  • How to fill my collapsible panels with dynamic content from PHP scripts?

    Hi people,
    I'm trying to generate dynamically generated content in a
    Spry collapsible panel. Previously I've generated PHP files that as
    an output generates a dynamic table with the data I want to show. I
    figured it would be possible to use an php include option to
    generate this table in a content section of a Spry collapsible
    panel. However, when I do this the collapsible panels appear to
    join and when panel1 is clicked all tables close instead of only
    panel 1 and all tables are put benath each other without putting it
    in each seperate panel. But when i replace the file with only the
    text "content" it works fine. Do i maybe have to add some kind of
    command at the end of my php file to make it look like the
    "content"-text or is this not the problem?
    I've been looking for the answer now for a couple of weeks on
    various forums and nothing seemed to work for me. Can please
    somebody help me out?
    Greets,
    Damian
    The code in its non working form:
    <head>
    <!--Link the CSS style sheet that styles the Collapsible
    Panel-->
    <link href="SpryAssets/SpryCollapsiblePanel.css"
    rel="stylesheet"
    type="text/css" />
    <!--Link the Spry Collapsible Panel JavaScript
    library-->
    <script src="SpryAssets/SpryCollapsiblePanel.js"
    type="text/javascript"></script>
    </head>
    <body>
    <!--Create the Collapsible Panel widget and assign
    classes to each element-->
    <div id="CollapsiblePanel1" class="CollapsiblePanel1">
    <div class="CollapsiblePanelTab">Tab</div>
    <div class="CollapsiblePanelContent"><?php
    include('details_books.php');?></div>
    </div>
    <div id="CollapsiblePanel2" class="CollapsiblePanel2">
    <div class="CollapsiblePanelTab">Tab</div>
    <div class="CollapsiblePanelContent"><?php
    include('details_authors.php');?></div>
    </div>
    <!--Initialize the Collapsible Panel widget object-->
    <script type="text/javascript">
    var CollapsiblePanel1 = new
    Spry.Widget.CollapsiblePanel("CollapsiblePanel1");
    </script>
    <script type="text/javascript">
    var CollapsiblePanel2 = new
    Spry.Widget.CollapsiblePanel("CollapsiblePanel2");
    </script>
    </body>

    you need to save the page as a php page (.php) It works
    fine

  • Upload/ Download with dynamic contents

    Hi Friends,
    I have to download a table content to an excel sheet that is dynamically generated on the basis of users' selection. I gone through examples 23 & 39 given in samples section for web dynpro but that works when I know the exact file to be downloaded from WAS but in my case, I have to create a file (as it seems to me) having the dynamically generated content & then I can download it to the client system. Here comes the problem, jxl package is not getting recognised by Web Dynpro (atleast not with the version I am using) and I am not getting any Web Dynpro API that can work in my case.
    Please help me out as this problem is obstructing my way in creating a critical development component.
    Thanks & Regards,
    Aditya P. Srivastava

    Hi Mahesh,
    I am using SAP Netweaver 2.0.16 and I tried jxl.write.WritableWorkbook to do the desirable but Web Dynpro is not recognising the above said package. So, I
    have to abandon the approach.
    Now I am trying the one having the following steps:
    (1) In the eventhandler for the link to "Download to Excel" (LinkTOAction UI),
        I am trying to implement the following code:
    /This method, after setting the file name & MIME type for the context attribute FileResource (that corresponds to link "Download to Excel"), fetches the path for the node that holds the data I have to download, and then sets that data to the above said path for the context attribute FileResource after converting it into byte[] (as FileResource is of type binary)/
    public void onActionDownloadExcel(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionDownloadExcel(ServerEvent)
         IWDAttributeInfo attInfo = wdContext.getNodeInfo().getAttribute(IPrivateZuw_ReposView.IContextElement.CTX__VA__FILE_RESOURCE);
    //     attInfo.getModifiableSimpleType();
         IWDModifiableBinaryType binary = (IWDModifiableBinaryType)attInfo.getModifiableSimpleType();
         binary.setFileName(fileName);
         binary.setMimeType(WDWebResourceType.XLS);
         IPrivateZuw_ReposView.ICtx_vn_showallNode showData = wdContext.nodeCtx_vn_showall();
         IPrivateZuw_ReposView.ICtx_vn_showallElement showEle = null;
         try
              String resourcePath = WDURLGenerator.getResourcePath(wdContext.nodeCtx_vn_showall().toString());
              wdComponentAPI.getMessageManager().reportSuccess(resourcePath);
              ByteArrayOutputStream out = new ByteArrayOutputStream();
              out = this.getByteArrayFroResourcePath(resourcePath);
                                    if(out != null)
              wdContext.currentContextElement().setCtx_va_FileResource(out.toByteArray());
                                    else
                                       wdComponentAPI.getMessageManager().reportWarning("ByteArrayOutputStream returned as NULL");
         catch(Exception e)
              wdComponentAPI.getMessageManager().reportWarning("Exception");
        //@@end
    (2) And for the function getByteArrayFroResourcePath(String), I've written:
    /*This returns ByteArrayOutputStream for the given resourcePath (It is, in my case, for the context node that holds the data I have to download) */
    public java.io.ByteArrayOutputStream getByteArrayFroResourcePath( java.lang.String resourcePath )
        //@@begin getByteArrayFroResourcePath()
         try
                FileInputStream in = new FileInputStream(new File(resourcePath));
                ByteArrayOutputStream out = new ByteArrayOutputStream();
                int length;
                byte[] part = new byte[10*1024];
                while((length = in.read(part)) != -1 )
                     out.write(part, 0 , length);
                in.close();
                return out;
                catch(FileNotFoundException e)
                     wdComponentAPI.getMessageManager().reportException(e.getLocalizedMessage(),true);
                catch(IOException e)
                     wdComponentAPI.getMessageManager().reportException(e.getLocalizedMessage(),true);
                return null;
        //@@end
    But this approach, though seems to me quite right, has problem. As the context node that holds data I need to download in Excel is not a Deployable object, so the system doesn't returns me the resource path; instead it is giving me
    ".\temp\webdynpro\web\Context_Node(system cannot find the file specified)".
    ByteArrayOutputStream returned as NULL.
    See into the issue and help me in getting the right solution.
    Thanks & Regards,
    Aditya P. Srivastava

  • .css and .js file with dynamic content

    Hi all !
    I would need to move all my javascript and css code from the JSP to separate files and then just include them to the page.
    This is of course just standard html code so no probs. there. The little twist is though that both the stylesheet and javascript content should be a bit different depending on the request parameters from the user.
    For example the css contains a few images that would need to be used and the paths and names of these images are defined by a custom taglibrary.
    The questions would then be: What is the preferred strategy to handle this? Is there a way to actually change the content of those files dynamically or is it just better to leave the dynamic parts on the page.
    Of course I can always create a separate servlet that generates them on the fly but that is not the way I would like to go...

    if you include your css like
    <LINK HREF=\"/application/css.jsp\" REL=\"stylesheet\" TYPE=\"text/css\">");
    then make sure your jsp has <%@ page contentType="text/css" %> set and you can make that css.jsp be dynamic and give you the css you need.
    SAme applies to javascript with <%@ page contentType="application/x-javascript" %>

  • How to create fillable PDF with dynamic content dropdowns?

    I'm creating a March Madness bracket for people that don't really understand how they work.  What I'd like to do is have dropdowns for each of bracket lines (they would list the teams playing against each other for that game and they would select who they think would win).  I would then like the dropdown for the next game to auto-populate with only the two options for the next round. 
    For example, team A and team B play against each other and teams C and D play against each other.  There are two separate dropdowns, one with A and B as choices and the other with C and D as choices.  The user thinks A and C will win their games, so the next dropdown would only have the options of selecting A and C.  To illustrate:
    AA and B are listed in the dropdown, and the user selects A to win.
    BA or C are listed in the dropdown because the user has selected A and C to win their previous games.
    CC and D are listed in the dropdown, and the user selects C to win.
    D
    I can make the first round dropdowns just fine, but I'm not sure how to conditionally/dynamically populate the second round dropdowns based off of user selections.

    I don't understand your request but my english is not the best.
    But here you can see a script. You can copy this in the first dropdown in the exit-event.
    In this example you will give the first dropdwon the entries
    "123"
    "345"
    "678"
    The first case describes what happens when the user clicks "123" the second drowdown will get the entries "456" and "789".
    When the user clicks "456" the second drowdown will get the entries "123" and "789".
    I think you can adapt this script as you need.
    Hope I could help a little bit,
    Mandy
    switch (xfa.event.newText)
        case "123":
            DropdownListe2.clearItems();
            DropdownListe2.addItem("Please select a value");
            DropdownListe2.addItem("456");
            DropdownListe2.addItem("789");
            DropdownListe2.selectedIndex = 0;
            break;
        case "456":
            DropdownListe2.clearItems();
            DropdownListe2.addItem("Please select a value");
            DropdownListe2.addItem("123");
            DropdownListe2.addItem("789");
            DropdownListe2.selectedIndex = 0;
            break;
        case "789":
            DropdownListe2.clearItems();
            DropdownListe2.addItem("Please select a value");
            DropdownListe2.addItem("123");
            DropdownListe2.addItem("456");
            DropdownListe2.selectedIndex = 0;
            break;
        default:
            break;

  • Q: Creating a drop list with dynamic content?

    Hi,
    Like to start off by saying that I am new to this so be gentle...
    I want to create a JSP which contains a search form.
    To limit the search options I want to present some of
    them as drop lists with pre-defined values.
    As the drop list values need to be easiliy updated
    I want to be able to control the content (using a servlet or a JB).
    What would be the best way of implementing this?
    Examples would be helpful.
    Regrads
    //Jimmy

    This is pretty easy to do. All you have to do is below:
    In the option tags place the jsp variable:
    <option><%=variable%></option>
    Good Luck,
    J.Clancey

  • Getting Container Height With Dynamic Content Added

    Hello,
    I'm having issues getting a containers height after adding
    content to that container. The code below shows you what I'm trying
    to do. I have tried to validate the container and still get a 0 in
    height. Is there a reason why this is happening because from my
    point of view, after I add an object to the container the height of
    the container should change. Please help.

    Probably has to do with the fact you are calling check() in
    applicationComplete, as this code works:

  • Focus form field with dynamic content but at top??

    Hi,
    I'm loading some text info from a db into a textfield in a
    form... I then use a bit of javascript to set the focus onto this
    field when the page is loaded..
    trouble is.. the focus'd cursor position is after all of the
    db text.. I need it at the top with the text below...
    how do I set the cursor position on the focus to be at the
    top not AFTER all of the db text..???
    James

    Hi,
    I'm loading some text info from a db into a textfield in a
    form... I then use a bit of javascript to set the focus onto this
    field when the page is loaded..
    trouble is.. the focus'd cursor position is after all of the
    db text.. I need it at the top with the text below...
    how do I set the cursor position on the focus to be at the
    top not AFTER all of the db text..???
    James

  • Struggling to create reports with dynamic names.... need help

    Hi everyone
    The reports that I create need to be named with dynamic content from the database. I did try to find if such an option exists in oracle portal, but alas to no avail. My report templates are going to be the same , but as the report content changes so should the report title. Does anyone has a solution to my problem
    Thanx in anticipation

    sorry ..it was silly of me ... i just found out the solution

Maybe you are looking for

  • Error while deleting a triple

    I am experiencing the following error, while I try to delete a triple from my model: I am able to insert data into the model, however I recieve the error when I execute the following delete statement: delete /*+ index(t test_model_tpl_idx) */ from te

  • HT201342 how can i change my icloud email address?

    I would like to change my address name with it still being linked to all of my current accounts, is this possible?

  • ITunes Library File Damaged; How Do I Get My Playlists Back?

    My PowerMac G4 was in Sleep mode, and the power went out in my house for two seconds. iTunes was open when the computer went down as was Stickies. Upon starting up my computer, I found all of my Stickies memos were gone, but worst of all, I got a win

  • IWeb 08 making all photos dark!!!

    Has anyone else noticed this? I am a professional photographer, and I'm TRYING to make a living from how awesome my images look. Ever since I upgraded to iLife '08 I've had problems with the photos on all the pages looking horrible! When you click on

  • ResourceBundle outside jar

    I'm packing my application in a jar file which looks like this */MainApp.class* */Language_de.properties* */Language.properties* Both properties files are for I18N purpose. In the code I load ResourceBundle like this ResourceBundle.getBundle("Languag