String concatenation

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
Bryan
Posts: 195
Joined: Fri Apr 03, 2009 12:46 am
Location: Cincy

String concatenation

Post by Bryan »

All,
Is there a way to put a carriage return in a string concatenation.

Example:
Company
Attribute: Address1
Attribute: City
Attribute: State
Attribute: Zipcode

Employee
Attribute: Address

Process to create new Employee
ENTER NEW Employee WITH Employee.Address=Company.Address1+' Carriage Return '+Company.City+', '+Company.State+' '+Company.Zipcode

I want to take what is now at the company level as:

123 Smith St
Springfield
MS
55555

and turn it into this at the Employee level

123 Smith St
Springfield, MS 55555
-Bryan
Version 8 (Build 2358)
kklosson
Posts: 1628
Joined: Sun Nov 23, 2008 3:19 pm
Location: Virginia

Post by kklosson »

There may be but I don't know it. I user <10,13> in some other languages. On the other hand, if you can split them, it's very easy to put the street address on one line and the city, st zip on the next. Just a thought.
Bryan
Posts: 195
Joined: Fri Apr 03, 2009 12:46 am
Location: Cincy

Post by Bryan »

What do you mean by splitting the attributes? I am guessing that you mean splitting them out into two different attributes at the Employee level.

Thanks for the assistance
-Bryan
Version 8 (Build 2358)
kklosson
Posts: 1628
Joined: Sun Nov 23, 2008 3:19 pm
Location: Virginia

Post by kklosson »

I just mean in your presentation, wherever you are applying the information, you can present it with two strings instead of a multi-line text field.
tford
Posts: 4238
Joined: Sat Mar 10, 2007 6:44 pm

Post by tford »

Bryan,

If you make a new attribute: SystemSettings.CR & populate it with a Carriage Return, you can then use that attribute in your rule.
Tom - V8.8 build 3137 - MySql / PostGres
kklosson
Posts: 1628
Joined: Sun Nov 23, 2008 3:19 pm
Location: Virginia

Post by kklosson »

But Tom,

I think the issue is that we don't know how to insert a carriage return. What's the code?
Bryan
Posts: 195
Joined: Fri Apr 03, 2009 12:46 am
Location: Cincy

Post by Bryan »

Any guidance on where to start with this?
-Bryan
Version 8 (Build 2358)
tford
Posts: 4238
Joined: Sat Mar 10, 2007 6:44 pm

Post by tford »

No code needed. Just go into the new SystemSettings attribute and made a carriage return. You won't see anything on the form, but you will see the result in your rules.
Tom - V8.8 build 3137 - MySql / PostGres
kklosson
Posts: 1628
Joined: Sun Nov 23, 2008 3:19 pm
Location: Virginia

Post by kklosson »

Go figure.
Bryan
Posts: 195
Joined: Fri Apr 03, 2009 12:46 am
Location: Cincy

Post by Bryan »

Sure enough it worked like a charm.
-Bryan
Version 8 (Build 2358)
Bryan
Posts: 195
Joined: Fri Apr 03, 2009 12:46 am
Location: Cincy

Post by Bryan »

I thought I had this working but now I am trying to input a carriage return into a different bsv as the SystemSettings.CR attribute. Once in the application I go to the CR attribute and hit carriage return which is takes fine though it appears that the save process clears out the carriage return prior to saving. When I go back into review that it was saved correctly there is nothing in the CR attribute.
-Bryan
Version 8 (Build 2358)
tford
Posts: 4238
Joined: Sat Mar 10, 2007 6:44 pm

Post by tford »

Have you tried to use the attribute in a rule?
Tom - V8.8 build 3137 - MySql / PostGres
Bryan
Posts: 195
Joined: Fri Apr 03, 2009 12:46 am
Location: Cincy

Post by Bryan »

I am actually using it in a process that builds the body of and email. Nothing fancy I just need some breaks between sections of text.
-Bryan
Version 8 (Build 2358)
Bryan
Posts: 195
Joined: Fri Apr 03, 2009 12:46 am
Location: Cincy

Post by Bryan »

CREATE OutgoingEmail WITH OutgoingEmail.Message='Routing Description: <<Routing.Description>> <<SystemSettings.CR>> <<SystemSettings.CR>> Item Type: <<Routing.RoutedItemSCObjectIdentifier>> Item Subject: <<Routing.RoutedItemSCSubject>> <<SystemSettings.CR>> <<SystemSettings.CR>> Item Description: <<Routing.RoutedItemSCDescription>> <<SystemSettings.CR>> <<SystemSettings.CR>>'
-Bryan
Version 8 (Build 2358)
tford
Posts: 4238
Joined: Sat Mar 10, 2007 6:44 pm

Post by tford »

Bryan,

For email, you can use a Test type Document. In that document, you can do any formatting you desire without using CR attribute.
Tom - V8.8 build 3137 - MySql / PostGres
Post Reply