It is currently Sun Feb 12, 2012 8:51 am

All times are UTC + 2 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Web Service to update Purchase Order
PostPosted: Fri Feb 26, 2010 2:16 pm 
Offline

Joined: Fri Feb 26, 2010 12:44 pm
Posts: 2
Hi all,

Is it possible to update a Purchase Order (e.g. the NOTES column) via Web Services?

More generally, is there a list of all the Web Services available? Reading the developer manual, it appears that methods create, search, read, write and unlink are available for so called 'objects'. What are these objects?

Any help appreciated...

Thanks,

Giulix


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 01, 2010 11:29 am 
Offline

Joined: Fri Feb 26, 2010 12:44 pm
Posts: 2
The following Java code writes a new value in the Purchase Order Notes using Web Services:
Code:
...
//Store new value
LinkedList <Integer> ids = new LinkedList <Integer>();
ids.add(new Integer("1"));
LinkedHashMap<String> fields = new LinkedHashMap<String>();
fields.put("notes", "Just another note");
Object []params = {
    new String("db"),
    new Integer("4"),
    new String("secret"),
    new String("purchase.order"),
    new String("write"),
    ids,
    fields
};
client.execute("execute", params);
...

Is this just updating a database table or is it using a Python class in charge of updating the database and keeping data consistency? In the first case, I'd expect to be able to use the "write" method with any table. In the second, I am missing a list of classes/services that I would expect to be available somewhere...

Any ideas?

Thanks again,

Giulix


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 2 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:

Protected by Anti-Spam ACP