Parameter Declaration

I did a Project->Clean and that seems to have fixed my problem. Thanks for help, guys!! The only warning I see now that I don’t quite know how to fix is:

elements.treeview.setDataSet(Create_Dataset());  //Warning: The function setDataSet(IDataSet) is not applicable for the arguments (JSDataSet)

I have these warnings:

elements.treeview.setOddRowColor('#f1f1f1');  //Warning: The method setOddRowColor() is undefined for the type TreeView
elements.treeview.setEvenRowColor('#f1f1f1');  //Warning: The method setEvenRowColor() is undefined for the type TreeView
elements.treeview.showHorizontalLines(false);  //Warning: The method showHorizontalLines() is undefined for the type TreeView
elements.treeview.showVerticalLines(false);  //Warning: The method showVerticalLines() is undefined for the type TreeView

These methods aren’t available using code completion so not sure how I got them unless they’ve been deprecated

In Robert’s defense, I was also unsure about the brackets. Here is a snippet of my globals file:

/**
 * @type String
 *
 * @properties={typeid:35,uuid:"42aaad19-d321-418b-94de-aa3f06914bff",variableType:12}
 */
var Field_Border_Color_2 = '';

/**
 * @type Number
 *
 * @properties={typeid:35,uuid:"98ed903c-313e-400b-98dd-69da0a646a5b",variableType:4}
 */
var g_Active_Encounter;

None of the declarations in my file have brackets except for the one I fixed. I created a new global variable using the solution explorer and it didn’t add the curly brackets.

the first one (//Warning: The function setDataSet(IDataSet) is not applicable for the arguments (JSDataSet)) is fixed in 6.0.1

I have these warnings:

elements.treeview.setOddRowColor('#f1f1f1');  //Warning: The method setOddRowColor() is undefined for the type TreeView

elements.treeview.setEvenRowColor(‘#f1f1f1’); //Warning: The method setEvenRowColor() is undefined for the type TreeView
elements.treeview.showHorizontalLines(false); //Warning: The method showHorizontalLines() is undefined for the type TreeView
elements.treeview.showVerticalLines(false); //Warning: The method showVerticalLines() is undefined for the type TreeView



These methods aren't available using code completion so not sure how I got them unless they've been deprecated

those methods are only available in the non-stable “experimental” version of the treeview (servoy-treeview-experimental.jar),
so I guess you are used once that, and now you are using the stable version (servoy-treeview.jar)