Premium support for our pure JavaScript UI components


Post by david10sing »

Hi

Not sure if it is our local setup but during

getDragData(info) 

,

{
      record,
      dateConstraints,
      eventBarEls,
      draggedEntities
    } = me.setupProductDragData(info)

record and dateConstraints are undefined...

worked fine on v4.2.1 of scheduler pro and not with v4.2.4.


Post by mats »

getDragData is private, you should not rely on its presence or return value...

Can you please explain what you are looking to do?


Post by david10sing »

Hi Mats,

I was trying to debug why I am getting errors.

I updated from v4.2.1 to v4.2.4 and now drag and drop is broken.

Has anything changed around that API?


Post by mats »

Not that we're aware of - look in changelogs? How is drag drop broken for you? Can you repro in our samples? Can you please provide a test case?


Post by david10sing »

Hi Mats,

Please disregard. After refreshing the frontend caches, it is working again now.

Thank you


Post by david10sing »

Hi Mats,

I would like to re-open this ticket please. It appears that it is in fact a problem. I've attached a link to a https://havas-my.sharepoint.com/:u:/g/personal/david_sing_globalservs_com/EX5GFQl1tf1CsfEa3tbUU60BYOYbxfU6S1GLy1smSqqbJQ?e=HhcpzP

Please email me to get the password to the file.

Navigate to the group summary demo and try to drag an event. There are a lot of errors in the dev console.

Thank you


Post by mats »

There are a lot of errors in the dev console.

Whenever you encounter errors, please always post them here incl full callstack to help us debug.

please email me password


Post by mats »

Happens since you mix types.

"id": “867",

‘id’ of resources should have same type as ‘resourceId’ on events. You’re mixing strings / numbers. Change to

"id": 867,

and it works fine.


Post by david10sing »

Hi Mats,

Thank you. Why is this happening now?


Post by mats »

No clue, we never intended to support using mixed data types like that.


Post Reply