Home » Developer & Programmer » Forms » Problem deleting a list element
Problem deleting a list element [message #80880] Tue, 10 December 2002 20:34 Go to next message
priya
Messages: 108
Registered: February 2000
Senior Member
I am getting the following error while trying to delete a list element using DELETE_LIST_ELEMENT built in.
FRM-41331 - Could not delete element from
Following is the code I have used to populate the list item from a record group:

FUNCTION POP_LIST_FROM_RG(p_vrecgroup VARCHAR2,p_vquery VARCHAR2,p_vlistitem VARCHAR2)
RETURN BOOLEAN IS
rg_recgrp RecordGroup;
ret_value NUMBER;
BEGIN
rg_recgrp :=find_group(p_vrecgroup);
IF Id_Null(rg_recgrp) THEN
rg_recgrp := create_group_from_query (p_vrecgroup,p_vquery);
ret_value := Populate_Group(p_vrecgroup);

IF ret_value != 0 then
return FALSE;
END IF;
clear_list(p_vlistitem);
Populate_List(p_vlistitem,rg_recgrp);
ELSE
return FALSE;
END IF;

Any idea how to avoid this problem.
Re: Problem deleting a list element [message #80885 is a reply to message #80880] Wed, 11 December 2002 07:17 Go to previous message
ram kumar
Messages: 113
Registered: August 2002
Senior Member
Hi,
i dint see any code to delete as you mentioned since you are using delete_list_element
make sure that element list index exist already and delete it in reverse..hope you got what i am telling you..
update me if not i can send you example fmb
regards
ram
Previous Topic: Re: How to run report from forms4.5
Next Topic: 40405 no changes to save
Goto Forum:
  


Current Time: Thu Mar 28 15:36:37 CDT 2024