RE: Problem with form - group item type
"Stewart, Brian V [IBM Contractor for Sprint]" <[email protected]>
| Newsgroups | gmane.comp.lang.4gl.fourjs.user |
|---|---|
| Message-ID | <[email protected]> |
Jon,
Quick question for you since you didn't include the whole form:
Did you define g1 to be of type group in the ATTRIBUTES section of the FORM definition?
GROUP g1:g1;
Example:
DATABASE FORMONLY
LAYOUT (TEXT="Example Form")
VBOX
GROUP
GRID
{
<G g1 >
Account Number[acct ]
Customer Code [custcd ]
<T table1 >
Customer Name Address Phone Number
[c001 ][c002 ][c003 ]
[c001 ][c002 ][c003 ]
[c001 ][c002 ][c003 ]
[c001 ][c002 ][c003 ]
[c001 ][c002 ][c003 ]
[c001 ][c002 ][c003 ]
[c001 ][c002 ][c003 ]
}
END --GRID
END --GROUP
END --VBOX
ATTRIBUTES
acct = FORMONLY.account TYPE CHAR;
custcd = FORMONLY.customer_code TYPE CHAR;
c001 = FORMONLY.customer_name TYPE CHAR, NOENTRY;
c002 = FORMONLY.address TYPE CHAR, NOENTRY;
c003 = FORMONLY.phone TYPE CHAR, NOENTRY;
GROUP g1:g1;
TABLE table1:table1;
END
INSTRUCTIONS
DELIMITERS " "
SCREEN RECORD sr_fac[7]
(
customer_name, address, phone
)
END
Thank you,
Brian Stewart
-----Original Message-----
From: [email protected] [mailto:[email protected]]On
Behalf Of Jon Earle
Sent: Tuesday, August 23, 2005 9:55 AM
To: [email protected]
Subject: [fourjs-users] Problem with form - group item type
Hi folks,
I have a form, much like:
..
GRID
{
... various items
[item1 ]
<G g1 >
[item2 ][item3 ][item 4 ]
[item5 ]
... more items
}
END
..
According to the docs, I need space around the items that are to be contained
within the GROUP item type to separate them from other items. I've done
that. Problem is, when I compile this form, I get an error saying:
# The element 'item5' conflicts with group-box 'g1'.
# See error number -6813.
Only way I can compile this form is to end the GRID after the GROUP item (and
the item2-4 row) and start a new GRID before item5 (and put lots of
whitespace in front of item5 to line it up, more or less, with the items in
the preceeding GRID.
GDC version is 1.31.1l, build 293.47. Form compiler version is 620.267.
Why does the form compiler think that items after the blank line are part of
the group? What am I doing wrong?
Cheers!
Jon
--
Jon Earle
Software Developer / Network Manager
Specialising in Open Source Software Solutions
http://kronos.honk.org/~earlej/