To open any link in a new tab, preserving your position in the current article, just hold down the <CTRL> key on your keyboard before clicking the link or click using your mouse wheel.

IsJobOpen

IsJobOpen



Tests whether the PlanSwift application actually has a "Job" opened in the editor.



Syntax:

Procedure: IsJobOpen: Wordbool;


API Calls

Delphi

Using PlanSwift Object Model
PlanSwift Code:


var
  bOpened: boolean;
begin
  bOpened := PlanSwift.IsJobOpen;
end;


FreshDesk Code:


procedure TForm1.psGetProperty(Sender: TObject);
var
  ps: IPlanSwift;
  job: IItem;
  prop: IPropertyObject;
begin
//Create The Planswift Interface
ps := coplanswift.Create;
// Check if a job is open
if ps.IsJobOpen then begin
  //Get The Job Item Property Name
  prop := ps.GetProperty('Job','Name');
  //Show The Property Name, Type and Formula
  ShowMessage('Property Name is: ' + prop.Name + ' Type: ' + prop.PropertyType + ' Formula: ' + prop.Formula);
end else begin
  ShowMessage('No Job Opened');
end;
//Free the interface
ps := nil;
end;


C#

Using IItem Object Model
public class PlanswiftApi
{
    private PlanSwift Planswift { get; }
    public PlanSwiftApi()
    {
        Planswift = new PlanSwift();
    }
}
Using PlanSwift Object Model
Coming soon

VB/VBA (OLE)

Using IItem Object Model
Coming soon
Using PlanSwift Object Model
Coming soon

Copyright 2023 ConstructConnect