Edit
...
Displays the Item in the Editor Dialog.
...
Procedure: Edit(ShowAdvanced: Boolean = True): Boolean;
API
...
Calls
Delphi
Code Block |
---|
language | delphi |
---|
theme | RDark |
---|
firstline | 1 |
---|
title | Using PlanSwift Object Model |
---|
linenumbers | true |
---|
collapse | true |
---|
|
// PlanSwift Code:
Result := Item.Edit(False);
FreshDesk Code:
var
ps: IPlanSwift;
est: IItem;
itm: IItem;
sect: IItem;
rslt: Boolean;
begin
// Create Planswift Interface
ps := coPlanswift.Create;
// Get The Estimating Tab
est := ps.GetItem('Job\Takeoff');
// Create a New Area Item
itm := est.NewItem('Area', 'DoRecord Example');
// Open the Property Editor
rslt := itm.Edit(true);
// if ok was pressed then record the item else delete the item
if rslt then
begin
sect := itm.NewSection('DoRecord Section');
sect.DoRecord;
end
else
begin
itm.Delete;
end;
// Free planswift
ps := nil; |
C#
Code Block |
---|
language | c# |
---|
theme | RDark |
---|
firstline | 1 |
---|
title | Using IItem Object Model |
---|
linenumbers | true |
---|
collapse | 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 |