We are migrating a solution which was originally built on Servoy 4.1 to Server 6.1.6. We are facing problem converting
forms.formName.controller.showRecords(Object);
```.This line was written in methods inside globals and has been attached to buttons in navigator forms .
BuildMarker Shows ```
The function showRecords(JSDataSet) is not applicable for the arguments (Class<Object>)
```. When we run this application, it throws exceptions.
Can someone please guide how I can make it work. What does the 'Object' contains?
Thanks
I think you are in the best position to tell us what you are passing into that function. Look at the code and/or set some breakpoints to find that out.
As for the possible options you can use with this function just look under the controller node in the project explorer.
typeof(Object) -> "function"
```.
I am not sure what the "Object" really content as nothing has been passed to that method. It is directly attached with a button.
We do not have any documentation describing what this Object is in Servoy 4.1.
I think you have to post the full method here for us to be able to help you out with this.
It really is odd that you are passing a function into the showRecords() function so I wonder where your object variable comes from.
So you are saying that forms.formName.controller.showRecords(Object) is your code verbatim ?
if not, can you post the code that you are actually using?