Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

ParentItem


...

Returns the parent to the Item.

...

Procedure: ParentItem: IItem;


API

...

Calls

Delphi

Code Block
languagedelphi
themeRDark
firstline1
titleUsing PlanSwift Object Model
linenumberstrue
collapsetrue
// PlanSwift Code:


Result := Item.ParentItem.FullPath;


// FreshDesk Code:


var  ps: IPlanSwift;
  itm: IItem;
  pitm: IItem;
begin
  // Create the Planswift Interface
  ps := coPlanswift.Create;
  // Get the Selected Item
  itm := ps.SelectedItem;
  // Get the Selected Items parent
  pitm := itm.ParentItem;
  // Show the parent items name
  ShowMessage('Select Item Parent is: ' + pitm.Name);
  // Free Planswift
  ps := nil;
end;

C#

Code Block
languagec#
themeRDark
firstline1
titleUsing IItem Object Model
linenumberstrue
collapsetrue
public class PlanswiftApi
{
    private PlanSwift Planswift { get; }
    public PlanSwiftApi()
    {
        Planswift = new PlanSwift();
    }
}


Code Block
languagec#
themeRDark
firstline1
titleUsing PlanSwift Object Model
linenumberstrue
Coming soon

VB/VBA (OLE)

Code Block
languagevb
firstline1
titleUsing IItem Object Model
linenumberstrue
Coming soon
Code Block
languagevb
firstline1
titleUsing PlanSwift Object Model
linenumberstrue
Coming soon