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 <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
Similar Messages
-
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. -
I'm using "Oracle BI Publisher Template Builder for Word"
Version: 10.1.3.2.1 Build 87
When I try to add <?start:body?> and <?end body?> tags get error in preview to pdf
My structure is:
for-each G_INVOICE
[TABLE WITH HEADER INFORMATION]
<?start:body?>
[for-each G_DISTRIBUTION_LINE
TABLE WITH DISTRIBUTION LINES INFO
end G_DISTRIBUTION_LINE]
<?end body?>
"text for special instructions"
end G_INVOICE
The log generated is:
Font Dir: C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts
Run XDO Start
RTFProcessor setLocale: en-us
FOProcessor setData: Z:\projects\AEROSTAR\reports\AERO - AP - Disbursal Request\AEROAPDISREQ.xml
FOProcessor setLocale: en-us
oracle.apps.xdo.template.fo.area.NoAvailableAreaException: Not enough rendering area. Please look into the incomplete output file for cause.
at oracle.apps.xdo.template.fo.elements.FormattingEngine.checkInfiniteLoop(Unknown Source)
at oracle.apps.xdo.template.fo.elements.FormattingEngine.checkInfiniteLoop(Unknown Source)
at oracle.apps.xdo.template.fo.elements.FormattingEngine.checkInfiniteLoop(Unknown Source)
at oracle.apps.xdo.template.fo.elements.FormattingEngine.checkInfiniteLoop(Unknown Source)
at oracle.apps.xdo.template.fo.elements.FormattingEngine.checkInfiniteLoop(Unknown Source)
at oracle.apps.xdo.template.fo.elements.FormattingEngine.checkInfiniteLoop(Unknown Source)
at oracle.apps.xdo.template.fo.elements.FormattingEngine.checkInfiniteLoop(Unknown Source)
at oracle.apps.xdo.template.fo.elements.FormattingEngine.checkInfiniteLoop(Unknown Source)
at oracle.apps.xdo.template.fo.elements.FormattingEngine.checkInfiniteLoop(Unknown Source)
at oracle.apps.xdo.template.fo.elements.FormattingEngine.createNewPage(Unknown Source)
at oracle.apps.xdo.template.fo.elements.FormattingEngine.startLayout(Unknown Source)
at oracle.apps.xdo.template.fo.elements.FormattingEngine.run(Unknown Source)
at oracle.apps.xdo.template.fo.FOHandler.endElement(Unknown Source)
at oracle.apps.xdo.common.xml.XSLTHandler$EEEntry.sendEvent(Unknown Source)
at oracle.apps.xdo.common.xml.XSLTMerger.startElement(Unknown Source)
at oracle.xml.parser.v2.XMLContentHandler.startElement(XMLContentHandler.java:167)
at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1182)
at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:301)
at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:268)
at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:149)
at oracle.apps.xdo.template.fo.FOProcessingEngine.process(Unknown Source)
at oracle.apps.xdo.template.FOProcessor.generate(Unknown Source)
at RTF2PDF.runRTFto(RTF2PDF.java:632)
at RTF2PDF.runXDO(RTF2PDF.java:466)
at RTF2PDF.main(RTF2PDF.java:254)
Please, Need help.
Thanks in advance.The cause for this seems to be that a row in a table is larger than a page, and there is no place left for the Header row.
Check the bellow action plan:
1. Edit the template in MS Word.
2. Click on the table.
3. Right click on the little crossed square in the upper right corner of the table.
4. Click on 'Table Properties' / tab 'ROW'.
5. Look at all rows by using the button 'Next Row'.
6. If 'Repeat as Header at the top of each page' is checked, please uncheck it.
7. Save the template and retry.
BR,
Alex -
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 -
How to set/get URL-parameters from ORACLE -tag?
How do I set/get parameters in a URL, using the <ORACLE>-tag?
We are trying to create a UI Template containing a dynamic
stylesheet selection dialogue on top of every page. The question
we are facing now is how to pass parameters (in our case,
stylesheet settings) between different pages.
Any ideas/comments are appreciated!How do I set/get parameters in a URL, using the <ORACLE>-tag?
We are trying to create a UI Template containing a dynamic
stylesheet selection dialogue on top of every page. The question
we are facing now is how to pass parameters (in our case,
stylesheet settings) between different pages.
Any ideas/comments are appreciated! -
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. -
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.
PetrPetr,
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> -
Oracle portal HTML template - session, context or user identification
I have an HTML template in a page group. Users come to this through SSO authentication. I have put a link in this HTML template to another page group. Problem is, user loses session in second page group. It always shows a public user in second page group. Please see my code snippet below.
*<body>*
*<oracle>*
declare
v_buf VARCHAR2(4000);
l_http_language varchar2(30);
l_logged_on number;
BEGIN
l_http_language := portal.wwctx_api.get_http_language;
IF l_http_language='en-gb'
THEN
mydb.RenderPortletXMLContent('header_EN.xml', 'sspheader.xslt');
ELSE
mydb.RenderPortletXMLContent('header_CY.xml', 'sspheader.xslt');
END IF;
l_logged_on := portal.wwctx_api.logged_on;
HTP.P(l_logged_on);
IF l_logged_on > 0 THEN
mydb.RenderPortletXMLContent('header_EN_withLogout.xml', 'sspheader_withLogout.xslt');
END IF;
HTP.P(v_buf);
END;
*</oracle>*
*</body>*
xml and xslt files produce HTML code which has a link to second page group. (The link is a plain static link whithout any parameters).
"l_logged_on" variable gives me a value of 1 in first page group after authentication but it returns 0 in the second page group.
If I use "Don't chache" option then it works fine. But I can not use this option because of performance problem.
Many thanks in advance for your kind replies.
Edited by: user2543792 on 14-Jul-2010 02:52
Edited by: user2543792 on 14-Jul-2010 03:06Hmmm - not a good idea to do user related stuff on page which is set to system level caching. In general, your Portal landing page should not do any customization to aid performance as you can cache content at system level for an X number of minutes, by far the best approach for fast portals.
But you could also use owa_util.get_cgi_env('ORACLE_SSO_USER') :
1. Create a function ssouserid in an application schema
create or replace function ssouserid
return number
is
l_ssouser varchar2(200) := owa_util.get_cgi_env('ORACLE_SSO_USER');
i number(1) := 1;
begin
if l_ssouser = 'PUBLIC'
then
i := 0 ;
end if ;
return i;
end ;
/2. Create a HTML page skin with the following code between the oracle tags :
<oracle>
declare
p number(1) := portal.ssouserid;
BEGIN
IF p>0 THEN
HTP.P('Logged on');
ELSE
HTP.P('Not logged on');
END IF;
END;
</oracle>3. Associate your page with the page skin created in step 2. You should now see the message 'Logged on' when you view the page while being logged on.
Hope this helps,
EJ -
Oracle.apps.xdo.template.fo.area.NoAvailableAreaException
Hi
We are getting below error for Commercial invoice report for some deliveries (with more than one order)
Template code: SDSCOMINVKBI
Template app: SDS
Language: en
Territory: 00
Output type: PDF
[6/29/12 6:14:26 AM] [UNEXPECTED] [582604:RT86396421] oracle.apps.xdo.template.fo.area.NoAvailableAreaException: Not enough rendering area. Please look into the incomplete output file for cause.
at oracle.apps.xdo.template.fo.elements.FormattingEngine.checkInfiniteLoop(FormattingEngine.java:719)
at oracle.apps.xdo.template.fo.elements.FormattingEngine.checkInfiniteLoop(FormattingEngine.java:710)
at oracle.apps.xdo.template.fo.elements.FormattingEngine.createNewPage(FormattingEngine.java:475)
at oracle.apps.xdo.template.fo.elements.FormattingEngine.startLayout(FormattingEngine.java:263)
at oracle.apps.xdo.template.fo.elements.FormattingEngine.run(FormattingEngine.java:121)
at oracle.apps.xdo.template.fo.FOHandler.endElement(FOHandler.java:600)
at oracle.apps.xdo.common.xml.XSLTHandler$EEEntry.sendEvent(XSLTHandler.java:594)
at oracle.apps.xdo.common.xml.XSLTMerger.startElement(XSLTMerger.java:51)
at oracle.xml.parser.v2.XMLContentHandler.startElement(XMLContentHandler.java:181)
at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1315)
at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:362)
at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:308)
at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:213)
at oracle.apps.xdo.template.fo.FOProcessingEngine.process(FOProcessingEngine.java:320)
at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:1051)
at oracle.apps.xdo.oa.schema.server.TemplateHelper.runProcessTemplate(TemplateHelper.java:5936)
at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3459)
at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3548)
at oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProcessor.java:302)
at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:176)
Thanks
Kamalaka.GYou cannot use BIP Desktop 11g with EBS - you need to use a special version. Pl see these MOS Docs
How To Download Oracle XML Publisher Desktop 5.6.3 (BI Publisher 10g)? [ID 556032.1]
How To Obtain The Latest Version Of Oracle BI Publisher Desktop? [ID 1362518.1]
Overview of Available Patches for Oracle XML Publisher embedded in the Oracle E-Business Suite [ID 1138602.1]
HTH
Srini -
ADF 11.1.1.5 - Oracle Dynamic UI Template - Listener
Hi All,
I am facing a strange issue while implementing Oracle Dynamic UI Template.
I have implemented a context Listener to store few data in application scope.
Correspondingly i have made the entry of the Listener in Web.xml. I am getting the following error ADF FACES 60097.
When i remove the entry everything works fine.
No idea whats happening.
Regards
PraveenHi All,
Steps to reproduce the problem..
1) Create adf ViewController application
2) Create a jspx with Oracle Dynamic tab Shell as its template.
3) Under Global toolbar facet...create a <af:Menubar> component and bind it to Managed Bean.
4) Create 2 class variables of Type List and TreeModel. Create the accesors for it.
5) Put the debug point on first class variable.
6) Debug the page...when it hits MenuBar or TreeModel.........Error Message is poping up.
Regards
Praveen -
Oracle Database VM Template - too many issues
Just wanted to offer my experience with the Oracle VM Template, specifically for 64-bit Oracle Database 11g (11.1). We decided to try out Oracle VM and the templates on a new server, we thought the promise of the templates could drastically decrease our time spent installing and setting up new boxes.
Setting up the template and getting it running was a breeze, although Oracle could have better documented things. Some passwords and important steps were left out that I had to figure out after the fact.
The real nightmare is the Oracle database installation it comes with. I guess they call this an OEM installation - but it's complete crap. Nothing really works like it should, and I found it to be a lost-cause trying to get it to work after awhile. Enterprise Manager comes disabled - what kind of database installation is this without enterprise manager? I guess they think everyone is using Grid Control - although I'm not even convinced Grid Control would have worked with all the issues going on.
I spent a day trying configure the installation to get things working, then realized packages were missing, needed for anything other than the database engine to run, due to the stripped version of oracle linux the template uses.
None of this was documented or explained at all. There's nothing on metalink..pretty much nothing. If you want a simple database that you can connect to and run sql queries through sql plus, this might just work. But it's far from a typical production setup. I would steer clear of this.Hi there,
VPD (Virtual Private Database) is a feature of the Oracle Enterprise Edition:
http://www.oracle.com/technology/deploy/security/database-security/virtual-private-database/index.html
It's in the dbms_rls package.
HTH, Peter -
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 AccountI 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 -
Hi
Does anyone has Oracle BPM SLA template to share please?
Kindly send it to [email protected]
I mean the Oracle BPM specific SLA Template. Which may or may not include integration with other systems.
Many thanks in advance
Regards
deepak
Edited by: DeepakDev on Sep 7, 2010 1:54 PMYes - you are correct.
I've found the most useful reference for installing Oracle BPM 12c is this: Installing SOA Suite and Business Process Management Suite Quick Start Guide for Developers.
1. To Download Oracle BPM 12c JDeveloper download the software from http://www.oracle.com/technetwork/middleware/bpm/downloads/index.html
2. To Install the JDK:
Install JDK 1.7 (jdk1.7.0_55).
Set JAVA_HOME environment variable to D:\Java\jdk1.7.0_55
3. To Install Oracle BPM 12c JDeveloper
Open a command prompt as an administrator (right mouse click “Command Prompt” -> “Run as administrator”)
From the command prompt run: %JAVA_HOME%\bin\java -jar fmw_12.1.3.0.0_bpm_quickstart.jar
Hope this gets you going,
Dan -
ADF 11.1.1.5 - Oracle Dynamic UI Template
Hi All,
I am using Oracle Dynamic UI Template to leverge it's features.
Under the navigation facet i have used tree componet, but i am getting the following error when i tried to debug my VO at the Bolded Point.
private transient TreeModel homemodel = null; public void setHomemodel(TreeModel homemodel)
this.homemodel = homemodel;
public TreeModel getHomemodel() throws IntrospectionException
if (homemodel == null)
homemodel = new ChildPropertyTreeModel(servletContext.getAttribute("homeInstance"), "children");
return homemodel;
Error : Unable to find Source file for package oracle.adfinternal.controller.beans, filename ManagedBeanFactory.java
Regards
PraveenHi All,
I couldn't figure the real problem, but the problem gets solved when i create ADF Fusion application.
The same didn't work when i created a general application and added required components.
May be i am missing somethings.
Regards
Praveen
Maybe you are looking for
-
i lost my phone and i got an unlocked 4s from my gf she used it before an its still connected to her icloud is there a way i can restore my icloud back up to replace hers without messing up the unlock also my latest backup isnt showing on my pc help
-
11 Programs No Mac should be without!
I bought my Mac mini 05 Sept 2005 and realized that a lot of apps are needed to allow you to place nice with the ugly Windows-based world (poor saps!). Here's a short list of programs I've found invaluable as I've used Mac OS X. Just Google the name
-
I have Dreamweaver MX and installed it on a new system with windows vista (my old system was XP), I try and insert a table, I enter rows/columns and an error message appears and dreamweaver shuts down, when I restart the programme I click on the tabl
-
Hello all, We currently run SolMan v3.1 on aged 32bit hardware and we plan to upgrade this to SolMan v4 on a new 64bit infrastructure. As part of this task, we would also like to move from Windows 2000 to Windows 2003 x64 and from Oracle 9.2 to Oracl
-
Problem while exporting a artwork as JPG
Hi, I have just started using Illustrator. I have drawn a logo in illustrator. I am using a page of 350px X 280px. But when I am exporting the finished logo it sized 351px X 277px . I dont understand what is the problem. But previously I have success