Bind Variable error in script
Following piece of code when removed my procedure executes without any error. But when included it shows error.
Bind Variable "mi" is NOT DECLARED.
I am not getting what is the problem with the code.
i am using oracle 11g.
--increment day
v_hour_counter:=v_hour_counter+1;
if v_hour_counter>=24 then
v_hour_counter:=0;
v_calCurrentDate:=null;
select to_char(to_date(v_calDate,'dd/mm/rrrr hh24:mi:ss')+1,'dd/mm/rrrr hh24:mi:ss')
into v_calCurrentDate
from dual;
select to_date(v_calDate,'dd/mm/rrrr hh24:mi:ss')+1
into v_calDate
from dual;
end if;
--end increment day
--increment hours
select to_char(to_date(v_calCurrentDate,'dd/mm/yyyy hh24:mi:ss')+1/24,'dd/mm/yyyy hh24:mi:ss')
into v_calCurrentDate
from dual;
--end increment hours
DBMS_OUTPUT.PUT_LINE('*v_equipment_id* :' || v_equipment_id);
DBMS_OUTPUT.PUT_LINE('*date* :' || v_cerresult);
DBMS_OUTPUT.PUT_LINE('*v_cerresult* :' || v_cerresult);
--DBMS_OUTPUT.PUT_LINE(':' || v_calCurrentDate);
INSERT INTO T_CALCULATED_CER ( EQUIPMENT_NO,
CER_FOR_DATE,
BOILER_CALCULATED_CER,
CREATED_BY,
CREATED_DATE,
UPDATED_DATE )
VALUES ( v_equipment_id,
to_date(v_calCurrentDate,'dd/mm/yyyy hh24:mi:ss'),
v_cerresult,
(select USF_GET_CONFIG('SYS_USER','CH') from dual),
sysdate,
sysdate);
Need help..
regards,
Amit
>
to_date(v_calCurrentDate,'dd/mm/yyyy hh24:mi:ss'),
>
The ':mi' above is being interpreted as a bind variable in sql*plus.
Use SET DEF OFF to stop that.
See the SQL*Plus User's Guide
http://docs.oracle.com/cd/B28359_01/server.111/b31189/ch12040.htm
>
SET DEF[INE] {& | c | ON | OFF}
Sets the character used to prefix substitution variables to c.
ON or OFF controls whether SQL*Plus will scan commands for substitution variables and replace them with their values. ON changes the value of c back to the default '&', not the most recently used character. The setting of DEFINE to OFF overrides the setting of the SCAN variable.
See SET SCAN ON(obsolete) for more information on the SCAN variable.
Similar Messages
-
Getting a bad bind variable error while compiling a custom form in R12
Hi,
I am getting a bad bind variable error while compiling a custom form.
I tried setting the forms_path variable and I am still getting the error. Can anyone please suggest what can be done?
DECLARE
BEGIN
IF :parameter.p_line_ship_to = 'T'
THEN
IF :SYSTEM.cursor_item = 'LINE.SHIP_TO'
THEN
:parameter.lov_num_param1 := :line.ship_to_customer_id;
oe_lines.ship_to ('WHEN-VALIDATE-ITEM');
:parameter.lov_num_param1 := :line.ship_to_customer_id;
END IF;
:parameter.p_line_ship_to := 'F';
END IF;
END;
I am getting this error:
Bad bind variable 'parameter.p_line_ship_to'The Parameter is not defined in the form.. But, this form is already been compiled and deployed.. I have to make some changes to the form and tried to compile it, when i am getting this error. Is it possible that the parameter would be defined in some other form or can this error be due to some other reasons?
Thanks in Advance. -
Bind variable error while adding dynamic where clause to VO query
hi
i have extended a VO and in the VOImpl i have written the following code
public class HzPuiClassificationListVOExImpl extends HzPuiClassificationListVOImpl
public void initQuery(String partyId, String s1, String classCode)
/* Logging Code*/
if(this.isLoggingEnabled(OAFwkConstants.PROCEDURE))
{this.writeDiagnostics(this," > initQuery() , partyId ="+partyId+" , s1 ="+s1+", classCode="+classCode,OAFwkConstants.PROCEDURE);}
setWhereClauseParams(null);
setWhereClauseParam(0, classCode);
setWhereClauseParam(1, classCode);
setWhereClauseParam(2, partyId);
String query = super.getQuery();
* Check if the whereClause is already present
if(query!=null && query.toUpperCase().indexOf("AAAAA") == -1)
OAApplicationModule am = (OAApplicationModule)this.getApplicationModule();
OADBTransaction oadbTxn = am.getOADBTransaction();
String whereClause = " class_category IN ("+
*" SELECT flv.lookup_code"+*
*" FROM fnd_lookup_values flv, fnd_lookup_values_dfv dfv"+*
*" WHERE flv.rowid = dfv.row_id"+*
*" AND flv.lookup_type = 'XXXXX'"+*
*" AND dfv.context_value = flv.lookup_type"+*
*" AND dfv.oco_enabled = 'Y' "+*
this.addWhereClause(whereClause);
this.executeQuery();
* This is the default constructor (do not remove)
public HzPuiClassificationListVOExImpl()
when i run the page i get this error
java.sql.SQLException: Missing IN or OUT parameter at index:: 2
the original vo query below has 3 bind variables
SELECT *
FROM (SELECT *
FROM (SELECT cc.class_category
,l.meaning
FROM hz_class_categories cc
,fnd_lookup_types_vl l
WHERE cc.class_category = l.lookup_type
AND l.view_application_id = 222
AND EXISTS (
SELECT NULL
FROM hz_code_assignments ca
WHERE ca.owner_table_name = 'HZ_CLASS_CATEGORIES'
AND ca.owner_table_id IS NULL
AND ca.owner_table_key_1 = cc.class_category
AND ca.class_category = 'CLASS_CATEGORY_GROUP'
AND ca.class_code = :1
AND NVL (ca.status, 'A') = 'A'
AND SYSDATE BETWEEN ca.start_date_active AND NVL (ca.end_date_active, SYSDATE + 1))
UNION ALL
SELECT cc.class_category
,l.meaning
FROM hz_class_categories cc
,fnd_lookup_types_vl l
WHERE cc.class_category = l.lookup_type
AND l.view_application_id = 222
AND 'INDUSTRIAL_GROUP' <> :2
AND NOT EXISTS (
SELECT NULL
FROM hz_code_assignments ca
WHERE ca.owner_table_name = 'HZ_CLASS_CATEGORIES'
AND ca.owner_table_id IS NULL
AND ca.owner_table_key_1 = cc.class_category
AND ca.class_category = 'CLASS_CATEGORY_GROUP'
AND NVL (ca.status, 'A') = 'A'
AND SYSDATE BETWEEN ca.start_date_active AND NVL (ca.end_date_active, SYSDATE + 1))
AND hz_classification_v2pub.is_valid_category ('HZ_PARTIES'
,cc.class_category
,:3) = 'T') a
WHERE EXISTS (
SELECT NULL
FROM hz_class_code_denorm
WHERE class_category = a.class_category
AND TRUNC (SYSDATE) BETWEEN NVL (start_date_active, TRUNC (SYSDATE)) AND NVL (end_date_active, TRUNC (SYSDATE))
AND enabled_flag = 'Y'
AND LANGUAGE = USERENV ('LANG'))) qrslt
A similar error was discussed at this link but it did not give final solution
[http://kr.forums.oracle.com/forums/thread.jspa?threadID=618451]
help me to solve this issue..
Thanks,
Varun
Edited by: user10707840 on May 19, 2009 7:18 AMits not the AM code .. its the code in VOImpl...
the same code is working in 11i but when its migrated to R12 its giving this error..
The original seeded VO query in 11i contains the same bind variable :1 at three places
SELECT * FROM (select class_category, meaning from hz_class_categories, fnd_lookup_types_vl l where hz_class_categories.class_category = l.lookup_type and l.view_application_id = 222 and class_category in (select owner_table_key_1 from hz_code_assignments ca where ca.owner_table_name = 'HZ_CLASS_CATEGORIES' and ca.owner_table_id is null and ca.class_category = 'CLASS_CATEGORY_GROUP' and ca.class_code = :1 and nvl(ca.status, 'A') = 'A' and sysdate between ca.start_date_active and nvl(ca.end_date_active, sysdate+1)) union all select cc.class_category , meaning from hz_class_categories cc, fnd_lookup_types_vl l, hz_class_category_uses cu where cc.CLASS_CATEGORY = cu.class_category AND ( UPPER(CU.ADDITIONAL_WHERE_CLAUSE) LIKE decode(:1, 'ORG_GROUP','%PARTY_TYPE%ORGANIZATION%', 'PERSON_GROUP', '%PARTY_TYPE%PERSON%', '%') or CU.ADDITIONAL_WHERE_CLAUSE IS NULL or UPPER(CU.ADDITIONAL_WHERE_CLAUSE) LIKE '%WHERE 1=1%' ) and cu.owner_table = 'HZ_PARTIES' and cc.class_category = l.lookup_type and l.view_application_id = 222 and cc.class_category not in (select owner_table_key_1 from hz_code_assignments hca where hca.owner_table_name = 'HZ_CLASS_CATEGORIES' and hca.owner_table_id is null and hca.class_category = 'CLASS_CATEGORY_GROUP' and nvl(hca.status, 'A') = 'A' and sysdate between hca.start_date_active and nvl(hca.end_date_active, sysdate+1)) and cc.class_category not in ( 'RELATIONSHIP_TYPE_GROUP', 'CLASS_CATEGORY_GROUP') and 'INDUSTRIAL_GROUP' <> :1) QRSLT ORDER BY meaning
the code working in 11i had only one setWhereClauseParam line i.e. setWhereClauseParam(0, classCode);
when i ran the same code in R12 it errd out..
I checked the original R12 query... it has 3 bind variables :1 , :2 and :3 ... so i added 2 more setWhereClauseParam statements
setWhereClauseParam(1, classCode);
setWhereClauseParam(2, partyId);
but still its giving the same error
ORIGINAL R12 query already posted above... -
'Error 49 bad bind variable' error message.
When I copied a form that has been working from our Linux server to my PC and compiled it, I received many error messages like this in several procedures, functions and triggers:
“Error 49 at line 69, column 10, bad bind variable ‘edit_Dealer.corporation’
Does anybody know why this is? As I said, the app works for the end user from the Linux server.
Thank You.Does the form you copied have any attached libraries or subclassed objects? If so, did you copy the Library and Object source files to your PC as well? If you copied these supporting files already, are they in a directory location that is part of your FORMS_PATH?
Hope this helps,
Craig B-)
If someone's response is helpful or correct, please mark it accordingly. -
Bind variable error while running panel
I'm working on a swing application where the user enters a value and gets a list with search results.
I performed Following steps:
1) Created View Object (join over three tables) with a bind variable
2) Added View Object to Application module
3) created new empty runnable panel
4) Added a text field and a button to this panel
5) Added following code to button
private void jButton1_actionPerformed(ActionEvent e)
String text = jTextField1. getText();
ViewObject vO = panelBinding.getApplication().findCustomViewObject("ListSampleQueryView1", "lt.moe.icisem.model.samples.view.ListSampleQueryViewDefImpl");
vO.setWhereClauseParams(new Object[]{text});
vO.executeQuery();
When I testrun the panel, get following exception
oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation.
Question: Why is the query statement issued while running the panel and not while I press tht button? And how can I avoid this error?
Please help.
Thanks.
JanI'm working on a swing application where the user enters a value and gets a list with search results.
I performed Following steps:
1) Created View Object (join over three tables) with a bind variable
2) Added View Object to Application module
3) created new empty runnable panel
4) Added a text field and a button to this panel
5) Added following code to button
private void jButton1_actionPerformed(ActionEvent e)
String text = jTextField1. getText();
ViewObject vO = panelBinding.getApplication().findCustomViewObject("ListSampleQueryView1", "lt.moe.icisem.model.samples.view.ListSampleQueryViewDefImpl");
vO.setWhereClauseParams(new Object[]{text});
vO.executeQuery();
When I testrun the panel, get following exception
oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation.
Question: Why is the query statement issued while running the panel and not while I press tht button? And how can I avoid this error?
Please help.
Thanks.
Jan -
Hi guys
i need to pass "student:1234567" like values to below mentioned function.... but after passing this value i am getting error
SP2-0552: Bind variable "1234567" not declared.
Please help me what i am doing wrong.
create or replace function func_get_employee(emp_id in varchar2)
return varchar2
as
return_value varchar2(100);
begin
return_value := emp_id;
for indx in 0 .. 20
loop
if (substr(emp_id,1,8) = 'student:') then
return_value := substr(emp_id,9)
elsif (substr(emp_id,1,6)='staff:') then
return_value := substr(emp_id,7);
elsif (substr(emp_id,1,10)='honorary:') then
return_value := substr(emp_id,11);
else
return_value := emp_id;
end if;
end loop;
return return_value;
end;
/I did not find any issue with your code apart from a missing semi colon on line 10
create or replace function func_get_employee(emp_id in varchar2)
return varchar2
as
return_value varchar2(100);
begin
return_value := emp_id;
for indx in 0 .. 20
loop
if (substr(emp_id,1,8) = 'student:') then
return_value := substr(emp_id,9);
elsif (substr(emp_id,1,6)='staff:') then
return_value := substr(emp_id,7);
elsif (substr(emp_id,1,10)='honorary:') then
return_value := substr(emp_id,11);
else
return_value := emp_id;
end if;
end loop;
return return_value;
end;
PRAZY@11gR1> /
Function created.
Elapsed: 00:00:00.04
PRAZY@11gR1> select func_get_employee('student:1234567') from dual;
FUNC_GET_EMPLOYEE('STUDENT:1234567')
1234567
Elapsed: 00:00:00.00Regards,
Prazy -
Hi all,
I have this code in a PB trigger:
declare
v_alert_button number;
invalid BOOLEAN;
CURSOR C_REFNO_SEARCH IS
SELECT * FROM REFNO_LIB.REFNO_02000_IDENT
WHERE CAGECDXH = :CONTROL.C_CAGECDXH AND
REFNUMHA = :CONTROL.C_REFNUMHA;
BEGIN
OPEN C_REFNO_SEARCH;
FETCH C_REFNO_SEARCH INTO :REFNO_02000_IDENT;
invalid := C_REFNO_SEARCH%NOTFOUND;
IF invalid then
V_ALERT_BUTTON := SHOW_ALERT('REFNUM_NOT_FOUND');
END IF;
CLOSE C_REFNO_SEARCH;
REDISPLAY;
END;
I can't compile this trigger code cleanly. I get a error on the FETCH statment pointing to ":REFNO_02000_IDENT" as a bad bind variable. I'm trying to populate the ":REFNO_02000-IDENT" data block without having to key in over 50 items that are in the block.
Any help is appreciated.
ThanksIt's not possible what you want. I guess you have to key in the items. Forms tries to find the item :REFNO_02000_IDENT and can't find it becuase it doesn't exist. Thats why you get bad bind variable.
-
Bad bind variable error on creating trigger
hi
im trying to create a trigger on a table in Oracle and I keep gettin this error:
PLS-00049: bad bind variable 'NEW.ID'
TeamID is a primary Key, it creates the sequence fine, but i get the error on the create trigger,
CREATE TABLE TBLTEAMS
TEAMID NUMBER(5),
NAME VARCHAR2(50 BYTE),
MANAGER VARCHAR2(50 BYTE),
COSTCENTRE NUMBER(9),
PARENTTEAMID NUMBER(5)
create sequence seq_Teamsautonumber;
create trigger trg_Teamsautonumber
before insert on tblteams
for each row
begin
select seq_Teamsautonumber.nextval into :new.id from dual;
end;
any ideas?You have said
:new.idthat means you are trying to load the sequence value into a column that doesn't exist in your table.
you would need to use
:new.teamidAssuming you are trying to auto-populate the TEAMID column on your table. -
Hi Masters
I have a query that is used to create a group for the form.
original query
gr_query varchar2(1000) := 'select col1 a,col1 b from my_table where col2 = '''||:datablock1.item||'''' ;
this query is working fine in another form.
the problem is this query is not getting executed.
while
gr_query varchar2(1000) := 'select col1 a,col1 b from my_table' ;
is working fine and populating the listitem.
May i know what is the problem with that query and what care we have to take regarding the bind variables.Hi Neel
I am using code some thing like this.
declare
v_query_result VARCHAR2(20) ;
v_group_query VARCHAR2(1000) := 'select col1 a, col1 b from my_table where col2 = '''||v_query_result||''';
begin
select col2 into v_query_result from my_table where rec_id = 1;
grp_id := find_group('MY_GROUP');
if id_null(grp_id) then
grp_id := create_group_from_query('MY_GROUP',v_group_query);
error_code := populate_group(grp_id);
else
error_code := populate_group(grp_id);
end if;
if error_code = 0 then
clear_list('DATA_BLOCK.LIST_ITEM');
PUPOLATE_LIST('DATA_BLOCK.LIST_ITEM',grp_id);
else
MESSAGE('ERRor populating List Item.);
end if;
exception
when others then
Message('ERROR occured');
end;
I am able to print the value in log file using text_io. but the value is not getting replaced in query.
the query is getting printed as select col1 a, col1 b from my_table where col2 = '' in the text_io file.
I am not sure what is wrong with it.
even if i assign the value to the text item and then use the text item value in the query as
'select col1 a, col1 b from my_table where col2 = '''||:DATA_BLOCK.TEXT_ITEM||''';
it is giving the same. -
CG$CTRL Bad Bind Variable error Migrating from Forms 4.5 to Forms 6
Hi All,
I have an old application deployed using Forms 4.5 runtime that I would like to migrate to the latest version of Forms.
My intended migration path was Forms 4.5 -> Forms 6i -> Forms 10g.
After successfully converting the source 4.5 .pll library files to Forms 6i by opening the files in the Forms 6i Forms Builder (6.0.8.25) and then saving the library files in the FORMS60_PATH I now encounter the following error that is hindering the migration process:
Error 49 at line 6, column 3
bad bind variable 'CG$CTRL.SE_CODE'
I have read some other posts that mention Headstart Templates. Does anyone know if these CG$xxxx program units are part of Headstart? And if so, how can I get the Template files?
Thanks in advance,
Gary.CG$CTRL are cerated when the forms are developed using the designer...
Oracle Forms requires that every item in a form must belong to a block, but these generated non-base table items are not associated with any module component. There is therefore no repository definition of a data block to which the generated items can belong.
Form Generator resolves this situation by creating a control block to which the generated non-base table items can belong. The generated block is given the name CG$CTRL.
The CG$CTRL block has no physical representation in the generated form and has none of the properties (e.g. block decoration) associated with generated data blocks. The CG$CTRL block is simply a logical object to which generated
So try to find out in which form the above procedure /program unit is being called and then modify the pll accordingly....
Rajesh Alex -
why the following code gives error ???
SET SERVEROUTPUT ON;
DECLARE
v_number_1 NUMBER;
v_number_2 NUMBER(42);
v_number_3 NUMBER(40);
BEGIN:
v_number_1 := 123456789012345678901234567890123456789012345;
v_number_2 := 123456789012345678901234567890123456789012;
v_number_3 := 1234567890123456789012345678901234567890;
DBMS_OUTPUT.PUT_LINE('v_number_1 : ' || v_number_1);
DBMS_OUTPUT.PUT_LINE('v_number_2 : ' || v_number_2);
DBMS_OUTPUT.PUT_LINE('v_number_3 : ' || v_number_3);
END;
the error is
SP2-0552: Bind variable "V_NUMBER_1" not declared.Hi,
- You have a ':' after your BEGIN keyword
- You cannot use number datatype larger than 38 digits
(http://download.oracle.com/docs/cd/B19306_01/server.102/b14220/datatype.htm#sthref3810)
MHO%xe> DECLARE
2 v_number_1 NUMBER;
3 v_number_2 NUMBER;
4 v_number_3 NUMBER;
5 BEGIN
6 v_number_1 := 123456789012345678901234567890123456789012345;
7 v_number_2 := 123456789012345678901234567890123456789012;
8 v_number_3 := 1234567890123456789012345678901234567890;
9 DBMS_OUTPUT.PUT_LINE('v_number_1 : ' || v_number_1);
10 DBMS_OUTPUT.PUT_LINE('v_number_2 : ' || v_number_2);
11 DBMS_OUTPUT.PUT_LINE('v_number_3 : ' || v_number_3);
12 END;
13 /
v_number_1 : 123456789012345678901234567890123456789000000
v_number_2 : 123456789012345678901234567890123456789000
v_number_3 : 1234567890123456789012345678901234567890
PL/SQL-procedure is geslaagd. -
Reg bind variable error in OTL extension.
We have done extension to OTL standard screen where we customised three LOVVO's.These are working fine in most scenario's but soemtimes for specific test cases the query TaskLOV query seems to fail.
Error seen when we try to select the time card/click details of time card:
SELECT * FROM (SELECT DISTINCT task.task_number tasknumber, task.task_name taskname,
task.task_id taskid,task.billable_flag BillableFlag,task.project_id ,
task.start_date StartDate, task.completion_date CompletionDate,
task.scheduled_start_date ScheduledStartDate,task.scheduled_finish_date ScheduledFinishDate,
task.chargeable_flag,
NULL project_number, task.workplan -- count(1)
FROM pac_online_task_v task
WHERE TRUNC(TASK.COMPLETION_DATE) >= TRUNC(FND_DATE.CANONICAL_TO_DATE(:1))
AND TRUNC(TASK.START_DATE) <= TRUNC(FND_DATE.CANONICAL_TO_DATE(:2))
and TRUNC(fnd_date.canonical_to_date (:3)) between to_date('01-mar-1900') and to_date('01-mar-4020')
and nvl(task.chargeable_flag,'N')='Y') QRSLT WHERE (TaskId = :1) ORDER BY TaskNumber
"Not All variables Bound."
Th LDT file for bind pramas is as follows.
BEGIN HXC_LAYOUT_COMP_QUALIFIERS "Projects Timecard Layout - Task"
OWNER = "ORACLE"
QUALIFIER_ATTRIBUTE_CATEGORY = "LOV"
QUALIFIER_ATTRIBUTE1 = "XXTaskLOVVO"
QUALIFIER_ATTRIBUTE2 = "N"
QUALIFIER_ATTRIBUTE3 = "XXHXC_CUI_TASK_LOV"
QUALIFIER_ATTRIBUTE4 = "809"
QUALIFIER_ATTRIBUTE5 = "12"
QUALIFIER_ATTRIBUTE6 =
"Xxtaskname|TASK-DISPLAY|CRITERIA|N|Xxtaskprojid|PROJECT|PASSIVE_CRITERIA|Y|Xxtaskid|TASK|RESULT|N|Xxtaskname|TASK-DISPLAY|RESULT|N"
QUALIFIER_ATTRIBUTE8 = "TaskName"
QUALIFIER_ATTRIBUTE9 = "TaskId#NUMBER"
QUALIFIER_ATTRIBUTE10 = "custom.XXTaskLOVVO"
QUALIFIER_ATTRIBUTE11= "TIMECARD_BIND_START_DATE|TIMECARD_BIND_END_DATE|TIMECARD_BIND_END_DATE"
QUALIFIER_ATTRIBUTE14 =
"Xxtaskprojid|PROJECT|Y#Xxtaskprojnum|PROJECT-DISPLAY|Y"
QUALIFIER_ATTRIBUTE15 =
"project_id = ::Xxtaskprojid#upper(project_number) = upper(::Xxtaskprojnum)"
QUALIFIER_ATTRIBUTE17 = "OraTableCellText"
QUALIFIER_ATTRIBUTE20 = "N"
QUALIFIER_ATTRIBUTE21 = "Y"
QUALIFIER_ATTRIBUTE22 = "L"
QUALIFIER_ATTRIBUTE25 = "FLEX"
QUALIFIER_ATTRIBUTE26 = "PROJECTS"
QUALIFIER_ATTRIBUTE27 = "Attribute2"
QUALIFIER_ATTRIBUTE28 = "TASK"
LAST_UPDATE_DATE = "2004/05/24"
END HXC_LAYOUT_COMP_QUALIFIERS
I try to auto populate some values in screen and this error occurs....even without clicking on the lov. I am not sure how the task_id is getting appended at run time when we have different passive criteria's here.Am not aware if some internal validation of LOV's is getting fired when some values are autopopulated in the lov field of base page..Let me know if any bind params are incorrect in the ldt file.
Inputs on this would be really helpful.
Thanks,
SwarnaWHERE TRUNC(TASK.COMPLETION_DATE) >= TRUNC(FND_DATE.CANONICAL_TO_DATE(:1))
AND TRUNC(TASK.START_DATE) <= TRUNC(FND_DATE.CANONICAL_TO_DATE(:2))
and TRUNC(fnd_date.canonical_to_date (:3)) between to_date('01-mar-1900') and to_date('01-mar-4020')
and nvl(task.chargeable_flag,'N')='Y') QRSLT WHERE (TaskId = :1) ORDER BY TaskNumberBind parameter mis match is there.
:1 is used in TRUNC(FND_DATE.CANONICAL_TO_DATE(:1)
and QRSLT WHERE (TaskId = :1)
-Anand -
Bad bind variable error in oracle forms 10g
i have a created a table in oracle database 10g
create table myimage(image_id number, image_name BLOB);
i want insert an image and retrieve an image through programing(don't want block level) in oracle forms 10g
without using java beans(and finely working in both windows XP2 and Solaries)
how can i do this please can anybody give me the source code to do this because i am new in oracle forms.
i need a immediate replay to this answer why because i have urgent requirement on this in my web erp projectYou can use WEBUTIL to do so, but
without using java beans(and finely working in both windows XP2 and Solaries)WEBUTIL also contains javabean. I don't know why you have this restriction, i'd say you won't succeed without any java-bean. -
Calling ASP script from APEX button passing Bind variable
I am looking for some examples or best form for calling asp script from apex button that will pass apex bind variable to asp script to process.
Thanks,s
BobI am surprised by the degree of no replies. I have solved this by using asp redirects such as:
Response.Redirect("test.aspx?UserName="&user)
My formulated solution contains a page with a manually built interactive report. I have a number of bind variables at the top of the reoprt where users can query the information they want based on desginated database columns for this particular report. Once they have the "manual" interactive report displaying what they want, they click a button where a asp script is called with parameters passed that calls a Java based Crystal Reports plugin with the called correspnding report displayed with passed parameters.
Works like a charm!
This solves our reporting needs without having to resort to Bi Publisher (much too expensive) and other third party applications that kinda indicate it can work with apex but provide limited help or best form for doing so.
Bob -
Can i use an item which type is image as bind variable in the insert statement?
When i pass image item of oracle form as a bind variable in the insert statement then "Bad bind variable error" occurs.
Please help me.
- ashrafHello,
No, you cannot. If the image item points to a database BLOB column, Forms will store the image in this column at commit time.
Francois
Maybe you are looking for
-
How to check the validation at data base level as well as current user ente
Dear all i have creation page in that item code will not enter the duplicate values in that creation page contains advanced table user will click on create 15 blank records using add another row suppose in first row user will enter LAPTOP assume this
-
Can this work with my imac to transfer and older video recorder to my computer the box says designed for windows xp? Can anyone help?
-
I'm trying to save my photo book (large hardcover format) as a pdf. When I select 'Save as pdf' it starts saving it - gets to 3 pages and iphoto 'stops responding'. I have force quit iphoto and tried again numerous times, but it keeps doing exactly t
-
I have been using iPhoto 6 since it came out without problems. Yesterday, to solve unrelated problems, I was forced to do a full restore which included photos that were "pre-iPhoto 6". Therefore I had to re-install iPhoto 6. Now iPhoto 6 will not run
-
Why has iTunes Radio stopped working?
So this fun little bit of trivia has not been answered in these forums or on the interwebs. As of 3 weeks ago, when I go to play any station on iTunes Radio, my own or the defaults, the song info will populate but it just sits there as if it's buffer