Home » Developer & Programmer » Forms » dynamic drop down list.....
dynamic drop down list..... [message #174567] Mon, 29 May 2006 14:27 Go to next message
imtiazmasud
Messages: 49
Registered: May 2005
Location: Bangladesh
Member

Friends,

Suppose i have a form and there is a drop down and many other components in the form...in this form,i want that my drop down list elements will not be static but dynamic,i want to show data base elements in this drop down list as i query from the database.........please help me
imtiaz-masud

[Updated on: Mon, 29 May 2006 14:28]

Report message to a moderator

Re: dynamic drop down list..... [message #174604 is a reply to message #174567] Tue, 30 May 2006 01:14 Go to previous messageGo to next message
Maaher
Messages: 7065
Registered: December 2001
Senior Member
Have you tried looking at ADD_LIST_ELEMENT? And why don't you use a LOV?

MHE
Re: dynamic drop down list..... [message #174961 is a reply to message #174604] Wed, 31 May 2006 03:44 Go to previous messageGo to next message
oracleproblem
Messages: 47
Registered: May 2006
Location: Dhaka
Member
sir,
many project i use love but not use dynamic drop down list
please help me with example
masud
Re: dynamic drop down list..... [message #174964 is a reply to message #174567] Wed, 31 May 2006 04:26 Go to previous message
Rehan Mirza
Messages: 67
Registered: July 2004
Location: Pakistan
Member

Masud Create this procedure and then call it in when-New-Form-Instance

PROCEDURE Add_List_Dynamic(p_List in Varchar2) IS
CURSOR Dept_Cur IS (SELECT DeptNo,DName FROM Dept);
A NUMBER := 0;
BEGIN
CLEAR_LIST(p_List);
FOR Dp IN Dept_Cur LOOP
A := A + 1;
ADD_LIST_ELEMENT(p_List,A,dp.DName,dp.DeptNo);
END LOOP;
END;


When-New-Form-Instance
Add_List_Dynamic('Emp.DeptNo');


you also use record group and populte list through it
if you need more assistance please remember me

Best regards
R E H A N M I R Z A
Previous Topic: todays date and current time
Next Topic: display values in control block
Goto Forum:
  


Current Time: Fri Sep 20 11:51:37 CDT 2024