| During The LOV. Not Select Previously Selected Value [message #326141] |
Tue, 10 June 2008 05:27  |
|
|
Hi, Good Afternoon
I Need to known, When the List of Value (LOV) on Forms has been used, After the Selection of one Document if it possible to not view the selected document.
Eg: (LOV Contain)
Documentno
52060001
52060002
52060003
52060004
I Selected the Documentno has 52060003. After the selection I select another documentno for the continus of the Entry. They were List of Value Display Follows like.
Documentno
52060001
52060002
52060004
If it possible. Please Reply me.
|
|
|
|
|
|
|
|
|
|
| Re: During The LOV. Not Select Previously Selected Value [message #351969 is a reply to message #326141] |
Sat, 04 October 2008 01:26   |
rajarshi_mcasmit
Messages: 7 Registered: September 2008 Location: DELHI
|
Junior Member |
|
|
| cvs_1984 wrote on Tue, 10 June 2008 05:27 | Hi, Good Afternoon
I Need to known, When the List of Value (LOV) on Forms has been used, After the Selection of one Document if it possible to not view the selected document.
Eg: (LOV Contain)
Documentno
52060001
52060002
52060003
52060004
I Selected the Documentno has 52060003. After the selection I select another documentno for the continus of the Entry. They were List of Value Display Follows like.
Documentno
52060001
52060002
52060004
If it possible. Please Reply me.
|
I am also facing same type of problem like at the run time a lov display 10 student name.A block name B3 when first time one name is selected from the lov and in same block before saving data i again open lov which should have 9 record...
|
|
|
|
|
|
|
|
| Re: During The LOV. Not Select Previously Selected Value [message #378973 is a reply to message #352260] |
Sat, 03 January 2009 05:49  |
kamar_19
Messages: 52 Registered: June 2005 Location: pakistan
|
Member |
|
|
aoa
u can change record group query at runtime and in that query u can add NOT IN statement to avoid the selected items.
u can make a list of all these items which have been already selected by making a loop from first record of block to the last record.
example code is written below.
suppose u have emp nos to display in lov.
DECLARE
curr_rec number;
last_rec number;
employees varchar2(1000):='1';
sql_query varchar2(2000);
status number;
BEGIN
curr_rec:=to_number(:System.Cursor_Record);
last_record;
last_rec:=to_number(:System.Cursor_Record);
first_record;
for j in 1..last_rec loop
if :emp_no is not null then
employees:=employees||','||:emp_no;
end if;
next_record;
end loop;
go_record(curr_rec);
sql_query:=' select emp_no from employees where emp_no not in ('||employees||')';
status := Populate_Group_with_query ('EMP',sql_query);
Set_LOV_Property('EMP',GROUP_NAME,'EMP');
Go_item(EMP_NO);
List_Values;
end;
best regards
Qamar abbas
[EDITED by LF: applied [code] tags]
[Updated on: Sat, 03 January 2009 08:18] by Moderator Report message to a moderator
|
|
|
|