Home » Developer & Programmer » Forms » frm-41003 this function cannot be performed here
frm-41003 this function cannot be performed here [message #606110] |
Mon, 20 January 2014 00:25  |
 |
mist598
Messages: 1195 Registered: February 2013 Location: Hyderabad
|
Senior Member |
|
|
Hi all,
I got frm-41003 this function cannot be performed, after i put the empno & click the find button to display the employees details in the stacked canvas.
My Requirement is , enter the empno(7369) click on the find button display records in the stacked canvas , i have create 2 blocks(emp,ctrl), i have written code in the find button in the control block.
when-button-pressed
BEGIN
--GO_BLOCK('EMP');
Message('Emp num : ' ||:Emp.empno);
Set_block_property('EMP', default_where, 'Emp.Empno = :EMP.Empno');
execute_query;
Set_block_property('EMP', default_where, '');
Show_view('EMP_DET_CAN');
EXCEPTION
WHEN no_data_found THEN
Message('no record found');
commit_form;
END;
|
|
|
|
Re: frm-41003 this function cannot be performed here [message #606115 is a reply to message #606113] |
Mon, 20 January 2014 01:08   |
 |
mist598
Messages: 1195 Registered: February 2013 Location: Hyderabad
|
Senior Member |
|
|
Thank You for reply Littlefoot,
I entered 7369 as empno and clicked on the find button it shows alert yes/no/cancel with the Tooltip message as frm-41056 cannot find block invalid id. If press NO then only it returns records, But i want to display 7369 records only & Here I pressed PgDn arrow , it shows all employees records. Suggest me please.
Declare
finalstr varchar2(1000);
dfinalstr varchar2(1000);
BEGIN
finalstr := 'WHERE 1=1';
go_block('EMP');
dfinalstr := Get_block_property('EMP', default_where);
finalstr := finalstr || 'AND empno =' ||( ':EMP.empno' );
Set_block_property('EMP', default_where, finalstr);
Show_view('EMP_DET_CAN');
execute_query();
EXCEPTION
WHEN no_data_found THEN
Message('no record found');
--commit_form;
END;
Thank You
[Updated on: Mon, 20 January 2014 01:08] Report message to a moderator
|
|
|
|
|
|
|
Re: frm-41003 this function cannot be performed here [message #607327 is a reply to message #606131] |
Tue, 04 February 2014 23:18  |
 |
mist598
Messages: 1195 Registered: February 2013 Location: Hyderabad
|
Senior Member |
|
|
Quote:
I got frm-41003 this function cannot be performed, after i put the empno & click the find button to display the employees details in the stacked canvas.
My Requirement is , enter the empno(7369) click on the find button display records in the stacked canvas , i have create 2 blocks(emp,ctrl), i have written code in the find button in the control block.
I found the solution by this code in the button(In control Block)
Set_block_property('EMP', default_where, 'Empno = :EMP.EMPNO');-->Before
Set_block_property('EMP', default_where, 'Empno = '||:EMP.EMPNO); -->Worked
Thank You
|
|
|
Goto Forum:
Current Time: Tue Mar 11 13:48:23 CDT 2025
|