CR 10, Sybase database
lbass helped me with this following formula in a previous thread and it works great. I'm trying to work on a couple formatting issues and hope someone can provide some insight.
Here is the code for the formula:
whileprintingrecords;
stringvar array parm := {?parm};
numbervar counter;
stringvar display;
stringvar array parmoptions := ["All Financial Statements","Management Letter","Corrective Action Plan","Federal Awards","Other Description"];
redim preserve parmoptions[ubound(parmoptions)];
redim preserve parm[ubound(parmoptions)];
for counter := 1 to ubound(parmoptions) do(
if parmoptions[counter] in parm then
display := display + "__X__" + parmoptions[counter] + chr(13)
else
display := display + "_____" + parmoptions[counter] + chr(13));
display;
Here are the results I get based upon the user passing the 3 parameters that have "X" below:
__X__ All financial statements related to the report.
_____ Copy of the management letter mentioned in the statements.
__X__ Current status of Corrective Action Plan.
_____ Schedule of Federal Awards (Identify HRI Grants)
__X__ Other
Here are my formatting issues:
1) I would like to have the "X" fully underlined. I can possibly do it by creating 5 new formulas (one for each possible parameter) that results in a text field " X " formatting with an underline border and placing it to the left of the formula above, but the position of the big formula results can vary (the report is a letter).
2) I would also like to have all the text descriptions aligned left justified. The line items above that have "X" are indented about 1/2 character to the right in relation to the unchecked items.
Any thought on these issues? THANKS! -Ed
lbass helped me with this following formula in a previous thread and it works great. I'm trying to work on a couple formatting issues and hope someone can provide some insight.
Here is the code for the formula:
whileprintingrecords;
stringvar array parm := {?parm};
numbervar counter;
stringvar display;
stringvar array parmoptions := ["All Financial Statements","Management Letter","Corrective Action Plan","Federal Awards","Other Description"];
redim preserve parmoptions[ubound(parmoptions)];
redim preserve parm[ubound(parmoptions)];
for counter := 1 to ubound(parmoptions) do(
if parmoptions[counter] in parm then
display := display + "__X__" + parmoptions[counter] + chr(13)
else
display := display + "_____" + parmoptions[counter] + chr(13));
display;
Here are the results I get based upon the user passing the 3 parameters that have "X" below:
__X__ All financial statements related to the report.
_____ Copy of the management letter mentioned in the statements.
__X__ Current status of Corrective Action Plan.
_____ Schedule of Federal Awards (Identify HRI Grants)
__X__ Other
Here are my formatting issues:
1) I would like to have the "X" fully underlined. I can possibly do it by creating 5 new formulas (one for each possible parameter) that results in a text field " X " formatting with an underline border and placing it to the left of the formula above, but the position of the big formula results can vary (the report is a letter).
2) I would also like to have all the text descriptions aligned left justified. The line items above that have "X" are indented about 1/2 character to the right in relation to the unchecked items.
Any thought on these issues? THANKS! -Ed