Dynamic Page Title from Spry Dataset

Is it possible to create the title tag content dynamically
from the dataset? I tried placing the title tag after the creation
of the dataset and put this in, but it doesn't seem to work:
<title>Open Orders for
{dsCustomer::custname}</title>
Simon

That isnt really a correct way to set a header
U should make a little javascript that does;
document.title="your title here";

Similar Messages

  • Dynamic page information from the portal database?

    Is it possible to get information about existing dynamic pages from the portal database? We're upgrading our portal from 9.0.4 to 10.1.4 and because we will be running the new version on a different platform, we can't run any upgrade scripts and need to build again from scratch. I was hoping I could pull dynamic page information from a portal view or table into a spreadsheet, to save our developers having to click into each dynamic page application in the old version to get the pl/sql code to copy and paste into the new version. The generated dynamic page packages just have api calls, so it may be possible that there's an api to do this. Does anyone know if this is possible, and if so, how to do it? Thanks.

    closing the thread

  • How can we set page title from resource bundle

    Hi friends ,
    how can we set page title from resource bundle,
    <%--
        Document   : MARC008Music
        Created on : Aug 4, 2008, 6:27:06 PM
        Author     : root
    --%>
    <%@page contentType="text/html" pageEncoding="UTF-8"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@ taglib uri="https://ajax4jsf.dev.java.net/ajax" prefix="a4j"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
        <head>
    <title>All Transaction Log Details </title>
          </head>
        <body>
            <f:view>
                <f:loadBundle basename="#{utility.resourceBundle}" var="rb"/>
                <f:loadBundle basename="#{utility.messageBundle}" var="mb"/>
                <h:form>
                </h:form>
            </f:view>
        </body>
    </html>i want set title( All Transaction Log Details ) from resource bundle.

    My problem is solved , Thanking you Sir.
    Thanks & Regards,
    Edukondalu Avula

  • Get the page title from definition

    Hi, If I have the page definition label, how can I get the page title from jsp page or java class? Thanks

    If the jsp is on a portlet on that page then use
    http://download.oracle.com/docs/cd/E13155_01/wlp/docs103/javadoc/com/bea/netuix/servlets/controls/page/PagePresentationContext.html
    If you want to find out for some other page (i.e. the current page is different from the page you want the title of) then use
    http://download.oracle.com/docs/cd/E13155_01/wlp/docs103/javadoc/com/bea/netuix/servlets/controls/application/DesktopPresentationContext.html
    getPagePresentationContextRecursive...

  • Dynamic Page title

    Hi
    I have a requirment like, page title should dynamically changed.
    If clicked from "edit" button on "page2", then page1 should have title 'modify information'
    and if clicked from "add" button on page2 then page1 should have title 'add information'.
    How it can be done?
    Thanks in advance

    Hi,
    This might help
    Customize page title
    Regards,
    Jari

  • How do I hide the Dynamic Page parameters from being displayed in the URL

    Hello,
    I am using a form to call a Dynamic Page and to send parameters to it ,
    is there a way to hide the parameters values from being diplayed in the URL
    when the Dynamic Paged is called .
    Thanks .

    Hi,
    You cannot hide the parameters in the url. The GET method works like that. You can use the POST method to submit the parameters. But in your case the POST method may be not be appropriate.
    Thanks,
    Sharmila

  • Dynamic pages created from content stored in relation db - suggestions?

    I'm involved in the early stages of a project and need some guidance on the best approach
    to solve it. The idea is fairly simple. Users will access data stored in a relational database
    and see the data presented to them as conventional web pages. The only dynamic part
    of the web page is the query results returned to the user. The results will be wrapped in
    HTML and JavaScript also stored in the database.
    I've assumed that we'd just be using the browser, start page, Java applets, a JDBC and
    the relational database to handle this.
    Questions:
    1. Once the applets have received all of the content back, in the correct order, from the
    database, how is this fed to the browser so that it can be interpreted as a page?
    2. Will be necessary to use servlets, and if so, at what point does this become a good idea?
    I'm comfortable with the database issues, and have written a lot of HTML by hand. The part
    I'm fumbling with here is the stuff in between. All suggestions are welcome, even those that
    suggest that I RTFM - as long as the manual is named.
    Thanks.

    hi,
    1. Once the applets have received all of the content back, in the correct order, from the
    database, how is this fed to the browser so that it can be interpreted as a page?
    Well you dont actually need to use a Applet if you are just going to retrieve data from the Database for presentation in a Web page, you could use either Servlets or JSP for that, given that you already know HTML and java i dont think either of them is going to take time to learn.
    Well you could a Servlet for eg and in the Servlet write the server-side logic for generating the dynamic html content which is to be presented in the client side, if you are doing lotz of HTML work in the Servlet, you could write a JSP (a JSP will allow you to embed java code along with HTML tagz, much like ASP). I would suggest you use servlets initially though and when you become comfortable enough with servlets, you could also use JSP with JavaBeans.
    2. Will be necessary to use servlets, and if so, at what point does this become a good idea?
    I think itz a better idea to use Servlets to Applets for what you have in mind, for you can get inherant support for sessions, etc also if you write an applet with all that logic, itz going to take time to download that. Also the applet will be only a part of the page, all HTML for eg will be outside of the applet, if you plan to do output using HTML, i think you should use Servlets/JSP instead of Appletz.
    hope that helpz
    cheerz
    ynkrish

  • Getting a page title from a page label

    I need to get a localized title of a page using a page definition label. The page is not in the current presentation context, but is on a different page and inside a book. I've tried using the recursive calls in the Desktop Backing Context and the Desktop Presentation Context, but since the page is not currently displayed, I can't get the context by using the recursive calls.
    Is there a way to get the page's title without iterating through all of the children on the desktop?

    I have the following code:
    CustomizationContext customizationContext = new CustomizationContext(Locale.ENGLISH);
    InitialContext ic = new InitialContext();
    DesktopDefinitionManagerHome ddHome = (DesktopDefinitionManagerHome)PortableRemoteObject.narrow(ic.lookup("java:comp/env/ejb/DesktopDefinitionManager"),DesktopDefinitionManagerHome.class);
    DesktopDefinitionManager deskMgr = ddHome.create();
    DesktopDefinition[] defns = deskMgr.getDesktopDefinitions(customizationContext,"EnterprisePortalWeb");
    If I use a webapp name that doesn't exist, defns comes back without error but empty. If I use an existing webapp name, I have the following error:
    <May 20, 2008 1:19:01 PM CDT> <Error> <org.apache.beehive.netui.pageflow.PageFlo
    wPageFilter> <BEA-000000> <Exception occurred while handling exception java.rmi.
    RemoteException. The original exception will be thrown. Cause: java.lang.Asser
    tionError: org.apache.beehive.netui.pageflow.scoping.internal.ScopedRequestImpl
    Throwable: java.lang.AssertionError: org.apache.beehive.netui.pageflow.scoping.i
    nternal.ScopedRequestImpl
    Stack Trace:
    java.lang.AssertionError: org.apache.beehive.netui.pageflow.scoping.internal.Sco
    pedRequestImpl
    <May 20, 2008 1:19:01 PM CDT> <Error> <netuix> <BEA-423405> <An exception [EJB E
    xception: ; nested exception is:
            java.lang.NullPointerException] was thrown while rendering the content a
    t [portlets/overviews/accountManagement/AccountManagementController.jsp].
    java.rmi.RemoteException: EJB Exception: ; nested exception is:
    java.lang.NullPointerException
    at weblogic.ejb.container.internal.EJBRuntimeUtils.throwRemoteException(
    EJBRuntimeUtils.java:101)
    Edited by btiminey at 05/20/2008 11:22 AM

  • What advantages do Spry datasets have over database datasets

    I have been studying the Spry Dataset and have found it terribly difficult to understand what use it is.
    Can anyone explain why I should use it rather than using a database?
    On the face of it, Databases are much easier to construct and access, so why use an alternative system.
    From what I understand, I have to create a basic database table on an HTML page before I can attampt to create a spry dataset.
    Or even use the dataset of a database to create a Spry dataset. I appreciate that there are other methods.
    There are lots of articles telling one how to use it, but none stating what it is for and why one should use it - at least, none that I can find.
    Where are the advantages of this system, or are you all using it just for technologies sake?
    Or is it just an Adobe thing?

    whatalotofrubbish wrote:
    I have been studying the Spry Dataset and have found it terribly difficult to understand what use it is.
    Can anyone explain why I should use it rather than using a database?
    On the face of it, Databases are much easier to construct and access, so why use an alternative system.
    From what I understand, I have to create a basic database table on an HTML page before I can attampt to create a spry dataset.
    Or even use the dataset of a database to create a Spry dataset. I appreciate that there are other methods.
    There are lots of articles telling one how to use it, but none stating what it is for and why one should use it - at least, none that I can find.
    Where are the advantages of this system, or are you all using it just for technologies sake?
    Or is it just an Adobe thing?
    Hello,
    There are big difference between Datasets and databases. While I disagree with your point that Databases are easier to construct instead of Datasets. I understand your point. You should not see Datasets and databases as rivals of each others but more of a extension of each other. You use a database to store all your data and contents. When you execute a query on your database your will get a result set, or dataset. This usually the place when Spry could come in. You have data output from your database, now you just place it static on your page. Nothing wrong with that. But if you wish to create a interactive page it will usually require you to build allot of round trips to your server to present your data in different ways.
    With Spry these round trips can be handled on the client side. Once your users have received your data for the Spry Data Set there are allot things they can do with it, and usually faster than doing round trips to the server. For example your can sort and filter data sets, display information in a master and detail layout or even create different page states using the same data with out having to reload the page. This will create a more seamless experience for the user.
    For example our company is currently developing a search result page based on Spry Datasets. On the server side we have our database clusters that out the data for a search query. But this is usually 200+ result rows. In a traditional static website it would take a while for the user to digg through all results. Either by navigating to a next page, or filtering the dataset using forms.
    With Spry we now have our result set outputted as JSON (one of the formats Spry supports as data source for the Spry Data Set) we download it all to the client. And that is all they need. All sorting, filtering and pagination is done client side. So no more round trips to the server ( less server stress, and its faster ).
    I could go on about for hours but I hope this will give a general point of usages. If not take a look at the Spry demos. Which use Spry Data to create rich and interactive pages, and just imagine how you would have done that using traditional techniques and how long it would take you to build that.
    http://labs.adobe.com/technologies/spry/demos/

  • Accessing LONG datatype in Dynamic page

    I've been trying to access a LONG datatype in a cursor within a dynamic page. So far portal throws the following error:
    ORA-00922: missing or invalid option (WWV-11230)
    when I try the following code:
    <HTML>
    <HEAD>
    <TITLE>Dynamic Page</TITLE>
    </HEAD>
    <ORACLE>
    SET SERVEROUTPUT ON SIZE 100000;
    SET LONG 100000;
    declare
    v_text long;
    v_crn varchar2(10);
    cursor result_detail is
    select r.text, r.crn
    from results@mydb r
    where r.id = :p1;
    begin
    open result_detail;
    fetch result_detail into v_text, v_crn;
    htp.p etc ... display data ....
    close result_detail;
    end;
    </ORACLE>
    </BODY>
    </HTML>
    If I leave out the SET commands it can't find the page.
    Any clues? Has someone worked out how to get a LONG datatype value into Portal?
    Version 902.6.18 (win 2000 server)
    Thanks for any help.
    Philippe

    The SWF file was developed to work in such a way as it would only look in the root directory for the XML file.  Once the developer changed it so that it could access it from the same directory (regardless of what directory it was in), and then had to add 'id' and 'src' to the JavaScript function call, it worked like a charm.
    ^_^

  • How to get the Portal Page name from PLSQL?

    Can anyone tell me how to get the portal page name from my dynamic page using plsql?
    Apparently you can get the page id and work it out from there, but my calls to get the page id are not returning any values anyway.
    My code for attempting to get the page id is below.
    <oracle>
    declare
    v_pageid varchar2(30);
    begin
    v_pageid := wwpro_api_parameters.get_value('_pageid', '/pls/portal30');
    htp.print('Page is '|| v_pageid);
    end;
    </oracle>
    Ideally I'd actually just like to get the page name. Is there a straightforward way to do this?
    Thanks in advance!
    Sarah

    Few clarifications -
    1. wwpro_api_parameters cannot be used to get default portal
    page parameters such as '_pageid', '_dad', '_schema' etc.,
    2. Page information can be obtained through any components which
    are available in that particular page. For example, in case of
    dynamic page, we need to publish it as a portlet and add it to the
    page. This process creates necessary packages in the DB, but we
    will not have access to the portlet methods.
    So, I would prefer creating a simple DB provider & portlet and access
    page title from its show method as follows -
    //Declare local variable l_page_id, l_page_title as varchar2
    select page_id into l_page_id from wwpob_portlet_instance$ where
    portlet_id = p_portlet_record.portlet_id and
    provider_id = p_portlet_record.provider_id;
    select name into l_page_title from wwpob_page$ where id=l_page_id;
    More information on DB provider can be found at
    http://portalstudio.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/PDK/articles/understanding.database.providers.html
    Secondly, usage of wwpro_api_parameters.get_value method is
    incorrect. This method expects two arguments -
    <ul>
    <li><b>p_name : </b> The name of the parameter to be returned.</li>
    <li><b>p_reference_path : </b> An unique identifier for a portlet instance on the current page.</li>
    </ul>
    p_reference_path would be something like 99_SNOOP_PORTLET_76535103 and not some type of path as its name suggests.
    The following code fragment fetches all parameters available
    for a portlet.
    Note : Copy this code into 'show' method of your portlet.
    //Declare l_names, l_values as owa.vc_arr
    * Retreive all of the names of parameters for this portlet
    l_names := wwpro_api_parameters.get_names(
    p_reference_path=>p_portlet_record.reference_path);
    * Retreive all of the values of parameters for this portlet
    l_values := wwpro_api_parameters.get_values(p_names=>l_names,
    p_reference_path=>p_portlet_record.reference_path);
    //Loop through these arrays to get parameter information
    htp.p('<center><table BORDER COLS=2 WIDTH="90%" >');
    htp.p('<tr ALIGN=LEFT VALIGN=TOP>');
    htp.tableData(wwui_api_portlet.portlet_heading('Name',1));
    htp.tableData(wwui_api_portlet.portlet_heading('Value',1));
    htp.tableRowClose;
    if l_names.count = 0 then
    htp.p('<tr ALIGN=LEFT VALIGN=TOP>');
    htp.p('<td COLSPAN="2">'
    ||wwui_api_portlet.portlet_text(
    'No portlet parameters were passed on the URL.',1)
    ||'</td>');
    htp.tableRowClose;
    else
    for i in 1..l_names.count loop
    htp.p('<tr ALIGN=LEFT VALIGN=TOP>');
    htp.tableData(l_names(i));
    htp.tableData(l_values(i));
    htp.tableRowClose;
    end loop;
    end if;
    htp.p('</table></center>');
    Hope it helps...
    -aMJAD.

  • Who Will Be the First to Tweak IE9 To Restore the Page Title into the Title Bar?

    It's a well-known fact that if you disable the tabbed view (i.e., you prefer to use multiple separate windows for your browser pages) the Page Title from whatever web page you visit doesn't show up anywhere.
    How does a blatant omission like this pass a design review?
    It's like someone at Microsoft doesn't think titles belong in Title Bars any more.  Who is this person, and do they actually USE a computer?
    In a similar vein, Windows Explorer windows no longer put the path in the Title Bar -
    unless you use one of the fine aftermarket products such as ShellFolderFix or ClassicShell to restore the Title Bar to service.
    Has anyone figured out yet what to tweak to put the page title in the Window Title Bar for IE9?
    -Noel

    I see I just got another up-vote for the original post in this thread.
    Perhaps it's time to follow up...
    TODAY, with Windows 8.1 and IE11, we see that you can no longer eliminate tabbed view.  Thus there is a place - at the expense of some space for the address bar, where the page
    title appears.  But it is not the Title bar, and it's usually not wide enough to fit the whole title.
    Why is Microsoft continuing to choose to do ANYTHING but follow their own desktop usability standards? 
    We see the ongoing departure of application design from standards not only in IE, but also in Office and other Microsoft applications.
    Hey!  We users didn't designate that space across the tops of windows as a title area.  Microsoft did.  We just got used to using it.  When we look to activate the proper window on our desktops, we look at the titles.  Fortunately,
    there are 3rd party developers who make programs to put the right things back, but I'm forced to ask:  Why?  This is not an accident.
    Are we being groomed by Microsoft to become used to and ultimately begin to accept random UI design?
    Microsoft engineers, are you being instructed to make your designs less conformant to desktop usability standards by your bosses?  If so, you need to tell them to kiss your collective asses!  You're not doing your products any favors by following
    such ridiculous advice, and as your products go so will your company.  You are not too big to fail!
    People will only allow themselves to be manipulated for so long.  Then you'll find some other company has made a product that's better (something you're
    facilitating by making your product worse) and is eating your lunch.
    Have a nice day in Redmond.
    -Noel
    Detailed how-to in my eBooks:  
    Configure The Windows 7 "To Work" Options
    Configure The Windows 8 "To Work" Options

  • Muse crashes during copy & paste of page title in page properties

    Copying and pasting a page title from one page to another, causes a crash on the second or third paste.

    Hi Zak,
    Thanks so much for the reply. Here are the answers:
    Where was the text originally copied from?The text was manually typed into the Page Title field in Page properties, then copied from there into the same field for other pages
    Is the text pasted and then editing?Yes. The original line is 'Kingsdown Holiday Homes - Self Catering Chalet Rental at Kingsdown Park, Kent | Chalet 1b', and after pasting I change the Chalet number or words after the '|'
    Is this referring to the Page Title in the Options section of the Page Properties dialog?I am accessing the page properties through CTRL-Click on each page, from the Plan view
    How was the Page Properties dialog opened (from Page menu, from context menu in Plan view, from context menu in Design view, other)?See above
    All the best,
    Andrew

  • How to start the page count from second page (first is title)

    Hi all,
    I have been using Livecycle for a little while now and think I have got to grips with quite a bit of it to make some fairly simple interactive forms, but I have started to make more complex forms now and although I am able to work a lot of things out, one thing has stumped me. There are lots of threads about page numbering, but none seem to address my problem: I wish to have a 'page number' on the master page (done that) but I have 2 master pages, one is used for the first page (then not at all) and the second master page is used after that, that is the one with the page count on, that way the page number appears at the bottom on every page, apart from the first one. I need a way for the count to 'skip' the first page (as this is a title page and I do not want that numbered) and start numbering from page two of the form, but have it numbered as page 1.
    So basically the document will be Title page (no numbering), then pages after that of the form, starting from '1' shown on the bottom- it is a dynamic form that may change length as the user adds to it. Is there a script that I need to use, and if so how should I implement it? Any help would be appreciated, apologies if this is not very clear!

    Use the Custom object "Master Page n of m" on the second master page.
    Steve

  • Retrieve data from a dynamic page via loadURL

    Hello.
    I would like to ask you how it is possible to retrieve data
    from a dynamic page (asp classic in my case) using the loadURL
    method.
    I would like to create an html authentication form (with
    username and password fields). The loadURL method should call an
    asp page and then pass to the usual function 'DoIfSucceded' the
    results of the elaboration.
    Of course I'm going to have a switch in the function in order
    to make different actions depending from the results of the asp
    page (authentication succeded or failed).
    I had a look to the examples at this page:
    Adobe
    samples
    Is there anyone who can explain clearly how the results data
    must be written by the asp page and how the success function can
    retrieve them ?
    I thank you in advance for your help.

    loadURL() uses the the XMLHttpRequest Object so if the
    content you return is XML, you have 2 choices for accessing your
    data. You can either access it as a text string via the
    XMLHttpRequest object's responseText property, or as a DOM document
    via the XMLHttpRequest object's responseXML property:
    function MySuccessCallback(req)
    // If my data is XML, I can access the data that was sent
    from the server
    // as DOM elements via the XMLHttpRequest's responseXML
    property.
    var xmlDOM = req.xhRequest.responseXML;
    // OR, you can access the data sent back from the server as
    text via
    // the XMLHttpRequest object's responseText property.
    var xmlAsAString = req.xhRequest.responseText;
    var req = Spry.Utils.loadURL("GET",
    "/app/book.php?id=1&code=54321", true, MySuccessCallback);
    If your serverside script wants to use some other format as a
    response like JSON or plain text, then you can only access the data
    as text via the responseText property.
    --== Kin ==--

Maybe you are looking for