Join wMUsers | Blog at wMUsers | Edit my wMUsers Profile | Site Map | webMethods Jobs |For Employers

wMUsers  
  #1  
Old 02-02-2010, 07:48
david123 david123 is offline
Member
 
Join Date: Nov 2008
Posts: 86
Thanks: 4
Thanked 0 Times in 0 Posts
Default How to split a field into 2

Hi all,

i have a requirement where I have to split a field into 2 and map it to two different fields.

For example, They are sending a field....which has David, Richard value.

They are sending (,) in the field...and I need to send David to one field and Richard to another field.

So, I have to map value before (,) to one field and value after(,) to another field.

Can you guys please help me to write the logic to split.

Regards,
David.
Reply With Quote
Advertisement
  #2  
Old 02-02-2010, 08:10
mwroblinski mwroblinski is offline
Member
 
Join Date: Jun 2008
Posts: 63
Thanks: 0
Thanked 6 Times in 6 Posts
Default

Use either pub.string:indexOf and pub.string:substring or
pub.string:tokenize (check if the delimiter can be there multiple times and if this is expected behaviour first)

usually I prfer using those as transformers in a map step, not via invoke.

details to be found in Integration_Server_Built-In_Services_Reference
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
webMethods 6.1 pathName=/ProcessModelVersion field not present error shiv Modeler / Designer / Process Engine 2 08-05-2009 06:50
Reading the "Set-Cookie" header field sradseszewski SOA Service Development (Web Services, SOAP and WSDL) 0 02-13-2009 14:45
inserting null in date field soma_ksc JDBC Adapter 1 04-11-2008 05:28
How to "disable" field validation in web service mystiqu SOA Service Development (Web Services, SOAP and WSDL) 1 10-10-2006 13:58
TIP Short cut for mapping a field after checking to see if it is null P Patel Flow and Java services 9 10-14-2003 22:18


All times are GMT -6. The time now is 00:38.


.
All Content Copyright ©2002-2009, Conneva, Inc. DBA wMUsers.Com

wMUsers is an independent organization and is not sponsored in any manner by Software AG or webMethods, Inc.

Page generated in 0.07284 seconds with 16 queries