13 Replies Latest reply on Jan 12, 2017 2:49 PM by cachilli

    Sound Script not working on MC32 CE7

    sscan Rookie

      Hello Team

       

      For one customer, i sue the script editor to play a sound i case of false beep, in WIB environement

       

      This function work very well under Zebra MC31 (WCE6), with all TE version (7.0 to 7.3)

       

      See Attached Files

       

      Since migration to WCE7, this script have no longer Effect, i think about a new IE tweak

       

      If someone have an idea

       

      Regards

        • 1. Re: Sound Script not working on MC32 CE7
          cachilli SupportEmployee

          Could you attach your script that you are currently using please? that would help in understanding what you are attempting to do and how..

           

          Thanks

          • 2. Re: Sound Script not working on MC32 CE7
            cachilli SupportEmployee

            my intial thought would be that there is no activitation method to launch the script..

             

             

            You would need to choose one from the list below or use the reformatter to activate the script.

             

            • 3. Re: Sound Script not working on MC32 CE7
              sscan Rookie

              Hello Cachilli

               

              Thank for the Anwser, But how explain that working on WCE6 and not On WCE7

               

              I verify the mc3190 config, it's the same (no activation methods check)

               

              Maybe i need to check activation condition > when session connect

               

              thank for your help

              • 4. Re: Sound Script not working on MC32 CE7
                cachilli SupportEmployee

                There could be numerous reason for this.. Are you the one that set up the working devices?

                 

                it could be that the working device is using the reformatter to kick off the script.. this does not require an activation.

                 

                it could be that its being called from another script..

                 

                i would investigate the working device a bit more to see what the differences are..

                • 5. Re: Sound Script not working on MC32 CE7
                  sscan Rookie

                  Hello cachilli

                   

                  Yes, i do the original configuration on MC31 under WCE6

                   

                  It's a Web environement, so no reformater was activated, and no another script present.

                   

                  You will find attached the 2 original config on MC31 and MC32 in first post

                   

                  Many thank for your help

                  • 6. Re: Sound Script not working on MC32 CE7
                    cachilli SupportEmployee

                    i looked at the wltna and i don't see anything out of place.. unless you are somehow calling this script from the web page itself, i do not see how it would run.. i stand by my original assessment that you need to have an activation method for it to run.. In its current state, there is nothing in the Wavelink client that will start this script..

                    • 7. Re: Sound Script not working on MC32 CE7
                      sscan Rookie

                      Hello cachilli

                       

                      Thank Again for the time you spent on this treat.

                       

                      I guarantee this script working well under WCE 6 MC31, and not working with WCE7 MC32

                       

                      We have something on web page will trigger this script, but unfortunally i'm not the main dev of this page. I try to see with the customer if i can save html code of the page (maybe with JS included).

                       

                      i want to understand first how it will work on MC31

                       

                      best regards

                      • 8. Re: Sound Script not working on MC32 CE7
                        sscan Rookie

                        Re

                         

                        I update The original post with the web page saved, after an error

                         

                        I see in the files :

                         

                        // Make sound for RFGun

                        function makeErrorSound(){

                         

                         

                          var platform = navigator.platform;

                          var indexOf = platform.indexOf("CE");

                         

                         

                          if(indexOf != -1){

                          ErrorElt.innerHTML += "<a href='wls:beepnok' id='beepLink' target='_blank' ></a>";

                          document.getElementById('beepLink').click();

                          }

                        }

                         

                        If that give you an idea

                        • 9. Re: Sound Script not working on MC32 CE7
                          Matt Dermody SSMMVPGroup

                          It looks like that code verifies that the platform version is "CE" before executing the command to launch the "beepnok" script. It's possible that Windows CE 7, which is technically rebranded as Embedded Compact 7, has a different platform value and so the code never executes.

                          • 10. Re: Sound Script not working on MC32 CE7
                            sscan Rookie

                            Hello Matt

                             

                            I think your are in the good way, son now the question is :

                             

                            1) is it possible to false the browser identification (i think No)

                            2) is it possible to do another script, who's searching after the message Erreur Etiquette non existante , or just the red zone to execute the original script?

                             

                            For the Second question, because is Web emulation, i wan't to answer no

                             

                            On my side, i will do a small php script to report browser identification, to see diferences.

                             

                            Best regards

                            • 11. Re: Sound Script not working on MC32 CE7
                              cachilli SupportEmployee

                              There is an option in scripting to Search_Source.. this method searches the source code of the page for a particular word or phrase and then you can have it perform a function.. below is an example of to use it..

                               

                              Script( SearchSource )

                              Boolean( bSearch )

                              Activate( From_Menu )

                               

                                  bSearch = Web_Search_Source( "Erreur Etiquette non existante", TRUE, TRUE )

                                  If( bSearch )

                                      Message( "Found", 5 )

                                  Else

                                      Message( " NOT Found ", 5 )

                                  End_If

                                  Return

                              • 12. Re: Sound Script not working on MC32 CE7
                                sscan Rookie

                                Hello Cachilli

                                 

                                I do the test, that not work cause the input have a type set to Hidden, or maybe because it's insered on a table :

                                 

                                <table>

                                    <tr>

                                          <td>

                                <input type="hidden" id="PYProdEProdLabelNotExistError_Id" value="Etiquette non existante">        </input>

                                ...

                                </td>

                                        </tr>

                                  </table>

                                 

                                Additionnaly, the trigger can not set to "on screen update" with web ?

                                 

                                if you have a other idea?

                                 

                                best regards

                                • 13. Re: Sound Script not working on MC32 CE7
                                  cachilli SupportEmployee

                                  You have a couple options left.. the first being to use the reformatter within the TE client, this method you can narrow down to a particular screen without modifying the script or to contact sales for professional services..