Jump to: navigation, search

Difference between revisions of "Activity:DeleteObject (Activity)"


 
(One intermediate revision by the same user not shown)
Line 13: Line 13:
 
}}
 
}}
  
==Arguments==
+
===Arguments===
  
 
{| class="wikitable sortable" | width = "50%"
 
{| class="wikitable sortable" | width = "50%"
Line 26: Line 26:
 
|}
 
|}
  
==Usage==
+
===Usage===
  
 
This activity is used to delete a previously created object (e.g. with the [[Activity:CreateInstance_(Activity)|CreateInstance]] activity) from memory and the database.
 
This activity is used to delete a previously created object (e.g. with the [[Activity:CreateInstance_(Activity)|CreateInstance]] activity) from memory and the database.
Line 33: Line 33:
  
 
=Example=
 
=Example=
 
 
Delete the given object shallow:
 
Delete the given object shallow:
 
  
 
{| class="wikitable" | width = "50%"
 
{| class="wikitable" | width = "50%"
Line 45: Line 43:
 
| ShallowDelete || <source lang = "vbnet">True</source>
 
| ShallowDelete || <source lang = "vbnet">True</source>
 
|}
 
|}
 +
 +
<headertabs />
  
 
==See also==
 
==See also==

Latest revision as of 09:06, 4 November 2015

The DeleteObject Activity deletes a UBIK® object from memory and the database.

[edit]

Description

Delete Object
Name DeleteObject
Purpose Delete an object from the database
Category Object Primitives
Returns True if successful
Version 2.1+

Arguments

Argument Type Direction Purpose
UBIKObject BaseClass In The object to delete
ShallowDelete Boolean In If True, only the object itself will be deleted, if false it will try to also delete affected objects of the change ("Deep delete")
Result Boolean Out True if successful, false if failed

Usage

This activity is used to delete a previously created object (e.g. with the CreateInstance activity) from memory and the database.

IC Attention.pngThe delete is permanent, the object can bot be restored!

Example

Delete the given object shallow:

Argument Value
UBIKObject Connect this argument with a variable
ShallowDelete
True

See also