开发者

Android OpenErp Search Request XMLRPC

开发者 https://www.devze.com 2023-02-25 10:17 出处:网络
I am working on an android application which is able to connect with an openerp server and retrive the userid and also the individual fields of th开发者_Python百科e different contacts of that user.

I am working on an android application which is able to connect with an openerp server and retrive the userid and also the individual fields of th开发者_Python百科e different contacts of that user.

below is the code on the things i have done so far

   public int Search()
   {

           searchClient = new XMLRPCClient("http://"+lp.HOST+":"+lp.IN_PORT+lp.URL_XML+lp.URL_OBJECT);

           try
           {
                   record = (Array[]) searchClient.call("search",lp.DB_NAME, lp.uid1, lp.PASSWORD, "res.partnet.contact","execute", arguments);

           }
           catch(Exception e)
           {
                   Log.i("------------------ CONNECTION FAILED Search", e.toString());
           }

           return 0;
   }

i appreciate the help given

Thank you,


try to interchange the position of method search and execute.The method execute must be given before search.Also try searchClient.callEx instead call only like you do it above!

record = (Array[]) searchClient.callEx("execute",lp.DB_NAME, lp.uid1, lp.PASSWORD, "res.partnet.contact","search", arguments);
0

精彩评论

暂无评论...
验证码 换一张
取 消