Showing posts with label MoveX. Show all posts
Showing posts with label MoveX. Show all posts

Feb 11, 2013

Convert a Double to String : M3

Since M3 java code is similar to RPG and use MvxString rather than String, here it is the code to convert/format numeric value to alpha value in M3.

   1:  this.PXNUM = dSUM;
   2:  this.PXALPH.clear();
   3:  SRCOMNUM.COMNUM();
   4:  WQT[tempIdx].moveRight(this.PXALPH);



In line number:


1. assign double value which is to be converted.
2. clear any previous value of PXALPH.
3. actual conversion . The SRCCOMNUM is an object of cSRCOMNUM class declared in mvx.app.util
4. gets converted alphanumeric value.


Let, dSUM= 38.05580 and if we want



  • to display dSUM with 2 decimal:

   1:  this.PXNUM = dSUM; 
   2:  this.PXALPH.clear();   
   3:  this.PXDCCD = 2; // setting number of decimals.
   4:  SRCOMNUM.COMNUM(); 
   5:  WQT[tempIdx].moveRight(this.PXALPH);




Output> 38.05






  • to display negative value: Here we have a option, to which character to be used for negative representations. (i.e. –38.05, (38.55), 38.05- etc)

   1:  this.PXNUM = dSUM; 
   2:  this.PXALPH.clear();   
   3:  this.PXDCCD = 2; 
   4:  SRCOMNUM.PXPNVB='('; // Left character if negative
   5:  SRCOMNUM.PXPNVA=')'; // Right character if negative
   6:  SRCOMNUM.COMNUM(); 
   7:  WQT[tempIdx].moveRight(this.PXALPH);






Output> (38.05)

Jan 24, 2013

Move to Movex (M3)

From 2012-12-10, I’ve engaged with M3 , development. Now, I’m playing Senior Technical Lead role.  But I’m still interesting .net development which is my core strength.

What is M3

It is an ERP (Enterprise Resource Planning) solution for, specially, the fashion industry known as Movex. Originally it was developed by Intentia, a Sweden company and somewhere around 2008 it was acquired by Lawson. In late 2012, Infor1 has acquired M3.

Technology

To discuss about the technology, it will take pages. In this post, I’m only going to talks about briefly.

  1. M3BE (M3 Business Engine) is the core component in M3. It is Java. It’s encapsulates ERP functionalities and Data Access Layer. Main data base is DB2, but new versions supports multiple data sources, including MS SQL server.
  2. ISO (Infor Smart Office)- is the front end for the users and client based application. It is WPF  (Microsoft Presentation Foundation) client application.

ISOFigure 1: Infor Smart Office

Jan 20, 2011

Movex Class Builder v2.0

I released Movex Class Builder v 2.0 after 2+ yrs from its initial release.

New Features:

  1. It is showing connected IP and Port. You can change the setting and re-connect the same time. No need to close-and-reopen the Class Builder.

     image5
  2. Checking API Layout.
    This enable us to check consistency in C# class API layout and current Movex API layout.

    image10 

    By clicking on this option, it will search currently connected API is in opened project, it does show the summary dialog box.

    image
    Figure: C# Class and M3 API layout is exactly matched.

    image
    Figure: Having conflicts in the code

Dec 1, 2010

Movex Tech Training from Lawson

My current employer (Brandix Lanka) arranged a MoveX technical training from Lawson, our ERP vendor. It took 12 days and today is the last day.

Mr. Daniel Rodrigo Olea , EMEA Technical Project Manager of Lawson software is the presenter and delivered marvelous sessions to our team. Daniel Rodrigo Olea

Very first day, we were totally blank of what he is talking about. But he guided us in a way that we were able to understand almost everything in Movex code.

         

 

 

Areas that we covered in the training,

  1. MAK tool
  2. Creating/modifying Movex Program
  3. Creating/modifying View Definition
  4. Creating/modifying M3 API
  5. Managing Out Interface
  6. Data tables, Data Structures, CL in M3
  7. Lawson web services to interact with M3 programs and APIs.
  8. and much more…

Nov 4, 2008

Movex Class Builder

For my current projects @ Brandix Lanka, we want to create couple of interfaces for Movex ERP. In Movex, functionalities exposes in a way of API.

My duty is create C# classes for particular API, to data retrieval or update. We have already created a wrapper class for Movex connection.

I created MS-Visual Studio Add-in to generates C# classes for particular API.



Features:
  1. you can browse Movex API details.
  2. Generates C# class to the current project and organised by API automatically.
  3. Integrated to the VS IDE
  4. Currently supports for VS2005 and VS2008

MEC: How to Set Message Counter for EDI Message

When you sending/creating EDI messages it is necessary to include unique message interchange number. This is to ensure each message that we ...