I have 2 different sets of questions for which the codes are dynamically assigned in the report as
shown below.
For Ex:
//This formula is used in Report Header
whilereadingrecords;
numbervar array a;
numbervar i;
numbervar j := 60;
stringvar array y1 := ["1.A","1.A,2.C","2.G","3.A,2.C","8.c" and so on upto 60 Questions,
stringvar array y2 := ["2.C,3.B","1.A,2.G","2.G","3.B","2.A" and so on upto 60 Questions
for i := 1 to j do(
redim preserve a[j];
a := i;
);
//This formula is used in Details
whilereadingrecords;
numbervar array a;
stringvar array y1;
stringvar array y2;
numbervar i;
numbervar j;
stringvar z;
for i := 1 to j do(
if {Office.Questionnumber} = a and
{office.TYPE} = "Local" then
z := y1 else
if {Office.Questionnumber} = a and
{office.TYPE} = "non-local" then
z := y2
);
z
These Questions are answered as correct,incorrect or None based on different different question
numbers and offices i.e local and non-local.
So,I want to group on the codes namele 1.A,2.A,2.C,2.G,3,G and so on.
If I group on Details section I get 1.A,1.A,2.c but not 1.A and 2.C.
It means if a question is given the code 1.A,2.C and answered correct then I want to count this
question in 1.A and 2.C.
In other words,I want to split and group on Questions and count it twice if answered correct.
Hope its clear.Is there a way to do this.
Thanks.
shown below.
For Ex:
//This formula is used in Report Header
whilereadingrecords;
numbervar array a;
numbervar i;
numbervar j := 60;
stringvar array y1 := ["1.A","1.A,2.C","2.G","3.A,2.C","8.c" and so on upto 60 Questions,
stringvar array y2 := ["2.C,3.B","1.A,2.G","2.G","3.B","2.A" and so on upto 60 Questions
for i := 1 to j do(
redim preserve a[j];
a := i;
);
//This formula is used in Details
whilereadingrecords;
numbervar array a;
stringvar array y1;
stringvar array y2;
numbervar i;
numbervar j;
stringvar z;
for i := 1 to j do(
if {Office.Questionnumber} = a and
{office.TYPE} = "Local" then
z := y1 else
if {Office.Questionnumber} = a and
{office.TYPE} = "non-local" then
z := y2
);
z
These Questions are answered as correct,incorrect or None based on different different question
numbers and offices i.e local and non-local.
So,I want to group on the codes namele 1.A,2.A,2.C,2.G,3,G and so on.
If I group on Details section I get 1.A,1.A,2.c but not 1.A and 2.C.
It means if a question is given the code 1.A,2.C and answered correct then I want to count this
question in 1.A and 2.C.
In other words,I want to split and group on Questions and count it twice if answered correct.
Hope its clear.Is there a way to do this.
Thanks.