Dynamic Page / Oracle Tags/ Javascript

I'm attempting to insert values from an Oracle database into javascript code that creates a scrolling text area. I'm assuming I need to use <oracle></oracle> tags to do so, but I'm not sure exactly how to populate what I need in the code. Any ideas?
The code is below. The area that needs to be populated with the data is in the Array variable, and I've used "Database Value 1, 2, 3" as placeholders.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
     <title>Untitled</title>
<style TYPE="text/css">
     <!--
     .TextScrollStyle {
          visibility:hidden;
          font-family:Verdana;
          font-weight:bold;
          text-align:center;
          padding:0;
          margin:0;
          width:100%;
          overflow:hidden;
     -->
     </style>
<script language="JavaScript1.2">
          var TS_message = new Array();
TS_message[0] = '<div align="left">Database Value 1</div>';
     TS_message[1] = '<div align="left">Database Value 2</div>';
          TS_message[2] = '<div align="left">Database Value 3</div>';
var TS_scrollwidth=400
          var TS_colorFG = 0x000000;
          var TS_colorBG = 0xFFFFFF;
          var TS_ymax = 50;               
          var TS_ystep = 1;               
     var TS_speed = 2;                    
var TS_pause = 100;
          var TS_fadestep= 20;               
if (document.all)
document.write('<style>#containerarea{width:'+TS_scrollwidth+'}</style>')
</script>
</head>
<body>
<DIV id="containerarea">
<SCRIPT LANGUAGE="JavaScript1.2" SRC="\\Portalapp\ORACLE\iSuites\portal30\java\textfader.js"></SCRIPT>
</DIV>
</body>
</html>

You can write a piece of PL/SQL for
TS_message[0] = '<div align="left">Database Value 1</div>';
TS_message[1] = '<div align="left">Database Value 2</div>';
TS_message[2] = '<div align="left">Database Value 3</div>';
between <ORACLE> tags:
declare
cursor ...
begin
loop for i in cursor loop
htp.p('TS_message[0] = ''<div align="left">'||i.value||'</div>''; ';
end loop;
end;
Hope it helps.

Similar Messages

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

  • How to display dynamic page content in an external application (MS Word)?

    I have a portal that generates a CV from info stored by various forms. The CV displays fine in a dynamic page, but when I add javascript to launch MS Word with a call to the dynamic page portlet, only the hard coded html displays - nothing between the <ORACLE> tags is loaded.
    I had the idea of updating the dynamic page with hard coded html prior to each export - but I can't find where the dynamic page definition is stored in the database.
    Any ideas/better solutions out there?

    dynamic page:
    <ORACLE>
    DECLARE
    theUser varchar2(30) := portal30.COE_GET_CV_PERSON;
    v_output varchar2(6) := portal30.COE_GET_CV_OUTPUT;
    v_no number;
    v_url varchar2(500):= 'http://oraclecoedb.asiapacific.cgey.com:7779/pls/portal30/PORTAL30.wwv_component_control.run_as_portlet?p_module_id=1934976747';
    BEGIN
    IF v_output = 'WORD' THEN htp.script('startWord('||''''||v_url||''''||');','Javascript');
    ELSE null;
    etc ...
    javascript:
    <script language="JavaScript">
    function startWord(strFile)
    var myApp = new ActiveXObject("Word.Application");
    if (myApp != null)
    myApp.Visible = true;
    myApp.Documents.Open(strFile);
    </script>

  • Wwctx_api.get_user in Dynamic Page?

    Can API calls be made from select statements within the <ORACLE></ORACLE> tags in Dynamic Pages? The following query should list courses that someone has signed up for but the query cannot be saved within the Dynamic Page:
    <ORACLE>
    select course_name
    from course
    where user_id = wwctx_api.get_user
    </ORACLE>
    Regards,
    Jay
    Jay Mason
    Director, Oracle Web Applications Development
    Effective Shareholder Solutions, Inc.

    Jay,
    Just prefix the function with "PORTAL30" (or the name of the schema where Portal is installed, if not PORTAL30).
    <ORACLE>
    select course_name
    from course
    where user_id = PORTAL30.wwctx_api.get_user
    </ORACLE>
    null

  • 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

  • ORACLE Tags in Dynamic Pages

    In the beta version, a Dynamic Page could be developed that did not contain the Oracle tags, <ORACLE> and </ORACLE>. The production version appears to require the use of these tags.
    I've tried to work around this by using <ORACLE> select ' ' from dual</ORACLE> which gave me a blank, but with a different color background and <ORACLE>htp.br;</ORACLE> which Oracle Portal would not accept.
    Any suggestions on how to create a Dynamic Page where the Oracle tags do not impact the display of the page?
    Fran Bailey
    EDS - Meredith Account

    I am running 3.0.6.6.5 on Solaris 2.6.
    I entered your work around (<ORACLE>begin null; end;</ORACLE>) and got this error message when I tried to save the HTML code:
    ORA-06550: line 1, column 15:
    PLS-00103: Encountered the symbol
    "end-of-file" when expecting one of the following:
    ; <an identifier> <a double-quoted
    delimited-identifier>
    The symbol ";" was substituted for "end-of-file" to continue. (WWV-11230)
    Failed to parse as MAH - BEGIN NULL;
    END (WWV-08300)
    Any other suggestions would be appreciated.

  • Help on oracle tags inside 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

    There is a brief description in the online help - see http://isd-demos2.oracle.com:7778/help/wvtdynam.htm.
    You can also search this forum - there have been many examples posted here.
    If you have further questions about dynamic pages, the Portal Applications forum would be a better place to post them.
    Regards,
    Jerry
    Portal PM

  • ORACLE tags in Templates vs Dynamic Pages

    Hello all,
    I have a procedure that prints the Portal version:
    Create or Replace PROCEDURE MATSTESTSCHEMA.SHOW_PORTAL_VERSION
    as
    l_ver varchar2(20);
    BEGIN
    l_ver := portal30.wwctx_api.get_product_version();
    htp.print(l_ver);
    END;
    I can call this procedure successfully from a Dynamic Page with
    the following embedded syntax in the HTML code:
    <ORACLE>
    BEGIN
    MATSTESTSCHEMA.SHOW_PORTAL_VERSION;
    END;
    </ORACLE>
    I want to use some procedure calls in my templates as well.
    Tried to use the same syntax as above but it does NOT work.
    The whole code block between the <ORACLE>-tags seems to be
    ignored as soon as a procedure call is included.
    A simple syntax like this DOES work in a template:
    <ORACLE>
    BEGIN
    htp.p('hello');
    END;
    </ORACLE>
    Why doesn't it work to call procedures from the templates???
    Has anyone alse run into this?
    PS! I'm using Portal version 3.0.7.6.2
    Will soon upgrade to the latest version...

    What I'm trying to do is to do a redirect of a page depending on
    some conditions which my PL/SQL procedure can determine. So I
    hoped that I could call my procedure from the page template
    header and the procedure would print a redirect tag, if
    appropriate. Something like this:
    Page template (part of..)
    <HTML>
    <HEAD>
    <ORACLE>
    BEGIN
    MYSCHEMA.DO_REDIRECT;
    END;
    </HEAD>
    The DO_REDIRECT procedure prints the META tag for a redirect of
    the browser if it finds it necessary. otherwise it would do
    nothing..
    <META     HTTP-EQUIV="Refresh"
         Content     = "30;
         URL=http://www.oracle.com">
    But calling procedures from templates as described above does
    not seem to work, at least in version 3.0.7.6.2.
    (We're in the process of upgrading to the latest version)
    Does this work in 3.0.9 ?
    ...or does anyone know a better way to do this?
    Any advice is really apreciated.

  • 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

  • Oracle tags and JavaScript

    Attention JavaScript and Oracle Guru's,
    My company has come up with a great requirement using JavaScript and dynamic pages to provide end users with a Systems Availability Information portlet, which scrolls text along the screen.
    This is as follows.....
    They want a Portlet which scrolls text along the screen on the users home page. This has been easy enough to implementbut now this information has to be supplied from the database (an Internal Systems Operation team input information into this table via a form)
    HmmmmOracle tags do not work within JavaScript. So I have created a hidden form on the outside of the JavaScript to pass in text.
    This works great with normal text variables, so I thought the addition of Oracle tags would be the next logical step needed to pass data from the database into the scrolling text Portlet.
    With use of the <Oracle> tags and hidden variables I have managed to come up with the following....
    <html>
    <body>
    <form id="hiddenOracleForm">
    <input type="hidden" name="recordset1" value="<oracle> select * from mnunn.matt_ticker_table</oracle> ">
    </form>
    < !-- START OF SCRIPT -->
    <HTML>
    <BODY BGCOLOR="FFFFFF" TEXT="000000" LINK="0000FF" VLINK="800080" ALINK="FF0000">
    <head>
    <script language="JavaScript">
    < !-- begin
    var max=0;
    function textlist()
    max=textlist.arguments.length;
    for (i=0; i<max; i++)
    this=textlist.arguments[i];
    document.write('the variable for rs1 is ' + rs1);
    var rs1 = document.forms['hiddenOracleForm'].recordset1.value;
    tl=new textlist
    rs1
    var x=0; pos=0;
    var l=tl[0].length;
    function textticker()
    document.tickform.tickfield.value=tl[x].substring(0,pos)+"_";
    if(pos++==l) { pos=0; setTimeout("textticker()",1000); x++;
    if(x==max) x=0; l=tl[x].length; } else
    setTimeout("textticker()",50);
    // end -->
    </script>
    <head>
    <body onLoad="textticker()" >
    <center>
    <form name="tickform"><input type=text name="tickfield" size=40></form>
    </BODY>
    </HTML>
    < !-- END OF SCRIPT -->
    <img src="file://hofisintranet1/qualitydocs$/DW/stag bitmaps/monfaq.gif" border="0">
    < !-- START OF SCRIPT -->
    < !-- For more scripts visit http://www.hof.co.uk -->
    <FORM><input type="button" Value="Click here for full details" ONCLICK="window.open('http://www.hof.co.uk', 'Sample', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=yes,width=635,height=260')"></FORM>
    < !-- END OF SCRIPT -->
    </body>
    </html>
    Now when this scrolls along the screen, I do not get the expected outcome from the database table. Instead it scrolls.<TABLE border=
    I dont know where this information has come from because it should say..
    Enter password:
    Connected to:
    Oracle8i Enterprise Edition Release 8.1.7.0.0 - Production
    JServer Release 8.1.7.0.0 - Production
    SQL> select * from mnunn.matt_ticker_table;
    INFO
    This is information taken from the portal database
    SQL>
    Has anybody tried this before or got any ideas on where I could be going wrong??????
    Thanks for any help..Matt.
    null

    I'll try for the repost. This time without the compilation of the code......here goes.
    Attention JavaScript and Oracle Guru's,
    My company has come up with a great requirement using JavaScript and dynamic pages to provide end users with a Systems Availability Information portlet, which scrolls text along the screen.
    This is as follows.....
    They want a Portlet which scrolls text along the screen on the users home page. This has been easy enough to implementbut now this information has to be supplied from the database (an Internal Systems Operation team input information into this table via a form)
    HmmmmOracle tags do not work within JavaScript. So I have created a hidden form on the outside of the JavaScript to pass in text.
    This works great with normal text variables, so I thought the addition of Oracle tags would be the next logical step needed to pass data from the database into the scrolling text Portlet.
    With use of the <Oracle> tags and hidden variables I have managed to come up with the following....
    <form id="hiddenOracleForm">
    <input type="hidden" name="recordset1" value="<oracle> select * from mnunn.matt_ticker_table</oracle> ">
    </form>
    <!-- START OF SCRIPT -->
    <BODY BGCOLOR="FFFFFF" TEXT="000000" LINK="0000FF" VLINK="800080" ALINK="FF0000">
    <head>
    <script language="JavaScript">
    <!-- begin
    var max=0;
    function textlist()
    max=textlist.arguments.length;
    for (i=0; i<max; i++)
    this=textlist.arguments[i];
    document.write('the variable for rs1 is ' + rs1);
    var rs1 = document.forms['hiddenOracleForm'].recordset1.value;
    tl=new textlist
    rs1
    var x=0; pos=0;
    var l=tl[0].length;
    function textticker()
    document.tickform.tickfield.value=tl[x].substring(0,pos)+"_";
    if(pos++==l) { pos=0; setTimeout("textticker()",1000); x++;
    if(x==max) x=0; l=tl[x].length; } else
    setTimeout("textticker()",50);
    // end -->
    </script>
    <head>
    <body onLoad="textticker()" >
    <center>
    <form name="tickform"><input type=text name="tickfield" size=40></form>
    </BODY>
    <!-- END OF SCRIPT -->
    <img src="file://hofisintranet1/qualitydocs$/DW/stag bitmaps/monfaq.gif" border="0">
    <!-- START OF SCRIPT -->
    <!-- For more scripts visit http://www.hof.co.uk -->
    <FORM><input type="button" Value="Click here for full details" ONCLICK="window.open('http://www.hof.co.uk', 'Sample', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=yes,width=635,height=260')"></FORM>
    <!-- END OF SCRIPT -->
    Now when this scrolls along the screen, I do not get the expected outcome from the database table. Instead it scrolls.<TABLE border=
    I dont know where this information has come from because it should say..
    Enter password:
    Connected to:
    Oracle8i Enterprise Edition Release 8.1.7.0.0 - Production
    JServer Release 8.1.7.0.0 - Production
    SQL> select * from mnunn.matt_ticker_table;
    INFO
    This is information taken from the portal database
    SQL>
    Has anybody tried this before or got any ideas on where I could be going wrong??????
    Thanks for any help..Matt.

  • Calling portal JavaScript from dynamic pages

    Where is the Oracle folder where all the JavaScripts are located? I want to use some of these scripts in my dynamic page.
    Thanks,
    Marcelo

    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 ?

  • In a dynamic page how to share variable between PL/SQL and javascript

    For example, my dynamic page contains such PL/SQL codes:
    <ORACLE>
    DECLARE
    info varchar(100);
    rowid urowid;
    procedure doDelete(
    row_id in urowid
    ) IS
    begin
    Delete From xxx
    WHERE rowid = row_id;
    end doDelete;
    BEGIN
    Select name, rowid INTO info, rowid
    From xxx Where xxx;
    HTP.PRN(' <INPUT TYPE="button" VALUE="show value" onClick="alert(info);">');
    HTP.PRN(' <INPUT TYPE="button" VALUE="delete" onClick="doDelete(_row_id);">');
    END;
    </ORACLE>
    The variable 'info' and '_row_id' are correct, however the two HTP. sentence do not work. What's the problem?
    What I want to do is to show all the records in TABLE A in a page. And at the end of each line (record), there' re a 'delete' and a 'update' button to let user operate on this record. Is this possible? I know form can do delete an update, but it can not show all the records in a page like what report does. Besides dynamic page, is there any other better choice? Report can do it?
    One more question. In a report, I employed link on one field to a second report. It works well. But I want to open the second report in a new window when the link is click. Is this possible?
    I was almost driven crazy by these :( I so appreciate if anyone can help.

    The code written by you is insufficient for the funtionality you are trying to achieve. Below is a method to achieve the same.
    Note: Used standard scott.emp table for the example which is located in my db provider schema.
    Do the below modifications as per your local configuration
    xxxxx -> Replace it with your Portal schema
    yyyyy -> Replace it with your db provider schema
    <<module_id_of_form>> -> Replace with the module id of form created in step 1 & 2.
    First and foremost... oracle does not allows variables starting with '_'. So if you want to use it you have to place it in double quotes ("")
    rowid -> illegal
    "_row_id" -> legal.
    However, I will advice you not to use variable names starting with "_".
    Now lets get started...
    1. Create a form on the table you are using in the dynamic page. Just have the update button. Remove the other buttons.
    2. Get the module id of this form. Instruction for getting the module id:
    a) Right-click on the form's run link and copy the shortcut
    b) Get the value of p_moduleid parameter. This is your module id.
    3. Create a procedure "save_action_details" in your db provider schema. This procedure will accomplish the delete operation on the record.
         CREATE OR REPLACE Procedure save_action_details(
         p_rowid IN VARCHAR2,
         p_action IN VARCHAR2,
         p_dyn_ref_path IN VARCHAR2,
         p_dyn_page_url IN VARCHAR2)
         is
         l_sto_session xxxxx.wwsto_api_session;
         begin
         l_sto_session := xxxxx.wwsto_api_session.load_session(
         p_domain => 'DynStore',
         p_sub_domain => 'DynStore_' || p_dyn_ref_path
         l_sto_session.set_attribute(
         p_name => 'rowid',
         p_value => p_rowid
         l_sto_session.set_attribute(
         p_name => 'action',
         p_value => p_action
         l_sto_session.save_session;
         htp.init;
         owa_util.redirect_url(p_dyn_page_url);
         end save_action_details;
    Explaination: The above procedure creates a session and keeps the rowid and action in the session. This information is used by the below dynamic form to perform the necessary action. In our exampl, the action is always going to be delete so you may go ahead and hard code it, else leave it as it is.
    4. Grant execute privilege on the procedure "save_action_details" to public.
    sql> grant execute on save_action_details to public;
    5. Create your Dynamic page.
    a) In HTML code section have the below code. This code shows some columns from the table and "update" and "delete" buttons to perform the respective action.
         <ORACLE>select empno,ename,rowid,
         '<input type="button" value="Update" onClick="doAction(this.form,''UPD'',''xxx'','''
         || xxxxx.wwv_standard_util.url_encode(rowid) || '''); tWin();">
         <input type="button" value="delete" onclick="doAction(this.form,''DEL'',''' || rowid || ''',''xxx'');">' Action
         from yyyyy.emp</ORACLE>
    b) In additional pl/sql code section of dynamic page, have the below pl/sql block "in after displaying the header" section.
         declare
         l_sto_session xxxxx.wwsto_api_session;
         l_del_rowid varchar2(20);
         l_action varchar2(10);
         begin
         htp.comment('User code starts here ...');
         htp.p('<script>');
         htp.p('var winHandle;');
         htp.p('
         function doAction(formObj, action, rowid, erowid)
              if (action == "UPD")
              var formURL = "' || xxxxx.wwctx_api.get_proc_path('wwa_app_module.link?p_arg_names=_moduleid&p_arg_values=<<module_id_of_form>>&p_arg_names=_rowid&p_arg_values=') || '" + erowid;
              winHandle = window.open(formURL, "winDynUpd", "width=750,height=500,resizable=yes");
              else
              formObj.p_rowid.value = rowid;
              formObj.p_action.value = action;
              formObj.submit();
         function tWin() {
              if (winHandle.closed) {
              document.location = document.location;
              else {
              setTimeout("tWin()", 500);
         htp.p('</script>');
         htp.p('<form name="dynRowProcess" method="POST" action="'
         || xxxxx.wwctx_api.get_proc_path('save_action_details','yyyyy')
         || '">');
         htp.p('<input type="hidden" name="p_rowid">');
         htp.p('<input type="hidden" name="p_action">');
         htp.p('<input type="hidden" name="p_dyn_ref_path" value="' || p_reference_path || '">');
         htp.p('<input type="hidden" name="p_dyn_page_url" value="' || p_page_url || '">');
         l_sto_session := xxxxx.wwsto_api_session.load_session(
         p_domain => 'DynStore',
         p_sub_domain => 'DynStore_' || p_reference_path
         l_del_rowid := l_sto_session.get_attribute_as_varchar2('rowid');
         l_action := l_sto_session.get_attribute_as_varchar2('action');
         if l_action = 'DEL' then
         delete from yyyyy.emp
         where rowid = l_del_rowid;
         end if;
         end;
    Explaination: The session information (rowid and action) stored by "save_action_details" procedure is retrieved by the dynamic page and is used to delete the record.
    6. Once you are through with the above steps, test it by placing the above "dynamic page" portlet on a page.
    a) When you click on delete button the record gets deleted and the automatically refreshed page will not show the deleted record.
    b) On clicking update button, a form will appear. do the necessary modifications in data and click update. the data in the form gets updated. Once you close the form the dynamic page gets refreshed automatically and it will show you the updated information.

  • Dynamic Pages: how to overide the default format returned from the oracle query.

    When writing a dynamic page, portal always displays any return from a database query in a default format or grey background table:
    <TABLE border="0" cellspacing=0 cellpadding=2 style="background-color:#E0E0D0">
    <TR>
    <TH ALIGN="LEFT" style="background-color:#C0C0A0" > </TH>
    </TR>
    <TD ALIGN="LEFT" valign="TOP" WIDTH="0">
    Is there anyway to change this or this how the
    function
    PORTAL30.wwv_render_report.show always works?
    Thanks in advance!

    James,
    Please see posting http://technet.oracle.com:89/ubb/Forum70/HTML/000073.html.
    Just a reminder, please search the forum before posting your question. It's quite likely that someone else has already asked the same question.
    Regards,
    Jerry
    null

  • Oracle Portal Dynamic Pages?

    I grabbed this from the Primer on Portlets "<b>By simply cutting and pasting the HTML provided by affiliates into Oracle Portal dynamic pages, you can create a portlet specifically for that affiliate program and embed it into your portal.</b>"
    How is this Oracle Portal Dynamic Page created?

    The dynamic page is a portal application component. You can create one within any portal application that you have been granted edit privileges (for a sample, go to the Navigator, click on the Applications tab and open EXAMPLE APP). For additional information, check out the on-line help (search for dynamic) or glance at the components section of the product features whitepaper: http://technet.oracle.com/products/iportal/pdf/portal_twp.pdf

  • Automated tool to convert from Forms to Dynamic Page for Oracle Portal?

    Hi Experts,
    We are thinking to convert majority of the forms in our portal to dynamic pages. Is there any tool to automate the conversion from Forms to Dynamic page for Oracle Portal 9.0.4.1.0?
    Thanks, Abbas

    Dear Abbas,
    You seem to have two issues... ;-)
    If you are finding the Forms are getting corrupt very easily, I'd suggest you go and open a Service Request into Oracle Support (http://metalink.oracle.com). There are a couple of ways where you can have these not corrupted (depeding on the Portal version you are in) and if there isn't yet a way you may get a bug logged and fixed within the next patchset eventually (improving the product functionality).
    As to changing it to a dynamic page it might give you a bit more flexibility... yeah. It really depends on what you desire to do. I'd slowly start to code them in this way if your goal is this. As to the former coded forms unfortunately as I've said there isn't a strait way to do that, so you may do this slowly in time...
    I hope it helps you a bit further...
    Cheers,
    Pedro.

Maybe you are looking for

  • Finder crashing? (other Apple apps as well)

    I know I posted this just before but it wouldn't let me edit my post to make it shorter Finder is crashing. I have and suspect it could be something to do with permissions, but I've done a repair permissions etc, made a new account and that didn't do

  • Feed Not Working -- file problems?

    Hello, I am having some problems with my feed downloading. I had it working a while ago, but then I've deleted my only episode and started anew. I've checked with feedvalidator and it's ok... but I don't understand why it's not working now. I thought

  • Excise error in record

    Hi Experts, My user made a billing document for deemend export in which customer is ED EXEMPT CT3. so there will be no excise duty paid by him.this is the standards scenerio. Now my question is in (one billing document JEX2-A/R BASIC EXCISE showing v

  • Exporting photos & Burning a DVD-R

    I have an album with some pics I'd like to send to a relative. I can't export the album - nothing happens. I have to make a slideshow first, then export the slideshow to a folder, insert a DVD-R, and drag the folder to the DVD in the Finder. However

  • Can't see all music in itunes...

    Hi, I have recently added music via import CD. I can see the album folders when I navigate to my Music folder but I don't see them in itunes. I had changed my music folder from the default location but have since moved it back. Have "consolidated". N