Syntax

code

Function: DeleteProperty(ItemPath, PropertyName: String): Boolean;

Description

Deletes PropertyName from ItemPath.

Code Reference

  • 1. Navigate to Plugin Store->Tool Manager and create a new Plugin
  • 2. Set the plugin type to Script Code and open the Editor
  • 3. Copy Code into the editor
  • 4. press run

code

1

2

3

4

5

6

7

8

9

10

11

12

13

14

procedure TForm1.psDeleteProperty(Sender: TObject);

var

  ps: IPlanSwift;

  itm: IItem;

begin

  //Create the Planswift Interface

  ps := coplanswift.Create;

  //Get the Selected Item

  itm := ps.SelectedItem;

  //Delete the Description on the selected Item

  ps.DeleteProperty(itm.GUID,'Description');

  //free planswift Interface

  ps := nil;

end;