I need to create a report in which all entries in a particular text field are concatenated with a semicolon in between. Example: the field in record 1 reads “green, except on wednesdays”. In record 2 the field contains “bleu, blanc et rouge” and in record 3 it contains “red with white spots; green, yellow; purple”. The result I seek would be: “green, except on wednesdays; bleu, blanc et rouge; red with white spots; green, yellow; purple”.
I also want to list the dates from these records with one date per line, and no duplicates. There is a date field in each record. I have it in a tabpanel but that contains duplicates when there was more than one entry on that date. Example:
I need to create a report in which all entries in a particular text field are concatenated with a semicolon in between. Example: the field in record 1 reads “green, except on wednesdays”. In record 2 the field contains “bleu, blanc et rouge” and in record 3 it contains “red with white spots; green, yellow; purple”. The result I seek would be: “green, except on wednesdays; bleu, blanc et rouge; red with white spots; green, yellow; purple”.
Steps:
FIND the records you need;
LOOP through the records and build up the string you want in a local variable or global.
m2:
2) I also want to list the dates from these records with one date per line, and no duplicates. There is a date field in each record. I have it in a tabpanel but that contains duplicates when there was more than one entry on that date. Example:
02/11/2004
02/14/2004
02/24/2004
STEPS:
Find the records (from above)
Put the date from the first record into a local variable or global
When you go to the next record - see if the global contains that date string or not. If NOT, then add it to the end of the variable.