[REACT] Getting instance after adding new blank file using ribbon from designer

Posted by: dominika.pacholec on 3 December 2020, 6:59 am EST

  • Posted 3 December 2020, 6:59 am EST

    Hi,

    After initialize designer component we can get spreadsheet instance from

    designerInitialized
    method. Our component looks like below:

    <Designer
                styleInfo={{ width: '100%', height: '100%' }}
                designerInitialized={designerInitializedCallback}
            />
    

    But after creating new blank file (Clickin on the ribbon ‘File’ tab and then ‘New blank’ that old spreadsheet instance is destroyed (there is no information about new sheets) but we can’t find an information how can we get new created instance. Is there any callback or event? We couldn’t find information about that in documentation.

  • Posted 8 December 2020, 8:22 am EST

    I’m looking forward to hearing from you. Thanks

  • Posted 9 December 2020, 6:59 am EST

    Hi Dominika,

    We are unable to achieve the required functionality using the current public API hence we have escalated this issue to our Devs. We will update you once we have any information. The internal ID for this issue will be SJS-6810.

    Regards

    Avinash

  • Posted 15 December 2020, 9:03 am EST

    Hi Dominika,

    The Dev team is not sure about what actually you are looking for. If you want to get the workbook instance you may use the designer.getWorkbook method. If it doesn’t help please explain more about the use case so that we could assist you accordingly.

    Regards

    Avinash

Need extra support?

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

Learn More

Forum Channels