samedi 16 novembre 2013

Accessing JD Edwards 9.1 TR9.1.3 from a mobile device using Windows CE OS




Here is the login page you obtain when logging into JDE 9.1 TR9.1.3 from a Windows CE OS:






This is because, in the registry of the mobile device, you can find the key below:

\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\User Agent





The login page presented to the user using mobile devices is stored in:


%MIDDLEWARE_HOME%\user_projects\domains\<domain_name>\servers\<managed_J2EE_name>\stage\<managed_server_name>\app\webclient.war\share\ppclogin.jsp


Two modifications can made to this .jsp file in order to make the use of this mobile device page easier:


First modification : Bypass the environment choice.



By default, a transition page offering the choice of environment, is presented to the user before typing the username and password, even if there is only one environment to choose from and if the default environment is setup in the jas.ini. 


In order to avoid this extra choice and use the default environment setup in the jas.ini, you need to make the following changes to the ppclogin.jsp:



Before:

String name = "";
String defaultEnvironment =
(String)request.getAttribute("defaultEnvironment");
String environment = defaultEnvironment == null ? "" : defaultEnvironment ;
String role = "";
if (userInfo != null)

{
                name = userInfo.getUserId();
                environment = userInfo.getEnvironment();
                role = userInfo.getRole();
}


After: 
String name = "";
String defaultEnvironment =
(String)request.getAttribute("defaultEnvironment");
String environment = defaultEnvironment == null ? "" : defaultEnvironment ; 
String defaultRole = (String)request.getAttribute("defaultRole");
String role = defaultRole == null ? "" : defaultRole ;
if (userInfo != null)
{
                name = userInfo.getUserId();
                environment = userInfo.getEnvironment();
                role = userInfo.getRole();
}





Second modification: Focus on the user on loading (in order to avoid clicking on the user box before typing it).


Make the following changes to the ppclogin.jsp:


<script language="JScript">
isFirstClick = true;
function submitIfFirstClick() {
  if (isFirstClick)
  {    
isFirstClick = false;
    return true;
  }
  else {return false;}
}

function focusOnUser()
  {
    document.F1.<%=LoginDisplayManager.USERID%>.focus();
  }

function doClear()
{
                document.F1.reset();
                document.F1.<%=LoginDisplayManager.USERID%>.value = "";
                document.F1.<%=LoginDisplayManager.PASSWORD%>.value = "";
                focusOnUser();
<% if (!environmentModeHidden){%>
                document.F1.<%=LoginDisplayManager.ENVIRONMENT%>.value = "";
                document.F1.<%=LoginDisplayManager.ROLE%>.value = "";
<%}%>

}
</script>
<title><%=resource.getString("JH_LOGINTITLE")%></title>
</HEAD>
<BODY bgcolor=white onload="focusOnUser()">

In order to manage menus that are presented to users when they are logged on, you need to modify the PervasiveAppQuickLinks.xml file that you can find in:


%MIDDLEWARE_HOME%\user_projects\domains\<domain_name>\servers\<managed_J2EE_name>\stage\<managed_server_name>\app\webclient.war\WEB-INF\classes:


<?xml version="1.0" encoding="UTF-8"?>
<quick-links> 
                <quick-link
            launchAction="launchForm"
                               appID="P564205"
            formID="W564205D"
            version="US56001"
                               description="Mobile Picking"/>
     </quick-links>




1 commentaire:

  1. Thank you for sharing your blog with us and thank you for being helpful for people,
    your blog is Very impressive and motivational! The blog is highly informative and has answered all my questions.
    To introduce about our company and the activities, technodatagroup.com
    is a database provider that helps you to boost your sales & grow your business through well-build
    database services

    RépondreSupprimer