kevinbellnj
IS-IT--Management
I am VERY new to Crystal and also new to using Goldmine but responsible for getting some basic reports running.
I'm working with CR 8.5 and Goldmine 6.5 and they have a real lack of technical information regarding how to use both together.
I need to learn how to put together some strings that will allow me to group several pieces of information together and eliminate any fields that me be empty, blank, null...
The example below is from one of the reports that we had used in the past that had worked and included the company name, Address, city state zip etc...
The problem I am having is that when I run the report I get nothing returned for any of the records. A little research has given me the idea that it is because one of the fields is blank in most cases.
Can anyone give me a place to start here? Any links or docs going over this issue would be very helpful...
Thanks.
KB
StringVar sFullAddress:='';
StringVar sCompany:= {Contact1.COMPANY};
StringVar sAddress1:= {Contact1.ADDRESS1};
StringVar sAddress2:= {Contact1.ADDRESS2};
StringVar sCity:= {Contact1.CITY};
StringVar sState:= {Contact1.STATE};
StringVar sZip:= {Contact1.ZIP};
if sCompany='' then
sFullAddress:= sFullAddress
else
sFullAddress:= sFullAddress + chr(13) + chr(10) + sCompany;
if sAddress1='' then
sFullAddress:= sFullAddress
else
sFullAddress:= sFullAddress + chr(13) + chr(10) + sAddress1;
if sAddress2='' then
sFullAddress:= sFullAddress
else
sFullAddress:= sFullAddress + chr(13) + chr(10) + sAddress2;
if sCity > '' and (sState > '' or sZip > '') then
sCity:= sCity + ', ';
sFullAddress + chr(13) + chr(10) + sCity + sState + ' ' + sZip;
I'm working with CR 8.5 and Goldmine 6.5 and they have a real lack of technical information regarding how to use both together.
I need to learn how to put together some strings that will allow me to group several pieces of information together and eliminate any fields that me be empty, blank, null...
The example below is from one of the reports that we had used in the past that had worked and included the company name, Address, city state zip etc...
The problem I am having is that when I run the report I get nothing returned for any of the records. A little research has given me the idea that it is because one of the fields is blank in most cases.
Can anyone give me a place to start here? Any links or docs going over this issue would be very helpful...
Thanks.
KB
StringVar sFullAddress:='';
StringVar sCompany:= {Contact1.COMPANY};
StringVar sAddress1:= {Contact1.ADDRESS1};
StringVar sAddress2:= {Contact1.ADDRESS2};
StringVar sCity:= {Contact1.CITY};
StringVar sState:= {Contact1.STATE};
StringVar sZip:= {Contact1.ZIP};
if sCompany='' then
sFullAddress:= sFullAddress
else
sFullAddress:= sFullAddress + chr(13) + chr(10) + sCompany;
if sAddress1='' then
sFullAddress:= sFullAddress
else
sFullAddress:= sFullAddress + chr(13) + chr(10) + sAddress1;
if sAddress2='' then
sFullAddress:= sFullAddress
else
sFullAddress:= sFullAddress + chr(13) + chr(10) + sAddress2;
if sCity > '' and (sState > '' or sZip > '') then
sCity:= sCity + ', ';
sFullAddress + chr(13) + chr(10) + sCity + sState + ' ' + sZip;