Class DMI

java.lang.Object
com.smartgwt.client.rpc.DMI

public class DMI extends Object
This class provides static methods to call server-side DMI methods exposed via a ApplicationDeclaration file.

Note:  This class is only functional if you have Smart GWT Pro or above.

  • Constructor Details

    • DMI

      public DMI()
  • Method Details

    • call

      public static void call(String appID, String className, String methodName, RPCCallback callback, Object[] arguments)
      Static method to call a server-side DMI method exposed via a ApplicationDeclaration file. Each argument passed into this method will be serialized to JSON, then converted back into Java on the server, and passed to the server side method, The translation follows the same rules described in RPCRequest.setData(com.google.gwt.core.client.JavaScriptObject).
      Parameters:
      appID - Name of the ApplicationDeclaration (.app.xml) file to look in
      className - className (or ID) of the server object on which the method will be invoked
      methodName - The name of the method to call on the serverObject
      callback - Callback to execute when the DMI call completes
      arguments - array of arguments to pass to the server side method
    • call

      public static void call(String appID, String className, String methodName, RPCCallback callback, Object[] arguments, RPCRequest requestParams)
      Static method to call a server-side DMI method exposed via a ApplicationDeclaration file. Each argument passed into this method will be serialized to JSON, then converted back into Java on the server, and passed to the server side method, The translation follows the same rules described in RPCRequest.setData(com.google.gwt.core.client.JavaScriptObject).
      Parameters:
      appID - Name of the ApplicationDeclaration (.app.xml) file to look in
      className - className (or ID) of the server object on which the method will be invoked
      methodName - The name of the method to call on the serverObject
      callback - Callback to execute when the DMI call completes
      arguments - array of arguments to pass to the server side method
      requestParams - Any additional properties that you want to set. The properties will be applied to the RPCRequest generated by this DMI call.