Development Forums

To go to the M3 development forums to discuss development around the various M3 components, please click on the link below:

You will need to register and be authorised before you can post (sorry).  You will be able to log in with either a facebook account (uses federation for authentication) or a locally created account.


5 Responses to Development Forums

  1. Veena says:

    Hi Scott,

    Your posts here are really helpful. Thnks a lot for that!!!

    I have a question, following are the details:
    I added a transaction in MMS200MI called GetCount(). I want to run a select query in MAK and give the record back (or count back). But the connection to db will be dynamic. I am trying to retrive url / user /pwd from LDAZZ/LDAZD etc. URL also will be dynamic, as my company has different environments and so different servers.

    Do you know if I can retrieve it from somewhere? I am trying something like below (its just copy paste from different places, not working 😦 )

    // trying to use code from one of ur posts, haven’t tested yet

    String jdbcClassName = “”;
    String url = “??not sure??”;
    String user = “LDAZZ or ZD.USR”;
    String password = “???not sure??”;
    Connection connection = null;
    try { // Load class into memory
    // Establish connection
    connection = DriverManager.getConnection(url, user, password);
    } catch (ClassNotFoundException e) {
    } catch (SQLException e) {
    } finally {
    if (connection != null) {
    System.out.println(“Connected successfully.”);
    try {
    } catch (SQLException e) {

    String W2TempString = “Select * from M3JDTP800.MITMAS”;
    int W2TempCount;
    Statement W0TempStatement = null;
    ResultSet rs = null;

    try {
    rs = W0TempStatement.executeQuery(W2TempString); //===> throws error here
    while ( {

    String column1 = rs.getString(“MMCONO”);

    String column2 = rs.getString(“MMITNO”);


    } catch (SQLException e) {
    // TODO Auto-generated catch block
    MSGID.move(“SQL query wrong”); // Mandatory fields are missing
    IN60 = true;
    Can you help me with it? or point me to any article/post which already has info about it?
    Thanks in advance.

    • potatoit says:

      Hi Veena,

      sorry but I’ve never have the opportunity to use MAK – it’s always been password protected.

      Perhaps investigating the GenericMDB, MvxRecord classes may provide some clues – they are referenced in the M3BE source code.

      FWIW the username/password/jdbc url are all stored in the grid configuration for the M3BE (used to be I believe) – I would be surprised if they are easily accessible.

      Sorry I can’t be of more help – perhaps someone else can shed some more light.


  2. Veena says:

    Thanks for the reply Scott !!!
    Yup, I can see have all the values, but trying to figure out how to access it.

    Thanks again,

  3. Hello Scott,

    I have a problem. I need to call a MWS webservice from a Jscript. To be able to call this webservice I need the credentials of the user who is logged in. Is this possible?

    Kind regards

    Lode Vlaeminck

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s