HI Bertrand,
I Have two widgets on my CIF,
First widget is of type "list select"
Secodn is "text field".
i overrided theme for "list select"
<core:template key="vcm-widget-listselect:ContentInstance:EOC:TYPE" path="/customv8/theme/corporate/template/widget/listselect.jsp"/>
in this jsp i am able get the value of my second widget, but i am unable to set the value for that widget.
Following is my code
var ciEditor = vui.ui.editor.find('<%=editorId%>');
listeners: {
'select' : {
fn: function(){
if(listSelectField.getValue()!= ''){
alert(listSelectField.getValue());
--- iam getting 'TYPELABEL'
var typeLabelField = ciEditor.getWidget('TYPELABEL');
--- Setting value for this.
typeLabelField.setDataValue(listSelectField.getValue());
---- after this i am getting alert as the updated value.
alert(ciEditor.getWidget('TYPELABEL').value);
alert('registered');
}
i am able to set the value using setDataValue(), but in js alert iam getting the updated value,
but the same value is not reflecting on the page, still it is showing the old value, the field is not updating.
any thing i am missing here or how we can update the value of other filed.
Thanks,
Gangi.