...
Procedure: GetItemByGUID(aGUID: String): IItem;
API
...
Calls
Delphi
Code Block |
---|
language | delphi |
---|
firstline | 1 |
---|
title | Using PlanSwift Object Model |
---|
linenumbers | true |
---|
|
// PlanSwift Code:
AItem := Item.GetItemByGUID(Item.ParentItem.GUID);
If VarIsClear(AItem) then
Result := 'Not Found'
Else
Result := AItem.Name;
//FreshDesk Code:
var
ps: IPlanSwift;
est: IItem;
itm: IItem;
aitm: IItem;
begin
// Create the Planswift Interface
ps := coPlanswift.Create;
// Get The Estimating Tab
est := ps.GetItem('Job\Takeoff');
// Create a new item
itm := est.NewItem('Area', 'DoRecord Example');
// Get That Item By GUID
aitm := itm.GetItemByGUID(itm.GUID);
// Show Item Name got by guid
ShowMessage('Item Got BY GUID is: ' + aitm.Name);
// Free Planswift
ps := nil; |
C#
Code Block |
---|
language | c# |
---|
theme | RDark |
---|
firstline | 1 |
---|
title | Using IItem Object Model |
---|
linenumbers | true |
---|
|
public class PlanswiftApi
{
private PlanSwift Planswift { get; }
public PlanSwiftApi()
{
Planswift = new PlanSwift();
}
} |
Code Block |
---|
language | c# |
---|
theme | RDark |
---|
firstline | 1 |
---|
title | Using PlanSwift Object Model |
---|
linenumbers | true |
---|
|
Coming soon |
VB/VBA (OLE)
Code Block |
---|
language | vb |
---|
firstline | 1 |
---|
title | Using IItem Object Model |
---|
linenumbers | true |
---|
|
Coming soon |
Code Block |
---|
language | vb |
---|
firstline | 1 |
---|
title | Using PlanSwift Object Model |
---|
linenumbers | true |
---|
|
Coming soon |