|
|
Re: Execute query by pressing a button [message #552888 is a reply to message #536729] |
Mon, 30 April 2012 01:11 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
enggnitinjain86gmailco
Messages: 3 Registered: October 2010 Location: delhi
|
Junior Member |
![m](/forum/theme/orafaq/images/google.png)
|
|
Hi
I have two form and in form 1 i added one button and when i press the button then form 1 parameter pass in form 2 nd parameter of forms 1 is text_item ,
i used code when_button_press /
declare
v_user_id user_mast.user_id%type ;
v_user_pass user_mast.user_pass%type ;
ans number ;
Param_List_Name VARCHAR2(20) := 'WHERE_LIST';
Param_List_Id PARAMLIST;
begin
v_user_id := null ;
v_user_pass := null ;
begin
select
user_id,
user_pass
into
v_user_id,
v_user_pass
from
user_mast
where
user_id = rtrim(ltrim(:user_mast.user_id)) and
user_pass = rtrim(ltrim(:user_mast.user_pass)) ;
exception
when no_data_found then
null ;
end;
if v_user_id is null and v_user_pass is null then
set_alert_property('stop_alert',alert_message_text, 'Please enter The Valid ID/PASS') ;
ans := show_alert('stop_alert') ;
else
Param_List_Id := GET_PARAMETER_LIST(Param_List_Name);
IF NOT ID_NULL(Param_List_Id) THEN
DESTROY_PARAMETER_LIST(Param_List_Id);
END IF;
Param_List_Id := CREATE_PARAMETER_LIST(Param_List_Name);
ADD_PARAMETER(Param_List_Id,'REG_QUERY',TEXT_PARAMETER, :USER_ID);
--- here WHERE is the parameter AND USER_NUM is the value of User No
CALL_FORM ('GHPL_INVOICE',HIDE, DO_REPLACE, NO_QUERY_ONLY ,Param_List_Id);
--EXIT_FORM ;
end if;
end;
---------------------------------
And in this code i want to pass user_id and this user id pass form to from
But i want to pass from menu Item
Sir Please help me its very urgent ..
|
|
|
|
|