how run query when record change and others (merged) [message #160660] |
Mon, 27 February 2006 22:39 |
mfa786
Messages: 210 Registered: February 2006 Location: karachi
|
Senior Member |
|
|
Hi master
Sir
I use enter_query through button and give 10 in deptno textbox
But I execute_query through button no give result
An use form menu then give result easily what happen
Enter_query code
Go_block(‘emp’);
Enter_query; execute_query code
Go_block(‘emp’);
execute_query; and
execute_query code
and how use option button
please give me idea
thanking you
aamir
Upd mod: remove blanks lines and add code tags
[Updated on: Sun, 05 March 2006 23:06] by Moderator Report message to a moderator
|
|
|
|
|
how run query when record change or navegation & how when record change then my trigger run and [message #160932 is a reply to message #160660] |
Wed, 01 March 2006 01:14 |
mfa786
Messages: 210 Registered: February 2006 Location: karachi
|
Senior Member |
|
|
Hi master
Sir,
I master and detail system such as dept and emp
Emp in grid format where I put code of manager name
When emp change then display his manager name
I put textbox in grid database property no
See my code
When_validate_item
begin
select managername into :emp.test from managertable
where managerid =:voudetail. managerid;
end;
I put this code on time but when I click in item then give manager name in test textbox
When I use navigation button no replace value in test textbox
Please give me idea which event I use
Thanking you
Aamir
|
|
|
how run query when record change or navegation [message #160942 is a reply to message #160932] |
Wed, 01 March 2006 01:41 |
mfa786
Messages: 210 Registered: February 2006 Location: karachi
|
Senior Member |
|
|
Hi master
Sir sorry i again post my problem ,
add more detail
i select manager id by lov then lov move manager name in textbox but view time how move manager name in textbox
I master and detail system such as dept and emp
Emp in grid format where I put code of manager name
When emp change then display his manager name
I put textbox in grid database property no
See my code
When_validate_item
begin
select managername into :emp.test from managertable
where managerid =:voudetail. managerid;
end;
I put this code on time but when I click in item then give manager name in test textbox
When I use navigation button no replace value in test textbox
Please give me idea which event I use
Thanking you
Aamir
|
|
|
|
execute query on option buttion as per user desire [message #161112 is a reply to message #160660] |
Thu, 02 March 2006 01:12 |
mfa786
Messages: 210 Registered: February 2006 Location: karachi
|
Senior Member |
|
|
Hi master
Sir
I have one form and three option button
1-jv journal voucher
2-bp bank payment
3-cp cash payment
my requirement is when my user select any one option then trigger fire and fetches the related record such as
select * from vouchertable where vtype =’jv’
please give me idea and sample where I put my query or which event I use
thanking you
Aamir
Desire
|
|
|
|
execute query error [message #161144 is a reply to message #161079] |
Thu, 02 March 2006 04:27 |
mfa786
Messages: 210 Registered: February 2006 Location: karachi
|
Senior Member |
|
|
thanks for your reply
sir that problem i solved by post_chage envent
now am in new problum
I have one form and three option button
1-jv journal voucher
2-bp bank payment
3-cp cash payment
my requirement is when my user select any one option then trigger fire and fetches the related record such as
select * from vouchertable where vtype =’jv’
some body gie my idea and sample code as underblow
sir when i put this code on when_button_press
go_block('emp');
enter_query;
:emp.deptno := 10;
execute_query;
then give this error
Frm-40105 : unable to resolve reference to item 20.
sir please give me idea where i put this code and which envet i use
Thanking you
|
|
|
urgent help : execute_query error [message #161145 is a reply to message #160880] |
Thu, 02 March 2006 04:29 |
mfa786
Messages: 210 Registered: February 2006 Location: karachi
|
Senior Member |
|
|
hi master
thanks for your reply
sir when i put this code on when_button_press go_block('emp');
enter_query;
:emp.deptno := 10;
execute_query; then give this error
Frm-40105 : unable to resolve reference to item 20.
sir please give me idea where i put this code and which envet i use
Thanking you
Aamir
Upd mod: remove blanks lines and add code tags. Please stop with all the blank lines!!
[Updated on: Sun, 05 March 2006 23:08] by Moderator Report message to a moderator
|
|
|
execute query not give any result [message #161428 is a reply to message #160660] |
Sat, 04 March 2006 00:44 |
mfa786
Messages: 210 Registered: February 2006 Location: karachi
|
Senior Member |
|
|
Hi master
Sir I have emp form and I put under blow code in when button press event
When_Button_press
go_block('emp');
enter_query;
:emp.deptno := 10;
execute_query;
but when I press button then no result no data in any field and curser in first column my idea is the execute query not run or these command not run
:emp.deptno := 10;
execute_query;
system not replace data and no run execute_query
please give me idea
Thanking you
Muhammad Fahim Aamir
|
|
|
|
|
|
|
|
|
Re: execute query giveon numeric data but not result string data [message #161605 is a reply to message #161463] |
Mon, 06 March 2006 04:33 |
mfa786
Messages: 210 Registered: February 2006 Location: karachi
|
Senior Member |
|
|
Hi master
sir i use your code but
Sir when I use under blow code for execute query
sir when I use numeric data then run fine but when I use character data then not give any result
with numeric run fine
DECLARE
DD VARCHAR2(15);
BEGIN
DD:=10;
set_block_property('emp', default_where, 'where DEPTNO='||DD);
go_block('emp');
execute_query;
set_block_property('emp', default_where, '');
END;
With character not give any result
DECLARE
DD VARCHAR2(15);
BEGIN
DD:='SALESMAN';
set_block_property('emp', default_where, 'where RTRIM(EMPNO)='||DD);
go_block('emp');
execute_query;
set_block_property('emp', default_where, '');
END;
Please give me any idea
|
|
|
|