Home » Developer & Programmer » Forms » Problem comes in when-list-change
Problem comes in when-list-change [message #144230] Tue, 25 October 2005 10:43 Go to next message
Shaila.Mehra
Messages: 88
Registered: July 2005
Location: mumbai
Member

I APOLOGIES FOR POSTING THIS SAME MESSAGE AGAIN..IN FIRST ONE I MISSED THE ATTACHMENT.

Hi to all.
How do i use list item with out declaring its elements.
But it can take the value from the "When-New-Form-Instance" trigger where
i declare the record group. .
i am attaching my file with this message.
HERE I WANT TO MAKE DEPTNO AS A LIST ITEM.
I am sure that it can be done by i donnt know how.
so please have a look on this, and give your positive comments.

Thanks in advance.

Shaila.
  • Attachment: MODULE3.fmb
    (Size: 48.00KB, Downloaded 1150 times)
Re: Problem comes in when-list-change [message #145412 is a reply to message #144230] Wed, 02 November 2005 23:20 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Did you solve your problem?

David
Re: Problem comes in when-list-change [message #145478 is a reply to message #145412] Thu, 03 November 2005 07:02 Go to previous messageGo to next message
Shaila.Mehra
Messages: 88
Registered: July 2005
Location: mumbai
Member

No David i didnt find solution.
Please give suggestion on this matter.
And sorry for late reply.
Waiting for reply.
Shaila.
Re: Problem comes in when-list-change [message #145587 is a reply to message #145478] Fri, 04 November 2005 00:18 Go to previous message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
You seem to be having the same problem as http://www.orafaq.com/forum/t/54531/67467/.

You have
DECLARE 
	A NUMBER;
	REC RECORDGROUP;
BEGIN
	REC:=CREATE_GROUP_FROM_QUERY('DEPTNO','SELECT DEPTNO,DEPTNO FROM EMP');
	IF NOT ID_NULL(REC) THEN
		A:=POPULATE_GROUP(REC);
		POPULATE_LIST('DEPTNO',REC);
	END IF;
END;
but the reference manual says
/*
** Built-in: CREATE_GROUP_FROM_QUERY
** Example: Create a record group from a query, and populate it.
*/
DECLARE
  rg_name  VARCHAR2(40) := 'Salary_Range';
   rg_id    recordgroup;
   errcode  NUMBER;
BEGIN
/*
** Make sure group doesn't already exist
*/
  rg_id := Find_group(rg_name);
  /*
** If it does not exist, create it and add the two
** necessary columns to it.
*/
  
  IF Id_null(rg_id) THEN
    rg_id := Create_group_from_query(rg_name,
                                     'SELECT SAL-MOD(SAL,1000) BASE_SAL_RANGE,' || 'COUNT(EMPNO) EMPS_IN_RANGE ' || 'FROM EMP ' || 'GROUP BY SAL-MOD(SAL,1000) ' || 'ORDER BY 1');
  END IF;
  /*
** Populate the record group
*/
  
  errcode := Populate_group(rg_id);
END;

I suggest that you try this structure for the population of your group.

David
Previous Topic: delay prob
Next Topic: cascading prompts
Goto Forum:
  


Current Time: Fri Sep 20 01:33:59 CDT 2024