about button on LOV - Oracle Forms 10g [message #507778] |
Tue, 17 May 2011 21:03 |
|
Hi all!
I hava LOV and i want process events when click button Cancle on LOV then disable a canvas, but i don't know how process it.
where could know events click mouse in button Cancle on LOV - Oracle Forms?
I wish i could recived anserw from you!
Thanks & Regards
[Updated on: Tue, 17 May 2011 21:17] Report message to a moderator
|
|
|
|
|
|
Re: about button on LOV - Oracle Forms 10g [message #508008 is a reply to message #507946] |
Wed, 18 May 2011 22:21 |
|
explain, now i has a Form called "NHAN_VIEN", block1 name is "EMP" on form "NHAN_VIEN" and display canvas name "CV_TB1" , block 2 name "DEPT" on form "NHAN_VIEN" display on canvas "CV_TB2".
Now, i run form and on block1 display full about 'employee': name employee, department, salary... inthere department choose from LOV name "LOV_DEPT". When LOV display, if click in button "OK" then return value of LOV for Item department on block1, if click in button "Cancle" then display canvas2, but i don't know how do it to perform display canvas2 when click in button "Cancle" on LOV name "LOV_DEPT".
please help me.
|
|
|
Re: about button on LOV - Oracle Forms 10g [message #508027 is a reply to message #508008] |
Thu, 19 May 2011 01:54 |
|
Littlefoot
Messages: 21823 Registered: June 2005 Location: Croatia, Europe
|
Senior Member Account Moderator |
|
|
This is what you might do: basically, you don't want to "disable" current canvas, but change focus to another one (which is, actually, an item in another block that is located on a different canvas). Therefore, KEY-LISTVAL trigger (or, if you are opening a LoV by pushing a button, WHEN-BUTTON-PRESSED) might look like this:
go_item('dept.deptno');
list_values;
if :dept.deptno is null then
go_item('emp.empno');
end if;
In other words: if you don't select DEPTNO from list of values, :DEPT.DEPTNO item will remain empty, IF will evaluate to TRUE and you'll GO_ITEM (to another block on another canvas).
|
|
|
|
|
|
|