Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

MeetsInputCondition


...

Returns true if theInputCondition has been met.

...

Procedure: MeetsInputCondition


API

...

Calls

Delphi

Code Block
languagedelphi
themeRDark
firstline1
titleUsing PlanSwift Object Model
linenumberstrue
collapsetrue
PlanSwift Code:


Result := Property.MeetsInputCondition;


FreshDesk Code:


procedure psMeetsInputCondition;
var
  ps: IPlanSwift;
  itm: IItem;
  prop: IPropertyObject;
begin
  //Create the Planswift Interface
  ps := coPlanswift.Create;
  //get the selected item
  itm := ps.SelectedItem.ParentItem;
  //Check to see if there is an item selected
  if varisclear(itm) then begin
    ShowMessage('Please Select an Item');
    ps := nil;
    Exit;
  end;
  //Create a new Property
  prop := itm.NewProperty('MeetsInputCondition','Hello World',ptText);
  //Set input Condition to true
  prop.IsInput := True;
  //Set its Input condition to check if qty is greater than zero
  prop.InputCondition := '[Qty] > 0';
  //Check if the condition is met
  if prop.MeetsInputCondition then
    //if it is met show a message stating so
    ShowMessage('Quanity is not blank');
  // Clear the Planswift Interface
  ps := nil;
end;

C#

Code Block
languagec#
themeRDark
firstline1
titleUsing IItem Object Model
linenumberstrue
collapsetrue
public class PlanswiftApi
{
    private PlanSwift Planswift { get; }
    public PlanSwiftApi()
    {
        Planswift = new PlanSwift();
    }
}


Code Block
languagec#
themeRDark
firstline1
titleUsing PlanSwift Object Model
linenumberstrue
Coming soon

VB/VBA (OLE)

Code Block
languagevb
firstline1
titleUsing IItem Object Model
linenumberstrue
Coming soon


Code Block
languagevb
firstline1
titleUsing PlanSwift Object Model
linenumberstrue
Coming soon