<< Click to Display Table of Contents >> Navigation: »No topics above this level« TOC : OZ e-Form Extension > OZ e-Form JavaScript API > ReportTemplate > Method >ReBind |
Rebind the report based on the setting parameter.
Prototype :
void ReBind
(
string ReBindType,
[ string ViewerParameter ],
[ string Delimiter ],
[ bool KeepEditing ]
)
Arguments :
ReBindType |
Rebind type |
ViewerParameter |
Set the value of parameters Set as "ParameterName=ParameterValuedelimiter ... delimiterParameterName=ParameterValue" format If not set, "" by default |
Delimiter |
Delimiter If not set, "\n" by default |
KeepEditing |
Whether to keep the additions and changes in the preview window. The memo, comments, callout shapes(lines, arrows, rectangles, circles), text edits and input component value will be maintained. If not set, "true" by default |
Reference :
If you set the value of ViewerParameter argument to blank(""), the value of ViewerParameter argument is applied to the parameter values just before the execution.
The rebind types are as follows:
•Data
Refresh the parameter value and the data.
In other words, refresh the text of parameter label, the return value of the function and result set.
The keepEditing argument applies as the value you set.
•Label
Refresh the text of parameter label.
In other words, refresh only the text of parameter label.
The keepEditing argument is always applied to true.
•Report
Refresh the parameter value.
In other words, refresh the text of parameter label, the return value of the function.
The keepEditing argument applies as the value you set.
Example :
//Gets the value of ComboBox1, applying the value of the ComboBox1, refresh the parameter value and the data
var ComboText = This.GetInputValue("ComboBox1");
var param;
param = "odi.odinames=sales;odi.sales.pcount=1;odi.sales.args1=ProductType=" + ComboText + ";";
ReportTemplate.ReBind("Data", param, ";");
Available Events :
OnCheckValidity, OnClick, OnFocus, OnKillFocus, OnLocationUpdated, OnValueChanged
See also :