ActiveMatrix BPM Select2

Transcription

ActiveMatrix BPM Select2Custom form control library for TIBCO AMX BPMBusiness Studio FormsOverviewThis is NOT an official TIBCO Development Document.Only a first Draft Version.Created by Pieter Hagen (ASG TIBCO EMEA)Date: 12.11.2013Version: 1.0Page1of11

ge2of11

ConceptThereasonforadifferentSelectbox?One of the most common issues with the standard select box is that it becomes difficult to mange if itcontains a large amount of data. The select2 select box offers various features above and beyond theregular component.It can replace cethem as tags in the control for easy identification of theoptions eatures rolwhennoselectionismadeFutureExtensions Limited amount of selection when in multiple selection modeControl the matching to match only the beginning of the textPage3of11

Set the minimum input for search term when using a large datasetPage4of11

lder:Page5of11

lbeshown: hthenamesofthefunctionsifyouusethecode- ‐completionshortcut‘Ctrl of11

ation ytheboxwillshow:Page7of11

electyourdestination ousselctionPage8of11

eselections:(*)Note- o“Selectyourdestination enabove.Page9of11

gtheID’s,Labels&optionallythelockedId’s/*** This script is used to set the basic arrays on the Select2 ray(data.getNames());// uncomment next line to lock ID’s in the select2 hevaluetoanothercontrol/*** This script is used to get the value from the Select2 object* on the Update Event fired by the stotheSelect2control/*** This script show how to push multiple values to the control**/var inner data.getOthervalues();inner.push ("Roger Moore");inner.push("George *** This script show how to toggle the Enabled state of the Select2* control (Used here on a button called MultiSelectDisablerButton)**/if (control.multiselectwithLock.getControl enabled() ){control.multiselectwithLock.setControl etLabel("Enable");} else {control.multiselectwithLock.setControl enabled(true);Page10of11

e");}Page11of11

ActiveMatrix BPM Select2 Custom form control library for TIBCO AMX BPM Business Studio Forms Overview This is NOT an official TIBCO Development Document. Only a first Draft Version. Created by Pieter Hagen (ASG TIBCO EMEA) Date: 12.11.2013 Version: 1.0!!Page2!of!11!