Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    SmartGWT is overwriting the "DataView" variable in the global JS namespace

    Hi Team,

    We have defined a Javascript function which uses the JS DataView internal function but when we are calling the JS defined fucntion from SMARTGWT using native support then it overwrite the JS DataView with the smartGWT DataView class.
    IS there any way where we can restrict smartGWT to not overwrite the javascript internal DataView?


    #2
    sample code of Javascript function where we using the javascript DataView fucntion but it get overwritten by smartGWT DataView Class
    function BinaryReader(buffer, littleEndian) {

    this.dv = new DataView(buffer,0,buffer.length);
    this.offset = 0;
    this.littleEndian = (littleEndian !== undefined) ? littleEndian : true;

    }

    Comment


      #3
      Hi team,

      We already have tried the below hack
      https://groups.google.com/forum/#!ms...U/IlZJZa4mEQAJ

      but it didn't wok in our case as we need to call DataView function with dynamic buffer value calculated only at run time and u can't modify the buffer size once it get constructed.

      Please respond ASAP. We are really in trouble.

      Comment


        #4
        See SmartClient docs for simpleNamesMode. When SmartClient is manually loaded, as for SuperDevMode, you need to set a variable to enable "portal mode" as described in the above docs. In this case SmartClient will not use any global variables (such) as DataView except those prefixed "isc".

        Comment


          #5
          thanks team, It worked :)

          Comment

          Working...
          X