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

Similar Messages

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

  • Struts - HTML:link tag with dynamic page attribute?

    I am trying to use the html:link but the page value is dynamic (resulting from the bean within the iterate tag). The code below doesn't work - error. Is there a way to use all Struts tags and make this happen. Any ideas?
            <logic:iterate id="myMenuForm" property="menuItem" scope="session" name="menuForm" >          <html:link page="<bean:write name="myMenuForm" property="menuDisplayName"/>">                  <bean:write name="myMenuForm" property="menuDisplayName"/>          </html:link>        </logic:iterate> Thanks,
    mlv

    Thanks for all your help. Based on all you your comments, it is now working
    and I thought I would provide some details about how I got it working.
    There are not that many examples within the Struts documentation.
    id = unique name for the object that can be referenced within the iterate
    tag.
    name = is the Bean, in this case it's the ActionForm, that contains the List
    object that will be iterated. In my case, I have a ActionForm that contains
    a List property that contains all the menu item rows from the databse.
    property = is the property name within the ActionForm that is the List
    object. Links to the getter method
    Within the <bean:write> tag you use the id name to get a handle on the final
    object from the iterate tag and the property is one of the property values
    within the bean that is contained within the List.
    So in this case I have a ActionForm bean that contains a List property that
    contains a collection of beans.
    FormAction - bean
    property menuItems of type List contains:
    - row 1 = bean (with a property of menuDisplayName)
    - row 2 = bean (with a property of menuDisplayName)
    - row 3 = bean (with a property of menuDisplayName)
    Here's the JSP code for the tag.
            <logic:iterate id="myMenuForm" name="menuForm" property="menuItem" >
              <html:link page="www.yahoo.com"/>
                      <bean:write name="myMenuForm" property="menuDisplayName"/>
              </html:link>
            </logic:iterate>Now I would like to make the <html:link> page attribute value dynamic from
    the iterate bean. Therefore, you can make the url for the link dynamic If
    you know how to do that, please feel free to provide some help.

  • Help with HTML tags and web page creating

    I have a project that is supposed to use an HTML class we make. He has given us the basics but we have to fill it in. My question is: How do you code a value that has been passed to a method into an html tag. For instance we have one that is called makeEmail and it is supposed to place an email address on a webpage. Here is the method, I just need to figure out how to code it correctly. Any suggestions on how to do this?
    public void makeEmail(String address)
    webPage += "" + address + "";
    }

    An email tag in html is very similar to a hyperlink. The string you want the makeEmail method to create is as follows:
    <a href="mailto:(email address")>(email address or description or whatevber you want displayed on screen)</a>So using for example my email address, you use the following line:
    <a href="mailto:[email protected]">Send an email to Mr_Silly</a>It is very much worth looking into an html tutorial, try searching for one on the web, cos there a thousands out there. It is a very simple language to learn.
    :-)

  • 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

  • Has anyone tried changing the color of the table header in Dynamic Pages?

    When you generate the sample Dynamic Page you get a table header with the color of #C0C0A0.
    Has anyone ever found where this value is coming from within the database ?
    I'd like to change it so I can control the background color in the TH tag for Dynamic Pages.
    TIA
    Mark.

    You probabli dispay the data as
    <oracle> select empno,empname from scott.emp</oracle>
    However, you could do it like this:
    <oracle>
    being
    htp.p('<table>');
    htp.p('<tr>');
    htp.p('<td bgcolor=#ffaabb>empno</td>');
    htp.p('<td bgcolor=#ffaabb>empname</td>');
    htp.p('</tr>');
    for c in (select empno,empname from scott.emp) loop
    htp.p('<tr>');
    htp.p('<td>');
    htp.p(c.empno);
    htp.p('</td>');
    htp.p('<td>');
    htp.p(c.empname);
    htp.p('</td>');
    htp.p('</tr>');
    end loop;
    htp.p('</table>');
    end;
    </oracle>
    htp is package in sys schema in oracle.

  • Show ordimages - dynamic page or portal reports

    Hi all.
    I have one table with 2 columns ordimages and 1 varchar2, im use a oracle portal forms to make inserts, its works perfect, but now a need to display this images, i try to use Portal Reports, but when a try display this images just show a small picture a want to display the original image like:
    Name Product: image in full size
    Can i do this in oracle reports or dynamic page , because later,a want to make a search in this product names ?
    tks
    Carlo.

    Please post this question to the Portal applications forum. This forum is for discussion of content area topics.
    Thanks,
    Jerry

  • Dynamic Page parameters

    Please help.
    I have 2 dynamic pages and I want to pass parameters between them
    in the 1st dynamic page I have:
    <FORM METHOD=POST ACTION="url/owner.dyn_crt_login.show">
    <INPUT TYPE=TEXT NAME=P_Login_In ID=P_Login_In>Login
    <INPUT TYPE=TEXT NAME=P_Pswd_In ID=P_Pswd_In>Pswd
    <INPUT TYPE=TEXT NAME=P_St_In ID=P_St_In>State
    <INPUT Type="submit" value="submit">
    </FORM>
    In the 2nd dynamic page I have 3 bind variables I am using
    :p_login_in, :p_pswd_in, and :p_st_in
    I get the following error when I click the Submit button:
    owner.dyn_crt_login.show: SIGNATURE (parameter names) MISMATCH
    VARIABLES IN FORM NOT IN PROCEDURE: P_LOGIN_IN,P_PSWD_IN,P_ST_IN
    NON-DEFAULT VARIABLES IN PROCEDURE NOT IN FORM:
    DAD name: portal30
    PROCEDURE : owner.dyn_crt_login.show
    URL : http:url/owner.dyn_crt_login.show
    PARAMETERS :
    ============
    P_LOGIN_IN:
    Nancy
    P_PSWD_IN:
    TANNER
    P_ST_IN:
    IN
    Thanks
    Nancy

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

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

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

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

  • 'Unallowed tags or dynamic code' error on a page without these...

    Hi,
    I've been using InContext Editing for a few sites now and my clients have been very happy with it, but I have a new site that's having problems on just one page.
    http://www.windhampilates.com/index.php
    I've enabled ICE on the text areas below the main photo and nav bar, as I have on other pages. There are a few scripts running on this page, but the only difference on this page from the rest of the site is the rotating image at the top of the page.
    Ironically, I've used this same script on previous sites where I've used ICE and they've worked without any problems. Am I missing something?
    Really and truly appreciate  your help!
    - MaryAnn

    I can login, and try to edit, but the system won't save my changes and gives me the 'unallowed tags or dynamic code' error as the reason why it can't save the changes.
    I tried removing the jquery in the header, but that didn't seem to work:
    http://www.windhampilates.com/index-testjqueryerror.php
    I still can't get the edits to save and it's still giving me the same message.
    The only other non-static elements on the page are the newsletter subscription script and the Facebook link, but I have these on other pages and we can edit those pages without issue.
    Any other ideas?
    Thanks for your help!

  • WebDB - Dynamic Pages SVG/HTML Encoding Help

    I have been playing around with WebDB 2.2
    to generate an SVG document from a table with X/Y locations
    in columns.
    I can generate the SVG content fine but when WebDB sends it to
    my browser (IE 5.5) it is displayed as XML rather than as an SVG document.
    Now I think that the problem is that the document does not have an SVG extension
    and WebDB is typing the document as HTML. When I check the properties of the
    document (right mouse click and select properties), Windows tells me the type of the
    document is HTML. If I File>Save the document with an SVG extension and then open it
    in IE I get my map.
    I can't see how to force WebDB to change the document type.
    Can anyone help me?
    I hope I am making sense :-)
    Simon

    Have you specified any value (greater than 0) in the Portlet expires in ... minutes field ?
    If you have, then I guess your dynamic page is getting cached.
    Before submitting the form, do a right click on the browser page and view the page source.
    What does the <form> tag look like ?
    Does it still show the old procedure name ?

