Column printing - Print in column 1 when fieldvalue is True and print in Column 2 when fieldvalue is
Kim Greve
Albertslund, Denmark
Hi.
Is is posible to split a masterdata band up into two columns where Column 1 contains those rows where the fieldvalue = true and if fieldvalue = false
Or is there any other way to do this.
My problem is that I have a list of students i a schoolclass who should have there photograph taken.
When a student is photographed the field PhotoTaken is set to True. But some of the students isn't in school the day the class was photographed. And I would like to make a list of who's been photographed and whos not.
I can make a list with all the names in the dataset and show a checkbox with a checkmark if the student is photographed. But the readability of the list would be much better if I could split then into different colums.
Is is posible to split a masterdata band up into two columns where Column 1 contains those rows where the fieldvalue = true and if fieldvalue = false
Or is there any other way to do this.
My problem is that I have a list of students i a schoolclass who should have there photograph taken.
When a student is photographed the field PhotoTaken is set to True. But some of the students isn't in school the day the class was photographed. And I would like to make a list of who's been photographed and whos not.
I can make a list with all the names in the dataset and show a checkbox with a checkmark if the student is photographed. But the readability of the list would be much better if I could split then into different colums.
Comments
in the obp event of the memoviews or the band write code to set their visible property.
ie
memo1.visible := (<datasetname."fieldname"> = true)
memo2.visible := (<datasetname."fieldname"> = false)
Hi gordk.
Thanks for the suggestion. Allmost there, but that's not exactly what I need.
This way I get the two columns but, when a string is printed in the left column, a blank line is printed in the right column and when a string is printed in the right column a blank line is printed in the left column.
I need the lines to lool like this:
Text in Left column........................Text in right column
Text in Left column........................Text in right column
Text in Left column........................Text in right column
Text in Left column........................Text in right column
Text in Left column........................Text in right column
Text in Left column........................Text in right column
Text in Left column........................Text in right column
Any other suggestions?
Great. That was it. [img]style_emoticons/<#EMO_DIR#>/rolleyes.gif" style="vertical-align:middle" emoid=":rolleyes:" border="0" alt="rolleyes.gif" /> I used a dataset where PhotoTaken=True in the left column and PhotoTaken=False in the right column Thanks.[/img]