Topic
  • 3 replies
  • Latest Post - ‏2013-06-13T19:07:35Z by tmparker
GerardoMG
GerardoMG
33 Posts

Pinned topic Dynamically change Code page.

‏2013-04-17T10:58:25Z |

Hi.
We have an application that dynamically changes the code page to handle texts for different languages. The program changes the code-page on the job, the device, and so on. Previously the user could then select another language on terminal emulator (Host On-Demand) and it would work.  

I would like to do the same on HATS. Is there a way to change the Code page on the 5250 session without reconnecting?

Updated on 2013-04-17T10:59:35Z at 2013-04-17T10:59:35Z by GerardoMG
  • GerardoMG
    GerardoMG
    33 Posts

    Re: Dynamically change Code page.

    ‏2013-06-13T11:13:10Z  

    Des no one have any suggestions?

  • GerardoMG
    GerardoMG
    33 Posts

    Re: Dynamically change Code page.

    ‏2013-06-13T14:34:42Z  

    Is there possibly any way to talk to the HOD object in a business logic function?

  • tmparker
    tmparker
    532 Posts

    Re: Dynamically change Code page.

    ‏2013-06-13T19:07:35Z  
    • GerardoMG
    • ‏2013-06-13T14:34:42Z

    Is there possibly any way to talk to the HOD object in a business logic function?

    I can access the HOD session from business logic but I am curious how you were doing this in HOD without having to restart the session.  Were you doing this through the API or in the GUI session itself?

    Here is some code that may be of use if you are looking for the HOD objects in business logic:

    public static void execute(IBusinessLogicInformation blInfo){
            Map connections = blInfo.getConnectionMap();
            if (connections.containsKey(RuntimeConstants.CLASSNAME_SESSION)) {
                //get the HOD Beans Session object
                Session sess = (Session) connections.get(RuntimeConstants.CLASSNAME_SESSION);
                
                //get the HOD ECLSession object
                ECLSession eclSess = sess.getECLSession();
                
                //get the HOD ECLPS object
                ECLPS ps = eclSess.GetPS();
            }
        }

    Thanks

    Tim

    Updated on 2013-06-13T19:16:32Z at 2013-06-13T19:16:32Z by tmparker