Home » Developer & Programmer » Forms » How to pass data from one list item to another list item
How to pass data from one list item to another list item [message #161016] Wed, 01 March 2006 07:40 Go to next message
sikorsky05
Messages: 40
Registered: October 2005
Member
I have 2 list items in a form...

1st one is being populated by

select pdt_code from genfrac_R_PDT where model = 'PBLH60'
order by pdt_code desc;

2nd one is being populated by

Select f.part_eipn,s.PDT
from GENFRAC_r_part_EIpn f, event_log e,event_status s
where f.PART_EIPN = e.EIPN
and e.log_no = s.log_no
and f.model = 'PBLH60'
and e.model = 'PBLH60'
and s.MODEL = 'PBLH60'
and s.pdt = :block10.model_list (1st list item is in block10)
order by part_eipn;

I want to be able to choose a pdt_code from the 1st List Item and have that filter what gets displayed in the 2nd list item

I am populating the 1st list item by the procedure below.
2nd list item is being populated by a similar procedure.

-- THIS PROCEDURE WILL LOAD THE AIRCRAFT DROPDOWN LIST ITEM.
PROCEDURE LOAD_ACLIST IS
CURSOR cAClist is

select pdt_code from genfrac_R_PDT where model = 'PBLH60'
order by pdt_code desc;

  vAClist  cAClist%rowtype;
  i integer;  
  example  varchar2(10);

BEGIN
	
     -- initialize the list index variable.
     i := 1;	
		
     -- clear_list('OP_EVENT_BUTTON.AC_LIST');
     Clear_list('Block10.model_LIST');
  
     FOR vAClist  in cAClist loop
  	
         --	add_list_element('OP_EVENT_BUTTON.AC_LIST', i,vAClist.item_code,null);
   	     add_list_element('block10.model_LIST', i,vAClist.pdt_code,null);	
  
     end loop;
 	
END;
How can I get this to work???

Upd-mod: Add code tags.

[Updated on: Sun, 05 March 2006 22:21] by Moderator

Report message to a moderator

Re: How to pass data from one list item to another list item [message #161511 is a reply to message #161016] Sun, 05 March 2006 22:23 Go to previous message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Please consider using the native record_group facility that exists in the form builder. It is easier, it works, and there is a wizard to guide you through the process.

David
Previous Topic: Integrate Crystal Reports in Web Form
Next Topic: restricting the user to type non-numeric characters in numeric field
Goto Forum:
  


Current Time: Fri Sep 20 05:35:18 CDT 2024