<< Click to Display Table of Contents >> Text Component Script |
Functions |
Instructions |
Examples |
---|---|---|
getCol |
Get field information bound by the current text component |
var col1=Text1.binding.getCol();//No parameters, both Text1 and Text2 text components require bound data Text2.binding.setCol(col1); //Set the data bound to Text2 to col1 |
setCol |
Bind field to current text component |
var col=new BCol("price",DOUBLE,false); var col1=new MeasureCol(SUM,col,null); Text1.binding.setCol(col1); |
commit |
Show style |
Text1.commit = true; |
commitScript |
Set up the submission script |
Text1.commitScript = "test"; |
data |
Add text to text components |
Text1.data="hello world!"; |