How to allow cleanup actions to be taken by a reentrant clone before it is killed, when viewed via web server, because of a browser close?

Here is a question I'm having to luck with.  I have a VI, set to be reentrant, which is published via the web server.  The main VI instance is never interacted with: it makes a clone every time someone navigates to the proper URL, and the user interacts with the newly created clone (never the main instance).  A clones is capable of configuring and calling instrument VI's when proper login credentials are entered, which results in browser popups that are controllable on the user's end (though only one user is ever doing this at a time. To clarify, multiple clones can be open simultaneously for login purposes, but only one user is ever interacting with the instruments, which aren't themselves reentrant). 
If the user clicks my custom logout button in their browser, it is trivial to close these other, independent instruments and clean up properly.  But if the user simply clicks the red X in their browser, there is no graceful shutdown and the instruments which the clone called stay open on the server, when they should be closing.
My experience so far:
No panel close? event seems to be triggered in the clone.  The clone simply ceases to be.
The remote_panel_connections property doesn't seem to work correctly in this instance (I haven't had any luck so far), since it is possible for more than one clone to be active, and the main parent that is spawning the clones stays running but isn't interacted with in any way.
What I Need:
A way for the clone VI to recognize that the user has closed their browser, and communicate that it is closing to all active VI's before terminating.
I would like to avoid forcing the instruments that the clone calls to poll constantly to see if the clone VI is present on the network.  If there is no other solution but this, I would appreciate a suggestion as to the least resource and code intensive way to implement this type of polling, as the instruments are really meant to be totally independent entities after they are called, rather than sub vi's. 
Thanks for any input, let me know if more information is needed.
Solved!
Go to Solution.

Hey MTdev,
Panel close? events cannot be triggered on a VI being viewed or controlled remotely. Some more information on that can be found in the help here:http://zone.ni.com/reference/en-XX/help/371361E-01/lvprop/vi_panel_closeq/.  My suggestion would be to set the Title Bar on the front panel of your remote VI to not be visible so that their only option for closing the window is to click the logout button.  Are you using Remote Front Panels(http://zone.ni.com/devzone/cda/tut/p/id/3277) to do this instrument control?  Using remote front panels allows you to manage a lot of the multiple people accesssing at the same-time type issues so it may be something to look into if you are not already using this method.  
Regards,
Kevin
Product Support Engineer
National Instruments

