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

Similar Messages

  • 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";

  • 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.
    ^_^

  • Making a page title in workset dynamic

    Good Day All;
    I am using portal wizard to create a workset with 4 pages. I need one of these pages title to be dynamic specificaly displays "current year".
    What I want in the page name filed where to add the text, could I add some code to reflect the dynamic date?
    Regards

    Good Day All;
    I am using portal wizard to create a workset with 4 pages. I need one of these pages title to be dynamic specificaly displays "current year".
    What I want in the page name filed where to add the text, could I add some code to reflect the dynamic date?
    Regards

  • Can I dynamically display Page title over a static header image?

    Is there a way to Dynamically Display Page Title Text Over my static site Header Image? here is a link so you can see what I am talking about. http://www.bridgestoprosperity.org/See-Our-Work/afghanistan/afghanistan.htm where Afghanistan would be the text to be replaced automatically on each page.  Please note, currently, I must create individual headers, insert the page title in photoshop, etc. I am hoping to figure out a way for all this to happen dynamically perhaps by calling the text from the page title info.
    Thank you,
    Allan

    Hi, Allan,
    I realize my suggestion is off your point, and you probably have already thought of some of this, hence your question... But, rather than going the dynamic route, Why not create a Header Image without a title on it and use it as a div background image? Replace this
    <img src="/See-Our-Work/afghanistan/Images/header/afghanistan-header.jpg" name="topnavbar_r1_c1" width="779" height="114" border="0" alt="bridges to prosperity: afghanistan">
    with the styled div, for instance:
    <div id="header"><h2>Afghanistan</h2><h3>Bridges to Prosperity: USA</h3><div>
    At this point, you can use a more generic image for the background, one that does not have "Afghanistan" embedded in it, and you may style the #header thus:
    #header {
         width: 779px;
         height: 114px;
         border: 0;
         background-image: url(/See-Our-Work/Images/header/header.jpg;)/* for instance */ 
    and the header Headline styles thus:
    #header h2, #header h3 {
         color: white;
         text-align: right;
         font-family: Arial, Helvetica, sans-serif;
    Then you can place your html (<h2>, <h3> etc.) in the same div, only on the "surface".
    Using the tags <h2> and <h3> will maintain their usefulness to Search Engines; as hiding them in images does not.
    If you still wished to vary the header image, depending on the contents of the page, you can actually control all of this from the CSS file, if you add an id attribute to the <body> of each page.
    For instance, for your example page, if you did this:
    <body id="afghanistan">
    You could then do this in your CSS file:
    #header {
         width: 779px;
         height: 114px;
         border: 0;
    body#afghanistan #header {
         background-image: url(/See-Our-Work/afghanistan/Images/header/afghanistan-header.jpg);
    You could then proceed to have a different background image for each page. (Not your original intention, but now possible).
    <body id="pakistan"> would use a CSS style declaration like:
    body#pakistan #header {
         background-image: url(...pakistan-header.jpg...etc.);
    I am not aware of being able to pass content (other than background images) using CSS, so I would go into each page and put the Headline in html.
    But if you were using multiple background images in the header div (one image for afghanistan, another for pakistan, in my example), you can use the same <body id="afghanistan"> for ALL pages about Afghanistan, and thus have the continuity of the same image for all. Likewise, you could id all pages about Pakistan <body id="pakistan">.
    I hope this gives you some ideas...
    Z

  • Set page title dynamically

    Hi,
    I am trying to set page title programmatically.
    I am calling following in prerender method but it is not working
    this.getHead1().setTitle("This is new title");Any idea, what can I do achieve the same?
    Thanks.

    hi
    this can be done by goinig to design view ,, then make sure that no component of the page ( if there exixt ) is not selected
    then go to properties palette ,, and choose the smale button opposit TITLE and make data bidning with any object u want

  • Calling a procedure from Dynamic Page

    I am trying to call a procedure from a dynamic page. The procedure displays multi records from a table. I have created a procedure:
    PROCEDURE process_student_request( p_primary_request in wwv_utl_api_types.vc_arr,
    p_alternate_request in wwv_utl_api_types.vc_arr,
    p_action in varchar2,
    l_status in out varchar2);
    When I hit the submit button on the dynamic page it does not execute the procedure and tries to open a new page. How do I get this to work?
    Here is the text of the page:
    <HTML>
    <HEAD>
    <TITLE>Example</TITLE>
    </HEAD>
    <BODY>
    <FORM action="portal30.star_portal.process_student_requests" method="post">
    <TABLE BORDER="0" WIDTH="100%" CELLPADDING="2" CELLSPACING="0" class="RegionBorder">
    <TR>
    <TD valign="top" align="left" width="40%"><FONT class="PortletText1">
    <ORACLE>declare
    row_num number := 1;
    hold_row_num number;
    hold_class_cd stars3.req.class_cd%TYPE;
    begin
    for c1 in (select A.start_yy, A.school, A.student_id, A.class_cd, B.name from stars3.course B, stars3.req A
    where A.student_id = portal30.star_portal.get_session_variable('STUDENT_ID') and A.start_yy = '01' and
    A.alternate_no = '0' and
    B.start_yy = A.start_yy and
    B.school = A.school and
    B.class_cd = A.class_cd)
    loop
    hold_class_cd := c1.class_cd;
    htp.p(lpad(to_char(row_num),2,'0'));
    htp.p('<select name="p_primary_request">');
    htp.p('<option value="' || c1.class_cd|| '">' || c1.name || '</option>');
    row_num := row_num + 1;
    htp.p('<BR>');
    end loop;
    htp.p('<input type="submit" name="p_action">');
    end;
    </ORACLE>
    </BODY>
    </FORM>
    </TD>
    </TR>
    </TABLE>
    </HTML>

    Bob,
    You have variables in your procedure like l_status, p_alternate_status which you do not have in the form. Are these IN or OUT variables ?
    If these are IN variables, this proc will not work because you do not have any variable in the form. So from where does it get the values? There is not any default declared too. You have to explicitly define IN or OUT variables.
    Have you also given execute permission to public ?

  • Form in Dynamic page not working when checkbox is used.

    I have created a form using dynamic page. The form most have display fields and a checkbox field. When I check a box, it assigns 'Y' value and when unclick, it assign 'N' to the database field.
    When I submit the form, the procedure which is supposed to save the form data never gets executed. Well, at least it says, page not found HTTP 404 error.
    Interestingly if I make this field a text box and manually enter 'Y' or 'N', and then submit the form, the procedure is executed. Data gets saved.
    Is the checkbox not supposed to be used for a database field because checkbox value can be assigned only using javascript and the procedure never get that value ?
    Can you please tell me how to use a checkbox for a database field using dynamic page ?
    thanks,
    Mainak

    Sharmila,
    When I said, the form does not get submitted, I meant that the procedure does not work. The form gets submitted but the procedure does not work. It gives HTTP 404 error. That is what perplexes me. I am unable to understand why the procedure does not work when I click a checkbox.
    May be you can make this work. I am hopeless about this.
    Here is the code for the procedure sumbit_form:
    NOTE: I ADDED TWO FIELDS CALLED PROMOT VARCHAR2(1), PROMOTID NUMBER(4) TO THE EMP TABLE AND CREATED A NEW TABLE CALLED PROMOTEMP. THIS IS A TEST CASE.
    create or replace procedure sumbit_form
    (p_empno IN portal30.wwv_utl_api_types.vc_arr, p_promot IN portal30.wwv_utl_api_types.vc_arr, p_action IN VARCHAR2)
    is
    begin
    if p_action = 'save' then
    for i in 1..p_empno.count LOOP
    update scott.promotemp
    set promot = p_promot(i)
    where empno = p_empno(i);
    END LOOP;
    end if;
    commit;
    htp.p('<b>Saved Successfully</b>');
    htp.p('<table border=1 bordercolor="red">');
    for c1 in (select * from promotemp where promot='Y')
    LOOP
    htp.p('<tr><td>');
    htp.p(c1.ename);
    htp.p('</td><td>');
    htp.p(c1.job);
    htp.p('</td><td>');
    htp.p(c1.mgr);
    htp.p('</td><td>');
    htp.p(c1.sal);
    htp.p('</td><td>');
    htp.p(c1.deptno);
    htp.p('</td></tr>');
    end loop;
    htp.p('</table>');
    EXCEPTION
    when others then
    raise;
    end;
    Here is the code for the dynamic page.
    <HTML>
    <HEAD>
    <TITLE>Promot Emp</TITLE>
    <script language="JavaScript1.1">
    function include(form) {
    var thisform = form;
    for (var i=0; i<thisform.length; i++) {
         if (thisform.elements.type == 'checkbox') {
              if (thisform.elements[i].checked) {
                   thisform.elements[i].value = 'Y'; }
              else { thisform.elements[i].value = 'N'; }
    form.submit();
    function show(form) {
    var thisform = form;
    for (var i=0; i<thisform.length; i++) {
         if (thisform.elements[i].type == 'checkbox') {
              if (thisform.elements[i].value = 'Y') {
                   thisform.elements[i].checked = true; }
              else { thisform.elements[i].checked = false; }
    </script>
    </HEAD>
    <BODY>
    <FORM action="scott.sumbit_form" method="post">
    <table border=1 bordercolor="red">
    <tr>
    <td> </td>
    <td>Name</td>
    <td>Job</td>
    <td>Manager</td>
    <td>Hire Date</td>
    <td>Commission</td>
    <td>Department#</td>
    <td>Include</td>
    </tr>
    <ORACLE>declare
    i number;
    begin
    i := 0;
    for c1 in (select * from scott.promotemp where promotid = :promotid)
    loop
    htp.p('<tr><td>');
    htp.p('<input type="hidden" name="p_empno" value='||c1.empno||'>');
    htp.p('</td><td>');
    htp.p(c1.ename);
    htp.p('</td><td>');
    htp.p(c1.job);
    htp.p('</td><td>');
    htp.p(c1.mgr);
    htp.p('</td><td>');
    htp.p(c1.hiredate);
    htp.p('</td><td>');
    htp.p(c1.comm);
    htp.p('</td><td>');
    htp.p(c1.deptno);
    htp.p('</td><td>');
    if (c1.promot = 'Y') then
    htp.p('<SELECT NAME="p_promot" SIZE="1">
    <OPTION SELECTED VALUE="'||c1.promot||'">Yes
    <OPTION VALUE="N">No
    </SELECT>');
    else
    htp.p('<SELECT NAME="p_promot" SIZE="1">
    <OPTION SELECTED VALUE="'||c1.promot||'">No
    <OPTION VALUE="Y">Yes
    </SELECT>');
    end if;
    htp.p('</td></tr>');
    end loop;
    htp.p('</table>');
    htp.p('<input type="submit" value="save" name="p_action">');
    end;
    </ORACLE>
    </form>
    </BODY>
    </HTML>
    thanks,
    Mainak

  • Dynamic page in region as a portlet not displaying in portal template

    As the title suggests I have a portal template that contains a region at the top . within this region i have included 2 portlets, first is a dynamic page (a simple banner title ) then a navigation page beneath them .
    when I am logged in as a specific user it displays correctly , when I log onto the page without logging in - the dynamic page does not display ,yet the navigation page does . I have clicked on every display to public check box , assigned public user with view privilege and everything else along those lines . Any ideas ??
    thanks in advance , Chris

    Hi Chris: Just to be specific, did you go to the providers tab in Navigator, the locally built providers link then the provider which contains your dynamic page and check the access set directly on that page? You can either set the dynamic page to have its own access (overriding that of the provider) or set the provider itself to be public.
    Rgds/Mark M.

  • How do i read a context of text file within Dynamic Page of portal ?

    Dear sir,
    I have a text file in client computer. I hope i can transfer the context words of this text file to oracle database. How do i coding this script in dynamic page of portal?
    Can Oaracle 9ias script read and draw the context of a document. Thank you ver much!
    Ghia Liu

    Great questions, Rik, and I understand how this might seem bizarre. Here's the story... these 2500 files were authored with a built-in authoring tool of our current knowledge management system. This KMS is about to be replaced with a new one and because the new KMS needs content within the <head> tag instead of where it was in the <body> tag and redefined as meta data, I repuposed the content in those files using Dreamweaver and regular expressions.  However, the one remaining <h3> and <p> content is in the middle of the newly tagged meta data and it must be moved from the <head> area and into the <body> area.
    Because these were authored in the built-in KMS authoring tool, there is no style sheet and no, we do not manage our content with a CMS.
    You are correct, if the <h3> and <p> were at the end of the data, I could simply move the </head> and <body> tags, but unfortunately that is not the case.  They are consistenly in the same place in all 2500 files, but in the middle of the data. Following is an example:
    <html>
    <head>
    <title>Title here</title>
    <meta name="XYZ" content="Something here...">
    <h3> Blah blah</h3> <p>More blah blah</p>
    <meta name="123" content="More somthing here">
    <meta name="456" content="More somthing here">
    </head>
    <body>
    </body>
    </html>
    Again, I can find the block using a regular expression <h3>(.*?)</p>, but dont know what to do after that.
    I've been told that perl or grep might do the needed task, but that requires outside resources and I have no budget for that.
    Any suggestions are greatly appreciated.
    thanks,
    Rick

  • Dynamic pages failing on XP

    Here's the situation, I've got a dynamic page with a form that accepts a value to be passed to another dynamic page. The dynamic pages have worked fine on our Windows 2000 clients (IE6), we've just moved to new Win XP clients (IE6 xpsp1) and now the value gets dropped randomly and sends us to our error page. It will not work the first few times and then start working and then not work, it's on and off, no real pattern. I can't figure out what it is, since it's a simple form post, Win XP IE shouldn't have any problems with it, but it does. The code for the two pages is below. Any help would be appreciated.
    Form:
    <html>
    <head>
    ARCS Query
    </head>
    <body bgcolor="#EEFFEE">
    <p>
    <center>
    <table border="0" cellspacing="0" cellpadding="2">
    <tr bgcolor="ccffcc">
    <th>Requisition #</th>
    </tr>
    <tr bgcolor="ffffcc" align="center">
    <td>
    <form method="post" action="custom_dsdct_app.ctdsd_dyn_arcs_query.show">
    <input name="p_arg_names" type="hidden" value="p_doc_num">
    <input name="p_arg_values" size="16" maxlength="16" value="">
    <input type="submit" value="Query">
    </form>
    </td>
    </tr>
    </table>
    </center>
    </body>
    </html>
    Report (shortened):
    <html>
    <ORACLE>
    declare
    thisnsn varchar2(20);
    dvds integer;
    cnt integer;
    statuscodes varchar2(500);
    crlf varchar2(2) := chr(13) || chr(10);
    begin
    statuscodes := '';
    select count(*) into cnt
    from arcs1@ctwhsdblink
    where doc_nr = upper(:p_doc_num);
    if cnt = 0 then
    htp.p('<META HTTP-EQUIV="Refresh"');
    htp.p(' CONTENT="0;URL=custom_dsdct_app.ctdsd_dyn_ircs_query.show?p_arg_names=p_doc_num&p_arg_values='||:p_doc_num||'">');
    htp.p('</head>');
    htp.p('<body bgcolor="#eeffee">');
    htp.p(:p_doc_num ||' not found; switching to Inactive Requisition file');
    htp.p('</body>');
    htp.p('</html>');
    else
    htp.title( 'ARCS Query ' || substr(upper(:p_doc_num),1,6) || '-' || substr(upper(:p_doc_num),7,4) || '-' || substr(upper(:p_doc_num),11) );
    When it doesn't work, the p_doc_num= <blank>, telling me that the value is getting dropped somewhere.

    Yes.
    I assume you want to SELECT some data from the remote table in order to build the dynamic page? Set up a db link to the remote database and then refer to the table you want by using USER.TABLE@DBLINK.

  • Help on oracle tags in dynamic pages

    Hi All
    I have used dynamic pages like this , i create a html form inside a dynamic page on submit of which a procedure gets called & inserts the values in the table.
    I see some <oracle> tags every time i create a dynamic page but have never used them. Could some one tell how to use these tags. whether they can be used to call a procedure or can i embed any dml statements in these oracle tags.
    Kindly somebody could explain it with an example.
    Regards
    Sushant

    Hi,
    You can do all that you can do in a plsql block.
    Here is an example which paints a form for the employee records and submits them. On submit a procedure submit_form is called.
    <HTML>
    <HEAD>
    <TITLE>Example</TITLE>
    </HEAD>
    <BODY>
    <FORM action="<schema name>.submit_form" method="post">
    <H2>Example of A Dynamic Page</H2>
    <ORACLE>
    begin
    for c1 in (select * from scott.emp )
    loop
         htp.p(c1.empno);
         htp.p(c1.ename);
         htp.p(c1.deptno);
         htp.p(c1.hiredate);
         htp.p(c1.sal);
         htp.p('<input type="hidden" name="p_empno" value='||c1.empno||'>');
         htp.p('<input type="text" name="p_comm">');
         htp.p('<br>');
    end loop;
    htp.p('<input type="submit" name="p_action">');
    end;
    </ORACLE>
    </BODY>
    </FORM>
    </HTML>
    Thanks,
    Sharmila

  • Is it possible to call on a link in a dynamic page?

    I have created a dynamic page with sql code in it. When I go to customation form, for the page I just created, there is a button called run dynamic page. When I click this the sql code on the page execute. I can also make a link to the customation form so when I run this link the page with button run dynamic page appear. The question is if there is someway you can use this link in another dynamic page you just created so you get a page with the button run dynamic page when you run the page? Or is there another solution to the problem to get a page with a button to run sql code?

    Hi,
    You can call a component's customization form in the dynamic page like this
    <HTML>
    <HEAD>
    <TITLE>Example</TITLE>
    </HEAD>
    <BODY>
    <H2>Example of A Dynamic Page</H2>
    <ORACLE>
    begin
    SJAYARAM903_1G.RPT_0911010900.show_parms;
    end;
    </ORACLE>
    </BODY>
    This would render the customization form in the dynamic page.
    Thanks,
    Sharmila

  • Change the Page title of Default.aspx in SharePoint Hosted App using ECMA Script

    Basically i want to change page title dynamically. the thing is default.aspx page is present in the below location
    Folders/Pages/Default.aspx ( Verified using
    SharePoint Manager 2013 Online )
    Could any one let me know how to iterate through the folders and then go to pages and change title of Default.aspx page?
    Navaneeth

    All the links which is mentioned above is either they are doing it in code behind or javascript like document.title.
    I want to change dynamically using ECMA script. the point i found here is if you use the below code you will get an error saying list "Pages" does not exists in the SharePoint site.
    clientContext.Web.Lists.GetByTitle("Pages");
    So i am wondering how can we change the page title of SharePoint hosted app ( Default.aspx) dynamically
    Say example i have one text box and submit button. when give the title in the text box and click on submit  the title should reflect in the page.
    Navaneeth

  • Change Page Title of embedded DS reports in the portal

    Dear all,
    we have our Design Studio Reports embedded in the Portal. The title of the browser window is the title of the navigation entry you are navigating to.
    We have a demand where we need to overwrite the title from within the Design Studio Report to add a specific pattern to the title of the browser.
    as an Example:
    Name of the navigation entry: Report XY
    Current browser title: Report XY
    Target browser title: [DS] Report XY
    I know from the ABAP Web Dynpro and CRM WebUI that there are standard functions to influence the title with customer code, when they are embedded in the portal.
    Is there any way (hopefully without the use of the SDK) to influence the browser window title from Design Studio Reports when embedded in the Portal?
    Thanks a lot and best regards
    Fabian

    All the links which is mentioned above is either they are doing it in code behind or javascript like document.title.
    I want to change dynamically using ECMA script. the point i found here is if you use the below code you will get an error saying list "Pages" does not exists in the SharePoint site.
    clientContext.Web.Lists.GetByTitle("Pages");
    So i am wondering how can we change the page title of SharePoint hosted app ( Default.aspx) dynamically
    Say example i have one text box and submit button. when give the title in the text box and click on submit  the title should reflect in the page.
    Navaneeth

Maybe you are looking for

  • Personal File Sharing can't be activated

    Hi all, Just got a Macbook and try to connect with a G4 MDD together with a wireless router. I found that the personal file sharing setting in preference in G4 can't be activated. It stays "starting up" status forever. However Bonjour is fine: my Mac

  • Drop box will not accept books anymore

    Drop box will not accept books put in my computer and dragged to its Dropbox. Up until now it worked fine.

  • SQL 2005 SP2 - Cannot open Data Flow Task in SSIS

    I have just installed Service Pack 2 on my SQL 2005 Standard Edition. However, now all my SSIS packages will not allow me to open my Data FLow Tasks.  I get the following error: TITLE: Microsoft Visual Studio Cannot show the editor for this task. ADD

  • Private methods Importing parameter cannot be changed error

    Hi Guys, I have this scenario where I have a private method inside a class which is having an error "Field SAPMF02K cannot be changed". here is the code for the private method call.     call method create_bdc_dynpro          importing  IM_PROGRAM = '

  • Conflict of weblogic with jaas.jar

    Hi there, I am using weblogic6.0+sp1 for JAAS simple and SSL authentication. Sun's implementation class com.sun.security.auth.login.ConfigFile in jaas.jar is conflict with the Config class I implemented that extends Configuration to parse the login p