// 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; |