Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  iWay Software Product Forum on Focal Point    Generate sequence number
Go
New
Search
Notify
Tools
Reply
  
Generate sequence number
 Login/Join
 
Member
posted
How can we generate sequence numbers and attach that to the data which need to be uploaded to a particular field in a database table.

For example there is a EmployeeAccessCode field in the Employee table, and This field needs to filled using the first two characters of the Employee name (using _substr function) and then 4 digits (generated sequence number).
i.e. _CONCAT(_substr(EmployeeName),SENERATED_SEQUENCE_NO)

I am using iWay ISM version 5.5, with SQL server 2008 as the database.. OS Win XP. I am looking out for some possible option with the iWay Designer objects.

Thanks
 
Posts: 7 | Registered: August 12, 2009Reply With QuoteReport This Post
Member
posted Hide Post
Hi Amigos,

have you tried the unique function:

 _CONCAT(XPATH(//EmployeeName), _UNQ(###)) 


This should give you: Amigos001, Amigos002, ..., Amigos999

Just adjust the pattern to include the number of digits you need.

Note that if you have more than one EmployeeName field, you might end up with something like:

 Amigos1|Amigos2|Amigos3001 


Hope this helps...

Newbie


--
iSM 6 on AIX,
iSM 6 on Windows 2008 Server
WebFOCUS 8.0.03 on AIX
 
Posts: 8 | Location: Canada | Registered: March 23, 2010Reply With QuoteReport This Post
Member
posted Hide Post
Thanks.. this solution worked.
 
Posts: 7 | Registered: August 12, 2009Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  iWay Software Product Forum on Focal Point    Generate sequence number

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.