Rtrim in apex
Hi,
I have a problem in search screen.Its not working for surname containing extra null charater. if user types 'abc' instead of 'abc ' .
when i tried this
w:=w||'and upper(rtrim(e.SURNAME),' ') like upper(:P1_SURNAME)';
i have got an error message ,query cannot be parsed . Pls advise.
My report query as follows:
declare
w varchar2(6000) := null;
p varchar2(1000) := ''' ''';
r varchar2(1000) := null;
oj varchar2(3) := '(+)';
begin
if v('P1_PERSON_REF') is not null then
w:=w||'and upper(e.PERSON_REF) like upper(:P1_PERSON_REF)';
end if;
if v('P1_SURNAME') is not null then
w:=w||'and upper(e.SURNAME) like upper(:P1_SURNAME)';
end if;
end if;
return 'SELECT '||p||' profile_link,
e.PERSON_REF,
e.SURNAME
from e,
f
where e.person_ref = f.person_ref '||oj||''||w||'';
return w;
end;
Thanks
I'm not surprised it won't parse it's syntactically incorrect.
Do you mean something like this (untested - but it should give you an idea...)
DECLARE
w VARCHAR2 (32767) := NULL;
p VARCHAR2 (1000) := ''' ''';
r VARCHAR2 (1000) := NULL;
oj VARCHAR2 (3) := '(+)';
BEGIN
w := 'SELECT '||p||' profile_link,
e.PERSON_REF,
e.SURNAME
FROM e,f
WHERE e.person_ref = f.person_ref '
IF v('P1_PERSON_REF') IS NOT NULL
THEN
w := w || 'and upper(e.PERSON_REF) like upper('||RTRIM(:P1_PERSON_REF)')';
END IF;
IF v('P1_SURNAME') IS NOT NULL
THEN
w := w || 'and upper(e.SURNAME) like upper('||RTRIM(:P1_SURNAME)')';
END IF;
w := w||oj||''||w||'';
RETURN w;
ENDCheers
Ben
Similar Messages
-
How to exclude 'Saturday' and 'sunday' In APEX 4.1 count(*)
Hi everyone am using APEX 4.1,
The Leave_transaction Table has the following Fields,
1.Leave_id
2.Emp_name
3.From_date
4.To_date
5.Remaining_days
The Emp_Master Table has the following columns,
1.Emp_id
2.Emp_Name
3.Remaining_days
select count(*) into days from (select dt
from(
select to_date(:p1_from_date, 'DD-Mon-YYYY') + rownum -1 dt
from dual
connect by level <= to_date(:p1_to_date, 'DD-Mon-YYYY') - to_date(:p1_from_date, 'DD-Mon-YYYY') + 1)
where to_char(dt,'fmday') not in ('sunday','saturday') dual;
If the Dates is between from_date and To_date comes in Saturday and sunday , it should exclude and return the count(*) remaining dates,
For example,
If the From_date is 04-may-2012'
and To_date is 08-may-2012,
Here the dates 5th may and 6th may are "saturday" and "sunday"
Then the remaining dates are(excluding sat,sunday and dates in holiday_table),
04-may-2012,
07-may-2012
08-may-2012.
so
count(*)
3I am using the above code but still it returning 5,
I think this
..where to_char(dt,'fmday') not in ('sunday','saturday')
code is not working.
Can anyone help me to solve my Issue.Hi theoa,
Actually this is my full code,
declare
days number(3);
ex_days emp_master.remaining_days%type;
new_rem_days emp_master.remaining_days%type;
begin
select count(*)
into days
from (select dt
from (select to_date (:p1_from_date, 'DD-Mon-YYYY',
'NLS_DATE_LANGUAGE=''english''')
+ rownum - 1 dt
from dual
connect by level <=
to_date (:p1_to_date, 'DD-Mon-YYYY',
'NLS_DATE_LANGUAGE=''english''')
- to_date (:p1_from_date, 'DD-Mon-YYYY',
'NLS_DATE_LANGUAGE=''english''')
+ 1)
where rtrim(to_char(dt,'fmDay', 'NLS_DATE_LANGUAGE=''english''')) not in
('Sunday','Saturday')
minus
(select holiday_start
from holiday_master)) dual;
apex_application.g_print_success_message := 'Hi '||:APP_USER||' '||'You are applied leave for'||' ' || days||' ' ||'days';
select remaining_days
into ex_days
from emp_master
where upper(emp_name) = upper(:APP_USER);
new_rem_days := ex_days - days;
update emp_master
set remaining_days = new_rem_days
where upper(emp_name) = upper(:APP_USER);
update leave_transaction
set remaining_days = new_rem_days
where upper(emp_name) = upper(:APP_USER)
and leave_id=
(select max(leave_id)
from leave_transaction);
end;The select statement which i mentioned above is working fine in database but not working in PAEX application. -
Apex: Removing leading and trailing blanks
Hi,
when observing end users working with my little apex application I noticed the input of leading and trailing blanks in a report search field. What do you recommend for removing this undesired input?
I tried an ltrim(rtrim(:p1_searchfield)) in the report SQL query - the result is fine.
But I have not found a way to keep the higlighting of the search word in the result set. There is a "highlight" property in the report field attributes dialog. But it looks like there is no way to enter any trim funtion over there. So the highlighting of matches does not work if there is a leading or trailing blank.
Any ideas?
Thanks & Cu
WalterWalter,
I would use an "after submit" computation on :p1_searchfield
trim(:p1_filter)This way you won't have to change your select statement and the highlight term.
~Dietmar. -
Using jquery FullCalendar in APEX with dynamic query
Hi,
I am trying to implement jquery FullCalendar in APEX and came across thie following post but I am unable to get the events to work. I would really like to see it working with an Application_Process:
How we can highlight events in Calendar
Currently I created an Application Process that simply calls a DB table and convert it into json format.
DECLARE
v_sql varchar2(400);
BEGIN
v_sql := 'SELECT * FROM CAL_FEED';
apex_util.json_from_sql(v_sql);
END;
But I am unsure how to add the events via an Application_Process.
I have tried the following in numerious ways (events:function, url feed, etc). It does work if I just do an array but would like it as a dynamic query.
$('#calendar').fullCalendar({
events: "http://server:8080/apex/f?p=101:53:4352610578859707:APPLICATION_PROCESS=IAT_TEST_CAL_FEED"
Thank you in advance,
JimmyHi,
I was able to get the events into Fullcalendar with an Application Process but not sure if this would scale well with alot of events.
Would someone be able to tell me if there is a better way?
I am currently using an On Demand Application Process called IAT_TEST_FEED:_
DECLARE
lv_cal_list VARCHAR2(16000);
lv_return_str VARCHAR2(32000);
BEGIN
FOR i IN (SELECT "CAL_FEED"."ID" as ID,
"CAL_FEED"."title" as caltitle,
"CAL_FEED"."start" as calstart,
"CAL_FEED"."end" as calend
FROM "CAL_FEED")
LOOP
lv_cal_list := lv_cal_list || '{"id":' || CHR(39) || i.ID || CHR(39) || ',' ||
' "title":' || CHR(39) || i.caltitle || CHR(39) || ',' ||
' "start":' || CHR(39) || i.calstart || CHR(39) || ',' ||
' "end":' || CHR(39) || i.calend || CHR(39) || '},';
END LOOP;
lv_return_str := '[' || RTRIM(lv_cal_list,',') || ']';
htp.prn(lv_return_str);
EXCEPTION WHEN OTHERS THEN
htp.prn('error');
END;
In a HTML Region on a page within the Region Header:_
<link rel="stylesheet" type="text/css" href="#WORKSPACE_IMAGES#fullcalendar.css" />
<script type="text/javascript" src="#WORKSPACE_IMAGES#ui.core.js"></script>
<script type="text/javascript" src="#WORKSPACE_IMAGES#ui.draggable.js"></script>
<script type="text/javascript" src="#WORKSPACE_IMAGES#ui.resizable.js"></script>
<script type="text/javascript" src="#WORKSPACE_IMAGES#jquery.js"></script>
<script type="text/javascript" src="#WORKSPACE_IMAGES#fullcalendar.js"></script>
<script type="text/javascript" src="#WORKSPACE_IMAGES#fullcalendar.min.js"></script>
<script type='text/javascript'>
$(document).ready(function() {
$('#calendar').fullCalendar({
events: function(start, end, callback) {
$.ajax({
type: "POST",
url: "wwv_flow.show",
dataType: "json",
data: {
p_flow_id:$('#pFlowId').val(),
p_flow_step_id:$('#pFlowStepId').val(),
p_instance:$('#pInstance').val(),
p_request:"APPLICATION_PROCESS=IAT_TEST_FEED"
success:function(calevents){
$.each(calevents, function(i, calevent){
$('#calendar').fullCalendar('renderEvent', calevent, true);
</script>
The line within the ajax call is basically where my concern would be
$('#calendar').fullCalendar('renderEvent', calevent, true);
Thank you,
Jimmy -
APEX code corrupted by PVCS upon check in
We are using an (old) PVCS Version Manager, Version 6.7.11 (Build 915.12) and some APEX code is corrupted upon check in to PVCS.
Has anyone had a similar problem using PVCS for CM of APEX?
We have the following 11 lines of code to display a revision number. (Line numbers added for reference.)
01 BEGIN
02 SELECT ' $Revision: 1.4 $ '
03 INTO :FNNNNN_REV
04 FROM DUAL;
05 select ltrim(:FNNNNN_REV,' $Revision:')
06 INTO :FNNNNN_REV
07 FROM DUAL;
08 select rtrim(:FNNNNN_REV,'$ ')
09 INTO :FNNNN_REV
10 FROM DUAL;
11 end;Most of the time, the code is checked into and out of PVCS with the version number code being updated correctly.
01 p:=p||'BEGIN'||unistr('\000a')||
02 ' SELECT '' $Revision: 1.4 $ '''||unistr('\000a')||
03 ' INTO :FNNNNN_REV'||unistr('\000a')||
04 ' FROM DUAL;'||unistr('\000a')||
05 ' select ltrim(:FNNNNN_REV,'' $Revision:'')'||unistr('\000a')||
06 ' INTO :FNNNNN_REV'||unistr('\000a')||
07 ' FROM DUAL;'||unistr('\000a')||
08 ' select rtrim(:FNNNNN_REV,''$ '')'||unistr('\000a')||
09 ' INTO :FNNNNN_REV'||unistr('\000a')||
10 ' FROM DUAL;'||unistr('\000a')||
11 'end;';Ocassionally, one line -- line 05 -- is corrupted on check-in. Compare with line 05 above.
01 p:=p||'BEGIN'||unistr('\000a')||
02 ' SELECT '' $Revision: 1.5 $ '''||unistr('\000a')||
03 ' INTO :FNNNNN_REV'||unistr('\000a')||
04 ' FROM DUAL;'||unistr('\000a')||
05 ' select ltrim(:FNNNNN_REV,'' $Revision'\000a')||
06 ' INTO :FNNNNN_REV'||unistr('\000a')||
07 ' FROM DUAL;'||unistr('\000a')||
08 ' select rtrim(:FNNNNN_REV,''$ '')'||unistr('\000a')||
09 ' INTO :FNNNNN_REV'||unistr('\000a')||
10 ' FROM DUAL;'||unistr('\000a')||
11 'end;';Here are the original line of code and the two PVCS versions next to each other:
05 select ltrim(:FNNNNN_REV,' $Revision:') -- < Original code
05 ' select ltrim(:FNNNNN_REV,'' $Revision:'')'||unistr('\000a')||
05 ' select ltrim(:FNNNNN_REV,'' $Revision'\000a')||It would seem to be a PVCS parser problem. But how can it occur just some of the time?
Has anyone had a similar problem using PVCS for CM of APEX?
As I get time, I may rewrite the offending line so that it doesn't end with ')
HowardLKSwetha wrote:
Is there some way to debug the PL/SQL Code that we have written for some page in APEX?
I looked through some of the docs for APEX but it was not very helpful.Are you sure that you really looked through the documentation thoroughly? Because last time I looked, there was a whole chapter devoted to debugging APEX. There's also the APEX API reference which has a chapter on using .
Happy Hunting!
edit: would also concur that delegating as much code to packages as you can is a good direction to go in. I've had Re: Developer's code reviews and version control, one of whom goes as far as referencing page items in packaged code, thus leaving most APEX processes as single line calls to DB packaged procedures and functions.
Edited by: Joel_C on 12-Jul-2012 09:11APEX_DEBUG_MESSAGE<a/>.
Happy Hunting!
edit: would also concur that delegating as much code to packages as you can is a good direction to go in. I've had Re: Developer's code reviews and version control, one of whom goes as far as referencing page items in packaged code, thus leaving most APEX processes as single line calls to DB packaged procedures and functions.
Edited by: Joel_C on 12-Jul-2012 09:11 -
Pl/sql in charts of APEX (help me)
Hi, I am from Mexico, and I dont spek English very well
but I tried:
I have a query in pl/sql, this make sum per hora and status,
and show this in a chart of Oracle Apex, mi problem is:
table:
carrier hh status hits
A 00 100 5622
A 00 110 44
B 00 101 221
C 00 101 4545
A 01 103 2155
B 01 100 8558
C 01 101 1212
I NEED MAKE A SUM(HITS) PER STATUS AND PER hh, BUT WANT TO MAKE SEARCH FOR EACH CARRIER AND PUT :
WHERE carrier = 'A'
OR
WHERE carrier = 'B'
The problem is not accept me the WHERE
In the first Select is find, only fetch the status of 'A', but
in the second SELECT not accept the where
I dont know what is wrong :(
DECLARE
v_sql VARCHAR2 (4000);
BEGIN
v_sql := 'SELECT NULL link, hh label, ';
FOR c IN (SELECT STATUS, SUM (hits) hits
FROM TABLE
where carrier = 'A'
GROUP BY STATUS)
LOOP
v_sql :=
v_sql
|| 'SUM (decode(STATUS, '''
|| c.STATUS
|| ''', hits, 0)) "'
|| c.STATUS
|| '",';
END LOOP;
v_sql := RTRIM (v_sql, ',');
v_sql := v_sql || ' FROM TABLE
---------- > WHERE CARRIER = 'A' <----------------------- ( not accept )
GROUP BY hh ORDER BY hh';
RETURN v_sql;
END;
If you dont understand me the message .... pleasee tell me....
Thank a lot
Claudia
Monterrey, Méxiconeither works, I dont know what to do, what it's wrong...???
Somebody? any idea???
this is my pl/sql:
only want a P1_ITEM
DECLARE
v_sql VARCHAR2 (4000);
BEGIN
v_sql := 'SELECT NULL link, hh label, ';
FOR c IN (SELECT wm_code, SUM (hits) hits
FROM V_TAE2
where carrier = :P20_X
GROUP BY wm_code)
LOOP
v_sql :=
v_sql
|| 'SUM (decode(wm_code, '''
|| c.wm_code
|| ''', hits, 0)) "'
|| c.wm_code
|| '",';
END LOOP;
v_sql := RTRIM (v_sql, ',');
v_sql := v_sql || ' FROM V_TAE2
WHERE CARRIER = '''|| :P1_ITEM ||''' <--------error
GROUP BY hh ORDER BY hh';
RETURN v_sql;
END; -
Apex 4.1 Login Page 101 Branching Issue
Branching Issue from P101 based upon P101_USERNAME value entered..Please Help!
I'm having the following code on Page101 main 'login' process. The goal is to go to page 100 if the user is a normal V_USER or go to page 200 if the user is V_ADMIN. For the P101_USERNAME value, I'm determining whether the user or admin variable in my login process. However, I'm NOT branching correctly to the expected page.
The function calls to determine whether V_USER or V_ADMIN work correctly in my tests outside of APEX.
To prove the following, I hard-coded the page no. to either 100 or 200 and both of them direct to the right page, upon login, in such instances. However, when I'm determining the branching path with the below function call, the branching fails and Always goes to Page 100..I'm totally perplexed. Please help.
The thread on the forums was helpful but the user who potentially got his answer didn't show the final example as to how it worked for him.
Re: Apex 4.1 Redirect after login
My login process on P101 main apex login page..
--Page101 'login' process
DECLARE
v_path VARCHAR2(40);
v_role VARCHAR2(200);
FUNCTION getUserRole RETURN VARCHAR2
IS
v_ret VARCHAR2(40);
v_user VARCHAR2(40);
BEGIN
IF v_ret IS NULL THEN
BEGIN
v_user := LTRIM(RTRIM(HTF.ESCAPE_SC(v('P101_USERNAME'))));
--//Tested these calls outside of apex and work as expected perfectly.
IF (my_pkg.is_user(v_user) = 'Y' AND my_pkg.is_admin(v_user) = 'N') THEN
v_ret := 'V_USER';
ELSIF (my_pkg.is_user(v_user) = 'N' AND my_pkg.is_admin(v_user) = 'Y') THEN
v_ret := 'V_ADMIN';
END IF;
EXCEPTION WHEN OTHERS THEN NULL;
END;
END IF;
RETURN (v_ret);
EXCEPTION WHEN OTHERS THEN RETURN v_ret;
END getUserRole;
BEGIN
--//Set page path for user/admin. if not use default page 100
v_role := getUserRole;
--//Hardcoding works as expected. but the above line getUserRole doesn't compute properly
--//The my_pkg.is_user, my_pkg.is_admin work and return values as expectd.
--//I'm not sure whether P101_USERNAME value is available or not in this main 'login' procedure on P101
--//v_role := 'V_ADMIN';
if v_role = 'V_ADMIN' then
v_path := ':200';
:APPVAR_ROLE := 'V_ADMIN';
:APPVAR_LOGIN_BRANCH := '200';
:FSP_AFTER_LOGIN_URL := NULL;
wwv_flow_custom_auth_std.login(
P_UNAME => :P101_USERNAME,
P_PASSWORD => :P101_PASSWORD,
P_SESSION_ID => v('APP_SESSION'),
P_FLOW_PAGE => :APP_ID||v_path);
elsif v_role = 'V_USER' then
v_path := ':100';
:APPVAR_ROLE := 'V_USER';
:APPVAR_LOGIN_BRANCH := '100';
:FSP_AFTER_LOGIN_URL := NULL;
wwv_flow_custom_auth_std.login(
P_UNAME => :P101_USERNAME,
P_PASSWORD => :P101_PASSWORD,
P_SESSION_ID => v('APP_SESSION'),
P_FLOW_PAGE => :APP_ID||v_path);
end if;
end;
--------------------There is a simpler method to accomplish this.
On your home page (typically page 1) create a branch with the branch point "on load before header"
Set the action to your desired target page.
Create a condition based on your user's role .
Which I see are similar instructions to those suggested in your linked message.
Scott -
Apex application registered with sso as partner application
We have 1 apex app registered with sso and working properly.
I just registered a new apex application with sso. when i authenticate through sso, it directs me to the originally registered application.
I went in through the portal administrator app and verified my settings all pointed to the new application. I verified that my dad is set up correctly.
Any ideas?
APEX 2.0i did register and obtain the keys through portal admin.
to ensure i used the proper keys (i guess there is a possibility i used the keys from db1 registration) i re-ran regapp with the right keys but recieved the following output:
SQL> @regapp
Partner Application Configuration
Enter value for listener_token: HTML_DB:050iasphttp.xxx.na.xxx.com:7777
Enter value for site_id: EFBE3E14
Enter value for site_token: MSMXURH1EFBE3E14
Enter value for login_url: https://050iaspdb.xxx.na.xxx.com:4443/pls/orasso/orasso.wwsso_app_admin.ls_login
Enter value for encryption_key: 2EBDD126A3A40606
Enter value for ip_check: N
ERROR: Error in registration. Please try again
User-Defined Exception
Registration successful.
Listener token: HTML_DB:050iasphttp.xxx.na.xxx.com:7777
Site id : EFBE3E14
Site token : MSMXURH1EFBE3E14
Encryption key: 2EBDD126A3A40606
Login URL :
https://050iaspdb.xxx.na.xxx.com:4443/pls/orasso/orasso.wwsso_app_admi
n.ls_login
Logout URL :
https://050iaspdb.xxx.na.xxx.com:4443/pls/orasso/orasso.wwsso_app_admi
n.ls_logout
IP check : N
PL/SQL procedure successfully completed.
Commit complete.
No errors.
SQL>
...in spite of the error, i aske the app developer to try and use sso for db2. he now recieves:
User-Defined Exception
Error Error in wwv_flow_custom_auth_sso.process_success:l_sso_user_name:l_sess_id:: Please contact administrator.
OK
any ideas? -
APEX-The manullay created column is not getting updated in the database
Dear all
I have a form on page, which is created along with a report using Form on a Table with Report option. From the form I have deleted one field and recreated manullay as set the property as database column. When I am calling from the report page (using defualt edit option) the value is showing there, but if I am 'Apply Changes' , the column value in database is get updated with null.
Please help
DJ.This is the SQL and PL/SQL forum.
Please re-post this on the APEX forum.
Oracle Application Express (APEX) -
APEX LISTENER Install troubleshooting
Hi, I need help.. :-)
Default Database connection not configured properly
What I have done:
ALTER USER APEX_LISTENER ACCOUNT UNLOCK;
ALTER USER APEX_PUBLIC_USER ACCOUNT UNLOCK;
ALTER USER APEX_REST_PUBLIC_USER ACCOUNT UNLOCK;
connect APEX_LISTENER/mypasswd1
connect APEX_PUBLIC_USER/mypasswd2
connect APEX_REST_PUBLIC_USER/mypasswd1
Check default.xml
password: replaced encrypted one with clear text one for APEX_PUBLIC_USER to ensure it is correct
even tried APEX_LISTENER password just incase
Is there a simple JDBC test to see if it connects? it is APEX_PUBLIC_USER who is connecting isn't it?
======================================================================
java -jar apex.war
Feb 22, 2013 12:44:40 PM oracle.dbtools.standalone.Standalone execute
INFO: NOTE:
Standalone mode is designed for use in development and test environments. It is not supported for use in production environments.
Feb 22, 2013 12:44:40 PM oracle.dbtools.standalone.Standalone execute
INFO: Starting standalone Web Container in: /data/oracle/orawd/product/11.2.0/dbhome_1/apex_listener/apex
Feb 22, 2013 12:44:41 PM oracle.dbtools.standalone.Deployer deploy
INFO: Will deploy application path = /data/oracle/orawd/product/11.2.0/dbhome_1/apex_listener/apex/apex/WEB-INF/web.xml
Feb 22, 2013 12:44:41 PM oracle.dbtools.standalone.Deployer deploy
INFO: Deployed application path = /data/oracle/orawd/product/11.2.0/dbhome_1/apex_listener/apex/apex/WEB-INF/web.xml
Feb 22, 2013 12:44:41 PM oracle.dbtools.common.config.file.ConfigurationFolder logConfigFolder
INFO: Using configuration folder: /data/oracle/orawd/product/11.2.0/dbhome_1/apex_listener/apex
Default Database connection not configured properly
Feb 22, 2013 12:44:42 PM oracle.dbtools.rt.web.SCListener contextInitialized
INFO: Oracle Application Express Listener initialized
Application Express Listener version : 2.0.0.354.17.06
Application Express Listener server info: Grizzly/1.9.49
Feb 22, 2013 12:44:42 PM com.sun.grizzly.Controller logVersion
INFO: GRIZZLY0001: Starting Grizzly Framework 1.9.49 - 2/22/13 12:44 PM
Feb 22, 2013 12:44:42 PM oracle.dbtools.standalone.Standalone execute
INFO: http://localhost:8888/apex started.That could be a problem.
I was answering the question:
BillC wrote:
Is there a simple JDBC test to see if it connects? it is APEX_PUBLIC_USER who is connecting isn't it?Yes - APEX_PUBLIC_USER is the connecting user.
You can use SQLPLUS to make sure you have the correct password.
After that, it is the SERVER, PORT, SID/SERVICE in the APEX listener you need to confirm.
You can TNSPING to confirm you have the correct selections for those.
You can always re-run the java -jar apex.war setup command to all of the basic settings.
The reason I mention that is because if you modify the settings manually - we need to ask "which file?" because there is the default and the database specific one too.
Try making a request to the service in standalone mode and you should get a terminal output (the window stays open) with a more detailed error. I would guess there will be an ORA-12514, TNS listener does not currently know of service requested in descriptor or something similar that will give you the "debug" information you are looking for.
Regards,
--Tim St. -
Problem with logging in to apex application builder listener
I have problem with my settings and am posting this in hope that someone else out there had similar problem and solved it!
I am trying to use reverseproxy to access to our db through apex listener.
It's been all set-up and I can login to the application it self either through proxy or no proxy using the listener.
But when I try to login to apex application builder I cannot do it through proxy(with no proxy, it works).
It just refreshes the login page when I click login....
I tried to upgrade the listener to the latest v1.1(using 1.0.2) but it causes my tomcat to crash...
So solution i am looking for is how to make logging in work through proxy..
In the firebug it is showing that below and few other request status as 302 moved temporariry
http://myserver:8080/testsin/apex/wwv_flow.accept
Where as with no proxy it is saying Found.....
Any thoughts??
Thanks
Sin KHello Sin K,
so proxy and Tomcat are located on different machines as well? Is the proxy able to commuicate with the Tomcat on the configured internal ports and is the proxy able to lookup the hostname you configured for the Tomcat?
For the connector, the proxyName and proxyPort should be the parameters the client uses to call APEX. So if your clients should call via http://proxyserver:8080/testsin/apex the settings would be
proxyName=proxyserver
proxyPort=8080Reason for this is that applications (e.g. the APEX Listener) generate there URL references with these parameters.
But does your proxy actually serve on port 8080? And is that port accessible by clients? Do clients accept cookies from that server?
In my case, there is only one 302 which redirects to http://host:port/apex/f?p=4500:1000:sessionid which is correct.
If you look into your first post request in firebug, what's in the request header?
-Udo -
Need advise on SQL Report base for APEX or jasper
Hello everyone,
I need some advise on how to approach this below report requirement. It has been bugging me for nearly 2 weeks now, and my time is running out.
Here is a simplified version of the database
Four tables: Defendant, Engagement, Service, Event.
A defendant can have more than 1 engagement, but they have only one open engagement at a time.
For each engagement, they will have services and events.
These events can be just general events or events that relates to the service.
Here is the script for the tables and sample data
CREATE TABLE "DEFENDANT"
("DEF_ID" NUMBER,
"FIRST_NAME" VARCHAR2(50 BYTE),
"LAST_NAME" VARCHAR2(50 BYTE),
"ACTIVE" NUMBER DEFAULT 1
Insert into DEFENDANT (DEF_ID,FIRST_NAME,LAST_NAME,ACTIVE) values (1,'Joe','Bloggs',1);
Insert into DEFENDANT (DEF_ID,FIRST_NAME,LAST_NAME,ACTIVE) values (2,'John','Doe',1);
CREATE TABLE "ENGAGEMENT"
("ENG_ID" NUMBER,
"DEF_ID" NUMBER,
"COURT_NAME" VARCHAR2(20 BYTE),
"DATE_JOINED" DATE,
"DATE_TERMINATED" DATE,
"ETHNICITY" VARCHAR2(50 BYTE),
"ACTIVE" VARCHAR2(20 BYTE)
Insert into ENGAGEMENT (ENG_ID,DEF_ID,COURT_NAME,DATE_JOINED,DATE_TERMINATED,ETHNICITY,ACTIVE) values (1,1,'AAA',to_date('01/09/12','DD/MM/RR'),to_date('20/09/12','DD/MM/RR'),'European','1');
Insert into ENGAGEMENT (ENG_ID,DEF_ID,COURT_NAME,DATE_JOINED,DATE_TERMINATED,ETHNICITY,ACTIVE) values (2,2,'BBB',to_date('01/10/12','DD/MM/RR'),null,'Asian','1');
Insert into ENGAGEMENT (ENG_ID,DEF_ID,COURT_NAME,DATE_JOINED,DATE_TERMINATED,ETHNICITY,ACTIVE) values (3,1,'AAA',to_date('22/09/12','DD/MM/RR'),null,'European','1');
CREATE TABLE "EVENT"
("EVENT_ID" NUMBER,
"ENG_ID" NUMBER,
"NOTES" VARCHAR2(20 BYTE),
"RELATED_SERVICE_ID" NUMBER,
"START_DATE" DATE,
"END_DATE" DATE,
"ACTIVE" NUMBER DEFAULT 1
Insert into EVENT (EVENT_ID,ENG_ID,NOTES,RELATED_SERVICE_ID,START_DATE,END_DATE,ACTIVE) values (1,1,null,1,to_date('01/09/12','DD/MM/RR'),to_date('02/09/12','DD/MM/RR'),1);
Insert into EVENT (EVENT_ID,ENG_ID,NOTES,RELATED_SERVICE_ID,START_DATE,END_DATE,ACTIVE) values (2,1,null,1,to_date('23/09/12','DD/MM/RR'),null,1);
Insert into EVENT (EVENT_ID,ENG_ID,NOTES,RELATED_SERVICE_ID,START_DATE,END_DATE,ACTIVE) values (3,1,null,2,to_date('15/10/12','DD/MM/RR'),to_date('16/10/12','DD/MM/RR'),1);
Insert into EVENT (EVENT_ID,ENG_ID,NOTES,RELATED_SERVICE_ID,START_DATE,END_DATE,ACTIVE) values (4,2,null,null,to_date('02/10/12','DD/MM/RR'),null,1);
Insert into EVENT (EVENT_ID,ENG_ID,NOTES,RELATED_SERVICE_ID,START_DATE,END_DATE,ACTIVE) values (5,2,null,2,to_date('03/10/12','DD/MM/RR'),null,1);
Insert into EVENT (EVENT_ID,ENG_ID,NOTES,RELATED_SERVICE_ID,START_DATE,END_DATE,ACTIVE) values (6,3,null,null,to_date('22/09/12','DD/MM/RR'),to_date('23/09/12','DD/MM/RR'),1);
Insert into EVENT (EVENT_ID,ENG_ID,NOTES,RELATED_SERVICE_ID,START_DATE,END_DATE,ACTIVE) values (7,3,null,4,to_date('23/09/12','DD/MM/RR'),null,1);
Insert into EVENT (EVENT_ID,ENG_ID,NOTES,RELATED_SERVICE_ID,START_DATE,END_DATE,ACTIVE) values (8,2,null,null,to_date('12/10/12','DD/MM/RR'),null,1);
CREATE TABLE "SERVICE"
( "SERVICE_ID" NUMBER,
"ENG_ID" NUMBER,
"DESCRIPTION" VARCHAR2(200 BYTE),
"DATE_STARTED" DATE,
"DATE_TERMINATED" DATE,
"ACTIVE" NUMBER DEFAULT 1
Insert into SERVICE (SERVICE_ID,ENG_ID,DESCRIPTION,DATE_STARTED,DATE_TERMINATED,ACTIVE) values (1,1,'Counselling',to_date('15/09/12','DD/MM/RR'),to_date('18/09/12','DD/MM/RR'),1);
Insert into SERVICE (SERVICE_ID,ENG_ID,DESCRIPTION,DATE_STARTED,DATE_TERMINATED,ACTIVE) values (2,1,'Housing',to_date('20/09/12','DD/MM/RR'),null,1);
Insert into SERVICE (SERVICE_ID,ENG_ID,DESCRIPTION,DATE_STARTED,DATE_TERMINATED,ACTIVE) values (3,2,'Treatment',to_date('01/10/12','DD/MM/RR'),to_date('15/10/12','DD/MM/RR'),1);
Insert into SERVICE (SERVICE_ID,ENG_ID,DESCRIPTION,DATE_STARTED,DATE_TERMINATED,ACTIVE) values (4,3,'Housing',null,null,1);
Insert into SERVICE (SERVICE_ID,ENG_ID,DESCRIPTION,DATE_STARTED,DATE_TERMINATED,ACTIVE) values (5,1,'Other',to_date('05/10/12','DD/MM/RR'),null,0);
Insert into SERVICE (SERVICE_ID,ENG_ID,DESCRIPTION,DATE_STARTED,DATE_TERMINATED,ACTIVE) values (6,2,'Treatment',to_date('16/10/12','DD/MM/RR'),null,1);****
And this is the view I am thinking to use as the base for the report
CREATE OR REPLACE FORCE VIEW "BASE_VW"
AS
SELECT Def.Def_Id,
Def.First_Name,
Def.Last_Name,
Eng.Eng_Id,
Eng.Court_Name,
Eng.Date_Joined,
Eng.Date_Terminated,
Eng.Ethnicity,
Ser.Service_Id,
Ser.Description,
Ser.Date_Started AS Service_Start_Date,
Ser.Date_Terminated AS Service_Date_Terminated,
Ser.Active AS Service_Active,
Ev.Event_Id,
Ev.Related_Service_Id,
Ev.Start_Date,
Ev.End_Date,
Ev.Notes,
ev.active AS event_active
FROM Defendant Def
LEFT OUTER JOIN Engagement Eng
ON Def.Def_Id = Eng.Def_Id
LEFT OUTER JOIN Service Ser
ON Eng.Eng_Id = Ser.Eng_Id
LEFT OUTER JOIN Event Ev
ON Ev.Eng_Id = Eng.Eng_Id;****
Requirement:
Report parameter: Start Date, End Date, Court_name
From chosen Court_name, list defendants who currently engage in the court.
For each defendant display
Section 1: Identifying Details: First Name, Last Name, Ethnicity, Date Joined Court
Section 2: All Services currently active that the defendant attend
Section 3: All Events that related to the service that the defendant attend
Section 4: All other events (don't have Related Service ID)
User must be able to download the whole report in spreadsheet or PDF format.
I did try to create a set of union selects (but the format is not that good, when no data return it display nothing, I would rather show some messages like "There is no associated events, rather than nothing")
and it only produces report for 1 defendant at a time.
We use Oracle APEX , so only select statement or PL/SQL Code return select statement is valid for report source.
In our place we use Jasper Report adjacent to APEX, but I have very little experience with Jasper report.
The developer who knows a lot about jasper report is too busy to help me.
Currently, I use union selects like below:
With Current_Engagement As
( Select Eng_Id From Engagement
Where Def_Id =2
And Date_Joined Is Not Null
And ( Date_Terminated Is Null Or Date_Terminated > Sysdate)
And Rownum =1
Select '1.Defendant ID' as col1, 'First Name' as col2, 'Last Name' as col3, 'Court Name' as col4, 'Ethnicity' as col5, 'Date Joined' as col6, 'Date Terminated' as col7
From Dual
Union All
Select Distinct to_char(Def_Id), First_Name, Last_Name, Court_Name, Ethnicity, to_char(Date_Joined), to_char(Date_Terminated)
From Base_Vw Inner Join Current_Engagement Ce On Base_Vw.Eng_Id = Ce.Eng_Id
Union All
select '2.Service ID', 'Service Description', 'Start Date', 'End Date', Null, Null, Null
from dual
Union All
Select distinct to_char(service_id), description, to_char(service_start_date), to_char(service_date_terminated), null, null, null
From Base_Vw Inner Join Current_Engagement Ce On Base_Vw.Eng_Id = Ce.Eng_Id
where service_active =1
Union All
Select '3.Event ID', 'Related Service ID', 'Start Date', 'End date', 'Notes', null, null
From Dual
Union All
Select distinct to_char(event_id), to_char(related_service_id), to_char(start_date), to_char(end_date), notes, null, null
from Base_Vw Inner Join Current_Engagement Ce On Base_Vw.Eng_Id = Ce.Eng_Id
Where Event_Active = 1
and related_service_id is not null
Union All
Select '4.Event ID', 'Start Date', 'End date', 'Notes', null, null, null
From Dual
Union All
Select distinct to_char(event_id), to_char(start_date), to_char(end_date), notes, null, null, null
From Base_Vw Inner Join Current_Engagement Ce On Base_Vw.Eng_Id = Ce.Eng_Id
Where Event_Active = 1
and related_service_id is nulland the result is kind of what I try to achieve (except that I need to work on display a message 'No data found' rather than nothing), But it seems that my code works only for one defendant.
COL1 COL2 COL3 COL4 COL5 COL6 COL7
1.Defendant ID First Name Last Name Court Name Ethnicity Date Joined Date Terminated
2 John Doe BBB Asian 01/10/12
2.Service ID Service Description Start Date End Date
3 Treatment 01/10/12 15/10/12
6 Treatment 16/10/12
3.Event ID Related Service ID Start Date End date Notes
5 2 03/10/12
4.Event ID Start Date End date Notes
4 02/10/12
8 12/10/12
10 rows selected
However, I struggle to find a way to apply this to more than 1 defendant and still keep the format.
Defendant 1
All details related to defendant 1
Defendant 2
All details relayed to defendant 2
Defendant n
All details relayed to defendant nIs it possible to display a report as above by using only SQL script ?
Thanks a lot in advance. I am willing to compensate financially to someone who can give me a solution.
Edited by: Ann586341. View base_vw SQL script is fixed.Thanks a lot Jeneesh. (You are really a guru.)
It is nearly 98% what the requirements ask for.
I just have one more question.
If I add more information into the database, just one more defendant
Insert into DEFENDANT (DEF_ID,FIRST_NAME,LAST_NAME,ACTIVE) values (3,'Minnie','Mouse',1);
--and one in Engagement table
Insert into ENGAGEMENT (ENG_ID,DEF_ID,COURT_NAME,DATE_JOINED,DATE_TERMINATED,ETHNICITY,ACTIVE) values (4,3,'BBB',to_date('05/10/12','DD/MM/RR'),null,'Latin America','1');Then I run the select statment again (without changing anything)
With Current_Engagement As
( Select Eng_Id
From Engagement
Where /*Def_Id =2
And*/ Date_Joined Is Not Null
And ( Date_Terminated Is Null Or Date_Terminated > Sysdate)
--And Rownum =1
titles as
( Select .9 dummy_rn,'1.Defendant ID' as col1, 'First Name' as col2, 'Last Name' as col3,
'Court Name' as col4, 'Ethnicity' as col5, 'Date Joined' as col6,
'Date Terminated' as col7
From Dual
union all
select 1.9,'2.Service ID', 'Service Description', 'Start Date', 'End Date',
Null, Null, Null
from dual
union all
Select 2.9,'3.Event ID', 'Related Service ID', 'Start Date', 'End date', 'Notes',
null, null
From Dual
Union All
Select 3.9,'4.Event ID', 'Start Date', 'End date', 'Notes', null, null, null
From Dual
all_titles as
( select dummy_rn,eng_id,col1,col2,col3,col4,col5,col6,col7
from current_engagement,titles
select col1,col2,col3,col4,col5,col6,col7
from (
select dummy_rn,eng_id,col1,col2,col3,col4,col5,col6,col7
from all_titles
Union All
Select Distinct 1,ce.eng_id,decode(Base_Vw.Eng_Id,null,'No Data',to_char(Def_Id)) def_id,
decode(Base_Vw.Eng_Id,null,'No Data',First_Name) First_Name,
decode(Base_Vw.Eng_Id,null,'No Data',last_Name) Last_Name,
decode(Base_Vw.Eng_Id,null,'No Data',court_Name) Court_Name,
decode(Base_Vw.Eng_Id,null,'No Data',ethnicity) Ethnicity,
to_char(Date_Joined), to_char(Date_Terminated)
From Base_Vw
right outer join Current_Engagement Ce
On Base_Vw.Eng_Id = Ce.Eng_Id
Union All
Select distinct 2,ce.eng_id,
decode(Base_Vw.Eng_Id,null,'No Data',to_char(service_id)),
decode(Base_Vw.Eng_Id,null,'No Data',description) ,
decode(Base_Vw.Eng_Id,null,'No Data',to_char(service_start_date)),
decode(Base_Vw.Eng_Id,null,'No Data',to_char(service_date_terminated)) ,
decode(Base_Vw.Eng_Id,null,'No Data',null),
decode(Base_Vw.Eng_Id,null,'No Data',null),
decode(Base_Vw.Eng_Id,null,'No Data',null)
From Base_Vw
right outer Join Current_Engagement Ce
On Base_Vw.Eng_Id = Ce.Eng_Id
where service_active =1
Union All
Select distinct 3,ce.eng_id,
decode(Base_Vw.Eng_Id,null,'No Data',to_char(event_id)),
decode(Base_Vw.Eng_Id,null,'No Data',to_char(related_service_id)),
decode(Base_Vw.Eng_Id,null,'No Data',to_char(start_date)),
decode(Base_Vw.Eng_Id,null,'No Data',to_char(end_date)),
decode(Base_Vw.Eng_Id,null,'No Data',notes),
decode(Base_Vw.Eng_Id,null,'No Data',null),
decode(Base_Vw.Eng_Id,null,'No Data',null)
from Base_Vw
right outer Join Current_Engagement Ce
On Base_Vw.Eng_Id = Ce.Eng_Id
Where Event_Active = 1
and related_service_id is not null
Union All
Select distinct 4,ce.eng_id,
decode(Base_Vw.Eng_Id,null,'No Data',to_char(event_id)),
decode(Base_Vw.Eng_Id,null,'No Data',to_char(start_date)),
decode(Base_Vw.Eng_Id,null,'No Data',to_char(end_date)),
decode(Base_Vw.Eng_Id,null,'No Data',notes),
decode(Base_Vw.Eng_Id,null,'No Data',null),
decode(Base_Vw.Eng_Id,null,'No Data',null),
decode(Base_Vw.Eng_Id,null,'No Data',null)
From Base_Vw
right outer Join Current_Engagement Ce
On Base_Vw.Eng_Id = Ce.Eng_Id
Where Event_Active = 1
and related_service_id is null
order by eng_id,dummy_rn,col1
;The result is
COL1 COL2 COL3 COL4 COL5 COL6 COL7
1.Defendant ID First Name Last Name Court Name Ethnicity Date Joined Date Terminated
2 John Doe BBB Asian 01/10/12
2.Service ID Service Description Start Date End Date
3 Treatment 01/10/12 15/10/12
6 Treatment 16/10/12
3.Event ID Related Service ID Start Date End date Notes
5 2 03/10/12
4.Event ID Start Date End date Notes
4 02/10/12
8 12/10/12
1.Defendant ID First Name Last Name Court Name Ethnicity Date Joined Date Terminated
1 Joe Bloggs AAA European 22/09/12
2.Service ID Service Description Start Date End Date
4 Housing
3.Event ID Related Service ID Start Date End date Notes
7 4 23/09/12
4.Event ID Start Date End date Notes
6 22/09/12 23/09/12
1.Defendant ID First Name Last Name Court Name Ethnicity Date Joined Date Terminated
3 Minnie Mouse BBB Latin America 05/10/12
2.Service ID Service Description Start Date End Date
3.Event ID Related Service ID Start Date End date Notes
4.Event ID Start Date End date Notes
23 rows selected Is it possible in SQL to display it like this
COL1 COL2 COL3 COL4 COL5 COL6 COL7
1.Defendant ID First Name Last Name Court Name Ethnicity Date Joined Date Terminated
2 John Doe BBB Asian 01/10/12
2.Service ID Service Description Start Date End Date
3 Treatment 01/10/12 15/10/12
6 Treatment 16/10/12
3.Event ID Related Service ID Start Date End date Notes
5 2 03/10/12
4.Event ID Start Date End date Notes
4 02/10/12
8 12/10/12
1.Defendant ID First Name Last Name Court Name Ethnicity Date Joined Date Terminated
1 Joe Bloggs AAA European 22/09/12
2.Service ID Service Description Start Date End Date
4 Housing
3.Event ID Related Service ID Start Date End date Notes
7 4 23/09/12
4.Event ID Start Date End date Notes
6 22/09/12 23/09/12
1.Defendant ID First Name Last Name Court Name Ethnicity Date Joined Date Terminated
3 Minnie Mouse BBB Latin America 05/10/12
2.Service ID Service Description Start Date End Date
No Service Found
3.Event ID Related Service ID Start Date End date Notes
No Event Found
4.Event ID Start Date End date Notes
No Event FoundOr just a 'No data found' would do. I am thinking about create a dummy table which contains only one row with text "There is no data found". And so the outer join with the result, but I still cannot work out how to integrate with the condition in your select statement.
I really appreciate your help. -
Application Developed in Apex 3.2 is not working Apex 4.1
Hi,
We have few application developed using oracle apex 3.2 and oracle 10g enterprise edition as the database also have a Apache tomcat server configured in the system. These application are running fine have no issue in production instance.
I recently installed Oracle Apex 4.1 and Oracle 10g Express Edition in my local machine to test these application in oracle 4.1. I took the same database dump and installed in the local machine no issues with the database side. I installed the application that are developed in 3.2 and installed in new local instance but this is not working.
It show >>Internet Explorer cannot display the webpage
Please suggest me what might be the issue how to trouble shoot this issue.
Thanks
SudhirI don't understand reading so many tract file starting with
xe_s00??Most of the trace file show about {Embedded PL/SQL Gateway:} it shows is metioned below
Embedded PL/SQL Gateway: (wppr.c,495) Pl/sql block parsed...
Embedded PL/SQL Gateway: (wpdenv.c,1528) CGI Environment has 33 vars. Max name len 128, Max Value Len 512
Embedded PL/SQL Gateway: PLSQL_GATEWAY(14)=(6)WebDb
Embedded PL/SQL Gateway: GATEWAY_IVERSION(17)=(2)2
Embedded PL/SQL Gateway: SERVER_SOFTWARE(16)=(42)Oracle >>Embedded PL/SQL Gateway/10.2.0.1.0
Embedded PL/SQL Gateway: GATEWAY_INTERFACE(18)=(8)CGI/1.1
Embedded PL/SQL Gateway: SERVER_PORT(12)=(5)8080
Embedded PL/SQL Gateway: SERVER_NAME(12)=(16)XDB HTTP Server
Embedded PL/SQL Gateway: REQUEST_METHOD(15)=(4)GET
Embedded PL/SQL Gateway: QUERY_STRING(13)=(36)p=4000:1500:3165980474173701::NO:::
Embedded PL/SQL Gateway: PATH_INFO(10)=(3)/f
Embedded PL/SQL Gateway: SCRIPT_NAME(12)=(6)/apex
Embedded PL/SQL Gateway: REMOTE_HOST(12)=(1)
Embedded PL/SQL Gateway: REMOTE_ADDR(12)=(10)127.0.0.1
Embedded PL/SQL Gateway: SERVER_PROTOCOL(16)=(9)HTTP/1.1
Embedded PL/SQL Gateway: REQUEST_PROTOCOL(17)=(4)tcp
Embedded PL/SQL Gateway: REMOTE_USER(12)=(10)ANONYMOUS
Embedded PL/SQL Gateway: ORACLE_SSO_USER(16)=(1)
Embedded PL/SQL Gateway: HTTP_CONTENT_LENGTH(20)=(2)0
Embedded PL/SQL Gateway: HTTP_CONTENT_TYPE(18)=(1)
Embedded PL/SQL Gateway: HTTP_USER_AGENT(16)=(71)Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)
Embedded PL/SQL Gateway: HTTP_HOST(10)=(15)127.0.0.1:8080
Embedded PL/SQL Gateway: HTTP_ACCEPT(12)=(10)text/html
Embedded PL/SQL Gateway: HTTP_ACCEPT_ENCODING(21)=(5)gzip
Embedded PL/SQL Gateway: HTTP_ACCEPT_LANGUAGE(21)=(6)en-IN
Embedded PL/SQL Gateway: HTTP_COOKIE(12)=(344)ORA_WWV_REMEMBER_UN=SUDHIR:DEVELOPMENT; PUBLIC_ORA_WWV_USER_63113903525053=-1; ORA_WWV_USER_63113903525053=2AD259DDAF6770BE05FEF29509B68F5F; LOGIN_USERNAME_COOKIE=sudhir; WWV_CUSTOM-F_1638610445865577_111=CC022FAB479054CF32361C22B789D7EE; ORA_WWV_ATTRIBUTE_PAGE=4495%2C%23ALL; WWV_CUSTOM-F_1638610445865577_107=19291B8FC60BA1A47916DE46EE85F01C
Embedded PL/SQL Gateway: HTTP_REFERER(13)=(127)http://127.0.0.1:8080/apex/f?p=4000:1:3165980474173701::NO:RP:FB_FLOW_ID,F4000_P1_FLOW,P0_FLOWPAGE,RECENT_PAGES:109,109,109;|,
Embedded PL/SQL Gateway: WEB_AUTHENT_PREFIX(19)=(1)
Embedded PL/SQL Gateway: DAD_NAME(9)=(5)apex
Embedded PL/SQL Gateway: DOC_ACCESS_PATH(16)=(5)docs
Embedded PL/SQL Gateway: DOCUMENT_TABLE(15)=(23)wwv_flow_file_objects$
Embedded PL/SQL Gateway: PATH_ALIAS(11)=(1)
Embedded PL/SQL Gateway: REQUEST_CHARSET(16)=(9)AL32UTF8
Embedded PL/SQL Gateway: REQUEST_IANA_CHARSET(21)=(6)UTF-8
Embedded PL/SQL Gateway: SCRIPT_PREFIX(14)=(1)
*** ACTION NAME:() 2012-06-27 16:52:32.213
*** MODULE NAME:() 2012-06-27 16:52:32.213
*** CLIENT ID:() 2012-06-27 16:52:32.212
Embedded PL/SQL Gateway: (wpd.c,1960) Begin header parsing...
Embedded PL/SQL Gateway: (wpd.c,2009) Got a line (47 bytes): X-ORACLE-IGNORE: IGNORE
Embedded PL/SQL Gateway: (wpd.c,2027) X-ORACLE-IGNORE parsed
Embedded PL/SQL Gateway: (wpd.c,2009) Got a line (47 bytes): X-ORACLE-IGNORE: IGNORE
Embedded PL/SQL Gateway: (wpd.c,2027) X-ORACLE-IGNORE parsed
Embedded PL/SQL Gateway: (wpd.c,2009) Got a line (47 bytes): X-ORACLE-IGNORE: IGNORE
Embedded PL/SQL Gateway: (wpd.c,2027) X-ORACLE-IGNORE parsed
Embedded PL/SQL Gateway: (wpd.c,2009) Got a line (47 bytes): X-ORACLE-IGNORE: IGNORE
Embedded PL/SQL Gateway: (wpd.c,2027) X-ORACLE-IGNORE parsed
Embedded PL/SQL Gateway: (wpd.c,2009) Got a line (77 bytes): Content-type: text/html; charset=utf-8
Embedded PL/SQL Gateway: (wpd.c,2108) Parsed header - Content-Type:text/html; charset=utf-8
Embedded PL/SQL Gateway: (wpd.c,2009) Got a line (43 bytes): X-Frame-Options: DENY
Embedded PL/SQL Gateway: (wpd.c,2168) Parsed header - X-Frame-Options:DENY
Embedded PL/SQL Gateway: (wpd.c,2009) Got a line (43 bytes): Content-length: 40155
Embedded PL/SQL Gateway: (wpd.c,2082) Parsed header - Content-Length:40155
Embedded PL/SQL Gateway: (wpd.c,2009) Got a line (1 bytes):
Embedded PL/SQL Gateway: (wpd.c,2016) End of headers detected
Embedded PL/SQL Gateway: (wpd.c,1882) Parsed begin
owa.get_page(:data__,:ndata__);
end;
Embedded PL/SQL Gateway: (wpd.c,1898) Bound drec variablesEmbedded PL/SQL Gateway: (wpcs.c, 76) Executed 'begin dbms_session.reset_package; end;' (rc=0)
Embedded PL/SQL Gateway: (wpd.c,1818) Going to close cursor
Embedded PL/SQL Gateway: (wpx.c,660) Normal completion
Embedded PL/SQL Gateway: (wpx.c,688) Shutdown has been called
Embedded PL/SQL Gateway: (wpx.c,700) Going to logoff
*** SESSION ID:(527.737) 2012-06-27 16:52:37.533
Embedded PL/SQL Gateway: (wpdenv.c,679) script_name='/apex' path_info='/f'script_prefix='' dad_name='apex'
Embedded PL/SQL Gateway: (wpdenv.c,792) User-Agent is Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)
Embedded PL/SQL Gateway: (wpdenv.c,1412) dadname = 'apex', path_info = 'f'
Embedded PL/SQL Gateway: (wpdenv.c,1451) Service will NOT use dynamic auth
Embedded PL/SQL Gateway: (wpx.c,394) Initialized successfully 0
Embedded PL/SQL Gateway: (wpx.c,316) SetRemoteUser : Remote User set to ANONYMOUS for this request.
Embedded PL/SQL Gateway: (wpx.c,480) Auth info from .APP file is being used
Embedded PL/SQL Gateway: (wpd.c,1729) Attempting to logon with '(unknown)'
Embedded PL/SQL Gateway: (wpu.c,1499) DBCharSet=>AMERICAN_AMERICA.AL32UTF8 OWAVersion=10.1.2.0.4 (101204) OWAMatch=>1 (rc=0)
Embedded PL/SQL Gateway: (wpd.c,1763) Logged in as (unknown)
Embedded PL/SQL Gateway: (wpx.c,593) Going to select...
Embedded PL/SQL Gateway: (wpx.c,647) Have been asked to execute a request
Embedded PL/SQL Gateway: (wppa.c,335) Building Arglist based on Parsed Content from WRB
Embedded PL/SQL Gateway: (wppa.c,1015) Enter ParseUrlData
Embedded PL/SQL Gateway: GET
Embedded PL/SQL Gateway: (wppa.c,1064) Getting Values from QUERY_STRING
Embedded PL/SQL Gateway: [headers begin]
Embedded PL/SQL Gateway: HTTP_COOKIE(11): (343)ORA_WWV_REMEMBER_UN=SUDHIR:DEVELOPMENT; PUBLIC_ORA_WWV_USER_63113903525053=-1; ORA_WWV_USER_63113903525053=2AD259DDAF6770BE05FEF29509B68F5F; LOGIN_USERNAME_COOKIE=sudhir; WWV_CUSTOM-F_1638610445865577_111=CC022FAB479054CF32361C22B789D7EE; ORA_WWV_ATTRIBUTE_PAGE=4495%2C%23ALL; WWV_CUSTOM-F_1638610445865577_107=19291B8FC60BA1A47916DE46EE85F01C
Embedded PL/SQL Gateway: [headers end]
Embedded PL/SQL Gateway: p=109:1:3165980474173701:::::
Embedded PL/SQL Gateway: Identifier legal p(notconverted)
Embedded PL/SQL Gateway: (wppa.c,1514) indx = 1, entryCnt = 1
Embedded PL/SQL Gateway: (wppa.c,1834) Listing distinct actual names:
Embedded PL/SQL Gateway: (wppa.c,1836) p
Embedded PL/SQL Gateway: (wppa.c,1838) Listing actuals of array with large entries:
Embedded PL/SQL Gateway: (wppa.c,1843) Listing distinct actual names and values:
Embedded PL/SQL Gateway: (wppa.c,1875) p, type = 0, value (28) = 109:1:3165980474173701:::::
Embedded PL/SQL Gateway: (wppa.c,430) Arglist built, 1 unique entries
Embedded PL/SQL Gateway: (wpx.c,654) Going to wpprodb_OciDoBlock...
Embedded PL/SQL Gateway: Identifier legal f(notconverted)
Embedded PL/SQL Gateway: (wppr.c,435) start working with f
Embedded PL/SQL Gateway: (wppr.c,1017) lcase(procname): f
Embedded PL/SQL Gateway: (wppr.c,1296) The CALL block: len=1067, bind_count=9What is the next step to make the 3.2 developed application work.
Thanks
Sudhir
Edited by: Sudhir_Meru on Jun 27, 2012 5:09 AM
Edited by: Sudhir_Meru on Jun 27, 2012 5:11 AM -
Dynamic image does not work in the template builder plug-in (Apex-BI Intgr)
Hi all, I posted this problem in the BI Publisher topic but nobody responded maybe this is because mods thought this is an Apex-BI integration issue.
If I'm in the wrong place, please do warn me.
The documentation says:
Direct Insertion
Insert the jpg, gif, or png image directly in your template.
...This works obviously
URL Reference
1. Insert a dummy image in your template.
2. In Microsoft Word's Format Picture dialog box select the Web tab. Enter the following syntax in the Alternative text region to reference the image URL:
url:{'http://image location'}
For example, enter: url:{'http://www.oracle.com/images/ora_log.gif'}
...This works too when I hardcode an url as url:{'http://www.google.com.tr/images/firefox/mobiledownload.png'}
Element Reference from XML File
1. Insert a dummy image in your template.
2. In Microsoft Word's Format Picture dialog box select the Web tab. Enter the following syntax in the Alternative text region to reference the image URL:
url:{IMAGE_LOCATION}
where IMAGE_LOCATION is an element from your XML file that holds the full URL to the image.
...This, however, does not work.
I use Apex' report query tool and My query is like
select 'http://www.google.com.tr/images/firefox/mobiledownload.png' IMAGE_LOCATION from ... (a single result set for my template)
the xml data is generated with an IMAGE_LOCATION tag. I load it to word template plug-in. The Url successfully displays in the report if I make it a plain-simple field.
But when it's in the image format->web->alt text as url:{IMAGE_LOCATION} no image displayed.
I need to keep this design procedure simple so a simple word user could design a report via using just template builder plug-in. I don't wish to explore the xsl-fo area...yet.
Could you tell me why I can't get this url:{IMAGE_LOCATION} to work?
Regards
PS: My BI version: 10.1.3.4.1Hi Oeren,
your steps seem basically to be correct. I have a tutorial how to do this here (in german)
http://www.oracle.com/webfolder/technetwork/de/community/apex/tipps/pdf-dyn-images/index.html
when you see the URL corrently as long as you have it as a plain text field, the XML tag and the
referencing seem to be OK.
Here are two thought - the issue might be one of these ...
How did you insert the dummy image into the word document - did you do it via "insert" or
via "link to file". "Link to File" does not work - you must choose the simple "insert".
Another one: Does your BI Server have a connection to the internet - is the proxy server correctly set ..?
Does this help ..?
Regards
-Carsten
Cloud Computing mit APEX umsetzen. Jetzt!
http://tinyurl.com/apexcloudde
SQL und PL/SQL: Tipps, Tricks & Best Practice
http://sql-plsql-de.blogspot.com -
Event page view in APEX 4.0
hi -- It looks to me like the new "tree" page view in APEX 4.0 shows only regions/processes/items, etc defined on the current page. If I recall correctly, the "event" view in
3.2 showed app processes and page 0 regions, etc intertwined w/ the actual page items.
Is there a view available in 4.0 that mimics this event view? I found it very handy...
thanks,
carolIs there a view available in 4.0 that mimics this event view? I found it very handy...Now available from the page Utilities pop-up menu: Utilities > Page Events.
Maybe you are looking for
-
Sorry, I know it was talked about before but I can't find it. How do you get Aperture to display the full filename under the photo in grid or other view's that includes .nef or .jpg? PowerBook G4 Mac OS X (10.4.6)
-
Fonts not showing in Illustrator CS4
I am running CS4 on my Mac and after re-loading the software on to my new harddrive none of my computers fonts are showing up. It seems like just the few that the program comes with are available for use. They all show just fine in my other program
-
E71 - Nokia PC Suite - does not connect ? unable t...
I installed Nokia PC Suite (v7.1) on my PC's: Connected Nokia E71 with USB-cable (Mass Storage > Via Windows Explorer I can see the directories on the memory card of the E71) Problem-1: Nokia PC Suite gives error: "unable to find device" (while phon
-
I have an HP Pavilion Notebook with Windows 7 on it. I am using my wife's Gateway notebook with windows vista to write this request for help and to attempt to fix mine. Problem. When I boot, it takes me to this message: Boot Mgr Missing, Things I ha
-
Displaying Date types in the grid control
I have a grid control and one of the column is displaying 'Date' type data. I am able to see the Date values in the grid, if I define the return type of the getter function as String format. But the problem with this is, when I click on the Date colu