Oracle tag in HTML Portlet

I am trying to create a dynamic List of Values (using a Cursor) that is used in a HTML portlet. It does not seem to work. Is this possible within the ORACLE tags?
<select name="student" style="width:137px" onChange="SubmitChildList()">
<ORACLE>
declare
CURSOR get_students IS
select A.first_name || ' ' || A.middle_name || ' ' || A.last_name stu_name, A.student_id id
from sbase
order by 1;
begin
FOR stu_loop in get_students LOOP
htp.p('<OPTION>' || stu_loop.id);
END LOOP;
end;
</ORACLE>
                              </select>
                              </td>

I had the form tag already (didn't include in the questions). It doesn't seem to execute the cursor and populate the emps in the list box.
Here is the complete HTML portlet.
          <table width="145" border="0" cellspacing="0" cellpadding="4">
          <tr><td><b><FONT class="PortletText1"> View Child Information:</font></b>
          <table width="135" border="0" cellspacing="0" cellpadding="1">
          <form method="post" action="../utilities/switchschools.asp?ci=yy" name="childInfo">
                         <tr>
                              <td align="left" valign="bottom"><!-- Width set for sake of nav bar. -->
                                   <select name="student" style="width:137px" onChange="SubmitChildList()">
<ORACLE>
declare
CURSOR get_emp IS
select A.ename empname, A.empno id
from emp
order by 1;
begin
FOR emp_loop in get_emp LOOP
htp.p('<option value= ' || emp_loop.id || '>';
htp.p(emp_loop.empname || '</option>';
END LOOP;
end;
</ORACLE>
                              </select>
                              </td>
                              <td align="right" valign="bottom">
                                   <input type="image" title="Go" name="go" id="go" src="/images/go.gif" width="22" height="16" border="0" alt="Go" onclick="return childCheck();">
                              </td>
                         </tr>
                         </form>
          </table>
               </td></tr>
          </table>

Similar Messages

  • Frame can't be used in HTML portlet ?

    Hi,
    Is it possible to use frame (using frameset tag) in HTML portlet ?
    Thanks

    Yes, it's possible as following:
    FRAMESET in a Portal template and IFRAME in a portlet or in a template.
    Patrick.
    Edited by: pmonaco on Mar 19, 2010 3:23 PM
    Edited by: pmonaco on Mar 19, 2010 3:24 PM

  • How to upload images in HTML portlet

    Hi,
    We want to allow users to add their HTML thru HTML portlets - there are two issues
    1.How to upload the images that are part of HTML.
    2.The <a> </a> doesn't work within the portal framework.
    Thanks
    Sachin

    Hi,
    You could also try giving the absolute URL to the image. This assumes you're using OC4J(Oracle Containers for J2EE), our J2EE compliant container. On your os, navigate to the following directory:
    oc4j_home\j2ee\home\default-web-app. Create an images directory so the physical path becomes:
    oc4j_home\j2ee\home\default-web-app\Images. Store your images in this directory. Startup oc4j by going to a command prompt and entering java -jar oc4j.jar at the oc4j_home\j2ee\home.
    In your browser: http://hostname.domain:8888/Images/somegif.jpg. You can use the url in your <img src> tag in HTML.
    Hope that helps. Please repost to this forum if you have further questions/issues.
    Thanks,
    Sudi Narasimhan
    Oracle9iAS Portal Partner Management

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

  • How to display current user using HTML portlet

    Hello,
    Is it possible to show any text such as Greeting, Current User (ex, Hello, Kevin) using HTML portlet. Can I use <oracle></oracle> tags to get the current user from the API?
    Please suggest me.
    Thanks,
    Satish

    Thanks for your suggestion. There is also another way for this:
    In a Portal text field (CMS item) you can type
    #USER# to display the username of the authentificated user or
    #USER.FULLNAME# to display the full name.
    Thanks,
    Satish

  • Using the ORACLE tag

    Hi,
    I am trying to remeber how to use PL/SQL code using the <ORACLE> tag in some of the pre-defined portlets.
    Please HELP!
    I tried to use this in HTML portlet
    <ORACLE>
    execute schema.some_procedure;
    </ORACLE>
    ... and it didnt work.
    Thanx for any advice.
    Petr

    Petr,
    I'm not sure why the HTML portlet doesn't display but I was able to display using an unstructured UI template.
    for e.g
    <oracle>
    declare
    enduser varchar2(20);
    begin
    enduser:=portal.wwctx_api.get_user;
    htp.p(enduser);
    end;
    </oracle>

  • Publish Oracle Reports/Forms as Portlet

    Hai,
    Is it possible to publish Reports6i/Forms6i
    as portlet?!.
    with best regards,
    Mathan

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by bill lankenau:
    Yes
    For Reports 6i integration with Oracle9iAs Portal see the Oracle9iAS Documentation Library under "Business Intelligence Services", "Oracle Reports Service", "Publishing Reports to the Web" Section 5.4 Integration with Oracle Portal. Another resource to check out is the Reports page on OTN at: http://technet.oracle.com/products/reports/ and the whitepaper "Security Tips in Oracle Reports Services Release 6i with Oracle Portal Release 3.0".
    For Forms 6i, integration is accomplished at the URL level - simply create a portlet (HTML portlet, folder portlet, dynamic page portlet, etc.) that contains the Form's application URL. Users with a Java-enabled browser click on the link and the form is launched in a separate window. In theory you could copy the Forms applet tag within a dynamic page component, start it in place, and expose as a portlet, but will likely experience unacceptable page rendering performance waiting for the Forms applet to start.
    If SSO is important, you can configure Forms as an external application with the Login Server using Forms dynamic start feature. Be aware that Forms is using the 'get' method not the 'post' method and that you will see the username/password in the URL (this will change in a future release).
    The next generation of Forms, code named Cherokee, will provide highly interactive HTML forms directly within a portlet. Developers can use Cherokee much like they use Oracle9iAS Forms to declaratively build data entry forms that function like the Java or client/server-based forms of the past, but instead are rendered in pure HTML. <HR></BLOCKQUOTE>
    null

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

  • Oracle Tag in Report Header Text

    I am trying to use the Oracle tag in the Report and Customization Form Text Header Section. I would like to show the current date/time as well issue a select statement. Does this not work?
    <ORACLE>
    htp.p(to_char(sysdate,'Day, Month DD YYYY HH:MI AM'));
    </ORACLE>

    Hi,
    You can only enter plain text or HTML tags here. If you want to use select statement or plsql you can use the
    additional plsql code sections to do this.
    Thanks,
    Sharmila

  • How to use Custom Search in Dynamic Page or HTML Portlet ?

    Gurus,
    1. I have a tab called My Space in the portal web site, where user gets a personalized view of the content.
    2. I am using custom attributes and custom item types. I have a custom attribute called 'Location', which is a attribute of custom item types.
    3. I have 2 pages - News and Events.
    4. All the content in News and Events page is tagged by the attribute 'Location'.
    5. The requirement is to let the user search the News and Events by Location.
    6. To achieve this I used the Custom Search portlet and the user can select the attribute Location and see the resultant News and Event items by location in the Search portlet.
    7. The requirement is to present the News items and Event items in separate regions on the page and show only the first 5 News and Event items in the result and show a More link which would guide the user to rest of the News and Event items.
    8. Eventually there may be more content other than News and Events tagged by location. If so, the requirement is to create a new region and display the new content.
    9. How would I do this using custom search ? I was thinking if there is anyway I could use the custom search api (where can i find it ?) in the HTML portlet or Dynamic page and submit the result to IFRAMES in each region and show the output ?
    Pls advise.
    Thanx a bunch.

    I would suggest that you use two custom search portlets; one for the news items and one for the events items. Switch the custom search portlets to "AutoQuery" mode and add the relevant criteria. On the results display tab of the the "edit defaults" screen, choose to show just 5 items.
    To add a link to show the user mode results, I'd create two new pages that have just a single custom search portlet on it that is customised to show more of the results and maybe has the pagination links enabled.
    Then I'd add two "Page Link" items underneath the two news and events portlets on the first page in an item region.
    I'm sure there are other ways of doing this as well. Hope that helps to get you started.

  • ORACLE tags not working after 1.5.1 patch

    I have some logic in my template the looks up information from some Oracle tables. This logic worked fine in 1.5.0, however, after applying the 1.5.1 patch it does not perform the Oracle logic, but shows the Oracle code as HTML on the page. Here is the code in question: (This is not the entire code, but one HTML TD that comes before the Oracle code, and one HTML TD that comes after it)
    <TD align="center" valign="top"><A
    href="/pls/portal/PORTAL.home"><IMG src="#WORKSPACE_IMAGES#ihome.gif" alt="Home" border="0"></A></TD>
    <ORACLE>
    BEGIN htp.tableData(htf.anchor2('javascript:help_openTopic(''/insitehelp/Insite_Help.htm'', ''' || pkg_insite_general.help_link(v('APP_ID'), v('APP_PAGE_ID')) || ''')', '', '', '', '><IMG src="#WORKSPACE_IMAGES#ihelpl.gif" alt="Help" border=0'), 'center');
    END;
    </ORACLE>
    <TD align="center" valign="top"><IMG src="#WORKSPACE_IMAGES#ilogout.gif" alt="Logout" border="0"></TD>
    This is what displays on the web page:
    BEGIN htp.tableData(htf.anchor2('javascript:help_openTopic(''/insitehelp/Insite_Help.htm'', ''' || pkg_insite_general.help_link(v('APP_ID'), v('APP_PAGE_ID')) || ''')', '', '', '', '>

    Your removal of functionality in a bug fix has broken a production application for us. This does not seem like something that should have been done with a "patch"
    I have just read all that I can find on "shortcuts" and am not finding what I need.
    Here is what we are doing:
    We are using RoboHelp for our help content. We have a help icon and a help link on the header of the page. This is defined in our template. We have to have the name of the module (Page Alias) to link the page being run to the help content for that page. Since you do not have a system variable for page name or page alias, I have had to put this information into an Oracle table. I was looking that up with a function within the Oracle Tags.
    Can I create a shortcut that would create the following code pl/sql code into a PL/SQL function body:
    BEGIN
    htp.tableData(htf.anchor2('javascript:help_openTopic(''/insitehelp/Insite_Help.htm'', ''' || pkg_insite_general.help_link(v('APP_ID'), v('APP_PAGE_ID')) || ''')', '', '', '', '><IMG src="#WORKSPACE_IMAGES#ihelpl.gif" alt="Help" border=0'), 'center');
    END;
    and call this shortcut where this help icon needs to appear like:
    <TD align="center" valign="top">
    "CALLHELPWITHICON"
    </TD>
    I have done the above, but it does not work. What am I doing wrong, how can I get this to work? We have had to remove our help icons because of this patch.
    I thank you so for your research on this.

  • 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 tags in templates

    I know I've seen posts on this in the past, but can't find them for the life of me. I've searched through about 20 pages of search results with no hits, so I must ask again.
    Can someone explain why the functionality of the oracle tags were removed from the HTML templates? And is there a way I can solicit to have it put back in?
    Thanx.

    Hello,
    >>
    There certainly may be other ways to do what we want without the ORACLE tags, but constructing the pages in Oracle Portal and ApEx would be much different in that scenario and it would be nice have a common way of developing the "template" of a page in both environments.
    Am I making this too complicated?
    >>
    I think you are in one respect and not in another.
    As for page templates( the more complicated part), the cold hard fact is APEX and Portal are two different animals and their template systems are just different, the easiest way to take care of those differences is to make as much of your Look and Feel derived from an external CSS. This will allow you to apply the same look and feel to any development environment you might have to use in the future as well.
    As for the menu that is slightly different. What I would do is create a PL/SQL package that creates the required HTML structure, then you can call that package using a PL/SQL region in APEX, and I guess &lt;oracle> tags or whatever else Portal uses to output PL/SQL sections.
    One way I've done something similar is to use the XMLDB functions of the database to render out the html i need to make menu's tree's etc, It's pretty easy to get what you want and is very generic.
    Regards,
    Carl
    blog : http://carlback.blogspot.com/
    apex examples : http://apex.oracle.com/pls/otn/f?p=11933:5

  • ORACLE tags in Unstructured templates

    I'm trying to call a function using the oracle tags in a UI template. If I put the same code in a dynamic page it works fine but when in a template it doesn't work.
    I noticed that the application templates have function/procedure calls in their html the_value column in the wwv_sys_app_template_details$ table. I'm therefore assuming that I'm missing some specific formatting or something that I'm supposed to be using??? I've tried htp.print/htp.p but I can't get the value returned from my function to display.
    Any suggestions would be most appreciated. thanks.

    Hi
    if you call a procedure from a UI template, you must grant that procedure to public, otherwise you don't see anything.
    #write my_schema.my_proc: for example
    create or replace my_proc as
    begin
    htp.p('Hello');
    end;
    #in sqlplus: conn my_schema/my_schema@my_sid
    grant execute on my_schema.my_proc to public;
    #in the UI template:
    <ORACLE>begin my_schema.my_proc; end;</ORACLE>
    It works,
    Ettore

  • 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

Maybe you are looking for

  • How do I view/print a pdf document in an email? I'm not getting the little hand icon.

    How do I view/print a pdf document in an email? I'm not getting the little hand icon.

  • JAVA + ANT = JARs problems

    Hi ppl, I have one problem and hope that someone could help me, let's go... I use ant to build a project, I have more than one JAR and they use each other... Well all Jars are in the same directory and I need to change It. I must put one JAR, the mai

  • Mouse Down ,Mouse Click conflict

    Dear Flexmasters ,   I have a view component that I would like to be draggable when the mouse is held down ,  and dispatch an event when clicked ( single-click ).  However , when I go to drag and the mouse is released , a click event is dispatched. 

  • ITunes has stopped working (during sync with ipod)

    This seems to be a popular problem with varied solutions -- miss my music! Hoping for help. When I try to sync my iPod to iTunes it gets a few tunes onto the iPod then it crashes with a Windows (Vista) popup saying that "iTunes has stopped working".

  • Update to iPhone OS 4.2 causes iTunes to crash mid-download?

    Hi there, I recently tried to update my iPhone 4 to the latest software version 4.2 It said that my iTunes was out of date and that i needed to upgrade to version 10.1. Which i did. Once that was done i plugged my iphone in and tried to upgrade the s