Allow Software to Delete Channels, but Not User

I am using the OnDeleteRequest action to prevent the user from deleting channels in my custom device.  However I realized that this also prevents code I write (in this case executing on a right-click action) from deleting channels.  I need a way to differentiate so that the user cannot simply delete channels, but my different actions can.
Here's what I've tried:
Setting an AllowDelete? property on the custom device top level item for the duration of my action that needs to delete items and then checking for it in the OnDeleteRequest method - no go
Setting an AllowDelete? property on the custom device top level item in the action and removing it when the page that has the right-click action is loaded (I reload after the action) and then checking for it in the OnDeleteRequest method - no go
Setting an AllowDelete? property on the custom device top level item for the duration of the page that has the right-click action and checking for it in the OnDeleteRequest method -  . . . well I'm posting here so . . .
I am using VeriStand 2013 and I am setting the Force Delete input of the Remove Item function to True.
Thanks,
Chris
Project Engineer
Certified LabVIEW Architect
Certified TestStand Architect
Solved!
Go to Solution.

Fixed my own problem about 20 minutes later . . . .
The delete flag did work inside the action - I'd just gotten lost in the tree in the OnDeleteRequest VI and forgotten to get back up to the custom device root.
Hope this saves someone else the trouble!
Chris
Project Engineer
Certified LabVIEW Architect
Certified TestStand Architect