Maybe you are looking for

  • Why can I not install Windows 8 on my Mac?

    Hello, I have been trying to install Windows on my Mac lately, and whenever I try to partition the drive, I hit a wall. It claims that I need to reformat my primary partition and try again. I have already done this and restored all of my data. My com

  • I cannot eject DVD from iMac. It sounds as if it is trying to eject.  I've tried onscreen eject and keyboard eject key.

    I cannot eject DVD from iMac. It sounds as if it is trying to eject.  I've tried onscreen eject and keyboard eject key.

  • Message Type IN_BAND_EXCEPTION

    Hello all, We get In_band_exception message type in our respnse messge from the remote TP. We are using b2b 11.1.1.3 version. The InstanceIdentifer in the service header of the response message has invalid characters, <messageTrackingID> <InstanceIde

  • Changing System Preference value

    Hi Have been trying to change a keyboard shortcut in the "Expose and Spaces" pane. By default the dashboard shortcut is set to "F12" and I would like to set it to "F8". This would become an option for a user when they have logged in. They could run t

  • How to install mac os 7

    ok i am new here and i need to know how can i use the 19 (.smi) files to install system7 on a powrbook 540c , i have a mac os x and a pc (xp) and i want to know how to put the (smi) files in a floppy disks, and how to mak the computer boot from the f