EditScript
...
Opens the script property in the script editor. If the property is not of type ptScript, this method is ignored.
...
Syntax:
Procedure: EditScript;
API
...
Calls
Delphi
Code Block |
---|
language | delphi |
---|
theme | RDark |
---|
firstline | 1 |
---|
title | Using PlanSwift Object Model |
---|
linenumbers | true |
---|
collapse | true |
---|
|
PlanSwift Code:
Property.EditScript;
FreshDesk Code:
procedure editScript;
var
ps: IPlanSwift;
itm: IItem;
prop: IPropertyObject;
begin
//Create the Planswift Interface
ps := coplanswift.Create;
//Get the selected Item
itm := ps.SelectedItem;
if varisClear(itm) then begin
ShowMessage('Please Select an Item');
//Clear Interface
ps := nil;
//Exit Procedure
Exit;
end;
//Create new Property with the property type as script
prop := itm.NewProperty('Example Script','',ptscript);
//Set the script language to pascal
prop.ScriptLanguage := slPascal;
//Open Scripting dialog
prop.EditScript;
//Free Planswift 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 |