Hello, I have created service bibles for my technicians which include categories and sub categories. I would like to create a table of contents showing both the main category and the subs which follow.
I have incorporated the following and it works good but only shows the main categories:
global stringvar strTOC1;
global stringvar strTOC2;
local stringvar strTemp;
if not InRepeatedGroupHeader then
( strTemp := {customer.country} + chr(10) ;
if len(strTemp) + len(strToc1) <= 254 then
( strToc1 := StrToc1 + strTemp;
strToc2 := StrToc2 +
totext(PageNumber,0) + chr(10) ))
as well as the following:
whileprintingrecords;
global stringvar strTOC1;
strToc1
whileprintingrecords;
global stringvar strTOC2;
strToc2
My question is how to expand this formula to reflect the following:
BALL VALVE 6
SWEAT 6
BELTS 7
A GROOVE 7
B GROOVE 7
COG V GR 8
BRASS 10
ADAPTERS 10
FEMALE 10
MALE 10
Is this doable? Will there be limitations as this is a long TOC.
Thanks
I have incorporated the following and it works good but only shows the main categories:
global stringvar strTOC1;
global stringvar strTOC2;
local stringvar strTemp;
if not InRepeatedGroupHeader then
( strTemp := {customer.country} + chr(10) ;
if len(strTemp) + len(strToc1) <= 254 then
( strToc1 := StrToc1 + strTemp;
strToc2 := StrToc2 +
totext(PageNumber,0) + chr(10) ))
as well as the following:
whileprintingrecords;
global stringvar strTOC1;
strToc1
whileprintingrecords;
global stringvar strTOC2;
strToc2
My question is how to expand this formula to reflect the following:
BALL VALVE 6
SWEAT 6
BELTS 7
A GROOVE 7
B GROOVE 7
COG V GR 8
BRASS 10
ADAPTERS 10
FEMALE 10
MALE 10
Is this doable? Will there be limitations as this is a long TOC.
Thanks