Splitting text in Ax 2012 based on a delimiter

Below x++ code will help you to split any given string based on delimiters e.g comma(,) ,semicolon (😉 etc.
static void splitstr(str _strtoSplit, str _delimiter)

{
List strlist=new List(Types::String);
ListIterator iterator;
str _Value;
int x;
;

strlist=strSplit(_strtoSplit,_delimiter);
iterator = new ListIterator(strlist);

while(iterator.more())
{
_Value =iterator.value();
info(_Value);
iterator.next();
}

}

example, if you pass “KBT934G;KBA683T;KBQ095U;KAL160Y” as the string parameters and a semicolon as the delimiter as in the screen shot below, the output will be as shown
Split String
Split String

Sponsored Post Learn from the experts: Create a successful blog with our brand new courseThe WordPress.com Blog

Are you new to blogging, and do you want step-by-step guidance on how to publish and grow your blog? Learn more about our new Blogging for Beginners course and get 50% off through December 10th.

WordPress.com is excited to announce our newest offering: a course just for beginning bloggers where you’ll learn everything you need to know about blogging from the most trusted experts in the industry. We have helped millions of blogs get up and running, we know what works, and we want you to to know everything we know. This course provides all the fundamental skills and inspiration you need to get your blog started, an interactive community forum, and content updated annually.

CONSUMING EXTERNAL WEB SERVICES IN AX2012

nairobiaxusergroup

CONSUMING EXTERNAL WEB SERVICES IN AX2012

Web services are one of the most common ways in which multiple systems are integrated, this is also the same case in Dynamics AX2012. Consuming external web services in ax2012 is made interesting by the fact that you can use both the Morphx IDE and visual studio. What that means by extension is that you have a choice of either using X++ or C#.
For instance, in my case I integrated Microsoft Dynamics AX2012 and Microsoft Dynamics Retail Management System. In a nutshell I did this by developing a web service through which I could get sales data for a particular day from the Microsoft dynamics RMS database. I then made a client for the web service via which am able to route the data into Dynamics A2012
Below is a step by step description of how this can be achieved in ax2012

Step1:…

View original post 537 more words

Hello world!

Welcome to WordPress.com. After you read this, you should delete and write your own post, with a new title above. Or hit Add New on the left (of the admin dashboard) to start a fresh post.

Here are some suggestions for your first post.

  1. You can find new ideas for what to blog about by reading the Daily Post.
  2. Add PressThis to your browser. It creates a new blog post for you about any interesting  page you read on the web.
  3. Make some changes to this page, and then hit preview on the right. You can always preview any post or edit it before you share it to the world.