public/javascripts/inputex/js/rpc/inputex-rpc.js
function(method) {
   
      // convert the method parameters into a json-schema :
      var schemaIdentifierMap = {};
      schemaIdentifierMap[method.name] = {
          id: method.name,
          type:'object',
          properties:{}
      };
      for(var i = 0 ; i < method._parameters.length ; i++) {
         var p = method._parameters[i];
         schemaIdentifierMap[method.name].properties[p.name] = p;
      }
   
      // Use the builder to build an inputEx form from the json-schema
      var builder = new inputEx.JsonSchema.Builder({
   	  'schemaIdentifierMap': schemaIdentifierMap,
   	  'defaultOptions':{
   	     'showMsg':true
   	  }
      });
   	var options = builder.schemaToInputEx(schemaIdentifierMap[method.name]);
	
   	return options;
   }
function(method) {
   
      // convert the method parameters into a json-schema :
      var schemaIdentifierMap = {};
      schemaIdentifierMap[method.name] = {
          id: method.name,
          type:'object',
          properties:{}
      };
      for(var i = 0 ; i < method._parameters.length ; i++) {
         var p = method._parameters[i];
         schemaIdentifierMap[method.name].properties[p.name] = p;
      }
   
      // Use the builder to build an inputEx form from the json-schema
      var builder = new inputEx.JsonSchema.Builder({
   	  'schemaIdentifierMap': schemaIdentifierMap,
   	  'defaultOptions':{
   	     'showMsg':true
   	  }
      });
   	var options = builder.schemaToInputEx(schemaIdentifierMap[method.name]);
	
   	return options;
   }
function ( method ) { // convert the method parameters into a json-schema : var schemaIdentifierMap = { } ; schemaIdentifierMap [ method . name ] = { id : method . name , type : 'object' , properties : { } } ; for ( var i = 0 ; i < method . _parameters . length ; i ++ ) { var p = method . _parameters [ i ] ; schemaIdentifierMap [ method . name ] . properties [ p . name ] = p ; } // Use the builder to build an inputEx form from the json-schema var builder = new inputEx . JsonSchema . Builder ( { 'schemaIdentifierMap' : schemaIdentifierMap , 'defaultOptions' : { 'showMsg' : true } } ) ; var options = builder . schemaToInputEx ( schemaIdentifierMap [ method . name ] ) ; return options ; }
Return the inputEx form options from a method
@param {function} method A method created through inputEx.RPC.Service
Return the inputEx form options from a method