Hi can someone help me here. I have below outline in my report.
In Group Header:
@int
WHILEPRINTINGRECORDS;
STRINGVAR WorkingDay:="";
STRINGVAR finaloutput;
In GroupFooter-1a
@DisplayWorkingDays
WHILEPRINTINGRECORDS;
STRINGVAR WorkingDay;
WorkingDay;
In Details:
@WorkingDay
WHILEPRINTINGRECORDS;
STRINGVAR WorkingDay;
WorkingDay:=WorkingDay+ ","+ {cmd.PivotDate};
WorkingDay;
In Group Footer-1b
@FinalOutput
WHILEPRINTINGRECORDS;
STRINGVAR finaloutput:="";
Finaloutput:= TRIM({@@DispWorkingdays});
OUTPUT:I am getting output like ,8/1/2014,8/2/2014,8/3/2014
REQUIRED OUTPUT:8/1/2014,8/2/2014,8/3/2014
I need to get rid of the comma in the start. I tried using onfirstrecord and onlastrecord as well, but of no use. Please can someone suggest how I can get rid of the comma from the start only.
In Group Header:
@int
WHILEPRINTINGRECORDS;
STRINGVAR WorkingDay:="";
STRINGVAR finaloutput;
In GroupFooter-1a
@DisplayWorkingDays
WHILEPRINTINGRECORDS;
STRINGVAR WorkingDay;
WorkingDay;
In Details:
@WorkingDay
WHILEPRINTINGRECORDS;
STRINGVAR WorkingDay;
WorkingDay:=WorkingDay+ ","+ {cmd.PivotDate};
WorkingDay;
In Group Footer-1b
@FinalOutput
WHILEPRINTINGRECORDS;
STRINGVAR finaloutput:="";
Finaloutput:= TRIM({@@DispWorkingdays});
OUTPUT:I am getting output like ,8/1/2014,8/2/2014,8/3/2014
REQUIRED OUTPUT:8/1/2014,8/2/2014,8/3/2014
I need to get rid of the comma in the start. I tried using onfirstrecord and onlastrecord as well, but of no use. Please can someone suggest how I can get rid of the comma from the start only.