I have a form (frm_excel_update_columns) that is loaded in a tab in another form (frm_excel_configure_columns).
It is added via code:
- Code: Select all
elements.tab_update_column.addTab( "frm_excel_update_columns" );
when the form is loaded I have an onshow function that adds the values to a combobox in the form.
- Code: Select all
function onShow( firstShow, event ) {
if ( firstShow ) {
var lv_valuelist = solutionModel.newValueList( 'user_queries', JSValueList.CUSTOM_VALUES );
lv_valuelist.separator = ' ';
lv_valuelist.customValues = forms.frm_excel_configure_columns.ValueList;
var lv_form = solutionModel.getForm( 'frm_excel_update_columns' );
var lv_field = lv_form.getField( 'cbbColumn' );
lv_field.valuelist = solutionModel.getValueList( 'user_queries' );
}
}
But I get this error:
Stale form(s) detected, form(s) were altered by the solution model without destroying them first
The form(s) that are stale (can also be a parent form if form inheritance is used) are:
Form name:'frm_excel_update_columns' with instances: [frm_excel_update_columns]
On line 53; witch is: lv_field.valuelist = solutionModel.getValueList( 'user_queries' );
Why am I getting this error? I'm filling the combobox onshow, on firstshow even...