|
|
Choosing A Webhost: |
Re: OGOJOGI->Person.insertJob(): msg#00021cms.opengroupware.xmlrpc.devel
Hi murphee, your approach helped a little bit, but didn't solve my problem completely. Weh I use insert insert(Person person, java.util.Date startDate, java.util.Date endDate, java.lang.String name) of the JobManager class, I only can set the three job-arguments. Here my code: public boolean updateJob(OgoJobVO job, String user, String password) throws OgoException, ConnectionException{ boolean gespeichert = false; String [] args = {job.getId()}; try{ // Verbindung zum Server aufbauen XMLConnector myCon = new XMLConnector(user,password); XmlRpcConnection con = myCon.connect(); // OpenGroupWare Instanz OpenGroupWare ogo = con.getOpenGroupWareInstance(); //JobManager JobManager jobMan = ogo.getJobManager(); // Jobs abfragen Iterator iter = ogo.getJobManager().getJobs(args); if(iter != null){ Job tempJob = (Job)iter.next(); // Ausführer des Jobs ermitteln Account pers_acc = tempJob.getExecutor(); Person pers = pers_acc.getPerson(); Job insJob = jobMan.insert(pers,job.getStartDatum(), job.getEndDatum(), job.getName()); insJob.setPriority(5); //tempJob.setStartDate(job.getStartDatum()); //tempJob.setName(job.getName()); } // Verbindung schließen con.closeConnection(); } finally{} return true; } The method isn't completed yet, OgoJobVO is a Valueobject I need with Macromedia Flex and contains only the values of a job. The insert method works, but if I try to set something, i.e. the priority, I receive org.opengroupware.jogi.ogo.OgoException: NoSuchAction: action not implemented. We mailed about this issue. If you use the xmlrpc_caller tool you will see, there is no function jobs.updateJob even though it is in the xml-rpc-de.pdf documentation. You gave me a hint, person.updateJob is available, but I don't have any documentation about this method and I don't know about the needed arguments. My problem is, I can't insert a complete new Job and I'm not able to update a job. What a pity. Any more suggestions apart from sending a bug or an enhancement? Greets Christoph murphee (Werner Schuster) wrote: Christoph Guse wrote: -- **************************************** Christoph Guse Zimmer 33510 Hubertusstraße 149 41239 Mönchengladbach Tel. 0 21 66 / 14 52 59 Mobil 01 72 / 160 74 84 **************************************** -- OpenGroupware.org XML-RPC xmlrpc@xxxxxxxxxxxxxxxxx http://mail.opengroupware.org/mailman/listinfo/xmlrpc
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: OGOJOGI->Person.insertJob(), murphee (Werner Schuster) |
|---|---|
| Next by Date: | Re: OGOJOGI->Person.insertJob(), Helge Hess |
| Previous by Thread: | Re: OGOJOGI->Person.insertJob(), murphee (Werner Schuster) |
| Next by Thread: | Re: OGOJOGI->Person.insertJob(), Helge Hess |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |