|
|
Choosing A Webhost: |
Re: number to id: msg#00028cms.opengroupware.xmlrpc.devel
On 24. Mai 2005, at 11:46 Uhr, Christoph Guse wrote: in my project I use enterprise.insert to insert a new Enterprise. This works fine and as result I get the unique number of the enterprise. The number is an integer and it is correct, but in my case it is necessary to get a full ID, i.e. "skyrix://renner.flex/ renner/33710" . Why is this necessary? All xmlrpcd actions should work fine with just the primary key (they treat them as a relative URL to "skyrix:// renner.flex/renner"). I tried to use system.getHostName to construct the ID by myself, but the result of system.getHostName is "renner.flex". The id is _not_ the hostname, thats just the default (you need to change it if you are running multiple instances on one machine). The instance ID is set using the "skyrix_id" default. Is the part "skyrix://" in every installation the same? Currently yes. It might change in future versions (to ogo:// or sth like this ...) Is the part "/renner/" always the first part of system.getHostName? No. Is there any way to get the full ID automatically with enterprise.insert? No. You would need to fetch it. Maybe it makes sense to add an action which returns the instance ID, though I fail to see what _you_ need it for. Greets, Helge -- http://docs.opengroupware.org/Members/helge/ OpenGroupware.org -- OpenGroupware.org XML-RPC xmlrpc@xxxxxxxxxxxxxxxxx http://mail.opengroupware.org/mailman/listinfo/xmlrpc
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | number to id, Christoph Guse |
|---|---|
| Next by Date: | Re: number to id, Adam Tauno Williams |
| Previous by Thread: | number to id, Christoph Guse |
| Next by Thread: | Re: number to id, Adam Tauno Williams |
| 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 |