[Vtigercrm-developers] About Server APIs, Marketplace and Current User Settings
Stefan Warnat
ich at stefanwarnat.de
Wed Oct 1 08:05:57 GMT 2014
Hy developers,
I tried to get my first Extension into the Marketplace but they was
rejected with the reason I should use the Server APIs instead of internal
Record Access of the Models.
I would like to discuss a new Server API, because the current one will
generating lots of problems and will prevent me from using this way.
Explanation:
I use the "ServerAPI" / Webservice functions in 5.4.0 for my Workflow
Designer module to get a stable interface to the fields/values.
It only works in 80% of all cases, because the current Server APIs will use
$current_user format settings.
This means I get numbers sometimes 123.678, in other systems 123,45 or "123
456,789".
In 5.4 the problems with the Inventory was also existing. It looks like
this was integrate in 6.0
I must be create a special manipulation of the "$current_user" Variable to
get the same format every time. Until the end, there are sometimes problems
with this way.
Also the $current_user usage will respect the field permissions. And if I
simple create an Admin User every time, this parameter is much useless.
Now I found the problem during the internal usage, that Product Tax
information won't be loaded during the Model data loading and there is no
universal way to get absolutely every value from a record with a
standardized interface.
I would discuss a layer of API functions, which a developer could use,
without to worry about internal settings. Only read/write/create and the
other new functions of the API.
What do you think?
Stefan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20141001/d14d7bfd/attachment-0001.html>
More information about the vtigercrm-developers
mailing list