3 Setup for EnterpriseOne Page JET Development

This chapter contains the following topics:

3.1 Development Prerequisites

Complete the following prerequisites:

3.2 Local Testing Environment Setup

UX One is delivered with a local environment that you can use for testing your JET applications. This enables you to test your JET applications before importing them into EnterpriseOne as Classic Pages. You can test charts, other analytics, and AIS calls locally, but not form interconnects.

To set up a local test environment, you need to update the e1pagehelper.js configuration file and register one or more browsers within JDeveloper.

3.2.1 e1pagehelper.js Configuration

Update the following items at the bottom of the e1pagehelper.js file, within the LocalDevConfig variable:

  • this.AIS_HOST

    Update the AIS Server that you want to use.

  • this.AIS_PORT

    Enter the port of the AIS Server.

  • this.USER_NAME

    Enter a valid user for the JD Edwards EnterpriseOne environment.

    In the getUserInfo function, there is a userPreference variable that is hard coded for local testing. The elements in the variable should be configured to match the user preferences of the user set up in this.USER_NAME.

    Specifically, simpleDateFormat must be checked. JET applications using date filters will not work if the formatted dates in the JET application are not formatted the same as seen in JD Edwards EnterpriseOne for the user.

    Example 3-1 getUser Info ()

    function getUserInfo()
    {
       //alert("Not Available in Local Development Environment");
       var userPreference = 
                    {
                        addressNumber : "6001", 
                        country : " ", 
                        dateFormat : "MDE",
                        dateSeperator : "/", 
                        decimalFormat : ".", 
                        dstRule : "", 
                        env : "JDV920", 
                        fullName : "Allen, Ray",
                        lang : "en", 
                        locale : "en", 
                        role : "*All",
                        servicePack : "9.2.1", 
                        simpleDateFormat : "MM/dd/yyyy", 
                        timeFormat : "24",
                        userId : "JDE", 
                        userTimeZone : "26",
                        e1Lang: "  "
                    };
       return userPreference;
    }
    
  • this.PASSWORD

    Enter a valid password for the JD Edwards EnterpriseOne environment.

3.2.2 Register Browser in JDeveloper

In order to test the JET application, you need to run home.html in a browser. Within JDeveloper, you can do that by registering one or more browsers as external tools.

After both the browser and e1pagehelper.js file are set up, you can perform a test by running the six existing samples.