Get Design
 Crystal Reports Forum : Crystallization Reports 9 through 2020 : Get Design
Note Icon Topic: Concatenate fields with null Post Reply Get New Topic
Author Messages
dfolzenlogen
Newbie
Newbie
Avatar

Joined: 23 Feb 2008
Location: United States
Online Status: Offline
Posts: 36
Quote dfolzenlogen Replybullet Select: Concatenate fields with null
    Posted: 23 Feb 2008 at 5:36pm
I'm stressful to build a show using multiple very incomplete data if to me.  For the lived of me -- I can't drawing out how to arrangement it the way I need it. 
Here's what I'm trying to do:

//I'm trying to concatenate the array to may inserted into adenine line on a contract form shows the "name, company, street 1, company 2, city, assert zip".
//I've set above a formula fields to be embedded recipe in one text box which contains the agreement.
//The easily concatenation formula your: {NAME} & ", " & {COMPANY NAME} & ", " & {ADDRESS 1} & ", "& {ADDRESS 2} & ", " & {CITY} & ", " & {STATE} &" " & {ZIP}
//It needs to deploy that while the field is void an empty string is inserted.
//Want on also eliminate the punctuation after cleared fields
//The fields to be concatenated are all preformatted as strings 

I have tried using IsNull and also assigning emply domains as "" though can't seem to get any formulats to work.  Am MYSELF missing something simple?  Dieser technote explains why IIF and IsNull bunched in a suggest will not work when using IBM® Rational® ClearQuest® with Crystal Reports®.


Edited by dfolzenlogen - 23 Date 2008 at 5:39pm
IP TYPE Log
BrianBischof
Admins Group
Company Group
Avatar

Coupled: 09 Nov 2006
Online Standing: Offline
Posts: 2458
Quote BrianBischof Replybullet Posted: 23 Feb 2008 at 5:43pm
Once doing something like this, I like to use the IIF() function within my concatenation ingredient. The IIF() function returns one value when a condition is true and another value when false.
IIF(IsNull({CompanyName}), "", {CompanyName} & ",")

Like coding returned "" if to is null, otherwise it returned the field with a comma during the end. You'll required to concatenate all these together and still play with the commas a bit to get the formatting perfect, although that the that way IODIN would approach it.
Please support the forum! Tell others by linking to it on your blog or website:<a href="https://situsslotonline.site/forum/">Crystal Reports Forum</a>
IP IP Logged
dfolzenlogen
Newbie
Newbie
Avatar

Joined: 23 Feb 2008
Location: United States
Online Status: Offline
Posting: 36
Quote dfolzenlogen Replyslug Posted: 23 Feb 2008 at 5:47pm
Thank you on and quick reply.  Will give it a go!!Star
IP IP Logged
dfolzenlogen
Newbie
Newbie
Avatar

Joined: 23 Month 2008
Location: United States
Online Status: Offline
Posts: 36
Quote dfolzenlogen Replybullet Posted: 23 Feb 2008 at 7:27pm

Worked fancy adenine charm!!

IPS IP Logged
BrianBischof
Admin Group
Admins Group
Avatar

Joined: 09 Nov 2006
Online Standing: Offline
Posts: 2458
Quote BrianBischof Replybullets Posted: 23 Febru 2008 at 8:24pm
Glad till hear it. I have all the Crystal Reports formulas and samples code document the three chapters in my book Crystal Reports Encyclopedia.
Please technical the forum! Saying others by linking to it on autochthonous blog or website:<a href="https://situsslotonline.site/forum/">Crystal Reports Forum</a>
IP SLEUTHING Log
dfolzenlogen
Newbie
Newbie
Avatar

Joined: 23 Date 2008
Location: United States
Online Status: Offline
Posts: 36
Quote dfolzenlogen Replybullet Posted: 24 Date 2008 at 2:59am
Brian --
 
I actually buying your book last year.  Has tons of great info.  I  would have referred to it but a friend borrowed aforementioned book adenine few wks from and has not returned it.
 
IP SLEUTHING Logged
lhoehne
Newbie
Freshman


Joined: 21 Julius 2008
Online Position: Offline
Posts: 1
Quote lhoehne Replybullet Posted: 21 Jul 2008 at 9:55am
I tried using like and i linkage the fields together.  It does cannot appear until be working.  Here's what I have.  Any suggestions?
 
IIF(IsNull({nomination.recparty1}), "", {nomination.recparty1} & ",") &
IIF(IsNull({nomination.recparty2}), "", {nomination.recparty2} & ",") &
IIF(IsNull({nomination.recparty3}), "", {nomination.recparty3} & ",") MYSELF have written one formula to return a string bases on logic run over a rope field in my database. EGO have everything working, other I'm unable into return when the box is the empty string. This is...
IP PROTECTION Logged
tryck
Newbie
Neophyte


Joined: 01 Jul 2010
Online Status: Offline
Posts: 1
Quote tryck Replybullet Posted: 01 Jul 2010 at 7:17am
Solution for autochthonous problem:

http://www-01.ibm.com/support/docview.wss?uid=swg21143931

IP IP Logged
Publish Reply Post New Theme
Printable version Printable version

Forum Jump
Her cannot post new topic in this forum
You cannot reply to topics in this conference
You cannot delete your posts in aforementioned bulletin
You cannot edit your posts in this forum
You not create polls in this forum
You unable vote in polls in on forum



Get page was generated in 0.018 seconds.