EntityClientScope Refresh

Posted by: jejego79 on 27 December 2017, 6:45 pm EST

    • Post Options:
    • Link

    Posted 27 December 2017, 6:45 pm EST

  • Posted 28 December 2017, 8:24 pm EST

    Hi,

    You could try committing the changes using

    _scope.GetItems<Product>().Transaction.[b]Commit[/b];
    

    Also, you could use C1DataSource in between grid and EntityClientScope. C1DataSource has SaveChanges method that should help you.

    I suggest you to refer to the product sample TutorialsWinForms installed at …\Documents\ComponentOne Samples\WinForms\C1DataSource\CS\TutorialsWinForms

    location in your machine.

    Thanks,

    Ruchir Agarwal

  • Posted 28 December 2017, 9:24 pm EST

    Thank you for your reply.

    I have opened multiple grid forms bound to ClientView in a single _scope.

    I want the function like the Referash () method of C1DataSource.

    Any EntityViewSource that exists in the collection will read the contents of the changed server.

    Can I refresh multiple ClientView s created in a single _scope at one time?

    Also, can I modify each ClientView to save it to the server at once?

    Thank you.

  • Posted 1 January 2018, 11:18 pm EST

    Hi,

    Using LiveViews, once the data changes in background, flexgrid (UI component) also gets refreshed. Please refer attached application.

    If it does not meet your requirements then please modify the same to replicate as per your use case and share back, so that we could share a solution as per your scenario.

    ~Ruchir Agarwal

    C1FlexGrid_EntityClientScope.zip

Need extra support?

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

Learn More

Forum Channels