Similar Messages

  • How can I transfer photos from LG phone to mac notebook.  Phone appears in iPhoto when connected via USB but selection for download shows 0 photos

    How can I transfer photos from LG phone to mac notebook.  Phone appears in iPhoto when connected via USB but selection for download shows 0 photos

    Just open your LG volume up likes its an external HD and drag all photos onto a folder in your macbook Air.

  • How do you fix Iphone 4s to send email if everytime you try, it responds email was rejected by the server because it does not allow relaying?

    Question - When I try to send an email on my Iphone4S, it responds "Cannot send mail.  A copy has been placed in your Outbox.  The recipient was rejected by the server because it does not allow relaying."  How do I fix this problem?

    Problem has been solved thanks to a posting by AmberDrivingKendal on 5/15/11.  More Like This section was a great help.

  • Photo Stream allowing images to be downloaded when viewed on web

    I have created a photo stream with Aperature 3.4 and sent it to a freind that doesn't have a icloud account. When he receives the email and clicks on the Web link to view the images it works fine. He then clicks on the image to view it in the player and at the bottom there is a download button and he can then save it on his machine. I would like for people to see my images but not download them. Is this possible or should I find a better solution. Im worried about using it and having people steal my images that are copyrighted.
    Thanks Ken

    If that were solely the case, then why are there "public" photostream galleries available?
    Do you have to ask? The public streams are for showing off your public photos to everybody, if you do not care who will be viewing them.
    Shared streams, only viewable by carefully selected few persons are great to send your family photos to your relatives or photos from special events to your friends. And in this case you will want them to be able to download the photos.
    The option to disable downloads should be provided, regardless.
    That does not help much. You can always make a screenshot. A watermark will give more protection.

  • How to use the web server tips (connected/disconnected)?

    Using the web server tips into a VI to know when a client is connected or disconnected.
    Hello Everyone
    I want to use the tips that appear when a remote user gets control of my VI via web server. That way I will be able to trigger some other operations as soon as the user gets in or out my VI. How can I extract the information that contains that (user has or has not control). I hope you can help me.
    Regards
    Marco Roman

    There is a VI method called Remote Panel Client Connections. It returns an array of clusters with connection information and also has a Controller output. If the controller output is -1, no clients are connected.

  • How to configure additional action

    Hi,
    How to Configure additional action in a system where only  one action is allowed for an employee in same day in IT0000, and what is the purpose of IT0302.
    it will be helpful if any one shares the steps.
    Thank you
    Srihari

    Hi,
    Infotype 0302 Additional Actions allows you to automatically log all of the personnel action types that are performed for an employee on a specific date. It allows you to perform and document several personnel action types for an employee in the R/3 System on the same day.
    You can display and edit the data records logged in the infotype Additional Actions (0302) on the list screen of the infotype Actions (0000),
    In Customizing for Personnel Administration, choose menu path Setting Up Procedures -> Actions -> Set up personnel action types to specify, among other things, the following:
    whether you want to use the automatic logging of personnel action types in the infotype Additional Actions (0302)
    which personnel action type should be saved, that is preserved, in the infotype Actions (0000) if you perform another personnel action type for the employee on the same day.
    You can check the link below for detailed procedure for config:
    http://help.sap.com/saphelp_46c/helpdata/en/dd/234b6e5733d1118b3f0060b03ca329/content.htm
    Hope it helps!
    Arpita

  • URGENT!! How to unrestrict restricted actions at runtime??

    Hi All,
    I have a bpel process in which i restricted system actions like Reassign,
    now the process is in the production environment,
    i have to reassign user tasks to another one :
    i tried via the bpel api using reassign() api an error told me that the action is restricted on this task, eventhough i logged in as bpeladmin who has the right to perform restricted actions for tasks he owns.
    Please Any help will be appreciated,
    Thanks

    Hi,
    well i figured out how to do it,
    - just go to the domain folder in bpel, go to the temp directory then the folder of the process
    - open the .task file of the task you want to allow an action for
    - comment the action you want to allow in the "restrictedActions" tag
    - restart the server
    HTH

  • How to allow access to web service running under ApplicationPoolIdentity

    Hi All,
    I have a WCF web service hosted in IIS 7 (or maybe 7.5, whichever comes with Windows server 2008 R2) using DefaultAppPool running under ApplicationPoolIdentity per Microsoft's recommendation. The web service needs to call a stored procedure to insert data
    to a db. The web server is on a different VM than the database server. The db server is running SQL 2008 R2. Both VMs run Windows server 2008 R2.
    When the web service tries to connect to db, it encounters this exception:
    Exception in InsertToDb()System.Data.SqlClient.SqlException (0x80131904): Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.
       at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
    Here's the connection string in web.config:
    Application Name=somewebservice;Server=somewebserver;Integrated Security=SSPI;Database=somedatabase;Connection Timeout=60"
    How should I configure SQL security to make this work?
    Thanks in advanced.

    Thanks for the link Dan. Maybe I'm the one who cause the confusion :)
    If I understand you(and Erland) correctly, you suggest using a custom, domain account for application pool identity. However, if we do that, our IT will need to maintain those accounts, and they don't  want that. So I'm choosing a built-in account called
    ApplicationPoolIdentity as the application pool identity, but it's not working. Network Service, on the other hand, works, but my boss wants us to follow MS's best practice.
    What's puzzling is that according to this: http://learn.iis.net/page.aspx/624/application-pool-identities/, both Network Service and ApplicationPoolIdentity uses machine account to access network resource (like db in this case), but in my case, Network Service
    works, but not ApplicationPoolIdentity.
    Hallo Stephen,
    with respect - it seems to me that only idiots are working at your IT ;)... It is absolutely useful to work with "service accounts" created within the domain. That's the only way to manage and control accounts!
    If you want to "pass through" the identity of the web user (SSO) you have to check whether the app pool is set to "allow impersonate". As far as I understand the ApplicationPoolIdentity-function the app pool will create a unique user named as the service.
    I assume that will not work with the connection to the sql server because this user is unknown.
    Local Service will not work because it's restriction is located to the local machine.
    Network Service will work because access to network resources will be available.
    So my recommendation is to use a dedicated service account or impersonation:
    http://msdn.microsoft.com/en-us/library/xh507fc5.aspx
    Uwe Ricken
    MCITP Database Administrator 2005
    MCITP Database Administrator 2008
    MCITS Microsoft SQL Server 2008, Database Development
    db Berater GmbH
    http://www-db-berater.de

  • How to allow access only from certain IPs?

    I have Portal Server 6.0 on Sun ONE Web Server and want to allow access to it only from certain IPs, i.e. if my IP differs from predefined, then access is denied (no page is opened).
    How can I implement this with minimal efforts?
    Thanks in advance!

    Where did you set the ACLs?
    When webclients connect direct to the portal/ids this is pretty straight forward using htttpacl files. When SRAP GW's are used for Internet portal access the web or app-server never sees the client IP thus those ACLs don't get applied.
    Am I missing something (won't be the first time... or the last:-)
    Cheers,
    -psr

  • How to allow some fixed extension go in from outside to inside but not allow go from inside to outside

    how to allow some fixed extension go in from outside to inside but not allow go from inside to outside
    for example, allow JPEG, MOV, AVI data flow from outside to inside
    but not allow JPEG, MOV, AVI files access or upload or get by outside, in another words not from inside to outside
    how to configure?

    Hi,
    The ZBF link sent earlier show how we can inspect URI in http request
    parameter-map type regex uri_regex_cm
       pattern “.*cmd.exe”
    class-map type inspect http uri_check_cm
       match request uri regex uri_regex_cm
    ZBf is the feature on Cisco routers and ASA though concepts are little same but works differently. However it is important that you can be more granular with the protocol (layer 7) inspection only. Like on ASA if you will try to restrict .exe file from a p2p application that won't be possible, But on router you have some application for p2p in NBAR and you can use it file filtering. Please check configuartion example for both devices.
    Thanks

  • Sending an email from my Ipad I get "receipient was rejected by server because it does not allow relaying". What does this mean and how do I correct it?

    When sending an email from my Ipad. I get "receipient was rejected by server because it does not allow relaying". What does this mean and how do I correct it?

    On the email account's settings (Settings > Mail, Contacts, Calendars and tapping on the account on the right), go into it's outgoing SMTP settings and try putting in your email name and password (they might currently show as 'optional')

  • Z-Button - How to call a Action Profile to Open a PDF-Doc. within an Event?

    Hi Experts,
    we have created a Z-Button that afterwards creates an event. In the coding for the event an Action Profile should be called and a PDF-Document should be opened. We have copied the coding from the standard button 'Print Preview' which is calling the standard event: EH_ONPRINT_PREVIEW.
    We have also defined a Z Action Profile which is a copie of SERVICE_CONFIRMATION. Our problem is we don't know how why our Z-Action Prodile is not called? What is the class lr_actioncontext (TYPE REF TO cl_crm_bol_entity)?
    DATA: lr_cn               TYPE REF TO cl_bsp_wd_context_node,
            lr_adminh           TYPE REF TO cl_crm_bol_entity,
            lr_actioncontext    TYPE REF TO cl_crm_bol_entity,
            lv_adminh_guid      TYPE string,
            lv_url              TYPE string,
            lc_head_context     TYPE REF TO cl_doc_context_crm_order,
            lt_item_context     TYPE ppftctxpos,
            iv_header_guid      TYPE crmt_object_guid,
            lif_decision_pop    TYPE REF TO if_bsp_wd_popup,
            lv_string           TYPE string.
      CHECK gv_print_preview_enabled = abap_true.
      lr_cn = me->get_context_node( gc_cn_btadminh ).
      CHECK lr_cn IS BOUND.
      lr_adminh ?= lr_cn->collection_wrapper->get_current( ).
      CHECK lr_adminh IS BOUND.
      lv_adminh_guid   =  lr_adminh->get_property_as_string( iv_attr_name = 'GUID' ).
      lr_actioncontext = lr_adminh->get_related_entity( iv_relation_name = 'BTHeaderAction' ). "#EC NOTEXT
      CLEAR gt_print_actions.
      CLEAR gr_action_popup.
      iv_header_guid = lv_adminh_guid.
      CALL METHOD cl_crm_uiu_actions_tools=>get_action_definition
        RECEIVING
          rv_action_def = lv_string.
      CALL METHOD cl_crm_uiu_actions_tools=>show_print_actions_popup
        EXPORTING
          ir_action_context       = lr_actioncontext
          ir_parent_node          = lr_adminh
          ir_view_controller      = me
          ir_component_controller = comp_controller
          iv_event_name           = gc_ev_print_preview_closed
          iv_for_preview          = abap_true
          iv_appl_guid            = lv_adminh_guid
        IMPORTING
          et_actions              = gt_print_actions
          ev_url                  = lv_url
        CHANGING
          cr_decision_popup       = gr_action_popup.
      IF lv_url IS NOT INITIAL.
        call_print_preview_popup( lv_url ).
      ENDIF.
    Best Regards

    Closed. No answers.

  • HT3228 I set up my work e-mail on iphone.  When I try to send an e-mail, an error code says "Cannot Send Mail", "recipient rejected by server because it does not allow relaying".  What does this mean and how do I correct it?

    I set up my work e-mail account on my iphone 4S.  When I try to send an e-mail message from my phone, an error message occurs "Cannot Send Mail" - "recipient was rejected by the server because it does not allow relaying".  What does this mean and how do I correct it?

    Get the correct mail server settings from your IT department.

  • OSB : How can we copy  actions from one project folder to other projects?

    How can we copy actions from one project folder to other projects in OSB?
    For eg:
    I have a service call out action in Project1/proxySer1
    I want to copy this to Project2/proxySer2.
    Espicially, in our case error handling callout is common to all of our projects and we should be able to copy from one to another.
    Edited by: user10367892 on Aug 20, 2009 12:28 PM

    Thank you for the reply.
    It was my fault. I was on two different servers, while i was doing this and so didn't work. But copy /past action works as you suggested.
    Can I select multiple actions from one stage and paste to different proxy service? I have too many options to copy/paste and hence I have this question.
    Is there any other way of copying all selected actions in one stage to another, but not the complete stage itselft?

  • How can i set action on UITaBar and get event from that

    Hi All,
    I m doing one apps in which i have to add three UITabBarItem and this is UITabBarSystemItem.
    Now i cannot understand that how can i set action and get event from the?
    And how can i set various views on three tab bar item.
    I have to use UITabBar means i have to use UINavigationController+UITabBar
    My code id
    tabBar =[[UITabBar alloc] initWithFrame:CGRectMake(0,370,320,50)];
    tabBar.backgroundColor =[UIColor blackColor];
    UITabBarItem *search =[[UITabBarItem alloc] initWithTabBarSystemItem:UITabBarSystemItemSearch tag:0];
    UITabBarItem *recents =[[UITabBarItem alloc] initWithTabBarSystemItem:UITabBarSystemItemRecents tag:1];
    UITabBarItem *favorites =[[UITabBarItem alloc] initWithTabBarSystemItem:UITabBarSystemItemFavorit es tag:2];
    tabBar.items =[[NSArray arrayWithObjects:search,recents,favorites, nil] retain];
    tabBar.selectedItem = search;
    [myView addSubview:tabBar];
    [tabBar release];
    I add a action:
    UITabBarItem *search =[[UITabBarItem alloc] InitWithTabBarSystemItem:UITabBarSystemItemSearch tag:0 action:@selector(select:)];
    So it error: Warning -no'InitWithTabBarSystemItem:tag:action:' method fount
    So any can help me regarding it?

    Thanks RickMaddy very much.
    I read and do with sample at the View Controller Programming Guide . But when run it only view TabBar with title but haven't got any TabBarItem on it. I searched a few example about TabBar and i did, but i want do a form with a button then press on button it view a form with 2 TabBarItem on TabBar and press each TabBarItem will show correlative form page 1, page 2.
    UITabBarController *tabBarControl = [[[UITabBarController alloc] initWithNibName:nil bundle:nil] autorelease];
    tabBarControl.title = @"Tab bar";
    ViewControl1 *view1 = [[[ViewControl1 alloc] initWithNibName:@"ViewControl1" bundle:nil] autorelease];
    ViewControl1 *view2 = [[[ViewControl1 alloc] initWithNibName:@"ViewControl2" bundle:nil] autorelease];
    tabBarControl.viewControllers = [NSArray arrayWithObjects:view1,view2,nil];
    [self.navigationController pushViewController:tabBarControl animated:YES];

Maybe you are looking for

  • Unable to install Oracle XE Client on Ubuntu 8.04 - "no such user"

    Hi, I've just installed Oracle XE client on my desktop machine (64bit Ubuntu 8.04), and I had to manually create some users and groups: sudo groupadd nobody sudo groupadd oinstall sudo useradd -s /bin/bash -g oinstall -G dba oracle sudo passwd oracle

  • Cannot delete R&R backups, not enough space

    I have R&R V3.01.1037.00 installled on my son's laptop.  It has some old R&R backups which I want to delete.  I've run R&R from the Programs list and found the Advanced tab which allows me to delete backups ... however when I try and delete one it sa

  • Homehub losing network access

    Good morning, I recently took out a contract with BT for unlimited broadband - everything has been set up but i am having problems with my homehub. When it works the speed is great but i am constantly losing network access. Initially i was connecting

  • Problem with f.03 clearing

    Hi,    When i tried to clear 2 bank clearing accounts for one account document was created with line items, but for another document there are no items. Can any one please help me solve this. thanks, sravanthi

  • EDI Order Response

    Hi, How can i check the net price calculations done for a particular item on the sales order response. My problem is. The value sent in field vprei is having a netprice value and from this i have to deduct bill back condition value.and this should be