migrating controller.showRecords(Object).

Hello All,

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

Hi Sovan,

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.

Thanks for the reply…

When I debugged , it shows me that

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.

This is the signature of showRecord method in Servoy 4.1.

forms.formName.controller.showRecords(Object[])

And the code which is written is ```
forms.formName.controller.showRecords(Object)


The method which is attached to the button has only one line of code which is mentioned above.

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?