VeriStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Perform custom deletion in custom device

Hello,

 

I am trying to give the users of the custom device the knowlege of what is going to be deleted if they continue with the deletion of a channel. I want to then delete all dependancies that reference this channel. I furthermore want to be able to delete a channel group and all dependancies but leave the selected folder item remaining. I cannot get this to work without a custom button, and with the button implementation this is a 15 minute solution with very little trouble, but I will have put two deletion buttons in the toolbar.

 

I have tried using action VI -ActionVIOnDeleteRequest:

1.Removing the dependancies with the Veristand navigation API VIs and setting the "Disregard delete request" variable to TRUE - this results in an infinite loop inside of the action VI. I tracked this down to any calls to the Veristand API that delete any variable, This VI freezes. Apparantly additional deletes cannot happen in the action VI.

2.Adding the references of found dependancies to the list to be deleted and setting the "Disregard delete request" variable to FALSE - this results in all my dreams coming true except that I cannot save the folder from being deleted. This is a problem because I do not get any events informing me that I need to reconstitute the structure since there are no events related to delete functions.

3. Send and event to the page from the action VI to perform all deletion myself - this results in an error with the event handling. I will try to create my own queue to perform this communication but I do not expect this to work either.

 

Is there a work around to achieve something like delete all children of the item selected but DO NOT DELETE the selected item. Or just send the deletion request to page events so I can do this myself.

 

Thanks,

 

 

0 Kudos
Message 1 of 1
(3,519 Views)