SelectItemDialog
...
Displays the Select Item dialog to the user, then returns the selected item.
...
- Create a New Form application
- Add a button to the form
- Add PlanSwift to reference (Planswift9_tlb in the uses)
- Copy code to button onclick event
API
...
Calls
Delphi
Code Block |
---|
language | delphi |
---|
theme | RDark |
---|
firstline | 1 |
---|
title | Using PlanSwift Object Model |
---|
linenumbers | true |
---|
collapse | true |
---|
|
PlanSwift Code:
aitem := planswift.selectitemdialog('My Header', 'My Title', '\Job\Takeoff');
if not varisclear(aitem) then
showmessage(aitem.name);
FreshDesk Code:
procedure TForm1.psSelectItemDialog(Sender: TObject);
var
ps: IPlanSwift;
itm: IItem;
begin
//Create Planswift Interface
ps := CoPlanswift.Create;
//Open Item Dialog and select planswift root
itm := ps.SelectItemDialog('Select An Item','Select An item',ps.Root.FullPath);
//Show Selected item Name
ShowMessage(itm.Name + 'Has been selected');
//Free Planswift
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 |