Skip to Content

sending data back to GUI from MII tranx

Hi All,

I have got a specific requirement and I am struggling to find a solution for the same. It would be great if any one has some idea how to achieve it.

1) I have a GUI (jsp/irpt/html) to capture the data from browser

2) Once I capture the data I submit the GUI page and I want to send this data to a MII Tranx/SQL Query which will invoke a procedure at database.

3) This proceduers has got an output parameter which will return a value

4) depending on the output parameter value I want to route the control to a different GUI's

Could you please let me know how can I achieve this. I am using MII version 12.1.9

Any help on this very much appreciated



Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Aug 01, 2012 at 12:47 PM

    1) call the transaction however you want. Either through AJAX calls or an iCommand. Don't do a form submit, just use a simple button input and on click execute the transaction.

    <input type="button" value="process" onclick="submitTrx()" />

    function submitTrx()



    2) When you get the result do your logic to find the URL you want to redirect to.

    var outputValue = document.command.getDataObject().getValue(1,1);

    if(outputValue == 1)


    else if(outputValue == 2)



    3) Set the window to that url

    function redirectPage(url)


    //If in the MII portal set the src to the url.


    document.parent.MainContentFrame.src = url;

    //If in its own window or tab just set the window location.


    window.location = url;


    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.