Home » Developer & Programmer » Forms » List of values contains no entries
List of values contains no entries [message #82900] Tue, 15 July 2003 14:33 Go to next message
Yomar
Messages: 1
Registered: July 2003
Junior Member
I`m having problems with the following trigger key-listval:

BEGIN
IF :CJME.CJME_TIPO_AUXILIAR_2 >= 100 THEN
SET_LOV_PROPERTY('AUXILIAR_2',GROUP_NAME,'CONT_MAESTRO_AUXILIAR_2');
ELSE
IF :CJME.CJME_TIPO_AUXILIAR_2 = 1 THEN
SET_LOV_PROPERTY('AUXILIAR_2',GROUP_NAME,'CAJT_CUENTAS_BANCARIAS');
ELSE
IF :CJME.CJME_TIPO_AUXILIAR_2 = 2 THEN
SET_LOV_PROPERTY('AUXILIAR_2',GROUP_NAME,'CART_BANCOS');
ELSE
IF :CJME.CJME_TIPO_AUXILIAR_2 = 3 THEN
SET_LOV_PROPERTY('AUXILIAR_2',GROUP_NAME,'CART_COMPANIAS');
ELSE
IF :CJME.CJME_TIPO_AUXILIAR_2 = 4 THEN
SET_LOV_PROPERTY('AUXILIAR_2',GROUP_NAME,'CART_PROVEEDORES_SERVICIOS');
ELSE
IF :CJME.CJME_TIPO_AUXILIAR_2 = 5 THEN
SET_LOV_PROPERTY('AUXILIAR_2',GROUP_NAME,'CART_RAMOS_CONTABLES');
ELSE
IF :CJME.CJME_TIPO_AUXILIAR_2 = 15 THEN
SET_LOV_PROPERTY('AUXILIAR_2',GROUP_NAME,'CART_CANALES_DIS');
ELSE
IF :CJME.CJME_TIPO_AUXILIAR_2 = 10 THEN
SET_LOV_PROPERTY('AUXILIAR_2',GROUP_NAME,'CJOS_CJOS_CD_PRO_LOV13');
END IF;
END IF;
END IF;
END IF;
END IF;
END IF;
END IF;
END IF;
LIST_VALUES;
END;

The problem is that when it enters the selection for :CJME.CJME_TIPO_AUXILIAR_2 = 15 in runtime it gives the message "list of values contains no entries" only for this selection.. Can it be a problem with the table? Is there any property for the record group that is missing or erroneous?. The record group has entries when we execute the query. Thanks to everyone for your help...
Re: List of values contains no entries [message #82904 is a reply to message #82900] Wed, 16 July 2003 00:41 Go to previous messageGo to next message
Indrani
Messages: 14
Registered: June 2003
Junior Member
Hi,
No this is not a prob with ur table,this error is coming as because there is no record in ur table against this selection.So here you will have to handle this exception.
where you are writting this lov property after that write the following:
if error_code = 41830 then
message('NO MORE RECORDS ');
raise form_trigger_failure;
Hope this will help u.Try.
end if;
Re: List of values contains no entries [message #82905 is a reply to message #82900] Wed, 16 July 2003 00:42 Go to previous messageGo to next message
Maaher
Messages: 7065
Registered: December 2001
Senior Member
1. Try to make use of ELSIF instead of all these nested IF statements. It is more readable.

2. If you execute the query, it has entries you say. When you test the query of the record group, make sure you're connected with the same username you use in Forms. Verify the value of bind variables (if any present). There's no typo in the RG name? If it fails to populate...

MHE
Re: List of values contains no entries [message #82918 is a reply to message #82904] Thu, 17 July 2003 01:09 Go to previous messageGo to next message
sujit
Messages: 94
Registered: April 2002
Member
hi,
First populate your record group.If it fetches 0 rows then display aalert that no record present.

Declare
n number;
b boolean;
begin
n := populate_group('rg_record_group');--your Record Group Name
if n<>0 then
---NO RECORD PRESENT
else
show_lov('LOV_NAME');
end if;

Sujit
Re: List of values contains no entries [message #82919 is a reply to message #82904] Thu, 17 July 2003 01:10 Go to previous message
sujit
Messages: 94
Registered: April 2002
Member
hi,
First populate your record group.If it fetches 0 rows then display aalert that no record present.

Declare
n number;
b boolean;
begin
n := populate_group('rg_record_group');--your Record Group Name
if n<>0 then
---NO RECORD PRESENT
else
b:= show_lov('LOV_NAME');
end if;

Sujit
Previous Topic: A tool for Oracle Report 6i , It is useful
Next Topic: How to get only the block name
Goto Forum:
  


Current Time: Fri May 10 04:42:34 CDT 2024