procedure and execute_query [message #349420] |
Sun, 21 September 2008 12:42 |
maher534510
Messages: 25 Registered: September 2008 Location: jordan
|
Junior Member |
|
|
when call this procedure
***********************
PROCEDURE FIND_OFFICE IS
BEGIN
go_block('OFFICE_DATA');
set_block_property('OFFICE_DATA',default_where,'office_id='||:global.p_office_ID);
execute_query(no_commit);
END;
************************
i cannot perform execute_query on that data block why?
|
|
|
|
Re: procedure and execute_query [message #349427 is a reply to message #349420] |
Sun, 21 September 2008 14:21 |
maher534510
Messages: 25 Registered: September 2008 Location: jordan
|
Junior Member |
|
|
okay man
i have table contains offices data
to go to any office_id like office 101
i make global variable contains office_id (number) 101 on the button that can pressed and go to that data .
now in the new form instance for office data form
i was put the code
***********************
PROCEDURE FIND_OFFICE IS
BEGIN
go_block('OFFICE_DATA');
set_block_property('OFFICE_DATA',default_where,'office_id='||:global.p_office_ID);
execute_query(no_commit);
END;
************************
if i delete this code execute_query done succefully
but when i call this procedure error message
can not perform query error
|
|
|
|
Re: procedure and execute_query [message #349493 is a reply to message #349427] |
Mon, 22 September 2008 01:37 |
manu_jariwala
Messages: 20 Registered: August 2005 Location: Surat
|
Junior Member |
|
|
set_block_property('OFFICE_DATA',default_where,'office_id='||:global.p_office_ID);
Hi,
Type this line as:
set_block_property('OFFICE_DATA',default_where,'office_id=:global.p_office_ID');
This could be run.
Regards,
Manish H. Jariwala
|
|
|