Showing results 1 to 2 of 2

Thread: context.Parent.Parent.Close(); on client side

  1. #1

    Default context.Parent.Parent.Close(); on client side

    Hi,
    would it work on client side context.Parent.Parent.Close();? When I trying to use that in Web Client Starter, client freezes.

    So if it work, what I need to do before using this statement?

  2. #2
    Join Date
    02.02.2012
    Posts
    23

    Default Re: context.Parent.Parent.Close(); on client side

    Hi Oleksandr,

    the method IApplication.Close() is not intended to be used in the Webclient/Smart Client. This method should only be called inside the editor or the runtime.

    The Webclient/Smart client is a Control, which is embedded inside another application, in this case Internet Explorer or Smart Client Starter. At least on Windows a Control should not Close its hosting application directly.

    So if you want to Close the Webclient/Samrt client, which is running embedded in the Smart Client Starter, you should close that process instead.

    Regards,
    Martin

Similar Threads

  1. Dynamic font size on client side
    By Oleksandr in forum Add-In Framework
    Replies: 1
    Last Post: 3rd February 2022, 18:18
  2. Context List
    By mjackson in forum Engineering Studio & Service Engine (former zenon Editor & Runtime)
    Replies: 2
    Last Post: 25th March 2019, 15:28
  3. context menu
    By Shubham Ghatwal in forum Engineering Studio & Service Engine (former zenon Editor & Runtime)
    Replies: 4
    Last Post: 3rd April 2018, 16:23
  4. Close "Web-Client" window automatically
    By herberto in forum zenon Network
    Replies: 10
    Last Post: 25th May 2016, 10:42
  5. Close Runtime on panel.
    By takarlsson in forum Engineering Studio & Service Engine (former zenon Editor & Runtime)
    Replies: 1
    Last Post: 3rd May 2011, 01:23

Posting Rules

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •