frm-12001 Cannot Create Record group [message #158743] |
Tue, 14 February 2006 03:17 |
Atul P
Messages: 61 Registered: June 2003 Location: Mumbai-Jakarta
|
Member |
|
|
HI
I am using forms 6i.
I have a form where I use one LOV and multiple
Record Groups for the same.
Till today I had 6 Record groups.
However now when i wish to add one more Record Group it does not allow.
It says
frm-12001 (Cannot Create the Record Group (Check your Query)
Also if I wish to change the Query for existing record Groups then also the same error comes.
The queries are 100% correct and simple.
however if i change the Query to
"select 1 from dual" it works fine.
Trust me my queries are correct still cannot create or change the Record Groups.
Thks in Advance
Atul P
|
|
|
|
|
Re: frm-12001 Cannot Create Record group [message #158762 is a reply to message #158743] |
Tue, 14 February 2006 04:56 |
vban2000
Messages: 207 Registered: March 2005
|
Senior Member |
|
|
Hi Atul P
Suspecting you should use double single quote ('') instread of one single quote (')
As an example (which I hope it helps..)
-- This is my SQL query
SELECT ref_desc, ref_code
FROM REFERENCES
WHERE ref_type = 'SALE_CAT' AND ref_code = :parameter.p_category
ORDER BY 2
now, to put in the form, this becomes my query
DECLARE
TEMP NUMBER;
rg_id recordgroup;
BEGIN
rg_id :=
CREATE_GROUP_FROM_QUERY ('CGDV$DLRG',
'SELECT REF_DESC, REF_CODE '
|| 'FROM REFERENCES '
|| 'WHERE REF_TYPE = ''SALE_CAT'' '
|| 'AND REF_CODE = '''
|| :parameter.p_category
|| ''' '
|| 'ORDER BY 2'
);
TEMP := POPULATE_GROUP (rg_id);
POPULATE_LIST ('CTLBLK.CATEGORY', rg_id);
DELETE_GROUP (rg_id);
END;
Hope this helps...
regards
AnDy
|
|
|
|
|
|
|
|
|
|
Re: frm-12001 Cannot Create Record group [message #158900 is a reply to message #158743] |
Wed, 15 February 2006 00:32 |
vban2000
Messages: 207 Registered: March 2005
|
Senior Member |
|
|
glad it worked.. and a found **strange** BUGs in the Form Builder!
Could it be the OC4J? Sometime ago, I was doing some Math calculation in the Form... However, the result is always wrong? (compare to my manual calculation..). After a very long struggle, I decided to close the OC4J and restart it again. and (magically) the result is correct.. (some kind of bug in OC4J??)
regards
AnDy
|
|
|
|
|
|