I don't think there is any way to automatically convert it. They are written in different languages, and have different context. The api portion should be very similar, but beyond that you will need to rethink the method code for the server side method type.
Hello,
There are two drop-downs in the Method editor within Aras Innovator that you can use to change the language a Method item compiles in.
For a Client-side method, these dropdowns should be currently populated with 'Client-side' and 'JavaScript' respectively. To change the method to a server method, you will need to change the first drop-down to 'Server-side' and change the second dropdown to 'C#' or 'VB' depending on which language you prefer.
kentonvk is correct that there is no way to automatically convert a method from JavaScript to a language like C# or VB if that is what you are trying to accomplish. You will need to rewrite the method in the new language in that case.
Chris
Christopher Gillis
Aras Labs Software Engineer