Skip to Content
avatar image
Former Member

re-arranging the tiles in sapui5

Hi Experts,

I have created a SAPUI5 application for re-arranging the tiles on click of a button. The application was working fine and was able to re-arrange the tiles and model data was also getting updated.

Now, when i am trying to run the application again i am getting the error message as "Uncaught TypeError: Cannot read property 'style' of null".

Kindly assist me in fixing the error.

JS Bin link: JS Bin - Collaborative JavaScript Debugging

Thanks & Regards,

Varun V

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Best Answer
    Apr 18, 2016 at 08:56 AM

    Hi Varun,

    If I comment on below line in tileMove event , it works fine: JS Bin - Collaborative JavaScript Debugging

    // var i = swap(obj1, initial, obj1, last);
    
    

    What exactly are you trying to achieve with 'swap' function?


    Regards,

    Sai Vellanki.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Sai Vellanki

      Hi Sai,

      Also wanted to know why you added dealyedcall to the swap function since the same code was working fine last month and it stopped working all of sudden from last 2 weeks or so. @Sai Vellanki.

      Regards,

      Varun V

  • avatar image
    Former Member
    Apr 18, 2016 at 03:36 AM

    Looping in @Dennis Seah, @Sai Vellanki.

    Kindly assist.

    Add comment
    10|10000 characters needed characters exceeded