Reference Path in Dynamic Pages?

Hi all,
is there a possibility to use the portlet_runtime_record in an <oracle> tag within a dynamic page or a xml-component.
I need expecially the reference_path and the page_url.
Thanks.
Fritjof.

Scott,
Here is how you can implement (without worrying about the reference paths and page_urls)
1. Create a Dynamic Page that accepts TAB NAME as parameter.
2. Put that on the page with TABS.
3. Click on Edit Defaults and enter the TAB NAME and save.
4. In your Dynamic page, refer to that parameter to know which tab you are on!!
Hope it helps.
- Haranadh

Similar Messages

  • Accessing the preference path in a dynamic page

    All,
    I would like to access the preference path
    so that I can use the get_names and get_value functions, in a dynamic page. When we create the dynamic page, we don't know what the preference path is. so, how do I get the preference path? e.g Add the dynamic page as a portlet into a content area page.
    Thanks
    Sanjay

    Currently the validation of the PL/SQL block of a dynamic page is not in the
    context of procedure show. So you can not directly refer to the parameters such as p_reference_path.
    There is a way to do it:
    1. use bind variable as the reference path
    <ORACLE>
    declare
    parm1 varchar2(30) :=
    portal30.wwpro_api_parameters.get_value('parm1', :path);
    begin
    htp.p('The value of Parameter 1 is ' &#0124; &#0124; parm1);
    end;
    </ORACLE>
    2. In the Parameter Form Setting, set the default value for the bind variable to #p_reference_path
    Before the PL/SQL block is executed, bind variable path will be bind with the value of procedure show's
    parameter p_reference_path.
    Hope this works.

  • Dynamic page number references?

    Is there a way to have page number references dynamic, so that they automatically update if the pagination of a publication changes?
    I've read about generating a dynamic table of contents, so I will be doing that certainly.
    But what about page references that fall outside the TOC? For example, let's say there's a parenthetical reference in the text of a publication that says something like "see page 45 for details on XYZ." Can the page number here be somehow linked to its referent? Is there some way to tag an element (a heading, for example, or a text selection, or a frame containing a graphic) and then have a page number reference linked to that tag?
    Sort of like how anchors work on the web.
    Thanks.

    Great, thanks.
    p.s. I just did a search of the forum for "cross references" and the only result I got was this thread! Odd.
    I notice from the InDesign help documentation that cross references seem to be for indexing. Not sure if that applies to my situation--for example, if you mention a particular sidebar later on in the text and want to refer the reader back to that sidebar...how would you reference the sidebar dynamically so when it changes location, the page number reference changes accordingly?

  • Reference Path

    I am trying to pass parameters between two
    dynamic pages that are on portlets on a page.
    I am calling the wwpro_api_parameters.get_value
    function without the reference path - but it does not seem to work. Does anyone have an explicit example of how to obtain the value of the portlet reference path so that it can be passed to the function.
    Any help would be greatly appreciated.
    Thanks,
    Suzanne

    Just open the page,with portlets added to it in the browser.Click View->Source.Find for "Customize",in the ahref tag ,you will find the p_referencepath value you need to pass to the getvalue function for that specific portlet.

  • Error creating dynamic page in an application with a schema other than portal30

    Running 9iAS 1.0.2.2 on Solaris.
    Database 8.1.7.1
    I cannot seem to create a default dynamic page (select 'x' from dual) in an application that has a schema (e.g. test) other
    than portal30. The error seems to be when portal tries to compile the dynamic-page package, it references itself from
    within the package but prefixing the call with the other (test) schema. It never seems to compile? What seems to be the
    problem? Any ideas?

    If you are using any database object other than the applcation owned,then it has to be prefixed with the schema owner.
    For example,
    if the application schema is based on the schema "schema1" (say)
    and your query is based on one of the object on "schema2"
    and if you have necessary privilegves to access that object from schema2, then the compiler wont throw any error.
    Can u explain, what u problem you are experiencing in detail?
    (Also, if u give me the portal version, I can cross-verify that).

  • Dynamic Page that uses javascript to run an executable on the client's pc

    I have an .exe file on a shared network that has to be called and executed from portal. The below code works as standalone but not from a dynamic page or an HTML portlet. Any ideas?
    <html>
    <script language="javascript" type="text/javascript">
    function runApp()
    var shell = new ActiveXObject("WScript.shell");
    shell.run('"c:/CstatsWeeklyreport.exe"',1,true);
    </script>
    <body>
    <input type="button" name="button1" value="Run Notepad" onClick="runApp()" >
    </INPUT>
    </body>
    </html>

    Thanks D, but that's not what I'm looking for. That changes which application a file opens with when you download it. That's not what I need for this situation. Here's a little more detail.
    The clients will have an application on their hard drive; it can be any application, even a custom application that they developed themselves. Then, they open a web page with a listbox full of items. Depending on which item they select, a query will return a file path to the .exe file itself. The .exe file resides on the client's hard drive, not on the server. So they're not downloading anything. Depending on the filepath returned by the query, the browser needs to start the process and open the .exe file for them.
    So let's say I have developed a simple text editor called Tedit. I have a file on my hard drive - "C:\TextEditor\bin\debug\TEdit.exe". When they click the open button, that file path is returned from the database. Then the javascript is called to start the process and open that program.
    Again, nothing is getting downloaded, the application resides on the user's hard drive and there is no file to associate it with.
    This can be done in IE using an ActiveX control. And it used to be possible in Firefox using the nsIFile or nsIProcess objects. But since FF15 that's not available anymore, so the javascript throws an error telling them that their permission is denied.
    What I need, is a javascript that will launch the .exe file from the user's hard drive without downloading anything.

  • Caching in Dynamic Pages

    Hi,
    I have created a dynamic page(HTML) and published it as a portlet. I have included a call to display an image(say xyz.jpg) in the code. I have also published this dynamic page as a portlet and use it in a portal page. When I view the page it shows the image. When I change the underlying image(xyz.jpg), the new image(please note that that the images are different but the path and file name are the same) is not showing up in the portal page. Instead, the old image file is displayed. I have given Don't cache for the portal page. I also tried clearing cache for the page group, portal page and the dynamic page and it still displays the old image and not the new one. Is there a way to clear cache dynamically?
    Thanks,
    Manikandan Vembu

    Hi,
    This is a known issue with the way Wordpress generates the URLs to included content:http://forums.adobe.com/message/4774943
    Wordpress generates absolute URLs to content rather than relative URLs, so the current workaround is to either use relative URLs or, if that's not possible, modify the wordpress configuration to use the IP address instead of localhost.
    Hope this helps,
    Mark

  • Bad performance dynamic page

    Hi.
    Can anybody tell what the bottleneck is in this script? It is a dynamic page (portal 3.0.9). The select statements are not very complicated.
    ANY HELP IS WELCOME!!
    <HTML>
    <BODY BGCOLOR="#FFFFFF" TEXT="#444444">
    <ORACLE>
    declare
    cursor c_runway is select distinct runway from vem_flights where nvl(:v_runway,runway) = runway;
    v_runway vem_flights.runway%type;
    v_select number;
    v_totaal number;
    v_percentage number;
    v_aantal_jaren number;
    v_aantal_maanden number;
    v_aantal_weken number;
    v_aantal_dagen number;
    v_tijd number;
    teller number;
    kopstring varchar2(500);
    selectstring varchar2(500) := '';
    begin
    v_tijd := :v_tijdvak;
    :v_begindate := :v_begindate;
    :v_enddate := :v_enddate;
    if v_tijd = 3 then
    select round(months_between(to_date(:v_enddate,'DD-MM-YYYY HH24.MI.SS'),to_date(:v_begindate,'DD-MM-YYYY HH24.MI.SS'))) into v_aantal_maanden from dual;
    if last_day(to_date(:v_enddate,'DD-MM-YYYY HH24.MI.SS')) > add_months(to_date(:v_begindate,'DD-MM-YYYY HH24.MI.SS'),v_aantal_maanden) then
    v_aantal_maanden := v_aantal_maanden + 1;
    for teller in 1 .. v_aantal_maanden loop
    if teller = 1 then
    kopstring := '<td><b><i>Baan\Tijdvak </i></b></td>'||'<td colspan="3"><b><i>'||to_char(to_date(:v_begindate,'DD-MM-YYYY HH24.MI.SS'),'DD-MM-YYYY')||' t/m '||to_char(add_months(to_date(:v_begindate,'DD-MM-YYYY HH24.MI.SS')-1,teller),'DD-MM-YYYY')||'</i></b></td>';
    elsif teller > 1 and teller < v_aantal_maanden then
    kopstring := kopstring||'<td colspan="3"><b><i>'||to_char(add_months(to_date(:v_begindate,'DD-MM-YYYY HH24.MI.SS'),teller-1),'DD-MM-YYYY')||' t/m '||to_char(add_months(to_date(:v_begindate,'DD-MM-YYYY HH24.MI.SS')-1,teller),'DD-MM-YYYY')||'</b></i></td>';
    elsif teller = v_aantal_maanden then
    kopstring := kopstring||'<td colspan="3"><b><i>'||to_char(add_months(to_date(:v_begindate,'DD-MM-YYYY HH24.MI.SS'),teller-1),'DD-MM-YYYY')||' t/m '||to_char(to_date(:v_enddate,'DD-MM-YYYY HH24.MI.SS'),'DD-MM-YYYY')||'</i></b></td>';
    end if;
    end loop;
    v_aantal_maanden := v_aantal_maanden - 1;
    else
    for teller in 1 .. v_aantal_maanden loop
    if teller = 1 then
    kopstring := '<td><b><i>Baan\Tijdvak </i></b></td>'||'<td colspan="3"><b><i>'||to_char(to_date(:v_begindate,'DD-MM-YYYY HH24.MI.SS'),'DD-MM-YYYY')||' t/m '||to_char(add_months(to_date(:v_begindate,'DD-MM-YYYY HH24.MI.SS')-1,teller),'DD-MM-YYYY')||'</i></b></td>';
    elsif teller > 1 and teller < v_aantal_maanden then
    kopstring := kopstring||'<td colspan="3"><b><i>'||to_char(add_months(to_date(:v_begindate,'DD-MM-YYYY HH24.MI.SS'),teller-1),'DD-MM-YYYY')||' t/m '||to_char(add_months(to_date(:v_begindate,'DD-MM-YYYY HH24.MI.SS')-1,teller),'DD-MM-YYYY')||'</b></i></td>';
    elsif teller = v_aantal_maanden then
    kopstring := kopstring||'<td colspan="3"><b><i>'||to_char(add_months(to_date(:v_begindate,'DD-MM-YYYY HH24.MI.SS'),teller-1),'DD-MM-YYYY')||' t/m '||to_char(to_date(:v_enddate,'DD-MM-YYYY HH24.MI.SS'),'DD-MM-YYYY')||'</i></b></td>';     
    end if;
    end loop;
    end if;
    htp.p('<font face = "arial" size="3"><b>Verticale afwijkingen overdag van naderende vliegtuigen buiten de TMA</b></font><p>&nbsp<p>');
    htp.p('<table border="1">');
    htp.p('<tr>'||kopstring||'</tr>');
    open c_runway;
    loop
    fetch c_runway into v_runway;
    exit when c_runway%notfound;
    selectstring := '<td><b><i>'||v_runway||'</i></b>';
    if last_day(to_date(:v_enddate,'DD-MM-YYYY HH24.MI.SS')) > add_months(to_date(:v_begindate,'DD-MM-YYYY HH24.MI.SS'),v_aantal_maanden) then
    v_aantal_maanden := v_aantal_maanden + 1;
    for teller in 1 .. v_aantal_maanden loop
    if teller = 1 then
    select count(*)
    into v_select
    from vem_flights vem
    where vem.aircrafttype = 'JET'
    and vem.gs21      = 'X'
    and vem.runway = v_runway
         and vem.departure NOT IN ('EHLE','EHRD','EHVB')
         and vem.date_time between to_date(:v_begindate,'DD-MM-YYYY HH24.MI.SS')
    and add_months(to_date(:v_begindate,'DD-MM-YYYY HH24.MI.SS')-1,teller)
    and (rtrim((to_char(vem.date_time,'HH24'))) >= :v_starthour or :v_starthour = '%')
    and (rtrim((to_char(vem.date_time,'HH24'))) < :v_endhour or :v_endhour = '%')
    and rtrim((to_char(vem.date_time,'DAY'))) IN (:v_day);
    select count(*)
    into v_totaal
    from vem_flights vem
    where vem.aircrafttype = 'JET'
         and vem.destination = 'EHAM'
         and vem.period = 'DAY'
    and vem.runway = v_runway
         and vem.departure NOT IN ('EHLE','EHRD','EHVB')
         and vem.date_time between to_date(:v_begindate,'DD-MM-YYYY HH24.MI.SS')
    and add_months(to_date(:v_begindate,'DD-MM-YYYY HH24.MI.SS')-1,teller)
    and (rtrim((to_char(vem.date_time,'HH24'))) >= :v_starthour or :v_starthour = '%')
    and (rtrim((to_char(vem.date_time,'HH24'))) < :v_endhour or :v_endhour = '%')
    and rtrim((to_char(vem.date_time,'DAY'))) IN (:v_day);
    if v_totaal != 0 then
    select round((v_select/v_totaal)*100) into v_percentage from dual;
    elsif v_totaal = 0 then
    select 0 into v_percentage from dual;
    end if;
    elsif teller > 1 and teller < v_aantal_maanden then
    select count(*)
    into v_select
    from vem_flights vem
    where vem.aircrafttype = 'JET'
    and vem.gs21      = 'X'
    and vem.runway = v_runway
    and vem.departure NOT IN ('EHLE','EHRD','EHVB')
         and vem.date_time between add_months(to_date(:v_begindate,'DD-MM-YYYY HH24.MI.SS'),teller-1)
    and add_months(to_date(:v_begindate,'DD-MM-YYYY HH24.MI.SS')-1,teller)
    and (rtrim((to_char(vem.date_time,'HH24'))) >= :v_starthour or :v_starthour = '%')
    and (rtrim((to_char(vem.date_time,'HH24'))) < :v_endhour or :v_endhour = '%')
    and rtrim((to_char(vem.date_time,'DAY'))) IN (:v_day);
    select count(*)
    into v_totaal
    from vem_flights vem
    where vem.aircrafttype = 'JET'
         and vem.destination = 'EHAM'
         and vem.period = 'DAY'
    and vem.runway = v_runway
    and vem.departure NOT IN ('EHLE','EHRD','EHVB')
         and vem.date_time between add_months(to_date(:v_begindate,'DD-MM-YYYY HH24.MI.SS'),teller-1)
    and add_months(to_date(:v_begindate,'DD-MM-YYYY HH24.MI.SS')-1,teller)
    and (rtrim((to_char(vem.date_time,'HH24'))) >= :v_starthour or :v_starthour = '%')
    and (rtrim((to_char(vem.date_time,'HH24'))) < :v_endhour or :v_endhour = '%')
    and rtrim((to_char(vem.date_time,'DAY'))) IN (:v_day);
    if v_totaal != 0 then
    select round((v_select/v_totaal)*100) into v_percentage from dual;
    elsif v_totaal = 0 then
    select 0 into v_percentage from dual;
    end if;               
    elsif teller = v_aantal_maanden then
    select count(*)
    into v_select
    from vem_flights vem
    where vem.aircrafttype = 'JET'
         and vem.gs21 = 'X'
    and vem.runway = v_runway
    and vem.departure NOT IN ('EHLE','EHRD','EHVB')
         and vem.date_time between add_months(to_date(:v_begindate,'DD-MM-YYYY HH24.MI.SS'),teller-1)
    and to_date(:v_enddate,'DD-MM-YYYY HH24.MI.SS')
    and (rtrim((to_char(vem.date_time,'HH24'))) >= :v_starthour or :v_starthour = '%')
    and (rtrim((to_char(vem.date_time,'HH24'))) < :v_endhour or :v_endhour = '%')
    and rtrim((to_char(vem.date_time,'DAY'))) IN (:v_day);
    select count(*)
    into v_totaal
    from vem_flights vem
    where vem.aircrafttype = 'JET'
         and vem.destination = 'EHAM'
         and vem.period = 'DAY'
    and vem.runway = v_runway
    and vem.departure NOT IN ('EHLE','EHRD','EHVB')
         and vem.date_time between add_months(to_date(:v_begindate,'DD-MM-YYYY HH24.MI.SS'),teller-1)
    and to_date(:v_enddate,'DD-MM-YYYY HH24.MI.SS')
    and (rtrim((to_char(vem.date_time,'HH24'))) >= :v_starthour or :v_starthour = '%')
    and (rtrim((to_char(vem.date_time,'HH24'))) < :v_endhour or :v_endhour = '%')
    and rtrim((to_char(vem.date_time,'DAY'))) IN (:v_day);
    if v_totaal != 0 then
    select round((v_select/v_totaal)*100) into v_percentage from dual;
    elsif v_totaal = 0 then
    select 0 into v_percentage from dual;
    end if;               
    end if;
    if v_percentage > 5 then
    selectstring := selectstring||'<td>'||to_char(v_select)||'</td><td>'||to_char(v_totaal)||'</td><td><font color="red">'||to_char(v_percentage)||'%</font></td>';
    else
    selectstring := selectstring||'<td>'||to_char(v_select)||'</td><td>'||to_char(v_totaal)||'</td><td>'||to_char(v_percentage)||'%</td>';                    
    end if;
    end loop;
    v_aantal_maanden := v_aantal_maanden - 1;
    else
    for teller in 1 .. v_aantal_maanden loop
    if teller = 1 then
    select count(*)
    into v_select
    from vem_flights vem
    where vem.aircrafttype = 'JET'
    and vem.gs21      = 'X'
    and vem.runway = v_runway
    and vem.departure NOT IN ('EHLE','EHRD','EHVB')
    and vem.date_time between to_date(:v_begindate,'DD-MM-YYYY HH24.MI.SS')
    and add_months(to_date(:v_begindate,'DD-MM-YYYY HH24.MI.SS')-1,teller)
    and (rtrim((to_char(vem.date_time,'HH24'))) >= :v_starthour or :v_starthour = '%')
    and (rtrim((to_char(vem.date_time,'HH24'))) < :v_endhour or :v_endhour = '%')
    and rtrim((to_char(vem.date_time,'DAY'))) IN (:v_day);
    select count(*)
    into v_totaal
    from vem_flights vem
    where vem.aircrafttype = 'JET'
    and vem.destination = 'EHAM'
    and vem.period = 'DAY'
    and vem.runway = v_runway
    and vem.departure NOT IN ('EHLE','EHRD','EHVB')
    and vem.date_time between to_date(:v_begindate,'DD-MM-YYYY HH24.MI.SS')
    and add_months(to_date(:v_begindate,'DD-MM-YYYY HH24.MI.SS')-1,teller)
    and (rtrim((to_char(vem.date_time,'HH24'))) >= :v_starthour or :v_starthour = '%')
    and (rtrim((to_char(vem.date_time,'HH24'))) < :v_endhour or :v_endhour = '%')
    and rtrim((to_char(vem.date_time,'DAY'))) IN (:v_day);
    if v_totaal != 0 then
    select round((v_select/v_totaal)*100) into v_percentage from dual;
    elsif v_totaal = 0 then
    select 0 into v_percentage from dual;
    end if;     
    elsif teller > 1 and teller < v_aantal_maanden then
    select count(*)
    into v_select
    from vem_flights vem
    where vem.aircrafttype = 'JET'
    and vem.gs21      = 'X'
    and vem.runway = v_runway
    and vem.departure NOT IN ('EHLE','EHRD','EHVB')
    and vem.date_time between add_months(to_date(:v_begindate,'DD-MM-YYYY HH24.MI.SS'),teller-1)
    and add_months(to_date(:v_begindate,'DD-MM-YYYY HH24.MI.SS')-1,teller)
    and (rtrim((to_char(vem.date_time,'HH24'))) >= :v_starthour or :v_starthour = '%')
    and (rtrim((to_char(vem.date_time,'HH24'))) < :v_endhour or :v_endhour = '%')
    and rtrim((to_char(vem.date_time,'DAY'))) IN (:v_day);
    select count(*)
    into v_totaal
    from vem_flights vem
    where vem.aircrafttype = 'JET'
    and vem.destination = 'EHAM'
    and vem.period = 'DAY'
    and vem.runway = v_runway
    and vem.departure NOT IN ('EHLE','EHRD','EHVB')
    and vem.date_time between to_date(:v_begindate,'DD-MM-YYYY HH24.MI.SS')
    and add_months(to_date(:v_begindate,'DD-MM-YYYY HH24.MI.SS')-1,teller)
    and (rtrim((to_char(vem.date_time,'HH24'))) >= :v_starthour or :v_starthour = '%')
    and (rtrim((to_char(vem.date_time,'HH24'))) < :v_endhour or :v_endhour = '%')
    and rtrim((to_char(vem.date_time,'DAY'))) IN (:v_day);
    if v_totaal != 0 then
    select round((v_select/v_totaal)*100) into v_percentage from dual;
    elsif v_totaal = 0 then
    select 0 into v_percentage from dual;
    end if;               
    elsif teller = v_aantal_maanden then
    select count(*)
    into v_select
    from vem_flights vem
    where vem.aircrafttype = 'JET'
    and vem.gs21      = 'X'
    and vem.runway = v_runway
    and vem.departure NOT IN ('EHLE','EHRD','EHVB')
    and vem.date_time between add_months(to_date(:v_begindate,'DD-MM-YYYY HH24.MI.SS'),teller-1)
    and to_date(:v_enddate,'DD-MM-YYYY HH24.MI.SS')
    and (rtrim((to_char(vem.date_time,'HH24'))) >= :v_starthour or :v_starthour = '%')
    and (rtrim((to_char(vem.date_time,'HH24'))) < :v_endhour or :v_endhour = '%')
    and rtrim((to_char(vem.date_time,'DAY'))) IN (:v_day);
    select count(*)
    into v_totaal
    from vem_flights vem
    where vem.aircrafttype = 'JET'
    and vem.destination = 'EHAM'
    and vem.period = 'DAY'
    and vem.runway = v_runway
    and vem.departure NOT IN ('EHLE','EHRD','EHVB')
    and vem.date_time between add_months(to_date(:v_begindate,'DD-MM-YYYY HH24.MI.SS'),teller-1)
    and to_date(:v_enddate,'DD-MM-YYYY HH24.MI.SS')
    and (rtrim((to_char(vem.date_time,'HH24'))) >= :v_starthour or :v_starthour = '%')
    and (rtrim((to_char(vem.date_time,'HH24'))) < :v_endhour or :v_endhour = '%')
    and rtrim((to_char(vem.date_time,'DAY'))) IN (:v_day);
    if v_totaal != 0 then
    select round((v_select/v_totaal)*100) into v_percentage from dual;
    elsif v_totaal = 0 then
    select 0 into v_percentage from dual;
    end if;          
    end if;
    if v_percentage > 5 then
    selectstring := selectstring||'<td>'||to_char(v_select)||'</td><td>'||to_char(v_totaal)||'</td><td><font color="red">'||to_char(v_percentage)||'%</font></td>';
    else
    selectstring := selectstring||'<td>'||to_char(v_select)||'</td><td>'||to_char(v_totaal)||'</td><td>'||to_char(v_percentage)||'%</td>';                    
    end if;
    end loop;
    end if;
    htp.p('<tr>'||selectstring||'</tr>');
    end loop;
    close c_runway;
    htp.p('</table>');
    htp.p('</font>');
    elsif v_tijd = 1 then
    select to_date(:v_enddate,'DD-MM-YYYY HH24.MI.SS') - to_date(:v_begindate,'DD-MM-YYYY HH24.MI.SS') into v_aantal_dagen from dual;
    for teller in 0 .. v_aantal_dagen loop
    kopstring := kopstring||'<td colspan="3"><b><i>'||to_char(to_date(:v_begindate,'DD-MM-YYYY HH24.MI.SS') + teller,'DD-MM-YYYY')||'</b></i></td>';
    end loop;
    htp.p('<font face = "arial" size="3"><b>Verticale afwijkingen overdag van naderende vliegtuigen buiten de TMA</b></font><p>&nbsp<p>');
    htp.p('<table border="1">');
    htp.p('<tr>');
    htp.p('<td><b><i>Baan\Tijdvak </i></b></td>'||kopstring);
    htp.p('</tr>');
    open c_runway;
    loop
    fetch c_runway into v_runway;
    exit when c_runway%notfound;
    selectstring := '<td><b><i>'||v_runway||'</i></b>';
    for teller in 0 .. v_aantal_dagen loop
    select count(*)
    into v_select
    from vem_flights vem
    where vem.aircrafttype = 'JET'
    and vem.gs21      = 'X'
    and vem.runway = v_runway
    and vem.departure NOT IN ('EHLE','EHRD','EHVB')
    and vem.date_time = to_date(:v_begindate,'DD-MM-YYYY HH24.MI.SS') + teller
    and (rtrim((to_char(vem.date_time,'HH24'))) >= :v_starthour or :v_starthour = '%')
    and (rtrim((to_char(vem.date_time,'HH24'))) < :v_endhour or :v_endhour = '%')
    and rtrim((to_char(vem.date_time,'DAY'))) IN (:v_day);
    select count(*)
    into v_totaal
    from vem_flights vem
    where vem.aircrafttype = 'JET'
    and vem.destination = 'EHAM'
    and vem.period = 'DAY'
    and vem.runway = v_runway
    and vem.departure NOT IN ('EHLE','EHRD','EHVB')
    and vem.date_time = to_date(:v_begindate,'DD-MM-YYYY HH24.MI.SS') + teller
    and (rtrim((to_char(vem.date_time,'HH24'))) >= :v_starthour or :v_starthour = '%')
    and (rtrim((to_char(vem.date_time,'HH24'))) < :v_endhour or :v_endhour = '%')
    and rtrim((to_char(vem.date_time,'DAY'))) IN (:v_day);
    if v_totaal != 0 then
    select round((v_select/v_totaal)*100) into v_percentage from dual;
    elsif v_totaal = 0 then
    select 0 into v_percentage from dual;
    end if;
    if v_percentage > 5 then
    selectstring := selectstring||'<td>'||to_char(v_select)||'</td><td>'||to_char(v_totaal)||'</td><td><font color="red">'||to_char(v_percentage)||'%</font></td>';
    else
    selectstring := selectstring||'<td>'||to_char(v_select)||'</td><td>'||to_char(v_totaal)||'</td><td>'||to_char(v_percentage)||'%</td>';                    
    end if;
    end loop;
    htp.p('<tr>'||selectstring||'</tr>');
    end loop;
    close c_runway;
    htp.p('</table>');
    htp.p('</font>');
    elsif v_tijd = 2 then
    select trunc(to_char(to_date(:v_enddate,'DD-MM-YYYY HH24.MI.SS') - to_date(:v_begindate,'DD-MM-YYYY HH24.MI.SS')) / 7) into v_aantal_weken from dual;
    for teller in 0 .. v_aantal_weken loop
    if teller < v_aantal_weken then
    kopstring := kopstring||'<td colspan="3"><b><i>'||to_char(to_date(:v_begindate,'DD-MM-YYYY HH24.MI.SS') + (teller*7),'DD-MM-YYYY')||' t/m '||to_char(to_date(:v_begindate,'DD-MM-YYYY HH24.MI.SS') + ((teller*14) - 1),'DD-MM-YYYY')||'</b></i></td>';
    elsif teller = v_aantal_weken then
    kopstring := kopstring||'<td colspan="3"><b><i>'||to_char(to_date(:v_begindate,'DD-MM-YYYY HH24.MI.SS') + (teller*7),'DD-MM-YYYY')||' t/m '||to_char(to_date(:v_begindate,'DD-MM-YYYY HH24.MI.SS') + ((teller*14) - 1),'DD-MM-YYYY')||'</b></i></td>';
    kopstring := kopstring||'<td colspan="3"><b><i>'||to_char(to_date(:v_begindate,'DD-MM-YYYY HH24.MI.SS') + (teller*7),'DD-MM-YYYY')||' t/m '||to_char(to_date(:v_enddate,'DD-MM-YYYY HH24.MI.SS'),'DD-MM-YYYY')||'</b></i></td>';                         
    end if;      
    end loop;
    htp.p('<font face = "arial" size="3"><b>Verticale afwijkingen overdag van naderende vliegtuigen buiten de TMA</b></font><p>&nbsp<p>');
    htp.p('<table border="1">');
    htp.p('<tr>');
    htp.p('<td><b><i>Baan\Tijdvak </i></b></td>'||kopstring);
    htp.p('</tr>');
    open c_runway;
    loop
    fetch c_runway into v_runway;
    exit when c_runway%notfound;
    selectstring := '<td><b><i>'||v_runway||'</i></b>';
    for teller in 0 .. v_aantal_weken loop
    if teller < v_aantal_weken then
    select count(*)
    into v_select
    from vem_flights vem
    where vem.aircrafttype = 'JET'
    and vem.gs21      = 'X'
    and vem.runway = v_runway
    and vem.departure NOT IN ('EHLE','EHRD','EHVB')
         and vem.date_time between to_date(:v_begindate,'DD-MM-YYYY HH24.MI.SS') + (teller*7)
         and to_date(:v_begindate,'DD-MM-YYYY HH24.MI.SS') + ((teller*14) - 1)
    and (rtrim((to_char(vem.date_time,'HH24'))) >= :v_starthour or :v_starthour = '%')
    and (rtrim((to_char(vem.date_time,'HH24'))) < :v_endhour or :v_endhour = '%')
    and rtrim((to_char(vem.date_time,'DAY'))) IN (:v_day);           
    select count(*)
    into v_totaal
    from vem_flights vem
    where vem.aircrafttype = 'JET'
         and vem.destination = 'EHAM'
         and vem.period = 'DAY'
    and vem.runway = v_runway
         and vem.departure NOT IN ('EHLE','EHRD','EHVB')
         and vem.date_time between to_date(:v_begindate,'DD-MM-YYYY HH24.MI.SS') + (teller*7)
         and to_date(:v_begindate,'DD-MM-YYYY HH24.MI.SS') + ((teller*14) - 1)
    and (rtrim((to_char(vem.date_time,'HH24'))) >= :v_starthour or :v_starthour = '%')
    and (rtrim((to_char(vem.date_time,'HH24'))) < :v_endhour or :v_endhour = '%')
    and rtrim((to_char(vem.date_time,'DAY'))) IN (:v_day);
    if v_totaal != 0 then
    select round((v_select/v_totaal)*100) into v_percentage from dual;
    elsif v_totaal = 0 then
    select 0 into v_percentage from dual;
    end if;
    elsif teller = v_aantal_weken then
    select count(*)
    into v_select
    from vem_flights vem
    where vem.aircrafttype = 'JET'
    and vem.gs21      = 'X'
    and vem.runway = v_runway
         and vem.departure NOT IN ('EHLE','EHRD','EHVB')
         and vem.date_time between to_date(:v_begindate,'DD-MM-YYYY HH24.MI.SS') + (teller*7)
         and to_date(:v_begindate,'DD-MM-YYYY HH24.MI.SS') + ((teller*14) - 1)
    and (rtrim((to_char(vem.date_time,'HH24'))) >= :v_starthour or :v_starthour = '%')
    and (rtrim((to_char(vem.date_time,'HH24'))) < :v_endhour or :v_endhour = '%')
    and rtrim((to_char(vem.date_time,'DAY'))) IN (:v_day);
    select count(*)
    into v_totaal
    from vem_flights vem
    where vem.aircrafttype = 'JET'
         and vem.destination = 'EHAM'
         and vem.period = 'DAY'
    and vem.runway = v_runway
         and vem.departure NOT IN ('EHLE','EHRD','EHVB')
         and vem.date_time between to_date(:v_begindate,'DD-MM-YYYY HH24.MI.SS') + (teller*7)
         and to_date(:v_begindate,'DD-MM-YYYY HH24.MI.SS') + ((teller*14) - 1)
    and (rtrim((to_char(vem.date_time,'HH24'))) >= :v_starthour or :v_starthour = '%')
    and (rtrim((to_char(vem.date_time,'HH24'))) < :v_endhour or :v_endhour = '%')
    and rtrim((to_char(vem.date_time,'DAY'))) IN (:v_day);
    if v_totaal != 0 then
    select round((v_select/v_totaal)*100) into v_percentage from dual;
    elsif v_totaal = 0 then
    select 0 into v_percentage from dual;
    end if;          
    if v_percentage > 5 then
    selectstring := selectstring||'<td>'||to_char(v_select)||'</td><td>'||to_char(v_totaal)||'</td><td><font color="red">'||to_char(v_percentage)||'%</font></td>';
    else
    selectstring := selectstring||'<td>'||to_char(v_select)||'</td><td>'||to_char(v_totaal)||'</td><td>'||to_char(v_percentage)||'%</td>';                    
    end if;                    
    select count(*)
    into v_select
    from vem_flights vem
    where vem.aircrafttype = 'JET'
         and vem.gs21      = 'X'
    and vem.runway = v_runway
         and vem.departure NOT IN ('EHLE','EHRD','EHVB')
         and vem.date_time between to_date(:v_begindate,'DD-MM-YYYY HH24.MI.SS') + (teller*7)
         and to_date(:v_enddate,'DD-MM-YYYY HH24.MI.SS')
    and (rtrim((to_char(vem.date_time,'HH24'))) >= :v_starthour or :v_starthour = '%')
    and (rtrim((to_char(vem.date_time,'HH24'))) < :v_endhour or :v_endhour = '%')
    and rtrim((to_char(vem.date_time,'DAY'))) IN (:v_day);
    select count(*)
    into v_totaal
    from vem_flights vem
    where vem.aircrafttype = 'JET'
    and vem.destination = 'EHAM'
         and vem.period = 'DAY'
    and vem.runway = v_runway
         and vem.departure NOT IN ('EHLE','EHRD','EHVB')
         and vem.date_time between to_date(:v_begindate,'DD-MM-YYYY HH24.MI.SS') + (teller*7)
         and to_date(:v_enddate,'DD-MM-YYYY HH24.MI.SS')
    and (rtrim((to_char(vem.date_time,'HH24'))) >= :v_starthour or :v_starthour = '%')
    and (rtrim((to_char(vem.date_time,'HH24'))) < :v_endhour or :v_endhour = '%')
    and rtrim((to_char(vem.date_time,'DAY'))) IN (:v_day);
    if v_totaal != 0 then
    select round((v_select/v_totaal)*100) into v_percentage from dual;
    elsif v_totaal = 0 then
    select 0 into v_percentage from dual;
    end if;
    end if;
    if v_percentage > 5 then
    selectstring := selectstring||'<td>'||to_char(v_select)||'</td><td>'||to_char(v_totaal)||'</td><td><font color="red">'||to_char(v_percentage)||'%</font></td>';
    else
    selectstring := selectstring||'<td>'||to_char(v_select)||'</td><td>'||to_char(v_totaal)||'</td><td>'||to_char(v_percentage)||'%</td>';                    
    end if;
    end loop;
    htp.p('<tr>'||selectstring||'</tr>');
    end loop;
    close c_runway;
    htp.p('</table>');
    htp.p('</font>');
    elsif v_tijd = 4 then
    select trunc(to_char(to_date(:v_enddate,'DD-MM-YYYY HH24.MI.SS') - to_date(:v_begindate,'DD-MM-YYYY HH24.MI.SS')) / 365) into v_aantal_jaren from dual;
    for teller in 0 .. v_aantal_jaren loop
    if teller < v_aantal_jaren then
    kopstring := kopstring||'<td colspan="3"><b><i>'||to_char(to_date(:v_begindate,'DD-MM-YYYY HH24.MI.SS') + (teller*365),'DD-MM-YYYY')||' t/m '||to_char(to_date(:v_begindate,'DD-MM-YYYY HH24.MI.SS') + ((teller*730) - 1),'DD-MM-YYYY')||'</b></i></td>';
    elsif teller = v_aantal_jaren then
    kopstring := kopstring||'<td colspan="3"><b><i>'||to_char(to_date(:v_begindate,'DD-MM-YYYY HH24.MI.SS') + (teller*365),'DD-MM-YYYY')||' t/m '||to_char(to_date(:v_begindate,'DD-MM-YYYY HH24.MI.SS') + ((teller*730) - 1),'DD-MM-YYYY')||'</b></i></td>';
    kopstring := kopstring||'<td colspan="3"><b><i>'||to_char(to_date(:v_begindate,'DD-MM-YYYY HH24.MI.SS') + (teller*7),'DD-MM-YYYY')||' t/m '||to_char(to_date(:v_enddate,'DD-MM-YYYY HH24.MI.SS'),'DD-MM-YYYY')||'</b></i></td>';                         
    end if;      
    end loop;
    htp.p('<font face = "arial" size="3"><b>Verticale afwijkingen overdag van naderende vliegtuigen buiten de TMA</b></font><p>&nbsp<p>');
    htp.p('<table border="1">');
    htp.p('<tr>');
    htp.p('<td><b><i>Baan\Tijdvak </i></b></td>'||kopstring);
    htp.p('</tr>');
    open c_runway;
    loop
    fetch c_runway into v_runway;
    exit when c_runway%notfound;
    selectstring := '<td><b><i>'||v_runway||'</i></b>';
    for teller in 0 .. v_aantal_jaren loop
    if teller < v_aantal_jaren then
    select count(*)
    into v_select
    from vem_flights vem
    where vem.aircrafttype = 'JET'
         and vem.gs21      = 'X'
    and vem.runway = v_runway
         and vem.departure NOT IN ('EHLE','EHRD','EHVB')
         and vem.date_time between to_date(:v_begindate,'DD-MM-YYYY HH24.MI.SS') + (teller*365)
         and to_date(:v_begindate,'DD-MM-YYYY HH24.MI.SS') + ((teller*730) - 1)
    and (rtrim((to_char(vem.date_time,'HH24'))) >= :v_starthour or :v_starthour = '%')
    and (rtrim((to_char(vem.date_time,'HH24'))) < :v_endhour or :v_endhour = '%')
    and rtrim((to_char(vem.date_time,'DAY'))) IN (:v_day);
    select count(*)
    into v_totaal
    from vem_flights vem
    where vem.aircrafttype = 'JET'
         and vem.destination = 'EHAM'
         and vem.period = 'DAY'
    and vem.runway = v_runway
         and vem.departure NOT IN ('EHLE','EHRD','EHVB')
         and vem.date_time between to_date(:v_begindate,'DD-MM-YYYY HH24.MI.SS') + (teller*365)
         and to_date(:v_begindate,'DD-MM-YYYY HH24.MI.SS') + ((teller*730) - 1)
    and (rtrim((to_char(vem.date_time,'HH24'))) >= :v_starthour or :v_starthour = '%')
    and (rtrim((to_char(vem.date_time,'HH24'))) < :v_endhour or :v_endhour = '%')
    and rtrim((to_char(vem.date_time,'DAY'))) IN (:v_day);
    if v_totaal != 0 then
    select round((v_select/v_totaal)*100) into v_percentage from dual;
    elsif v_totaal = 0 then
    select 0 into v_percentage from dual;
    end if;
    elsif teller = v_aantal_jaren then
    select count(*)
    into v_select
    from vem_flights vem
    where vem.aircrafttype = 'JET'
         and vem.gs21      = 'X'
    and vem.runway = v_runway
         and vem.departure NOT IN ('EHLE','EHRD','EHVB')
         and vem.date_time between to_date(:v_begindate,'DD-MM-YYYY HH24.MI.SS') + (teller*365)
         and to_date(:v_begindate,'DD-MM-YYYY HH24.MI.SS') + ((teller*730) - 1)
    and (rtrim((to_char(vem.date_time,'HH24'))) >= :v_starthour or :v_starthour = '%')
    and (rtrim((to_char(vem.date_time,'HH24'))) < :v_endhour or :v_endhour = '%')
    and rtrim((to_char(vem.date_time,'DAY'))) IN (:v_day);
    select count(*)
    into v_totaal
    from vem_flights vem
    where vem.aircrafttype = 'JET'
         and vem.destination = 'EHAM'
         and vem.period = 'DAY'
    and vem.runway = v_runway
         and vem.departure NOT IN ('EHLE','EHRD','EHVB')
         and vem.date_time between to_date(:v_begindate,'DD-MM-YYYY HH24.MI.SS') + (teller*365)
         and to_date(:v_begindate,'DD-MM-YYYY HH24.MI.SS') + ((teller*730) - 1)
    and (rtrim((to_char(vem.date_time,'HH24'))) >= :v_starthour or :v_starthour = '%')
    and (rtrim((to_char(vem.date_time,'HH24'))) < :v_endhour or :v_endhour = '%')
    and rtrim((to_char(vem.date_time,'DAY'))) IN (:v_day);
    if v_totaal != 0 then
    select round((v_select/v_totaal)*100) into v_percentage from dual;
    elsif v_totaal = 0 then
    select 0 into v_percentage from dual;
    end if;          
    if v_percentage > 5 then
    selectstring := selectstring||'<td>'||to_char(v_select)||'</td><td>'||to_char(v_totaal)||'</td><td><font color="red">'||to_char(v_percentage)||'%</font></td>';
    else
    selectstring := selectstring||'<td>'||to_char(v_select)||'</td><td>'||to_char(v_totaal)||'</td><td>'||to_char(v_percentage)||'%</td>';                    
    end if;                    
    select count(*)
    into v_select
    from vem_flights vem
    where vem.aircrafttype = 'JET'
    and vem.gs21      = 'X'
    and vem.runway = v_runway
    and vem.departure NOT IN ('EHLE','EHRD','EHVB')
    and vem.date_time between to_date(:v_begindate,'DD-MM-YYYY HH24.MI.SS') + (teller*365)
    and to_date(:v_enddate,'DD-MM-YYYY HH24.MI.SS')
    and (rtrim((to_char(vem.date_time,'HH24'))) >= :v_starthour or :v_starthour = '%')
    and (rtrim((to_char(vem.date_time,'HH24'))) < :v_endhour or :v_endhour = '%')
    and rtrim((to_char(vem.date_time,'DAY'))) IN (:v_day);
    select count(*)
    into v_totaal
    from vem_flights vem
    where vem.aircrafttype = 'JET'
    and vem.destination = 'EHAM'
    and vem.period = 'DAY'
    and vem.runway = v_runway
    and vem.departure NOT IN ('EHLE','EHRD','EHVB')
    and vem.date_time between to_date(:v_begindate,'DD-MM-YYYY HH24.MI.SS') + (teller*365)
    and to_date(:v_enddate,'DD-MM-YYYY HH24.MI.SS')
    and (rtrim((to_char(vem.date_time,'HH24'))) >= :v_starthour or :v_starthour = '%')
    and (rtrim((to_char(vem.date_time,'HH24'))) < :v_endhour or :v_endhour = '%')
    and rtrim((to_char(vem.date_time,'DAY'))) IN (:v_day);
    if v_totaal != 0 then
    select round((v_select/v_totaal)*100) into v_percentage from dual;
    elsif v_totaal = 0 then
    select 0 into v_percentage from dual;
    end if;
    end if;
    if v_percentage > 5 then
    selectstring := selectstring||'<td>'||to_char(v_select)||'</td><td>'||to_char(v_totaal)||'</td><td><font color="red">'||to_char(v_percentage)||'%</font></td>';
    else
    selectstring := selectstring||'<td>'||to_char(v_select)||'</td><td>'||to_char(v_totaal)||'</td><td>'||to_char(v_percentage)||'%</td>';                    
    end if;
    end loop;
    htp.p('<tr>'||selectstring||'</tr>');
    end loop;
    close c_runway;
    htp.p('</table>');
    htp.p('</font>');
    end if;
    end;
    </ORACLE>
    </BODY>
    </HTML>

    I set up a helper package to return my reference cursors:
    Package SOME_PKG as type t_RefCur is REF CURSOR;
    I added the appropriate function to return the cursors. Here a simple example:
    FUNCTION get_leads(x in NUMBER, y in NUMBER)
    RETURN t_RefCur IS
    v_ReturnCursor t_RefCur;
    v_SQL VARCHAR2(500);
    BEGIN
    v_SQL:= 'select * from SOME_TABLE_OR_VIEW where account = :n and location = :m';
    OPEN v_ReturnCursor FOR v_SQL using x,y;
    RETURN v_ReturnCursor;
    END get_leads;
    Then I make my call from the portlet which goes something like this:
    <oracle>
    declare
    arow SOME_TABLE_OR_VIEW%ROWTYPE;
    invcursor SOME_PKG.t_RefCur;
    X number;
    Y number;
    begin
    invcursor := SOME_PKG.get_leads(get_account_number(X), get_location(Y));
    /*portlet formatting and looping...
    fetch invcursor into arow;
    htp.p(arow.SOME_ROW_FROM_TABLE);
    end;
    </oracle>
    I have gotten very good performance with reference cursors in Oracle.
    Good luck.

  • Displaying a Blob with a Dynamic Page

    A dynamic page was created where one of the columns on the database table is a BLOB. The following error is received when trying to query the column from the dynamic page:
    : Unable to execute query (WWV-10201)
    The preference path does not exist:
    ORACLE.WEBVIEW.PARAMETERS.1093150906 (WWC-51000
    FYI - when running a similar query from a form component, the blob displays fine. This problem occurs only with dynamic page components.

    Hi,
    What version of Portal are you using ??
    Have you tried using reports like QBE,Wizard or SQL rfor displaying Intermedia Objects.
    Thanks,
    Anu

  • Error when run a dynamic page

    I am using portal 10g. I have a simple test dynamic page to output the page_url:
    <oracle>
    Declare
    myPortlet_rec portal.wwpro_api_provider.portlet_runtime_record;
    myUrl varchar2(32767);
    Begin
    portal.wwpro_api_provider.show_portlet(myPortlet_rec);
    myUrl :=myPortlet_rec.page_url;
    htp.p(myUrl);
    End;
    </oracle>
    It compiles successfuly in portal, but when I click 'run as portlet' link, I got this error:
    Error: Internal error (WWC-00006)
    User-Defined Exception (WWV-11230)
    The preference path does not exist: ORACLE.WEBVIEW.PARAMETERS.1631499120 (WWC-51000)
    The preference path does not exist: ORACLE.WEBVIEW.PARAMETERS.1631499120 (WWC-51000)
    The preference path does not exist: ORACLE.WEBVIEW.PARAMETERS.1631499120 (WWC-51000)
    If I click 'Run', I got 'HTTP 404 not found' page.
    Can anyone tell me what is wrong here? Thanks!

    Thanks for the reply, I will try to clarify things a bit. If I attempt to create a LOV (Shared Component), I get the first error. If I type in the LOV query directly into my field definition's LOV (as opposed to using a Named LOV), I get the report error when I run the page. The 'F_FORMAT_NAME' is a database function NOT in the ASMGR schema, but it has a public synonym...looking at the grants to it, that might be a problem (ASMGR doesn't have execute on it, nor does public), however, when I first started attempting this LOV creation, the call to the function wasn't there.... I will have to re-try it. In the meantime, I got around the problem rather inelegantly by creating a view in the ASMGR schema that pointed to the fields I needed for the LOV.

  • Dynamic page structure

    Hello,
    I am using ADF 11g.
    I am trying to implement a page structure which differs in order to a logic behind. As a result, page might have different count of facets and these facets should be filled programmatically. I wonder what is the best method for doing this. I am trying to use different page templates for each possible page structure. But i have some questions about it, any idea would be appreciated.
    1- Is this supported: Main jsp file with a page template (which has a facet named contentArea), a jsff file (which has a dynamic page template reference) included in contentArea.
    2- When using dynamic page template binding, is it a requirement that used page templates must have the same amount of facetrefs?
    3- Can i dynamically change jsp:include tag's "page" attribute, e.g. with expression language?
    4- How can i find a page template (RichPageTemplate component) from backing bean.
    Thanks.

    Hi,
    1- Is this supported: Main jsp file with a page template (which has a facet named contentArea), a jsff file (which has a dynamic page template reference) included in contentArea.
    I tried it and it works with full support by the IDE.
    2- When using dynamic page template binding, is it a requirement that used page templates must have the same amount of facetrefs?
    Yes.
    3- Can i dynamically change jsp:include tag's "page" attribute, e.g. with expression language?
    The page include is added during compile tme, not runtime. So I don't think this is possible. However you can change the <af:pageTemplate> content dynamically. If you need to dynamically change parts of a pae, have a look at the Dynamic Page Template tag in the ADF Faces tag documentation
    4- How can i find a page template (RichPageTemplate component) from backing bean.
    You can start searching from the UIViewRoot or relatve to the parent container, which is af:form. In the latter case, you create a JSF component binding reference for the RichForm in the managed bean and then call getChildren
    e.g.
        public String cb1_action() {
            // Add event code here...
            List<UIComponent> l = form1.getChildren();
            for (UIComponent u : l){
                System.out.println("Child "+ u.getId() + "--"+u.getClass());
            return null;
        }Frank

  • Input items on a dynamic page

    I think there must be a simple way to do this but I cant seem to find how. So any help would be most appreciated.
    I have created a dynamic page which contained a html <FORM>. I have created a function that is called by the onsubmit method that I then want perform an update statement setting the value of a column to the value contained in a textbox input. I do not know how to reference this within the oracle tags, or if I have to use some form of function to obtain the value?
    Can some one please point me in the right direction if I had basic example below:
    <Form name=dataform >
    <input name=txt1 type=textbox value=10>
    <input type=submit>
    </Form>
    <oracle>
    begin
    update testable set COLa = ‘txt1.value’
    end;
    </oracle>
    I know this may seem like I simple question but I am stumped.
    Thanks for any help,
    Craig

    sorry I think this should have been posted in "portal applications" I have reposted it there.

  • Problem: Dynamic Page portlet is not displayed on a public-viewable page

    I've written a little dynamic page portal that works nicely on secure pages, but when I create a new page and mark this page as "public viewable" - the portal is not displayed.
    I created a 2nd public page and put several prebuilt and some of our own portlets onto this page - again none worked - except the prebuilt "login" portlet.
    Is there a restriction that I'm not aware of?
    Is there a documentation about this behaviour?
    Can anyone post me a hit or link to documentatin?
    Sincerly,
    Art
    Message was edited by:
    user620777

    Make sure your Portlet Provider access is set to allow 'PUBLIC' access with Execute';
    To set, navigate to Providers > Locally Built Providers
    Follow 'Grant Access' link near provider name
    Doc Reference, Section A.5.1.2 > http://download.oracle.com/docs/cd/B14099_19/portal.1014/b14135/pdg_portletbuilder.htm#BABIEFJG

  • Managing recorded files using dynamic page.

    Hi all,
    I have an app that record the user's voice, each time in one
    different file
    adding an index to the end of the file name.
    rec_tom1.flv, rec_tom2.flv....
    I'm having some problems trying to recover this names
    I need to know if it's possible list this recorded files
    using a dynamic
    page. I have a web host at host A that will have an asp page
    pointing to my
    FMS host B, this page will list the flies and return it to my
    flash app,
    then I 'll load this in a list box.
    in the dynamic page at some point I'll need the PATH to the
    FMS server....
    this is where thigns fail....
    I've tried to point using as path the "rtmp + account name"
    without success.
    So, I need to know if first this is possible, then if so, try
    to figure out
    the correct path to it.
    best
    rodrigo.

    Central comes with predefined tasks PGCNTGET and PGCNTSET (see below). Create a job that includes both thses JFMERGE steps. PGCNTGET will run through the job, count pages and direct output to -zNUL. PGCNTSET will run through the job again and this time have the number of pages stored in variable @pagecount and direct the output to -z@PhysicalDev
    If you create a data field PAGES on your template you can pass this into the field:
    ^GLOBAL PAGES
    Page @$PAGE. of @PAGECOUNT
    Tasks:
    PGCNTGET "@MDFName." "@InFile." -l -apr"@PreambleName." -all"@LogFileName." -asl@SkipLines -amq@ManagedMem -ams"@MSTName." -m@Macro#.@LoadFlag -z"@PhysicalDev." @PrintDirectorParms. @OtherJobTokens. -aii"@IniFileName."
    PGCNTSET "@MDFName." "@InFile." -l -apr"@PreambleName." -all"@LogFileName." -asl@SkipLines -amq@ManagedMem -ams"@MSTName." -m@Macro#.@LoadFlag -z"@PhysicalDev." @PrintDirectorParms. @OtherJobTokens. -aii"@IniFileName." -advglobal:pagecount=@NumberPages.

  • Dynamic Page Layout - Opportunity Product Revenue

    Hi gurus,
    I am trying to setup a dynamic template for "Opportunity Product Revenues"
    I set it up successfully in the object. However, this data is exposed only as a related list of Opportunity and not directly. Now, when I go into the "Opportunity" customization, it only allows me to set up static page layouts, with no option to setup the Dynamic page layouts through the Related list.
    Please help..

    Hi Jonathan,
    Many thanks for your response.
    Our CTE is already on R19. We want to experiment and be ready when our PROD is upgraded to R19.
    Can you help me with the requirement, if you have an idea please? I would really appreciate the help.
    Thanks

Maybe you are looking for