Hi guys,
We are building a searcher based upon a DynamicForm which also has Clear button. Additionally, for certain 'select' FormItems we have put in place hints with showHintInField : true.
The issue is that those hints are gone when I click the Clear button. Other hints in the same form remain displayed. We think all hints should stay visible when clearing the form.
Any insights?
----
SmartClient Version: v8.2p_2012-04-02/LGPL Deployment (built 2012-04-02)
IE9 9.0.8112.16421 (64 bits)
Chrome 18.0.1025.162 m
FF 11.0
----
Thanks in advance!
We are building a searcher based upon a DynamicForm which also has Clear button. Additionally, for certain 'select' FormItems we have put in place hints with showHintInField : true.
The issue is that those hints are gone when I click the Clear button. Other hints in the same form remain displayed. We think all hints should stay visible when clearing the form.
Any insights?
Code:
var form1 = isc.DynamicForm.create({
ID:"testForm",
width: 500,
valuesManager : isc.ValuesManager.create(),
fields : [
{
name: "itemName",
title: "Item Name",
editorType: "select",
multiple: true,
hint: 'Select a country',
showHintInField : true,
valueMap: {
"US" : "<b>United States</b>",
"CH" : "China",
"JA" : "<b>Japan</b>",
"IN" : "India",
"GM" : "Germany",
"FR" : "France",
"IT" : "Italy",
"RS" : "Russia",
"BR" : "<b>Brazil</b>",
"CA" : "Canada",
"MX" : "Mexico",
"SP" : "Spain"
}
}],
clearMe : function() {this.valuesManager.clearValues();}
});
var clearButton1 = isc.IButton.create({title:'Clear Values', click:"form1.clearMe()"});
isc.VLayout.create({members : [form1, clearButton1]});
SmartClient Version: v8.2p_2012-04-02/LGPL Deployment (built 2012-04-02)
IE9 9.0.8112.16421 (64 bits)
Chrome 18.0.1025.162 m
FF 11.0
----
Thanks in advance!
Comment