Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: comma seaparated value in CR Post Reply Post New Topic
Author Message
Nehs
Newbie
Newbie


Joined: 01 Jun 2010
Location: India
Online Status: Offline
Posts: 6
Quote Nehs Replybullet Topic: comma seaparated value in CR
     Posted: 20 Apr 2011 at 10:36pm
Hi,
 
    I just wanted to pass the value (eg.accountnumber like 0012000014,0012000030,0011000031) which is basically a comma separated value.Right now my filter condition is like this.
 
 if {?AccountNumber} = 'ALL'
    then
       {REMITTANCES.APPLICANT_AC_NO} = {REMITTANCES.APPLICANT_AC_NO}
    else
       {REMITTANCES.APPLICANT_AC_NO} = {?AccountNumber}
 
If it is a comma seaparated value how to alter the filter condition here?
 
Thanks.
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4374
Quote lockwelle Replybullet Posted: 21 Apr 2011 at 3:33am
local numbervar array accounts := Split({?AccountNumber};
if {?AccountNumber} = 'ALL'    then
       {REMITTANCES.APPLICANT_AC_NO} = {REMITTANCES.APPLICANT_AC_NO}
    else
       {REMITTANCES.APPLICANT_AC_NO} in accounts
 
HTH
IP IP Logged
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum