8 Replies Latest reply on Nov 25, 2015 8:22 AM by Warren Edge

    PB to EB migrated app not fitting screen correctly

    Warren Edge

      Good Afternoon All,

       

      I currently have an app which was working on MC3090 HHT's but these are no longer available so we are trying to migrate to MC32N0.

       

      I have got the app to launch using Enterprise Browser IE but the issue I am having is that none of the pages fit on the screen properly, each page is around 10-15px out around the entire screen. Has anyone else encountered this issue. The pages are all set to 320x320 which is the native screen size of the old MC3090 and the MC32N0.

       

      Has anyone experienced this before?

       

      I have played around with the config.xml but to no avail.

       

      Thanks for looking in advance.

        • Re: PB to EB migrated app not fitting screen correctly
          Peter Arcuri

          Hi Warren, did you try adjusting the viewport option within Config.xml? For example:

          <ViewportEnabled value="1"/>

          <ViewportWidth value="320"/>

          1 of 1 people found this helpful
          • Re: PB to EB migrated app not fitting screen correctly
            Joydeep Chakraborty

            Hi Warren,

            Can you please let me know the cab name what you installed?

            Is it Internet explorer or webkit cab?

            If webkit,can you please try with IE cab and see whether it does any better?

             

            Please also let me know,whether it is possible to share the url or script which is not being rendered properly?

            Regards,

            Joydeep

              • Re: PB to EB migrated app not fitting screen correctly
                Warren Edge

                Hi Joydeep,

                 

                The cab which has been installed is the IE cab, if I use the Webkit cab the application refuses to load, it just shows the badlink page.

                 

                Sadly the page size is set on each page which is displayed and is not set globally.

                 

                I didn't write the application, I'll see if I can get hold of the some of the pages from the server and upload them.

                 

                Many thanks,

                 

                Warren

                  • Re: PB to EB migrated app not fitting screen correctly
                    Joydeep Chakraborty

                    Hi Warren,

                    The pages will be helpful.I will wait for the same.

                    Have you tried the pages on Internet explorer in the same device outside EB? Has screen allignment issue been observed there as well?

                    Regards,

                    Joydeep

                      • Re: PB to EB migrated app not fitting screen correctly
                        Warren Edge

                        Hi Joydeep,

                         

                        Below is one of the pages:

                        <%@ Page language="c#" Codebehind="PriceCheck.aspx.cs" Inherits="RFHHT.WebPages.PriceCheck" AutoEventWireup="false" EnableViewState="false" %>

                        <HTML>

                            <HEAD>

                                <title>Picking List</title>

                                <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">

                                <meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">

                                <meta content="C#" name="CODE_LANGUAGE">

                                <meta content="JavaScript" name="vs_defaultClientScript">

                                <META http-equiv="HomeKey" content="Disabled">

                                <META http-equiv="Signal" content="Show">

                                <META http-equiv="Signal" content="Left">

                                <META http-equiv="Signal" content="x=172">

                                <META http-equiv="Signal" content="y=307">

                                <!--<META http-equiv="SignalNavigate" content="Javascript:OnSignal('%s','%s','%s');">-->

                                <META http-equiv="PowerOn" content="Javascript:OnPowerOn();">

                                <META http-equiv="OnKey0x70" content="Javascript:OnF1();">

                                <META http-equiv="Battery" content="Show">

                                <META http-equiv="Battery" content="Left">

                                <META http-equiv="Battery" content="x=253">

                                <META http-equiv="Battery" content="y=307">

                                <!--META http-equiv="BatteryNavigate" content="Javascript:OnBattery('%s','%s','%s','%s');"-->

                                <!--<META HTTP-Equiv="OnAllKeys" content="Javascript:OnKeyPress('%s');">  -->

                                <META http-equiv="<%=metaTag_httpequiv1%>" content="<%=metaTag_content1%>">

                                <META http-equiv="<%=metaTag_httpequiv2%>" content="<%=metaTag_content2%>">

                                <META http-equiv="<%=metaTag_httpequiv3%>" content="<%=metaTag_content3%>">

                                <META http-equiv="<%=metaTag_httpequiv4%>" content="<%=metaTag_content4%>">

                                <META http-equiv="<%=metaTag_httpequiv5%>" content="<%=metaTag_content5%>">

                                <META http-equiv="<%=metaTag_httpequiv6%>" content="<%=metaTag_content6%>">

                                <!--<META http-equiv="<%=metaTag_httpequiv7%>" content="<%=metaTag_content7%>">-->

                                <META http-equiv="<%=metaTag_httpequiv8%>" content="<%=metaTag_content8%>">

                                <LINK href="styleguide/SDrugRFHHT.css" type="text/css" rel="stylesheet">

                                <script language="javascript" src="scriptlib/SDrugRFHHT.js"></script>

                                <script>

                                    document.onkeypress = keyhandler;

                                    function keyhandler(e)

                                    {   

                                                           

                                        var pressedKey;

                                        if (document.all)    { e = window.event; }

                                        if (document.layers) { pressedKey = e.which; }

                                        if (document.all)    { pressedKey = e.keyCode; }

                                                   

                                        if(pressedKey == 13 && EnterFlag == true)

                                        {           

                                                if(document.getElementById('_ctl0_EnterQtyPrice') != null)   

                                                    document.getElementById('_ctl0_EnterQtyPrice').disabled = true;

                                        }    

                                               

                                        if (location.href.indexOf('&SKU=')!=-1)

                                        {

                                            OnKeyPressPriceCheck(window.event.keyCode);

                                                if(document.getElementById('_ctl0_EnterQtyPrice') != null)   

                                                {   

                                                    if(pressedKey == 13 && document.getElementById('_ctl0_EnterQtyPrice').value != "0.00")

                                                        EnterFlag = true;           

                                                }

                                            return false;

                                        }               

                                        else if(document.getElementById('_ctl0_EnterQtyPrice') != null)   

                                        {               

                                            if(pressedKey == 13 && document.getElementById('_ctl0_EnterQtyPrice').value != "0.00")

                                                EnterFlag = true;

                                        }

                                    }

                                </script>

                            </HEAD>

                            <body style="PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px"

                                bgColor="gainsboro">

                                <form id="frmMain" runat="server">

                                    <!--**** Pocket Browser Window 320px X 320px, 12 rows ****-->

                                    <TABLE id="MainTable" height="324" cellSpacing="0" cols="10" cellPadding="1" width="325"

                                        border="0">

                                        <!-- Page Body -->

                                        <TR valign="top">

                                            <TD colSpan="10"><asp:placeholder id="PageBodyPlaceHolder" runat="server"></asp:placeholder></TD>

                                        </TR> <!-- Page Footer-->

                                        <TR class="MainMenuItem" height="5%">

                                            <TD align="center" colSpan="10"><asp:placeholder id="PageFooterPlaceHolder" runat="server"></asp:placeholder><IMG src="images/clearpixel.gif"></TD>

                                        </TR>

                                        <TR valign="bottom" height="5%">

                                            <TD style="BORDER-TOP: black thin solid" colSpan="10" align="left"><asp:Image height="25" id="Logo" Runat="server" /><IMG width="20" src="images/clearpixel.gif"><!--<IMG src="images/SignalAndBatteryActual.bmp">--></TD>

                                        </TR>

                                    </TABLE>

                                </form>

                                <script language="javascript">

                                    /*var eventcountselect = document.getElementById('eventcountselect');

                                    if (eventcountselect != null) //Check if we are dealing with the product enquiry screen

                                    {

                                        var HORefNum = document.getElementById('_ctl0_HORefNum');

                                        if (HORefNum != null)

                                        {

                                            if (HORefNum.value != null || HORefNum.value != "")                       

                                                HORefNum.select();

                                            HORefNum.focus();

                                            HORefNum = null;

                                            var intervalId = window.setInterval("keep_field_infocus('_ctl0_HORefNum');", 10000, "javascript");

                                        }

                                        eventcountselect = null;

                                    }

                                    */

                                    var eventcountselect = document.getElementById('addscannedproductitem');

                                    if (eventcountselect != null) //Check if we are dealing with the Event Count

                                    {

                                        var HORefNum = document.getElementById('_ctl0_ProductShelfEdgeInput');

                                        if (HORefNum != null)

                                        {

                                            if (HORefNum.value != null || HORefNum.value != "")                       

                                                HORefNum.select();

                                            HORefNum.focus();

                                            HORefNum = null;                   

                                        }

                                        else

                                        {

                                            var HORefNum = document.getElementById('_ctl0_EnterQtyPrice');

                                            if (HORefNum != null)

                                            {

                                                //if (HORefNum.value != null || HORefNum.value != "")                                                   

                                                //    HORefNum.select();

                                                HORefNum.focus();

                                               

                         

                                            HORefNum.value = "0.00";

                         

                                            HORefNum = null;

                                            }                   

                                        }

                                        eventcountselect = null;

                                    }                       

                         

                                    var eventcountscanproducts = document.getElementById('eventcountscanproducts');

                                    if (eventcountscanproducts != null) //Check if we are dealing with the product enquiry screen

                                    {

                                        var SKUEANInput = document.getElementById('_ctl0_ProductShelfEdgeInput');

                                        if (SKUEANInput != null)

                                        {

                                            if (SKUEANInput.value != null || SKUEANInput.value != "")

                                                SKUEANInput.select();

                                            SKUEANInput.focus();

                                            SKUEANInput = null;

                                            //var intervalId = window.setInterval("keep_field_infocus('_ctl0_HORefNum');", 10000, "javascript");

                                        }

                                        eventcountscanproducts = null;

                                    }

                         

                                    var gettaskrefnum = document.getElementById('GetTaskRefNum');

                                    if (gettaskrefnum != null) //Check if we are dealing with the gettaskrefnum webcontrol

                                    {

                                        var taskrefnum = document.getElementById('_ctl0_RefNum');

                                        if (taskrefnum != null)

                                        {

                                            if (taskrefnum.value != null || taskrefnum.value != "")

                                                taskrefnum.select();

                                            taskrefnum.focus();

                                            taskrefnum = null;

                                        }

                                        gettaskrefnum = null;

                                    }   

                                   

                                   

                                    function CurrencyFormatted(amount)

                                    {

                                        //alert("hi");

                                        var i = parseFloat(amount);

                                        if(isNaN(i)) { i = 0.00; }

                                        i = Math.abs(i * 10);

                         

                                        i = Math.round(i*Math.pow(10,2))/Math.pow(10,2);

                                   

                                        s = new String(i);

                                        if(s.indexOf('.') < 0) { s += '.00'; }

                                        if(s.indexOf('.') == (s.length - 2)) { s += '0'; }

                                       

                                        return s;

                                    }

                                   

                                    function OnKeyPressPriceCheck(s)

                                    {

                                        // Enter

                                        if (s==13 && EnterFlag == false)

                                        {   

                                            //var QtyPrice = document.getElementById('_ctl0_EnterQtyPrice');           

                                            //__doPostBack(QtyPrice,'');            

                                            __doPostBack('_ctl0$EnterQtyPrice','')                                   

                                        }

                                        else if (s!=13)

                                        {               

                                            if (s!=190)

                                            {

                                                var EnterQtyPrice = document.getElementById('_ctl0_EnterQtyPrice');

                                                //alert(s);

                                                EnterQtyPrice.value= EnterQtyPrice.value + (s - 48);

                                                //alert(EnterQtyPrice.value);

                                                //alert(parseInt(s));

                                           

                                                var profits=EnterQtyPrice.value;

                                                EnterQtyPrice.value = CurrencyFormatted(profits);

                                            }

                                        }

                                        //alert("Price Check");           

                                        //var profits=v.value;

                                        //v.value = CurrencyFormatted(profits);

                                    }               

                                   

                                   

                                    function PriceCheckFormat(v)

                                    {               

                                        var profits=v.value;

                                        v.value = CurrencyFormatted(profits);

                                    }

                                </script>

                            </body>

                        </HTML>

                      • Re: PB to EB migrated app not fitting screen correctly
                        Joydeep Chakraborty

                        Hi Warren,

                        Any update?

                        Could you catch hold of the pages?

                        I am also wondering why the pages are not being rendered in webkit,

                        Also please let me know whether it works in device native IE outside Enterprise Browser on MC32N0 CE 7.

                         

                        Regards,

                        Joydeep