hi! i've the following codes:
...
For i in 1..4 loop
gp:='pollquestion_rec.Option'| |i ;
htp.p(gp);
htp.p('
');
end loop;
...
the output result is:
pollquestion_rec.Option1
pollquestion_rec.Option2
pollquestion_rec.Option3
pollquestion_rec.Option4
which is not what i wanted.
but if i actually type in
htp.p(pollquestion_rec.Option1);
...
htp.p(pollquestion_rec.Option4);
the actual output is the records, which is what i wanted.
my table contain the fields question,Option1, Option2, Option3, Option4, and in future may be up to Option10. that's why i'm thinking of using a loop to output.
kindly advise.
thx.
...
For i in 1..4 loop
gp:='pollquestion_rec.Option'| |i ;
htp.p(gp);
htp.p('
');
end loop;
...
the output result is:
pollquestion_rec.Option1
pollquestion_rec.Option2
pollquestion_rec.Option3
pollquestion_rec.Option4
which is not what i wanted.
but if i actually type in
htp.p(pollquestion_rec.Option1);
...
htp.p(pollquestion_rec.Option4);
the actual output is the records, which is what i wanted.
my table contain the fields question,Option1, Option2, Option3, Option4, and in future may be up to Option10. that's why i'm thinking of using a loop to output.
kindly advise.
thx.