Form with report question
Hi,
I have developed all my forms of type 'Form with report' which after entering values, displays the report page that shows the details entered.
In the form page definition I have a select list for customer id which diplays 'customer name' as return value. So after the form values are entered it redirects to the report page which displays the details such as customer id etc. How do I make this page to display the customer name instead of customer id. From user's perspective it would make more sense if he can see the customer name for editing/changes.
Also I wanted to know which kind of report would be the most appropriate if the report is based on a PL/SQL block. Would it be as interactive ?.
Appreciate all suggestions posted.
Hi Zahid,
Yes, That is exactly what I wanted. So now I have my other table (resources ) for getting the resource_name . I do not see any quotes in your query which makes me wonder how your query under – ‘Region source’ of the Region definition looks like. Could you paste you code exactly as seen there. Besides I am not sure if we can join tables in there. I was getting –Unable to parse query error as well as Invalid character. I am not entirely sure of the syntax of the query definition in the report page as it is automatically generated . Any ideas? . I am pasting my query here for you to look at.
Appreciate your help.
select "RR.RESOURCE_ROLE_ID",
"RR.RESOURCE_ID";
"RE.RESOURCE_NAME",
"RR.ROLE_ID",
"RR.PROJECT_ID",
"RR.CREDITS_PER_HOUR",
"RR.ACTIVE_DATE_START",
"RR.ACTIVE_DATE_END",
"RR.LAST_UPDATED_BY",
"RR.LAST_UPDATE_DATE",
"RR.CREATED_BY",
"RR.CREATION_DATE"
from "#OWNER#"."RESOURCE_ROLES" "RR",
"#OWNER#"."RESOURCES" "RE"
where "RR.RESOURCE_ID" "=" "RE.RESOURCE_ID";
Thanks,
A
Similar Messages
-
Question of Form with Report?
This is great since I can create a form with report.
For my search on form selection, I can only select one column, can I select more than one columns so I can search column A and B?
Thank you.User,
What is your name?
Yes, when you're creating the report it's easy as you should see a list of columns and be able to select the ones you want. Afterward you'll have to manually modify the query which is easy enough.
Regards,
Dan
http://danielmcghan.us
http://sourceforge.net/projects/tapigen
http://sourceforge.net/projects/plrecur
You can reward this reply by marking it as either Helpful or Correct ;-) -
Form with report, where some items in the form have been given values.
Hi, greetings:
I have a question that maybe silly but annoying to me. I need to provide a form with report, where some items in the form have been given values automatically, and these items (display only) are supposed to show given values in the form automatically.
I used the APEX form with report. The update and delete worked well. But I cannot show automatic values when insert. By default APEX insert form makes every item null; I tried to give value for two items: P5212_USERKEY, P5212_DAILY_VER_DATE with process before header, after header, after regions and before footer, and computation, or set values of these two items in the branch when user hit create button (submit). It never worked out, the two items always displayed null value, and when I insert, I got "ORA-01400: cannot insert NULL into ("TBSBI"."DAILYVERPRODNOTE"."USERKEY")", since I have set up constraint in database that these two columns should not be null.
Could anyone help on this? any suggestion would be appreciated.
SamIf you have made these values 'Display Only' they would by default not save the session state. Accessing the page items will always return NULL. Did you change the 'Save Session State' option to 'Yes'?
-
Image upload in Form with Report
Hello
I have created a table FA_CUST_DTL
Column Name Data Type Nullable Default Primary Key
CUST_ID NUMBER No 1
CUST_NAME VARCHAR2(1000) Yes
CUST_ADD VARCHAR2(4000) Yes
MOBILE NUMBER(12,0) Yes
PHONE VARCHAR2(15) Yes
EMAIL VARCHAR2(100) Yes
SIGNATURE_IMAGE BLOB Yes
MIMETYPE VARCHAR2(200) Yes
FILENAME VARCHAR2(400) Yes
IMAGE_LAST_UPDATE DATE Yes
Then i created a page Form With report with the trigger . After Browsing , images are not showing in my report.
Can u tell me any idea abt it plz help me its urgent for me.
Regards
GeetIf you need to control height and width of your uploaded images, then you must use the APEX_UTIL.GET_BLOB_FILE_SRC function. Please refer to this documentation:
[http://download.oracle.com/docs/cd/E10513_01/doc/apirefs.310/e12855/apex_util.htm#AEAPI129] -
Form with report, update field in the form = field is not updated in table
Hi,
I have a form with report. On Primary Key in the report is a link to the form. I select one row in the form by choosing the link in the report. Then I update a field in the form and press "Save". I see the success message "Action processed" and I'll be back in the report. I see the field in the report with it's old content. It is not updated. I don't understand why. Can anybody help me?
Thanks DanielaDaniela,
Is the form field source set to the proper database column? It's either not properly defined or your Save button and the builtin update process have somehow become disconnected. Check to make sure that the Save button is set to perform an Update in the database operations setting.
Earl -
Creating a Form with Report based on View
Hi All,
I wanted to create a form with report based on two tables so:
1. I created a view (called COMBO) based on two tables
2. I then created a form with report based on the view
Everything seemed fine thus far until I tried to edit existing records - I got the error:
ORA-20505: Error in DML: p_rowid=2002082600001172, p_alt_rowid=REPATRIATION_ID, p_rowid2=, p_alt_rowid2=. ORA-01776: cannot modify more than one base table through a join view
Unable to process row of table COMBO.NB: REPATRIATION_ID is the primary key of the Repatriation table. The other table is Applicant.
& when I tried to create a new record - I got the error:
ORA-01776: cannot modify more than one base table through a join view
Unable to process row of table COMBO.Someone please enlighten me!
Kind Regards
Kamo
Edited by: Kamo on 2009/03/12 2:33 AMHello Kamo,
You need to create an 'instead of' (update/insert/delete) trigger on your view to process the inserts etc into the 'real' tables.
Greetings,
Roel
http://roelhartman.blogspot.com/
You can reward this reply by marking it as either Helpful or Correct ;-) -
Date Validation problem in form with report
Hi,
I am stuck on this date validation issue in a form with report that I am working on-
I have an Active_date_start and an Active_date_end field. I want to validate the form in such a way that if the user enters the Active_date_end < active_date_start then it should error out appropriately asking to change the active_end_date . Also another problem is that the changes are made to the active_date_end they should reflect in the table. How do I accomplish this.
Appreciate all the help offered.
Thanks.Hi,
Thanks for the code.Now the APPLY CHANGES works fine except that it throws an error when I change the end date to a date which is less than the start date . So it does show me my error and does not go further but also shows me the error -
Invalid PL/SQL expression condition: ORA-06550: line 1, column 29: PLS-00306: wrong number
or types of arguments in call to 'NVL' ORA-06550: line 1, column 7: PL/SQL: Statement
ignored Invalid PL/SQL expression condition: ORA-06550: line 1, column 29: PLS-00306:
wrong number or types of arguments in call to 'NVL' ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
I looked up the error number and it says its a generic error type where the error can be found on the line number specified. But in this case how and where do I look for the error line?. This is the code I am using-
DECLARE
vACTIVE_DATE_START DATE;
vACTIVE_DATE_END DATE;
BEGIN
vACTIVE_DATE_START := TO_DATE(:P4_ACTIVE_DATE_START, 'DD/MM/YYYY');
vACTIVE_DATE_END := TO_DATE(:P4_ACTIVE_DATE_END, 'DD/MM/YYYY');
IF vACTIVE_DATE_END < vACTIVE_DATE_START THEN
RETURN 'End date is before start date';
ELSE
RETURN NULL;
END IF;
END;
My base table has the active_date_start as NOT NULL. Now I have the exact same code for APPLY CHANGES
in other form and it works fine not giving the above error. I am at a loss to know how I can get rid of the error.
Any suggestions!.
Thanks in advance,
A -
Hi,
I have created form with report.i want to apply the function like initcap,upper or lower apply changes portion of item.
e.g when i click on pencil image to modify the value.item which holds the value.if i enter value in lower case.i want to make value in initcap format.how can i apply this function.
Please help me to solve this problem.
Thanks & regards
NishaHi,
First of all when do you want to make them Initcap? If its after submit, then you can handle it in your DML or at trigger level. If its before submit, you can go with JS.
for those who prefer recursion over looping...
<script type="text/javascript">
function fnInitCap(pStr)
var vReturn;
if (pStr.indexOf(" ") != -1)
// Initcap the first word
vReturn = pStr.substring(0, 1).toUpperCase() + pStr.substring(1, pStr.indexOf(" ") + 1).toLowerCase();
// Contains multiple words, call function recursively
return vReturn + fnInitCap(pStr.substring(pStr.indexOf(" ") + 1, pStr.length));
else
vReturn = pStr.substring(0, 1).toUpperCase() + pStr.substring(1, pStr.length).toLowerCase();
return vReturn;
</script>and put following in item attributes..
onChange="javascript:this.value=fnInitCap(this.value);"Regards,
Hari -
Reset Select List in Form With Report
Hi,
i have Created Form with Report Page. I have three select List on this page.
1-Market Name Select List with Redirect
2-Customer Name Select List with Redirect
3-Contect Person
when i select market Name then Respective Customer name is select In to select List Customer Name.
When i select Customer Name Then Contact Person is Select in Select List Contect Person.
Problem is when i select Customer Name from Select List then Contact Person comes into Contact persion Select List But the value in select List Customer Name and Market Name is not dispaly , Display Only -Select Market - and -Select Customer Name- .
I want when i select Customer NAme From Select List then value from MArket and customer Select List should not be reset.
How can i do this.
Thanks
Edited by: 805629 on Jan 26, 2011 10:45 PMTry 'select list with submit', not "select list with redirect". Redirect usually doesn't save the values in session state so they are lost when the page repaints.
-
Use Formule on FORM with REPORT - result stored at table
Hi all,
What is the best solution for?
I have region with FORM WITH REPORT on the same PAGE.
Values stored at table INFO with column ID, MYDATE, TIME_START_HOUR, TIME_START_MIN, TIME_END_HOUR, TIME_END_MIN, SUM1, SUM2
ITEMS on the form:
P1_ID (hidden)
P1_MYDATE (date picker)
P1_TIME_START_HOUR (select list)
P1_TIME_START_MIN (select list)
P1_TIME_END_HOUR (select list)
P1_TIME_END_MIN (select list)
P1_SUM1 (hidden)
P1_SUM2 (hidden)
After user fill in MYDATE, TIME_START_HOUR, TIME_START_MIN, TIME_END_HOUR, TIME_END_MIN then I need proces for calculation SUM1 en SUM2. Result stored (one record) at table INFO.
Report shows all columns. User had possibility to update the record
Formule:
Select
(CASE
when to_char(mydate,'DY','nls_date_language=dutch') in ('ZA','ZO')
THEN substr(to_timestamp (mydate||':'||TIME_END_HOUR||':'||TIME_END_MIN ||':00','DD-MM-YY:HH24:MI:SS') -
to_timestamp (mydate||':'||TIME_START_HOUR||':'||TIME_START_MIN ||':00','DD-MM-YY:HH24:MI:SS') -
(interval '00 00:00:00' day to second)
,12,5)
ELSE '08:00'
END) SUM1,
(CASE
when to_char(mydate,'DY','nls_date_language=dutch') in ('ZA','ZO')
THEN substr(to_timestamp (mydate||':'||TIME_END_HOUR||':'||TIME_END_MIN ||':00','DD-MM-YY:HH24:MI:SS') -
to_timestamp (mydate||':'||TIME_START_HOUR||':'||TIME_START_MIN ||':00','DD-MM-YY:HH24:MI:SS') -
(interval '00 04:00:00' day to second)
,12,5)
ELSE '04:00'
END) SUM2
FROM INFO
where id=:ID
What is the best way for the calculation: computation or processes or etc? The calculation after or before user push button(New:create button of Update:Apply Changes)?
How to fill the answer (SUM1 and SUM2) at table INFO?
Thanks WalterI have something similar I use:
DECLARE
str_day VARCHAR2(10);
dt_indx DATE;
db_dt_indx VARCHAR2(20);
str_st_tm VARCHAR2(20);
dt_st_tm DATE;
db_st_tm VARCHAR2(20);
str_ed_tm VARCHAR2(20);
dt_ed_tm DATE;
db_ed_tm VARCHAR2(20);
shft_flag NUMBER;
BEGIN
str_day := :P1050_DATE_MM || '/' || :P1050_DATE_DD || '/' || :P1050_DATE_YYYY;
dt_indx := to_date(str_day, 'MM/DD/YYYY');
db_dt_indx := to_char(dt_indx, 'MM/DD/YYYY');
str_st_tm := str_day || ' ' || :P1050_TIME_IN_HH || ':' || :P1050_TIME_IN_MI || ' ' || :P1050_TIME_IN_AM;
dt_st_tm := TO_DATE(str_st_tm, 'MM/DD/YYYY HH:MI AM');
str_ed_tm := str_day || ' ' || :P1050_TIME_OUT_HH || ':' || :P1050_TIME_OUT_MI || ' ' || :P1050_TIME_OUT_AM;
dt_ed_tm := TO_DATE(str_ed_tm, 'MM/DD/YYYY HH:MI AM');
--Alter date if night shift
SELECT NVL(:P1050_NIGHT_FLAG,0) into shft_flag from dual;
IF dt_ed_tm < dt_st_tm THEN
dt_ed_tm := dt_ed_tm + 1;
END IF;
db_st_tm := to_char(dt_st_tm + shft_flag,'MM/DD/YYYY HH:MI AM');
db_ed_tm := to_char(dt_ed_tm + shft_flag,'MM/DD/YYYY HH:MI AM');
end;You'll need to modify it for your page variables. -
Additional fields in report for form with report
Hello,
I got the problem, that I want to create a form with report where the form only changes the values of one table but the report is also using additional fields linked from another table. If I take a view with all fields for my form with report, the form is about all fields and not only about those from the first table. So is there a way to have another table linked to the form than to the report and get a link between them by a key?
I hope that someone has got a great idea and can help me solving this.
Thanks
JochenJochen,
you can create a form with report on the view and afterwards you change the SQL-query into a query on the view. Take care that the original column names remain the same. You get your extra columns in the report and your link to the form remains,
good luck,
DickDral -
Master Detail Form with Report - Referring a column in another table
I have master detail form with a report option. The master table has a column that also references a look up table.
When the report is displayed the lookup column id is displayed. Rather I want to get the look-up value from a lookup table
and display in the report.
When I see the report region Query definition , it just has the columns to add/remove only from the master table.
Could you pls help me with this regard.
Eg :
Dept Table
dept_id
dept_name
location_id
Employee Table
employee_id
employee_name
dept_id
location
location_id_id
location_name
Master is Dept, Detail is dept and lookup table is location.Simply add the lookup table to the FROM clause and join its PK with the FK in the master table in your query. That's basic SQL, and you definitely must get a good grasp of SQL to do more than very basic work in APEX.
For a good example, please see http://download.oracle.com/docs/cd/E10513_01/doc/appdev.310/e10498/build_app.htm#BCEBJJGB
While you're at it, read and implement the tasks outlined in the 2 Day + Application Express Developer's Guide - http://download.oracle.com/docs/cd/E10513_01/doc/appdev.310/e10498/toc.htm. After that, read the "Oracle Application Express 3.0-- Building a Functional Application" OBE in http://www.oracle.com/technology/obe/apex/obe30/apexdev30.htm - great stuff.
Georger -
Form With Report om the same page
Currently i usr a form to insert e a report to disply the results.
However i'like tom link ther row of the report to fil the form with that data!
I post a image to maque a picture
http://diolicopia.pt/screenshot.jpg
what i want to do it's whena click de report column... it fill the form with the records on the tablhe.
thanksHi
You can use column link functionality to link a report table.column to corresponding form item. Best is to link through Primary Key column. Say the report has column Titulo so go to Edit Page>Report Attributes> clik on edit link against the Alias Titulo>Column Attributes>scrol down to section Column Link>
1. enter some link text (choose one image)
2. target=page in this application; page=enter page number on which you have form
3. in the Name Value pair region in Item 1 row, under Name search for item name for Titulo e.g. P1_TITULO, under Value search for the column name value for Titulo e.g. #TITULO#.
4. Click apply changes
Now if you click on some value in the column Titulo in report the edit form will display data populated with records corresponding to that.
Thanks, -
Hi,
I am facing 2 issues now related to forms and reports
I am using forms 10.1.2.3
We have an old form developed a few years back and it used to work with the old application server.
But when we migrated to vista, the application server port is changed and hence the URL
Now the first issue:
1)When running a report from the form (After giving some values in the form, a button is pressed to run the report), it is returning an error:
FRM-41213:Unable to conenct to the Report server "Myrepserver"
So in the assumption that the server name must have been hard-coded in the form, and hoping to change it to the new server name,
I checked the when-button-trigger code in the form, but now I am unable to figure out where (which part in the form) the server name is defined.
Need help in this one first:
The code in the when-button-trigger is as shown below:
DECLARE
plid paramlist;
the_param varchar2(15) := 'tmpdata';
v_process varchar2(10);
BEGIN
If (:RADIO_GROUP31 in('ROD_REP','RSLB_REP','GEO_IMP','LBL_IMP')
And :FILENAME4 IS NULL ) Then
Message('A Filename is required to run the selected report');
Raise FORM_TRIGGER_FAILURE;
Elsif (:RADIO_GROUP31 in('OPT_RUN','SDF_RUN')
And :DELIVERY_OFFICE_ID4 IS NULL ) Then
Message('A Delivery Office Id is required to run the selected report');
Raise FORM_TRIGGER_FAILURE;
End If;
v_process := :RADIO_GROUP31;
BEGIN
plid := get_parameter_list(the_param);
IF NOT id_null(plid) THEN
destroy_parameter_list(plid);
END IF;
plid := create_parameter_list(the_param);
add_parameter(plid, 'delivery_office_id', TEXT_PARAMETER,:DELIVERY_OFFICE_ID4);
add_parameter(plid, 'filename', TEXT_PARAMETER,:FILENAME4);
add_parameter(plid, 'p_opt_batch_id', TEXT_PARAMETER,:OPT_BATCH_ID);
add_parameter(plid, 'p_sum_det', TEXT_PARAMETER,:SUM_DET_PB);
add_parameter(plid, 'process', TEXT_PARAMETER,v_process);
add_Parameter(plid, 'PARAMFORM', TEXT_PARAMETER, 'NO');
run_product(REPORTS,'approcrep.rdf',SYNCHRONOUS,RUNTIME,FILESYSTEM,plid,null );
END;
END; 2)I am using a Windows Vista machine and using Sun's plugin JRE5 update 16 in my machine to run the forms through my browser(IE7)
It works fine when connecting to my applicatioon server
For example,
http://the_app_server:port/forms/frmservlet?config=testapp
works fine
But when I try to run the form locally using the form builder:
I have defined in Edit->Preferences (Under runtime tab), the application server URL,like this:
http://<my local computer name>:8889/forms/frmservlet
When trying to run , it asks me to install Jinitiator
why is this?
I even tried installing it but when starting the applet, the IE crashes and closes.
With these conditions, how will I figure out why the report is not running?
I am not able to debug as well because I am unable to run the form.
Edited by: Krithi on 06-Jul-2009 01:55hi gregor13, Thanks a lot for the second suggestion, it worked and I am able to run the form locally now
For the first suggestion, you are right, this is what caused the issue.
But I am still not able to do the report successfully..I am able to open the report but no data appears..
I have defined a parameter list called plid
In the original run_product built in, this parameter list was passed.
Please let me know how can I implement this using the web.show_document.
My code is below, which works except no parameter is passed.I need help in this one please.
DECLARE
plid paramlist;
the_param varchar2(15) := 'tmpdata';
v_process varchar2(10);
v_show_document VARCHAR2 (2000) := '/reports/rwservlet?';
v_report_server VARCHAR2 (30) := 'myservername';
rep_url varchar2(2000);
BEGIN
If (:RADIO_GROUP31 in('ROD_REP','RSLB_REP','GEO_IMP','LBL_IMP')
And :FILENAME4 IS NULL ) Then
Message('A Filename is required to run the selected report');
Raise FORM_TRIGGER_FAILURE;
Elsif (:RADIO_GROUP31 in('OPT_RUN','SDF_RUN')
And :DELIVERY_OFFICE_ID4 IS NULL ) Then
Message('A Delivery Office Id is required to run the selected report');
Raise FORM_TRIGGER_FAILURE;
End If;
v_process := :RADIO_GROUP31;
BEGIN
plid := get_parameter_list(the_param);
IF NOT id_null(plid) THEN
destroy_parameter_list(plid);
END IF;
plid := create_parameter_list(the_param);
add_parameter(plid, 'delivery_office_id', TEXT_PARAMETER,:DELIVERY_OFFICE_ID4);
add_parameter(plid, 'filename', TEXT_PARAMETER,:FILENAME4);
add_parameter(plid, 'p_opt_batch_id', TEXT_PARAMETER,:OPT_BATCH_ID);
add_parameter(plid, 'p_sum_det', TEXT_PARAMETER,:SUM_DET_PB);
add_parameter(plid, 'process', TEXT_PARAMETER,v_process);
add_Parameter(plid, 'PARAMFORM', TEXT_PARAMETER, 'NO');
/*Display report in the browser*/
v_show_document := v_show_document
-- Report server
|| '&server='
|| v_report_server
-- Report name
|| '&report=APPROCREP.rdf'
-- Reports parameters
|| '&userid=<username>/<PW>@DB'
|| '&destype=CACHE'
|| '&desformat=PDF';
web.show_document (v_show_document);
END;
END;Note:forms upgrade assistant did not work for me.I was ale to convert the form but again more errors when running
So I have decided to fix this manually -
ORA-00933 - Error in PL/SQL for Form with report.
Hello,
I am getting this error :
failed to parse SQL query:
ORA-00933: SQL command not properly ended
and my PL/SQL function body returning SQL is as follows:
Declare
q varchar2(32767);
w varchar2(4000);
v_total varchar2(10);
Begin
v_total:='TOTAL' ;
q:=' SELECT ASR_DB_CLIENT.CLIENT_NAME, ';
q:=q||' ASR_DB_OIS.ACCT_NAME, ';
q:=q||' ASR_DB_OIS.ACCT_NBR, ';
q:=q||' ASR_DB_OIS.INCEPT_DT, ';
q:=q||' asr_db_prod.MKT_CODE, ';
q:=q||' asr_db_prod.asst_clss, ';
q:=q||' ASR_DB_OIS.PROD_CODE, ';
q:=q||' ASR_DB_OIS.GROUP_CODE, ';
q:=q||' ASR_DB_PLAN.TAX_STAT, ';
q:=q||' asr_db_clnt_type.clnt_type_name, ';
q:=q||' asr_db_plan_type.plan_type_name, ';
q:=q||' ASR_DB_OIS.ACCT_type, ';
q:=q||' ASR_DB_PLAN.CNTRY_CODE, ';
q:=q||' ASR_DB_OIS.DISCRET_FLAG, ';
q:=q||' ASR_DB_OIS.ASST_BAL ';
q:=q||' FROM ASR_DB_OIS, ASR_DB_PLAN, ASR_DB_CLIENT, ASR_DB_PROD, ';
q:=q||' asr_db_plan_type, ';
q:=q||' asr_db_Clnt_type ';
q:=q||' WHERE';
q:=q||' ASR_DB_OIS.PLAN_ID = ASR_DB_PLAN.PLAN_ID and ';
q:=q||' ASR_DB_OIS.as_of_dt = ASR_DB_PLAN.as_of_dt and ';
q:=q||' ASR_DB_PLAN.CLIENT_ID = ASR_DB_CLIENT.CLIENT_ID and ';
q:=q||' ASR_DB_OIS.as_of_dt = ASR_DB_CLIENT.as_of_dt and ';
q:=q||' asr_db_ois.prod_code = asr_db_prod.prod_code and ';
q:=q||' ASR_DB_PLAN.plan_type_code = ASR_DB_PLAN_type.plan_type_code and ';
q:=q||' ASR_DB_Client.clnt_type_code = ASR_DB_clnt_type.clnt_type_code and ';
q:=q||' ASR_DB_OIS.AS_OF_DT = :p99_asofdate ';
IF :P2_ROLLUPSLEEVE = 'RU'
THEN
q :=q||' and ASR_DB_OIS.PARENT_OIS_ID is null ';
Else
q :=q||' and ASR_DB_OIS.ACCT_TYPE like "%"'||v_total||'"%" ';
q :=q||' and ASR_DB_OIS.PARENT_OIS_ID is not null ';
END IF;
return q;
end;
Why this is failing ?
Is "%"'||v_total||'"%" '; incorrect ?
P2_ROLLUPSLEEVE is a radio button.
Please advise....
Thanks,
HMAnd
Also, I get the following error when I try few other things like
q :=q||' and ASR_DB_OIS.ACCT_TYPE = '||v_total||' ';
or
q :=q||' and ASR_DB_OIS.ACCT_TYPE = "||v_total||" ';
failed to parse SQL query:
ORA-00904: "TOTAL": invalid identifier
And
ORA-06550: line 43, column 41: PLS-00103: Encountered the symbol "TOTAL" when expecting one of the following: * & = - + ; < / > at in is mod remainder not rem <> or != or ~= >= <= <> and or like LIKE2_ LIKE4_ LIKEC_ between || member SUBMULTISET_ The symbol "* was inserted before "TOTAL" to continue.
When I try
q :=q||' and ASR_DB_OIS.ACCT_TYPE = "'TOTAL'" ';
Any helpful tips will be much appreciated.
Thanks,
HM
Maybe you are looking for
-
How Save XML Document in a Destination Table
Hi How Save a XML Document Information in Data Table. for Example Create Table MDat (Id Number(6), Description Varchar2(50)) XML Document <Data> <ROW NUMROW="1" ID="1" Description="Dat 01" /ROW> <ROW NUMROW="2" ID="5" Description="Dat 05" /ROW> </DAT
-
My iBooks will not open on my Mac. It keeps crashing/closing unexpectedly.
The iBooks icon isn't even showing; it just a ruler/pencil icon. I recently reinstalled Mavericks due to Yosemite issues.
-
Creating a popup browser window from an applet
Hi, in a java applet that I am developing i use AppletContext.showDocument to load a web-page. The thing is i want this window to be a popup, devoid of toolbar and statusbar, etc. do you have any idea on how i could accomplish this? I tried to do it
-
How to play another tween after the first one is done playing?
I create some tweens in as3, but I want another tween to start only after this one is done playing, how to write that part of code in as? Thank you.
-
(CS5.1) Free Transform and Warp tool causing pixelation and quality drop.
When I free transform and warp a layer to lie flat, sometimes I'll get this harsh pixellation at one end of the layer. It doesn't appear while I'm doing the warp, just suddenly coming up when I hit enter to apply the transformation. So for example, I