Packaging application in APEX?
Someone knows something about packaging application of Apex or may indicate a paterial to guide how to do?
Thanks :)
goj1 wrote:
Someone knows something about packaging application of Apex or may indicate a paterial to guide how to do?There is an entire chapter covering application deployment in the documentation.
Similar Messages
-
Cant install packaged application Apex 5
I have tried to install some of packaged applications, but i cant. Error looks like in the picture bellow. I granted users APEX_PUBLIC_USER, APEX_REST_USER, APEX_LISTENER to create view but error is still there. Anyone has same problem ?
2932898 wrote:
Thanks for reply,
If you mean the first step of installation wizard (shown in picture bellow INTEST), i have already granted create view to schema INTEST, but not helped..
I have successfully installed the Live Poll package application on apex.oracle.com, where I obviously have only minimal privileges (and no way of changing them):
select
privilege
from
user_sys_privs
order by
privilege;
CREATE CLUSTER
CREATE CREDENTIAL
CREATE DIMENSION
CREATE EXTERNAL JOB
CREATE INDEXTYPE
CREATE JOB
CREATE LIBRARY
CREATE MATERIALIZED VIEW
CREATE OPERATOR
CREATE PROCEDURE
CREATE SEQUENCE
CREATE SYNONYM
CREATE TABLE
CREATE TRIGGER
CREATE TYPE
CREATE VIEW
The privileges must be granted directly to the schema, not through a role. -
Packaged Application installation error??
Hi guys,
I have downloaded sample packaged application from APEX product home page, and trying to download these application but continiously facing error, i have tried both to install (using application express and through sqlplus with FLOWS_020200 user) but unable to install it,
Can anyone tell me how to install these sample applications supplied by Oracle corporation ???
Your prompt reply will be appriciated .
thanks & regards
qamarQamar,
Can you give us more information? As in, what error do you get and when does it appear?
The steps to install the packaged samples are:
- Unzip the packaged application to a .sql file
- In APEX, go to Home > Application Builder > Import and select the .sql file, then follow the steps in the wizard.
Marco -
Email Option in package application
Hi Friends,
i want to implement Email option in my application .How Can i do that .if you have any demo application please send me login details.
In Apex,Any packacge application has email option .
If yes,Please tell me what's the name of package application in apex.
thanksFirst you have to enable Email settings in your workspace.
1. Login as ADMIN to your APEX Instance and email server settings in the Instance settings
2. next you can write a process to generate emails on some event
Process source could be similar to this
apex_mail.send(
p_to => '[email protected]', -- change to your email address
p_from => '[email protected]', -- change to a real senders email address
p_body => l_body,
p_body_html => l_body_html,
p_subj => 'This is automatic email');More info you can find on documentation. -
Help With "Package An Application" Using APEX 3.0.1 with XE
I'm using apex 3.0.1 and XE Database and I'm trying to create a package application but without succes, I can find the way to do it and I know that it's possible. What I'm trying to do is create a file like the package application that we can download from Oracle page but for an application I create.
Looking here in the forums I found this link:
http://www.oracle.com/technology/oramag/oracle/06-jul/o46browser.html
And I was trying to follow it step by step until I found the Step 4: Package Up the Application, number 7.
1. In the breadcrumb links in the upper left-hand corner of the screen, click the Application nnn link (where nnn corresponds to the ID of the employee lookup application in your Oracle Application Express instance).
2. Click the Edit Attributes icon, and then click Supporting Objects.
3. Click Edit.
4. In the Welcome section, enter readme text for the application in the Message field, such as "This application lets users browse employee information. Users accessing the application with a USERID stored in the table can upload a photo if one does not already exist."
5. Click the right arrow to go to the Prerequisites tab.
6. To ensure that folks who already have a table named OM_EMPLOYEES in their schemas don't run into a conflict with this script, enter OM_EMPLOYEES in the first Object Names field and click Add.
[b]7. Click the Scripts tab.
8. Click Create.
9. Click the Copy from SQL Script Repository icon.
10. Enter Create Table, Sequence, and Trigger in the Name field, and click Next.
11. Select om_employees.sql, and click Create Script.
12. Repeat steps 9 through 11 for the om_download_pict.sql and seed_data .sql scripts. Feel free to name these scripts as you see fit.
13. Click the Deinstall tab, and click Create.
14. Click the Create from File icon.
15. Click Browse, select the drop_om_objects.sql script (included with this column's download file), click Open, and click Create Script.
16. Click the right arrow.
17. Select Yes for Include Supporting Object Definitions in Export.
18. Click Apply Changes.
I can't find the scrips tab and I completely lost. I start to believe that this steps don't apply for Apex 3.0.1.
If anyone of you could help me with this, please do it, I really need it.
Johann.Johann,
That doc was probably written against 2.2 because in 3.0, we reworked the supporting objects page a bit. If you are on Supporting Objects, in the Installation region, click on Installation Scripts. For more information, check the Advanced Tutorials document off our OTN site for a Tutorial called Reviewing a Packaged App (something like that - I can't access the doc at the moment).
-- Sharon -
Can I use APEX Packaged applications for commercial purposes
Hi,
When you download and Install APEX, it comes with pre build packaged applications. Can I use it to make money?
I understand that I will not be able to get any support for Oracle and all that. But using Database XE with APEX, can I start shipping these applications and make money lawfully without violating Oracle's terms?
Please advise.
DarshHi Darsh,
I can't say that this was a good answer, but I addressed a similar question in this forum posting: https://forums.oracle.com/thread/2600958
Joel -
Error Installing Packaged Applications - Apex 5
Hi Folks:
I installed APEX 5 successfully. Everything seems to be running fine except I'm unable to install packaged applications.
I get a screen that looks like the following when trying to install a package application:
The text in the dropdowns for the errors begins with:
Error
The packaged application installed. However, installation of database objects and seed data has failed.
Install Summary
Script Name Status Statements Successful Statements with Errors Total Statements
Framework Package Specification Success 1 0 1
Framework Package Body Errors 0 1 1
eba_dp_ui spec Success 1 0 1
eba_dp_ui body Errors 0 1 1
Missing Indexes Errors 0 7 7
Filter Search Spec Errors 0 1 1
Filter Search Body Errors 0 1 1
eba_dp_data_access body Errors 0 1 1
eba_dp_dashboard body Errors 0 1 1
eba_dp_demo_data spec & body Errors 1 1 2
Report Total: 3 14 17
1 - 10
Errors
Framework Package Body
CREATE OR REPLACE PACKAGE BODY "EBA_DP_FW" as
function conv_txt_html (
p_txt_message in varchar2 )
return varchar2
is
l_html_message varchar2(32767) default p_txt_message;
l_temp_url varchar2(32767) := null;
l_length number;
begin
l_html_message := replace(l_html_message, chr(10), '<br />');
l_html_message := replace(l_html_message, chr(13), null);
return l_html_message;
end conv_txt_html;
function conv_urls_links (
p_string in varchar2 )
return varchar2
is
l_string varchar2(32767) default p_string;
It then includes a lot more create, etc. statements that failed.
I wonder if it is some kind of permissions issue? I ended up running @apxremov.sql and reinstalled apex 5 again after I couldn't get the package apps to work the first time but that didn't fix anything. I have attached a text file that has all the code from the error message.
The database I installed to is an Oracle 12c Enterprise database.
It had Oracle Apex 4.2.6 installed on it with many packaged apps (not really using them, just trialing them till 5 came out). I ran @apxremov.sql before installing Apex 5.
Any help or ideas are appreciated.
Thanks,
Matthew FriendMatthew,
Looking at the error file, it appears that APEX is trying to "upgrade" an existing Data Reporter instance rather than do a fresh install. It's possible (I haven't checked the code) that apexremov.sql doesn't run the packaged applications through their deinstall process, and so their supporting objects may still be present within your schema. I'd suggest removing any objects (especially tables & packages) with a name like 'EBA_DP_%' from your parsing schema, and then trying the install again.
Regards,
-D. -
I am looking for a "FREE" Packaged Application that performs the following...
-> Software Project Management.
-> Task Manager
-> Project Time Sheets.
-> Bug Tracking or Issue Tracker
-> Discussion Forum
-> Content Management or Document Library
APEX has all but not consolidated into one app. Has anyone already attempted to consolidate them all into one comprehensive application?
Is there any recommended "open source" application that does the same?The responses on this thread has sincerely exceeded my expectations.
The consolidation of all the apps is what I was looking for.
Are you still, actually using the consolidated APEX Software project, task, and event APEX app? Or have you settled on a different open source software package or low cost project tracker like "Jira".
My preference is to adhere to a best practice, already proven, consolidated Project mgmt, incident and time tracking product. Howeve, if you are actually using the consolidated APEX approach and you really recommend it. I will go that route as well.
The end result is that I need one consolidated solution, self contained in one database and something that is quick to market (internal use only) and easy to use. If putting all the APEX app pieces together works well and if you currently are using this and recommend it. I'll do it too. Thanks for your responses to-date. I sincere appreciate the effort and recommendations.
Message was edited by:
dvmccaff -
Package Application Incident Tracking Apex 4.2 Internet Explorer Issue
Frame Layout Question.
I have installed the packaged application Incident Tracking, however the rendering of the Content Frame Body Container region in Internet Explorer 8.0 and above does not render correctly. Both the width and the height of this region is sized too small.
It is the Cloud Apps theme on version Application Express 4.2.4.00.08. It works perfectly in Chrome, Firefox and Opera but I am restricted to Internet Explorer. It occurs on Page 50 of the Application 101 in the <div id="uFrameMain"> section it should expand to 100% width of the region but appears to be restricted to a layout of 437px x 363px where as in Chrome it 1428px x1270px. The problem is the region does not display its correct height or widtth, I would be really grateful if someone could help me to debug this.
ThanksWould suggest posting to this forum, which supports packaged applications: Packaged Applications
Thank you,
Tony Miller
LuvMuffin Software
Ruckersville, VA -
Is it Legal to use an APEX packaged application, improve it and Sell it?
Any thought on this is appreciated, I'm trying to get an answer from Oracle but no one is sure of the answer. There is this Sample Database Application which is great to build a small shop POS program.
Thank youThis is quite good question, there are several tools which have very decent start for building larger and better application for e.g. in-house usage.
But those improvements are very likely wasted when new versions of those packaged applications are released.
One option could be community contributed enhancements to packaged applications which are then accepted/rejected to next release of the packaged applications?
Other option could be commercial enhancements to packaged applications with some sort of 'certified to work in Apex5' stamp?
Of course the licensing could be a bit more clear for the vanilla Packaged Apps. I think most of use love to 'reverse engineer' what they have eaten
rgrds Paavo -
Error when installing the supporting objects of OLL Packaged Application
Hello,
I am trying to install OLL Packaged Application|http://www.oracle.com/webfolder/technetwork/tutorials/obe/db/apex/r41/inst_pkgapp/inst_pkgapp.htm#top
but when installing the supporting objects, I got error when executing the code of "create_package_body"
Error at line 274: PLS-00201: identifier 'UTL_TCP' must be declared
create or replace package body eba_oll_log
as
g_start_time number;
procedure log_init
is
begin
g_start_time := dbms_utility.get_time;
end log_init;
procedure log_page_view
is
begin
insert into eba_oll_page_views
( APEX_USER,
PAGE_ID,
PAGE_NAME,
VIEW_DATE,
TS,
ELAPSED_TIME,
IP_ADDRESS,
AGENT,
APEX_SESSION_ID,
CONTENT_ID,
CONTENT_TITLE )
values
( v('APP_USER'),
v('APP_PAGE_ID'),
wwv_flow.g_step_title,
trunc(sysdate,'DD'),
systimestamp,
(dbms_utility.get_time-g_start_time)*(.01),
owa_util.get_cgi_env('REMOTE_ADDR'),
owa_util.get_cgi_env('HTTP_USER_AGENT'),
v('APP_SESSION'),
case when v('APP_PAGE_ID') = 24
then v('P24_CONTENT_ID')
else null
end,
case when v('APP_PAGE_ID') = 24
then v('P24_CONTENT_TITLE')
else null
end );
if v('APP_PAGE_ID') = 24 then
insert into eba_oll_content_views
( APEX_USER,
VIEW_DATE,
TS,
IP_ADDRESS,
AGENT,
APEX_SESSION_ID,
CONTENT_ID,
CONTENT_TITLE,
NOTE )
values
( v('APP_USER'),
trunc(sysdate,'DD'),
systimestamp,
owa_util.get_cgi_env('REMOTE_ADDR'),
owa_util.get_cgi_env('HTTP_USER_AGENT'),
v('APP_SESSION'),
v('P24_CONTENT_ID'),
v('P24_CONTENT_TITLE'),
'Viewed' );
end if;
commit;
end log_page_view;
procedure log_content_click
is
begin
insert into eba_oll_content_views
( APEX_USER,
VIEW_DATE,
TS,
IP_ADDRESS,
AGENT,
APEX_SESSION_ID,
CONTENT_ID,
CONTENT_TITLE,
NOTE )
values
( v('APP_USER'),
trunc(sysdate,'DD'),
systimestamp,
owa_util.get_cgi_env('REMOTE_ADDR'),
owa_util.get_cgi_env('HTTP_USER_AGENT'),
v('APP_SESSION'),
v('P24_CONTENT_ID'),
v('P24_CONTENT_TITLE'),
'Launched' );
commit;
end log_content_click;
end eba_oll_log;
create or replace package body eba_oll_api
as
function gen_id
return number
is
l_id number;
begin
select to_number(sys_guid(), 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
into l_id
from dual;
return l_id;
end gen_id;
function eba_oll_tags_cleaner (
p_tags in varchar2,
p_case in varchar2 default 'U' ) return varchar2
is
type tags is table of varchar2(255) index by varchar2(255);
l_tags_a tags;
l_tag varchar2(255);
l_tags apex_application_global.vc_arr2;
l_tags_string varchar2(32767);
i integer;
begin
l_tags := apex_util.string_to_table(p_tags,',');
for i in 1..l_tags.count loop
--remove all whitespace, including tabs, spaces, line feeds and carraige returns with a single space
l_tag := substr(trim(regexp_replace(l_tags(i),'[[:space:]]{1,}',' ')),1,255);
if l_tag is not null and l_tag != ' ' then
if p_case = 'U' then
l_tag := upper(l_tag);
elsif p_case = 'L' then
l_tag := lower(l_tag);
end if;
--add it to the associative array, if it is a duplicate, it will just be replaced
l_tags_a(l_tag) := l_tag;
end if;
end loop;
l_tag := null;
l_tag := l_tags_a.first;
while l_tag is not null loop
l_tags_string := l_tags_string||l_tag;
if l_tag != l_tags_a.last then
l_tags_string := l_tags_string||', ';
end if;
l_tag := l_tags_a.next(l_tag);
end loop;
return substr(l_tags_string,1,4000);
end eba_oll_tags_cleaner;
procedure eba_oll_tag_sync (
p_new_tags in varchar2,
p_old_tags in varchar2,
p_content_type in varchar2,
p_content_id in number )
as
type tags is table of varchar2(255) index by varchar2(255);
l_new_tags_a tags;
l_old_tags_a tags;
l_new_tags apex_application_global.vc_arr2;
l_old_tags apex_application_global.vc_arr2;
l_merge_tags apex_application_global.vc_arr2;
l_dummy_tag varchar2(255);
i integer;
begin
l_old_tags := apex_util.string_to_table(p_old_tags,', ');
l_new_tags := apex_util.string_to_table(p_new_tags,', ');
if l_old_tags.count > 0 then --do inserts and deletes
--build the associative arrays
for i in 1..l_old_tags.count loop
l_old_tags_a(l_old_tags(i)) := l_old_tags(i);
end loop;
for i in 1..l_new_tags.count loop
l_new_tags_a(l_new_tags(i)) := l_new_tags(i);
end loop;
--do the inserts
for i in 1..l_new_tags.count loop
begin
l_dummy_tag := l_old_tags_a(l_new_tags(i));
exception when no_data_found then
insert into eba_oll_tags (tag, content_id, content_type )
values (l_new_tags(i), p_content_id, p_content_type );
l_merge_tags(l_merge_tags.count + 1) := l_new_tags(i);
end;
end loop;
--do the deletes
for i in 1..l_old_tags.count loop
begin
l_dummy_tag := l_new_tags_a(l_old_tags(i));
exception when no_data_found then
delete from eba_oll_tags where content_id = p_content_id and tag = l_old_tags(i);
l_merge_tags(l_merge_tags.count + 1) := l_old_tags(i);
end;
end loop;
else --just do inserts
for i in 1..l_new_tags.count loop
insert into eba_oll_tags (tag, content_id, content_type )
values (l_new_tags(i), p_content_id, p_content_type );
l_merge_tags(l_merge_tags.count + 1) := l_new_tags(i);
end loop;
end if;
for i in 1..l_merge_tags.count loop
merge into eba_oll_tags_type_sum s
using (select count(*) tag_count
from eba_oll_tags
where tag = l_merge_tags(i) and content_type = p_content_type ) t
on (s.tag = l_merge_tags(i) and s.content_type = p_content_type )
when not matched then insert (tag, content_type, tag_count)
values (l_merge_tags(i), p_content_type, t.tag_count)
when matched then update set s.tag_count = t.tag_count;
merge into eba_oll_tags_sum s
using (select sum(tag_count) tag_count
from eba_oll_tags_type_sum
where tag = l_merge_tags(i) ) t
on (s.tag = l_merge_tags(i) )
when not matched then insert (tag, tag_count)
values (l_merge_tags(i), t.tag_count)
when matched then update set s.tag_count = t.tag_count;
end loop;
end eba_oll_tag_sync;
procedure render_tag_cloud (
p_selection in varchar2 default null,
p_app_id in number,
p_session_id in number,
p_min_nbr_tags in number default 1,
p_max in number default 100,
p_limit in number default 10000,
p_link_to_page in varchar2 default '2',
p_tag_item_filter in varchar2 default 'P2_TAGS',
p_clear_cache in varchar2 default '2,CIR,RIR',
p_more_page in varchar2 default '62' )
as
l_printed_records number := 0;
l_available_records number := 20;
l_max number;
l_min number;
l_class_size number;
l_class varchar2(30);
type l_tagtype is table of varchar2(2000);
l_tags l_tagtype;
type l_numtype is table of number;
l_cnts l_numtype;
l_size number;
l_total number :=0;
l_buffer varchar2(32676);
CURSOR c_all_tags
IS
select tag, c from (
select t.tag, count(*) c
from eba_oll_content c,
eba_oll_tags t
where c.content_id = t.content_id
and c.display_yn = 'Y'
and (p_selection is null or
(p_selection is not null and
( (substr(p_selection,1,1) = 'R' and
substr(p_selection,2) in (select release_id
from eba_oll_content_products cp
where cp.content_id = c.content_id))
or (substr(p_selection,1,1) = 'C' and
substr(p_selection,2) in (select product_id
from eba_oll_content_products cp
where cp.content_id = c.content_id))
or (substr(p_selection,1,1) = 'P' and
(substr(p_selection,2) in (select product_id
from eba_oll_content_products cp
where cp.content_id = c.content_id) or
substr(p_selection,2) in (select p.parent_product_id
from eba_oll_content_products cp,
eba_oll_products p
where cp.content_id = c.content_id
and cp.product_id = p.product_id)))
or (substr(p_selection,1,1) = 'G' and
(substr(p_selection,2) in (select pg.group_id
from eba_oll_product_groupings pg,
eba_oll_content_products cp
where pg.product_id = cp.product_id
and cp.content_id = c.content_id) or
substr(p_selection,2) in (select pg.group_id
from eba_oll_product_groupings pg,
eba_oll_products p,
eba_oll_content_products cp
where pg.product_id = p.parent_product_id
and p.product_id = cp.product_id
and cp.content_id = c.content_id)))
group by tag
) x where rownum < p_limit
and c >= p_min_nbr_tags
order by upper(tag) ;
begin
-- Fetch tags into arrays
open c_all_tags;
loop
fetch c_all_tags bulk collect into l_tags,l_cnts limit p_limit;
exit;
end loop;
close c_all_tags;
l_available_records := l_tags.count;
-- Determine total count and maximum tag counts
l_max := 0;
l_min := 1000;
FOR i in l_cnts.first..l_cnts.last loop
l_total := l_total + l_cnts(i);
if l_cnts(i) > l_max then
l_max := l_cnts(i);
end if;
if l_cnts(i) < l_min then
l_min := l_cnts(i);
end if;
end loop;
if l_max = 0 then l_max := 1; end if;
l_class_size := round((l_max-l_min)/6);
-- Generate tag cloud --
sys.htp.prn('<div class="tagCloud"><ul>');
for i in l_tags.first..l_tags.last loop
l_printed_records := l_printed_records + 1;
if l_cnts(i) < l_min + l_class_size then
l_class := 'size1';
elsif l_cnts(i) < l_min + (l_class_size*2) then
l_class := 'size2';
elsif l_cnts(i) < l_min + (l_class_size*3) then
l_class := 'size3';
elsif l_cnts(i) < l_min + (l_class_size*4) then
l_class := 'size4';
elsif l_cnts(i) < l_min + (l_class_size*5) then
l_class := 'size5';
else l_class := 'size6';
end if;
l_buffer := '<li><a class="'||l_class||'" href="'||
'f?p='||p_app_id||':'||p_link_to_page||':'||p_session_id||':::'||p_clear_cache||':'||
p_tag_item_filter||':'||htf.escape_sc(l_tags(i))||'">'||
htf.escape_sc(l_tags(i)) || '<span>' || l_cnts(i) || '</span></a></li>';
sys.htp.prn(l_buffer);
l_buffer := '';
if l_printed_records > p_max then
exit;
end if;
end loop;
sys.htp.prn('</ul></div>');
-- print if there's more
if l_tags.count - l_printed_records != 0 then
htp.prn('<p><a href="f?p='||p_app_id||':'||htf.escape_sc(p_more_page)||
':'||p_session_id||':::'||htf.escape_sc(p_more_page)||'">View all tags</a></p>');
end if;
exception when others then
sys.htp.prn('<p>No tags found.</p>');
end render_tag_cloud;
procedure email_when_feedback (
p_feedback_id in number,
p_host_url in varchar2,
p_app_id in number )
is
l_body clob;
l_body_html clob;
begin
for c1 in (
select f.feedback_comment, f.feedback_by,
c.title, nvl(ct.feedback_contacts,'[email protected]') email
from eba_oll_content_feedback f,
eba_oll_content c,
eba_oll_team ct
where f.id = p_feedback_id
and f.content_id = c.content_id
and c.team_id = ct.team_id (+) )
loop
l_body := 'You have received feedback for a piece of content you own in the Oracle Learning Library (OLL) Application.
Content: '|| c1.title || utl_tcp.crlf || '
Feedback: '|| c1.feedback_comment || utl_tcp.crlf || '
Left by: '|| lower(c1.feedback_by) ||'
You can respond via the OLL Application, '||p_host_url||'f?p='||p_app_id||':47:::NO::P47_ID:' || p_feedback_id || '.';
l_body_html := '<div style="border: 1px solid #DDD; background-color: #F8F8F8; width: 460px; margin: 0 auto; -moz-border-radius: 10px; -webkit-border-radius: 10px; padding: 20px;">
<p style="font: bold 12px/16px Arial, sans-serif; margin: 0 0 10px 0; padding: 0;">
You have received feedback for a piece of content you own in the Oracle Learning Library (OLL) Application.
</p>
<table style="width: 100%;" cellspacing="0" cellpadding="0" border="0">
<tr>' || utl_tcp.crlf || '
<td style="font: bold 12px/16px Arial, sans-serif; color: #666; padding: 0 10px 10px 0; vertical-align: top;">Content</td>
<td style="font: normal 12px/16px Arial, sans-serif; padding: 0 10px 10px 0; vertical-align: top;"><a href="#" style="color: #000">'||c1.title||'</a></td>
</tr>
<tr>' || utl_tcp.crlf || '
<td style="font: bold 12px/16px Arial, sans-serif; color: #666; padding: 0 10px 10px 0; vertical-align: top;">Feedback</td>
<td style="font: normal 12px/16px Arial, sans-serif; padding: 0 10px 10px 0; vertical-align: top;">'||replace(c1.feedback_comment,CHR(10),'<br/>')||'</td>
</tr>
<tr>' || utl_tcp.crlf || '
<td style="font: bold 12px/16px Arial, sans-serif; color: #666; padding: 0 10px 10px 0; vertical-align: top;">Left by</td>
<td style="font: bold 12px/16px Arial, sans-serif; padding: 0 10px 10px 0; vertical-align: top;">'||lower(c1.feedback_by)||'</td>
</tr>
<tr>' || utl_tcp.crlf || '
<td colspan="2" style="text-align: center; font: normal 12px/16px Arial, sans-serif; padding: 0 10px 10px 0; vertical-align: top;">
<a href="'||p_host_url||'f?p='||p_app_id||':47:::NO::P47_ID:' || p_feedback_id ||'" style="display: block; padding: 10px; background-color: #EEE; font: bold 16px/16px Arial, sans-serif; color: #444">Respond to this Feedback</a>
</td>
</tr>
</table>
</div>';
apex_mail.send (
p_to => c1.email,
p_from => '[email protected]',
p_subj => 'OLL - New Feedback for your team',
p_body => l_body,
p_body_html => l_body_html );
end loop;
end email_when_feedback;
procedure email_when_response (
p_feedback_id in number,
p_host_url in varchar2,
p_app_id in number )
is
l_body clob;
l_body_html clob;
begin
for c1 in (
select f.feedback_comment, f.feedback_by, f.response, c.title
from eba_oll_content_feedback f,
eba_oll_content c
where f.id = p_feedback_id
and f.content_id = c.content_id )
loop
l_body := 'You have received a response to your feedback left in the Oracle Learning Library (OLL) Application.
Content: '|| c1.title || '
Feedback: '|| c1.feedback_comment || '
Response: '|| c1.response || '
You can also view this response via the OLL Application, '||p_host_url||'f?p='||p_app_id||':60:::NO::IR_ID:' || p_feedback_id || '.';
l_body_html := '<div style="border: 1px solid #DDD; background-color: #F8F8F8; width: 460px; margin: 0 auto; -moz-border-radius: 10px; -webkit-border-radius: 10px; padding: 20px;">
<p style="font: bold 12px/16px Arial, sans-serif; margin: 0 0 10px 0; padding: 0;">
You have received a response to your feedback left in the Oracle Learning Library (OLL) Application.
</p>
<table style="width: 100%;" cellspacing="0" cellpadding="0" border="0">
<tr>' || utl_tcp.crlf || '
<td style="font: bold 12px/16px Arial, sans-serif; color: #666; padding: 0 10px 10px 0; vertical-align: top;">Content</td>
<td style="font: normal 12px/16px Arial, sans-serif; padding: 0 10px 10px 0; vertical-align: top;"><a href="#" style="color: #000">'||c1.title||'</a></td>
</tr>
<tr>' || utl_tcp.crlf || '
<td style="font: bold 12px/16px Arial, sans-serif; color: #666; padding: 0 10px 10px 0; vertical-align: top;">Feedback</td>
<td style="font: normal 12px/16px Arial, sans-serif; padding: 0 10px 10px 0; vertical-align: top;">'||replace(c1.feedback_comment,CHR(10),'<br/>')||'</td>
</tr>
<tr>' || utl_tcp.crlf || '
<td style="font: bold 12px/16px Arial, sans-serif; color: #666; padding: 0 10px 10px 0; vertical-align: top;">Response</td>
<td style="font: bold 12px/16px Arial, sans-serif; padding: 0 10px 10px 0; vertical-align: top;">'||replace(c1.response,CHR(10),'<br/>')||'</td>
</tr>
<tr>' || utl_tcp.crlf || '
<td colspan="2" style="text-align: center; font: normal 12px/16px Arial, sans-serif; padding: 0 10px 10px 0; vertical-align: top;">
<a href="'||p_host_url||'f?p='||p_app_id||':60:::NO::IR_ID:' || p_feedback_id ||'" style="display: block; padding: 10px; background-color: #EEE; font: bold 16px/16px Arial, sans-serif; color: #444">View Response in OLL Application</a>
</td>
</tr>
</table>
</div>';
apex_mail.send (
p_to => c1.feedback_by,
p_from => '[email protected]',
p_subj => 'Oracle Learning Library - Response to your Feedback',
p_body => l_body,
p_body_html => l_body_html );
end loop;
end email_when_response;
end eba_oll_api;
/Error at line 274: PLS-00201: identifier 'UTL_TCP' must be declared
Edited by: Fateh on Jan 13, 2012 7:32 AMThanks & Sorry for not mentioning the full information about my environment.
it was:
Oracle 11g xe R2 on Windows 7 machine
Apex listener deployed on Glass Fish server 3.1 on Windows 7 machine
Apex 4.1
Google Chrome
So, to have OLL application worked locally . we need the following:
grant execute on utl_tcp to [your_schema_name]And to
Configure an Application Express Application as a Partner Application in Oracle AS Single Sign-On http://www.oracle.com/technetwork/testcontent/sso-partner-app-100552.html.
I think I am going to install on my work space on apex.oracle.com.
Regards,
Fateh
Edited by: Fateh on Jan 15, 2012 9:38 AM -
Error while installing a packaged application
Hi
I am getting the following error while trying to install the "Sample Master Detail" application in my apex oracle account on the web. All the others install without problem. What could it be ?
Thanks
Juan
Execution of the statement was unsuccessful. ORA-00001: unique constraint (APEX_040200.WWV_FLOW_MESSAGES_IDX1) violated
declare
h varchar2(32767) := null;
begin
h:=h||'Help';
wwv_flow_api.create_message (
p_id=>2456294651379654494 + wwv_flow_api.g_id_offset,
p_flow_id=>wwv_flow.g_flow_id,
p_name=>'HELP',
p_message_language=>'en',
p_message_text=>h);
null;
end;
ORA-00001: unique constraint (APEX_040200.WWV_FLOW_MESSAGES_IDX1) violatedHilary - I asked our DBA to open a SR, the number is SR 3-6553142501 : Unable to install packaged applications in Oracle Apex
Looks like apex.oracle.com has been upgraded to 4.2.1. When did this happen?
I am almost positive that I was able to install packaged apps on apex.oracle.com even when it was on 4.2.0.00.27 (same as the publicly available version) but not on my instance. But now since the versions are different, the support person is pointing to the different versions as a cause! This is what I was afraid of. To be honest, given that I was getting the error on my instance but not on apex.oracle.com, even when both systems (mine and apex.oracle.com) was on the same version of APEX, I am not very hopeful that the 4.2.1 patch will fix my situation since the root cause has not been identified. I just don't want to wait for 4.2.1 to be released, apply it and find out that the issue is still there. Can you share the list of bugs fixed in 4.2.1 to see if any of them may apply to this situation?
Any other ideas? What diagnostics can I provide to help you get to the bottom of this? Frankly, Oracle Support, as I found in the past, is not very well qualified to resolve APEX-related SRs. Can you please assist or direct Support appropriately? Thanks, appreciate your help.
Since I have the Builder app installed in my instance, I inspected the final page of the packaged app install wizard (4000:83) to see what APIs it uses and ran it manually as SYSTEM. This is what I get. Does that help narrow down the issue?
SQL> alter session set current_schema=apex_040200;
Session altered.
SQL> exec wwv_flow_pkg_app_install.install_db_app(7050,'SCOTT');
BEGIN wwv_flow_pkg_app_install.install_db_app(7050,'SCOTT'); END;
ERROR at line 1:
ORA-20987: APEX - Execution of the statement was unsuccessful. ORA-01003: no
statement parsed
<pre>begin wwv_flow.g_import_in_progress := true; end;</pre> - ORA-01003: no
statement parsed
ORA-06512: at "APEX_040200.WWV_FLOW_ERROR", line 853
ORA-06512: at "APEX_040200.WWV_FLOW_ERROR", line 888
ORA-06512: at "APEX_040200.WWV_FLOW_PKG_APP_INSTALL", line 376
ORA-06512: at line 1 -
Migrate/Import/[etc.] PL/SQL Web-Toolkit Application to APEX
Hello all,
I've only recently learned about APEX and have dabbled with it for a little while, and I'm quite impressed with how amazingly quick it is to develop applications with it.
A few co-workers and myself are trying to convince "The Management" that we should pursue using APEX to develop our Enterprise Applications. Currently we write our web apps using the PL/SQL WebToolkit, accessing our applications at URL's like: http://host/dad/[package.]procedure .
Recently (within the past month) there was a convention in the Southern California region where I believe some people from TUSC presented on APEX. As I understand it, they said it was possible to migrate existing applications (written in packages and procedures) to APEX. I'm also told that it is possible to view the PL/SQL that is rendered by APEX to display the application.
We've practically sold our Director, however he has a few outstanding issues he's asked me to research, as he feels his boss would be most concerned with:
* How much effort will it take to migrate/import/etc the PL/SQL WebToolkit Application to APEX
* Should the need arise, how much effort would it take to move from APEX back to PL/SQL WebToolkit
I've tried researching these topics over the past few days and I haven't really come up with much. I realize that you can call PL/SQL packages/procedures/etc from within a region, but as I read on a thread in these forums ( How to jump from mod_plsql to APEX! ), you still won't be able to take advantage of the Items, Computations, Processes, etc. Is there, in fact, a way of importing a PL/SQL-developed Web Application into APEX to take advantage of all its tools? I would imagine it would be quite a feat to be able to create the items for the form fields, maintain the layout and such, but I need to provide my Director with as much information on these topics as possible.
Many of us developers are really excited at the prospect of developing with this tool; it would be a shame to lose the opportunity over not being able to provide any information on the topics above.
Thanks in advance for your assistance,
-LuisHi Luis,
I had a client a couple of years back who had an existing PL/SQL Web Toolkit application who used the htp.p etc calls to generate the HTML (and in some cases CSS) for their site. They were interested in using Application Express and asked me to design a new administration module for their site (which I did). The development went extremely smoothly so they then asked about re-writing their existing site in APEX (since maintaining the old site was not a straight-forward task).
Fortunately for me, the original designer had the foresight to put lots of the application logic into packages (which I could reuse), but I quickly (about 2 or 3 days from memory) created a custom theme and templates in APEX which gave the same look and feel as the existing site.
Personally, I think if you tried to re-use the existing htp.p calls (by using PL/SQL regions etc), then you would be missing out on some of the major advantages of using APEX (such as the ability to easily change the look and feel of your application).
I always think that migrating to a new tool/platform etc is a great opportunity to re-examine your existing code to perhaps see if you can do things differently (speed up those queries, perhaps make the navigation more logical etc).
So, yes you can certainly re-use lots of your existing packaged logic, but I would also take the leap and use the features that Application Express provides to make future maintenance of your application easier.
Just my thoughts.
John. -
Problem with Package Applications
Ok, I'm trying to migrate an Apex Application from one server to a newer server....
My custom app I used the theme from Go Live CheckList samples....
Well, when trying to install that application I get 'Insufficient space to install application ' with a BIG red X...
I was able to install other Package Application except for the one I need and now my application errors out because of
some shared Themes....
At first I thought it was a DB thing so I downgraded back to 10g from 11....but that didn't help...
Apex works fine...
Other samples work fine...
Version Apex 4.2.2 and Oracle XE 10g...Yes,
It errors out in 11g XE and when it was the only Application installed...
I know the error sounds like the OS but I can't see it being the issue since the
other server has less space and more application on it...
Plus the database is empty ....
The other one is Apex 4.2.1 .. I think there is a problem with 4.2.2 packaged applications.. -
Hi Everyone,
I am very new in Oracle and I have, i think, very simple question.
I would like to install one of the Oracle packaged application samples and test it out. So, my question is: what software do I need to run it.
As I understand, I need to install Oracle application server but I am not sure about Oracle Database server. Do I need both of them to run and manage application and the database?
ThanksHello,
They aren't the same thing though there will be some overlap
Re: APEX on SourceForge
I'll check the links on sourceforge today stuff and make sire it has the newest build available.
Carl
Maybe you are looking for
-
Hi, My understanding is that FQEVENTS transaction is only active for FICA (contract account). Please correct. Is this also available for FI-AP? If FQEVENTS is not available for FI-AP, we then need to use BTE (Business Transaction Evetnts-FIBF). I hav
-
Not able to see Employee type supplier after upgrade to 12.1.2
We have custom responsibility for Payables Manager, after upgrade to 12.1.2 from 11.5.10, some of the employees are not able to see the Employee Type supplier, but some employees are able to see all. I thought this maybe related to Role so I tried to
-
Hi can any1 help on how I can change my apple account regesterd to my iPhone
-
How can i record what my speakers hear?
Hi guys just wondering if you can help, at college not long ago we had adobe audition on the Windows pc's and you could record what the speakers were playing is there a way of doing that in logic, just i have a project to do and i want to record some
-
Hyperion Planning 11.1.2.1.0 Dataform validation issue
Hi All, Is there any way that if the validation fails the user should not be able to Save data in hyperion dataform. I have a scenario like this : I have budget in one row in dataform Flash in other and in the third I have a formula coloum Budget - F