IsJobOpen
...
Tests whether the PlanSwift application actually has a "Job" opened in the editor.
...
Procedure: IsJobOpen: Wordbool;
API
...
Calls
Delphi
Code Block |
---|
language | delphi |
---|
theme | RDark |
---|
firstline | 1 |
---|
title | Using PlanSwift Object Model |
---|
linenumbers | true |
---|
collapse | true |
---|
|
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#
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 |