Similar Messages

  • Orphan users and deleting logins but not users

    Hello there,
    First off I'm sorry if this was already posted. I've researched for the last two hours and can't seem to find the answer I'm looking for.
    So its to my understanding then when you delete a Server Login, if you have a user that uses that Login and THAT LOGIN only, once you delete the login the user is now an orphan user.
    I've been running the orphan user sp (
    USE <database_name>;
    GO;
    sp_change_users_login @Action='Report';
    GO;
    but recently I've deleted a login, the user still exists on the database, but it should now be an orphan user right? I know for a fact this user is not in any other group, and it should be an orphan user. So why isn't it? :(

    Hi Krystina,
    Your question may be that sp_change_users_login didn't detect an orphan user scenario? If so, I would recommend checking sys.server_principals and sys.database_principals to verify for certain (and if you have a reproduction of the exact issue, please post
    here).
    Here is a demo that walks through the by-design behavior (dropping login will not equate to dropping a user, and that user will be an orphaned user).  
    USE [master]
    GO
    -- Create the login
    CREATE LOGIN [TestUser] WITH PASSWORD=N'Test!!1234',
    DEFAULT_DATABASE=[master], CHECK_EXPIRATION=OFF, CHECK_POLICY=OFF;
    GO
    -- Create a database
    CREATE DATABASE [Test];
    GO
    -- Create the user in that database
    USE [Test]
    GO
    CREATE USER [TestUser] FOR LOGIN [TestUser] WITH DEFAULT_SCHEMA=[dbo];
    GO
    -- Drop the * login * (not user)
    DROP LOGIN [TestUser];
    -- You should no longer see this long at the SQL Server instance (server) scope
    SELECT [SP].[name], [SP].[principal_id], [SP].[sid], [SP].[type],
           [SP].[type_desc], [SP].[is_disabled], [SP].[create_date],
           [SP].[modify_date], [SP].[default_database_name],
           [SP].[default_language_name], [SP].[credential_id]
    FROM sys.[server_principals] AS [SP]
    WHERE name = 'TestUser';
    -- But we didn't drop the user, so you * should * still see it within the database (by-design)
    USE [Test];
    GO
    SELECT [DP].[name], [DP].[principal_id], [DP].[type], [DP].[type_desc],
           [DP].[default_schema_name], [DP].[create_date], [DP].[modify_date],
           [DP].[owning_principal_id], [DP].[sid], [DP].[is_fixed_role]
    FROM sys.[database_principals] AS [DP]
    WHERE name = 'TestUser';
    -- And your orphan proc call will report it as well
    EXEC sp_change_users_login @Action='Report';
    Best Regards, Joe Sack, MVP, SQL MCM | SackHQ.com

  • HT1600 My apple tv stopped working during a movie. I tried to reload software .it deleted it, but won 't reload it.

    My apple tv stopped working during a movie. I tried to reload software .it deleted it, but won 't reload it.

    Welcome to the Apple Community Turbomedic.
    If your problem persists get yourself a micro USB cable (sold separately), you can restore your Apple TV from iTunes:
        1.    Remove ALL cables from Apple TV. (if you don't you will not see Apple TV in the iTunes Source list)
        2.    Connect the micro USB cable to the Apple TV and to your computer.
        3.    Reconnect the power cable (only for Apple TV 3)
        4.    Open iTunes.
        5.    Select your Apple TV in the Devices list, and then click Restore.
    (You may already have a micro USB cable if you have a camera or other digital device)

  • How to temporarily disable on delete cascade but not the constraint

    Hi all
    i would like to know if this is possible
    how to temporarily disable on delete cascade but not the constraint
    i want to delete a row from the primary key table but i dont want the data from the foreign key to be deleted even though there is an on delete cascade set.
    how do i temporarily disable on delete cascade from firing without disabling the constraint
    Rgrds

    There is an option which I've never used before but just read about which is to create your foreign key constraint as on delete SET NULL
    instead of on delete cascade.
    This will allow you to delete a parent and will set the foreign key column values in the child table to nulls
    e.g.
    SQL> create table parent (father varchar2(30) primary key,
      2                       age number);
    Table created.
    SQL>
    SQL> create table child (father varchar2(30) constraint fk references parent(father) on delete set null,
      2                      child varchar2(30),
      3                      age number);
    Table created.
    SQL>                    
    SQL> insert into parent values ('JOHN', 34);
    1 row created.
    SQL> insert into child values ('JOHN', 'SARAH', 10);
    1 row created.
    SQL> insert into child values ('JOHN', 'BILL', 12);                   
    1 row created.
    SQL>
    SQL> commit;
    Commit complete.
    SQL>
    SQL> delete from parent where father = 'JOHN';
    1 row deleted.
    SQL>
    SQL> select * from child;
    FATHER                         CHILD                                 AGE
                                   SARAH                                  10
                                   BILL                                   12
    SQL> HTH AMM

  • Using multiple desktops with a 4 finger swipe on a Mac Book Pro running Lion- is there a way that I can allow Safari open on several but not all??  Looks like I can set it for one but not others.  All, one, or nothing

    Using multiple desktops with a 4 finger swipe on a Mac Book Pro running Lion- is there a way that I can allow Safari open on several but not all??  Looks like I can set it for one but not others.  All, one, or nothing

    Hey Eric,
    Thanks for taking the time. Unfortunately no that does not solve it. Same as swipe it will get me there and it will show separate programs spaced out. The issue I am having is that all my open word files are bunched up in a pile on top of each other. I can see the edges of each one but I want them to be separated from each other enough that I can visually identify what file is what.
    Again, thanks for trying, it is appreciated.

  • Why will my brand new iPod touch allow me to purchase songs but not download them?

    Can someone tell me why my new iPod touch is allowing me to buy songs but not downloading the songs currently being purchased?  The new songs actually show up on my iPad but not my iPod which is the device they were purchased on.

    Try configuring your iCloud sync settings for music across devices, also go to the iTunes app hit more, then purchased and then hit the download button

  • To create a table which allows entries to be added but not deleted?

    Is it possible to create a table (SE11) which allows users to enter data into the table but not delete data from the table?

    If you generate a maintenance dialog for your table you will have to check, if the user tries to delete an entry and just send an error back that this is not allowed,
    You could use e.g. event 03 - 'Before deleting the data displayed' to check if the user tries to delete something.
    If you do not use a standard maintenance dialog but an own screen to maintain the data, just don't offer a delete option to the user.
    However if someone writes a report where he does a delete on that table there is no standard way to prevent that.
    Hope that helps,
    Michael

  • File is getting picked up by Communication channel but not processed by XI

    Hi,
    I have a File to File scenario. The input csv file is getting picked by the sender communication channel but its not being processed by XI and thats why no entry is coming in sxmb_moni.
    Then I think the message might getting stucked in the inbound que and it comes true. I delete all entries in smq2 but then again process the files but still it is not getting processed by XI rather the entry again came in inbound que.
    Br,
    Madan Agrawal.

    Hi,
    goto SXMB_ADM-Manage Queues-De-register
    And Register again
    Now trigger the scenario, it shld work
    Also cross check with this Blog
    /people/prasadbabu.nemalikanti3/blog/2006/02/13/configuration-of-a-central-integration-server
    Regards
    Seshagiri

  • File picked up by sender channel but not seen in CC monitoring nor in moni

    Dear All,
    It is a file to JDBC scenario where the sender communication channel picks up a file and sends it to several receivers interfaces ( 1 jdbc receiver channel). The file gets picked up by sender communication channel, but problem is that it does not get traced in communication channel monitoring, not even in message monitoring in RWB and SXMB_MONI. Thus no file processing. Sometimes this does not happen and the file gets traced in either of the monitoring tools. Please help as to why would this happen.
    The scenario works correctly at times. its configured correctly. Please guide.
    Thanks & Regards,
    Priyanka Salvi

    Hi,
    Thanks. No, archiving faulty source files functionaly was not used earlied.
    I enabled it by giving a path in the FTP server itself, but no files were placed there in the same case.
    Please give me some examples of OS commands.
    The file is picked up but it seems it is unable to read/forward for further processing.
    This is because after the file is picked up, no messages are found with the outbound interface as well in message monitoring.
    I am manually placing the file at the required path and the procsessing mode in CC is delete.
    The receiver determination and all other configurations are correct.
    I had tried by creating a new sender CC and deactiving the earlied one. Using this files were picked up and processed for few days and now again the same problem.

  • Skype for Business - Manage the .msi but not Users...

    We are considering deploying Skype for Business across our large, international organization.  Two questions:
    Can we disable the File Transfer function in the .msi we push out to everyone?  Our concern is data leakage of confidential information.
    Our central IT shared services group wants to manage the configuration and deployment of the .msi but not be tasked with managing everyone's Skype accounts and billing/funding issues.  Does Skype account creation and funding of those accounts remain with the individual Skype user when Skype for Business is used?  
    Thanks for your help.

    Hi,
    From your description above, did you use Lync 2013 basic version?
    Please check if Windows 7 update to the latest version firstly.
    As Holger Bunkradt said above, please try to install the update manually.
    Best Regards,
    Eason Huang
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]
    Eason Huang
    TechNet Community Support

  • After viewing & closing an image, can delete it, but not its containing folder.

    I’m going through a bunch of old files to see what I can git rid of.
    When I view and then close an image in Photoshop CS6 I can delete the image file, but not its containing folder, which stays locked, even after closing Photoshop.  Restarting and closing Photoshop again usually enables me to delete the folder — but not always.  Sometimes I have to close everything and log out and back in to be able to delete the folder.  (BTW, Acrobat and Illustrator also share this problem.)
    When you have, as I do, hundreds of files to go through, this becomes a real hassle.

    I suspect Photoshop, as a part of the file open operation, has set its current "default directory" to the folder in which you're working.  You could prove that by opening  a file in another folder and seeing if the prior folder is still unable to be deleted.
    Are you using Bridge in any part of this process?  Seems to be a better match for what you're doing.
    If you'd rather not use Bridge, have you considered using Windows Explorer and a viewer application instead of Photoshop to look through these images?  IrfanView or possibly even Windows Photo Viewer with a codec pack come to mind.
    -Noel

  • Can anyone tell me what I need to set up iPhone 4? I have my email address and password but not user ID.  What is this?

    Do I need a user ID to set up a new iPhone. I have email address and password but not sure what the user ID is?

    User ID is an  Apple ID you use to buy paid or free stuff from the Apple Store, iTunes Store...
    It is in no way essential to use your iPhone, but it is indeed needed to purchase/download free or paid Apps, songs, books and so on.
    You can set-up a free Apple ID from your phone, or on →  https://appleid.apple.com

  • HT202636 How is it that apple allows you to permanently delete photos, but not books. Some books are a blight, and one has buyer's remorse, and they should be obliterated? Why won't Apple allow this to happen? We can do it with photos? And iI think music?

    I want, for whatever reason, to be able to permanently delete, not just hide, books and PDFs from my iCloud? Why won't Apple let me? Beg pardon from Apple if I'm mistaken, but don't think so.

    I own the movies and I want them to stay in my iTunes library basically forever.
    But in both cases the file name no longer shows in the movie list, so I don't know how to re-download it from the Cloud.
    iTunes prefs > Store > Show iTunes in the Cloud purchases.
    This will show all your iTunes purchases in your library with a cloud icon down arrow. Click the icon to redownload or click on Play to stream without downloading.
    Also see this , -> Download past purchases
    and techncially, you don't "own" the movie, You simply have a license to use it.
    Yet the first thing iTunes does when you hit the delete key is tell you that it will remove the movie forever from all devices and the library.
    Actually, no it does not tell you that.
    FYI: You should keep copies of all yoru iTnue spurahses as the labels/movie studios/copyright owners can pull their product at anytime and it won't be available to redownload.
    Suggestions here -> http://www.apple.com/feedback/

  • Movies Left on Apple TV - how to delete some but not all.

    hello, I recently purchased an apple tv that had a 750gb hd installed, I use it for boxee usage and using Nito TV to watch avi files ahtt I ftp to the unit and watch. When I purchased the past user left about 100 older movies on it...
    1. I have not sync'd with my IMAC itunes but want to delete several of the movies but leave some of them on it.
    2. Is there anyway I can delete some (I found the mp4 files on the \mnt\Media\"f folders" on the unit but
    3. aside from viewing those via preview and being able to determine which movie is which then delete, is there a way to then remove the "movie info" from the "my movies" after deleting one of these files ?
    thanks for any replies in advance....
    Paul

    you bought a hacked modified appletv, and as such you cannot expect to get support from an official apple forum for it.
    the only advice i can suggest to you is to factory restore the appletv to return it back to official supported software.

  • Allow Tabs to be closed but not IE 11 in Full Screen Mode

    Anyone had success using GPO to prevent closing of the IE 11 Window while allowing Tabs to be closed?
    Scenario: Creating a Kiosk station with Windows 7, and Internet Explorer 11, with GPO in a domain environment. I have tried adding the NoBrowserClose restriction and also enabling the GP to Disable closing the browser and Explorer windows. But with both
    of these you are unable to close any tabs. Any ideas?

    Hi Kprober,
    Since we don’t have Tablet for testing, I tested in traditional environments. This GPO is not designed to prevent closing machine, so functionally users should be able to shut down their machines.
    I am supposing you mean the Tablet hardware or system design or settings make user hard to select “shut down”, such like taskbar auto hide when Internet Explorer filling whole screen.
    If it is cause by taskbar.
    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\StuckRects2
                                          modify the
    9th hexadecimal number pair
                                          01 = Auto Hide and Show Clock
                                          02 = Always on Top and Show Clock
                                          03 = Always on Top and Auto Hide and
    Show Clock
                                          04 = Show small icons in Start Menu
    and Show Clock
                                          0E = Always on Top and Show small
    icons in Start Menu
                                          0F = Always on Top and Auto Hide and
    Show small icons in Start Menu
    Else we might need more details about your issue, if it is caused by Tablet hardware design you might need to contact with manufacturer for help.
    Regards
    D. Wu

Maybe you are looking for

  • Replacimg performance Manager with SSM(SAP Strategy management)

    Hi, Can any body tell me  how to migrate all the scorecards, KPIs  based on Performance Manager to SAP Strategy Management. Is there is a tool for that in SSM if not should those be rebuilt in SSM from the scratch. how do we replicate everything from

  • How can i add Custom fields into the

    Dear Experts We have Ecc6.0 system, How can i add Custom fields into the Infotype Screen(PA30),i heard that we do it by PM01 Tcode. But in PM01 i am unable to find the enhance infotype tab. How can i do it ....pls help..... Regards Sajid

  • Configuration of Shipment Cost Document

    Dear Gurus, Anyone is having document of Step by step configuration of shipment Cost .. Thanks & regards vishal

  • Images offline after update??

    Initially I had the error message about not being able to connect to the library after the update so I repaired the library ctr+opt then click repair. The images are back but are all showing as offline - is there a quick way to relocate them all?? Th

  • -42408 error???

    I restored my 4th generation iPod Touch the other day because I tried to sync it and my iTunes said that I needed to restore it. Now I'm trying to sync it to put all my stuff back on it and a little popup window comes up saying "We could not complete