Hi,
I am using Crystal XI. I have the formula below in the detail section. This formula gathers all the LOG IDs and then pass them to my subreport. But when large data is returned I get the "A string can be at most 65534 characters long" error.
Formula in Detail section - @frlDisplay:
I then have the below two formula's in my GF2 where I have my subreport.
@frlPopulate
@frlShow
Currently, the formula in detail section is concatenating each and every log id it finds, which makes the string too big. But in the subreport, I want to display fewer records based on two formula's. Is there a way I can limit the @frlDisplay formula from concatenating all the Log ID's and use those two formula's to limit it somehow?
One of the formula would be something like - Concatenate only those log id's where
PMP.STATUS = "C" AND PMP.CODE = "L"
Hope it's not too confusing. Thanks a lot for your help in advance!
I am using Crystal XI. I have the formula below in the detail section. This formula gathers all the LOG IDs and then pass them to my subreport. But when large data is returned I get the "A string can be at most 65534 characters long" error.
Formula in Detail section - @frlDisplay:
Code:
WhilePrintingRecords;
Global StringVar Array_Name;
numbervar slno;
Array_Name:= Array_Name & Cstr({PMP.LOG_ID}) & ",";
slno:= slno+ 1;
I then have the below two formula's in my GF2 where I have my subreport.
@frlPopulate
Code:
WhilePrintingRecords;
Global NumberVar N;
Global stringVar Arr_Display;
Global stringVar Array_Name;
If Array_Name <> "" then Arr_Display:= Left(Array_Name, len(Array_Name)-1)
@frlShow
Code:
WhilePrintingRecords;
numbervar slno;
Currently, the formula in detail section is concatenating each and every log id it finds, which makes the string too big. But in the subreport, I want to display fewer records based on two formula's. Is there a way I can limit the @frlDisplay formula from concatenating all the Log ID's and use those two formula's to limit it somehow?
One of the formula would be something like - Concatenate only those log id's where
PMP.STATUS = "C" AND PMP.CODE = "L"
Hope it's not too confusing. Thanks a lot for your help in advance!