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.
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
SushantThere 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 -
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
SushantHi,
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 -
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,
mlvThanks 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. -
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 -
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. -
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, AbbasDear 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!
- MaryAnnI 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! -
Using a dynamic page in an enclosure url tag.
I am trying to use a dynamic page (e.g. asp, jsp, .cfm) to stream content to itunes as part of a podcast.
So... the ASP file opens an mp3 file on the server-side, and sends it in binary format down to itunes. I setup the correct file type in the header (e.g. application/octet-stream) in the , but it does not show up in the podcast (everything else does).
The question is, if itunes sees something other than "mp3, m4a, m4b, m4p, etc." in the <enclosure url> tag, is it just rejecting it based on the name?
If I just take the URL that is in the enclosure and paste it in a browser, the file comes up fine with no dialog, etc., it just streams to the browser which invokes itunes which plays it.
But again, the podcast is not loading it.
Any help appreciated.
Scott.I don't know anything about asp or javareg.
In Java, if classes are in a jar file, the jar file must be specified explicitly in the classpath, not just the directory containing the jar file. Maybe you already know this, but worth a shot. -
Need to display column names in a dynamic page
Hi
I am displaying some rows returned from an sql querry in a dynamic page ...I hv written the sql querry between <ORACLE> AND </ORACLE> TAGS...The problem is ,i am not able to display the column names ...Why ? pl help....
ramYou must to use the htp package. Example:
<ORACLE>
begin
htp.tableopen('1','CENTER',null,null,'BORDER="1"');
htp.tableheader('NParte','CENTER');
htp.tableheader('Descripcisn','CENTER');
htp.tableheader('Precio/Unit','CENTER');
htp.tableheader('Servicio','CENTER');
htp.tableheader('IVA','CENTER');
htp.tableheader('Total','CENTER');
for cursor_cotiza in (select
r.Nparte as Nparte, r.Descripcion as Descripcion,
r.preciounit as preciounit,
NVL(f.servicio,0) as servicio,
round((0.145)*r.preciounit,3) as IVA,
round((0.145)*r.preciounit,3) + r.preciounit +
NVL(f.servicio,0) as PrecioTotal
from
carryin.repuestos r,
carryin.casos c, carryin.facturacion f
where r.NCaso =:NCaso
and r.Ncaso=c.NCaso
and c.Ncaso=f.Ncaso(+)
and f.servicio(+)<>0
union
select
r.Nparte as Nparte, r.Descripcion as Descripcion,
r.preciounit as preciounit,
NVL(f.servicio,0) as servicio,
round((0.145)*r.preciounit,3) as IVA,
round((0.145)*r.preciounit,3) + r.preciounit +
NVL(f.servicio,0) as PrecioTotal
from
carryin.casosneq r,
carryin.facturacion f
where r.NCaso =:NCaso
and r.Ncaso=f.Ncaso(+)
and f.servicio(+)<>0
) loop
htp.tableRowOpen('CENTER','CENTER');
htp.tableData(cursor_cotiza.Nparte,'CENTER');
htp.tableData(cursor_cotiza.Descripcion,'CENTER');
htp.tableData(cursor_cotiza.preciounit,'CENTER');
htp.tableData(cursor_cotiza.servicio,'CENTER');
htp.tableData(cursor_cotiza.IVA,'CENTER');
htp.tableData(cursor_cotiza.PrecioTotal,'CENTER');
htp.tableRowClose;
end loop;
htp.tableclose;
end;
</ORACLE>
This example show a table with header and borders. You must to see this package for more information.
Maybe you are looking for
-
How to display a table control in a report
hi how to display a table control in a report
-
It seams that since I updated to ios7 my iPad camera picture is wobbly, and I have a video button that does nothing, help.
-
We get "uFF06uFF03x0;" from sender JDBC adapter
Thank you. This is naoki kurihara. We have a problem in sender JDBC adapter. We use java mapping and sender JDBC adapter in PI7.1 on Windows.(DB is sqlserver) and we test the interface and we found error. the reason is to get "�" from JDBC adapte
-
Mass structure and table Inconsistencies after upgrade
Hi all, I'm on an upgrade project upgrading system from R/3 4.6 to SAP ECC 6.0 EHP4. After the upgrade, apparently there's a mass inconsistencies that happen in the table. There's at least 1000 table which can be activated because of this inconsisten
-
How to upgrade from 10.4.11 to 10.5 on G5
I have a PPC G5 iMac and I understand that OS X 10.5 is the highest I can go being non-Intel based. But I looked to purchase the $30 upgrade but I cannot find it. Only Snow Leopard 10.6 is available to purchase. Help?