How to dataBind spreadSheet to a server side bean

Posted by: fahmii.bensalah on 13 March 2018, 9:47 am EST

    • Post Options:
    • Link

    Posted 13 March 2018, 9:47 am EST

    Hello,

    I have built a Spring WebMVC App with Primefaces. This app contains a list of nodes which can be dragged into the spreadSheet. I need to do the synchronization between the node and its value in the spreadSheet and aim-versa (communication between the primefaces component and spreadJS). for that i decide to load the spread from a json file. i didn t find the best way to do this communication because i can not add a parameter to the json file to add the id of the node after dragging it and when i change the json (which is server side), the refresh of the spreadSheet can t detect the changes that i made in the json file. How can i do this synchrnisation ?

    Thanks in advance.

  • Posted 14 March 2018, 1:13 am EST

    Hello,

    You will need to reload the JSON every time a change is made.

    Thanks,

    Deepak Sharma

  • Posted 14 March 2018, 7:52 am EST

    Ok but how can i modify the json after dragging a node into the spreadJS ? i need to bind all the events on the spreadSheet but in every event i need to update my json . How can i do this ? and Can i add some parameter to the json like nodeId for detecting after which node i m modifying ?

    Thanks.

  • Posted 16 March 2018, 1:44 am EST

    Hello,

    I could not find a better way of doing this. You would need to update the JSON everytime there is a change in order to keep it in synchronization.

    Thanks,

    Deepak Sharma

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels