[Vtigercrm-developers] Lazy question on webservices.

Joe Bordes joe at tsolucio.com
Fri Sep 21 09:14:00 PDT 2012


Hi,

I may be a little off-topic here but when you set a field as read-only 
it is because that is what you want vtiger CRM to guarantee, you don't 
want that field being updated through REST, workflow update or anywhere 
else, so that is what vtiger CRM does.

So, how do you fill it in with a value? with direct database access (= 
SQL update).
Where do you execute this direct database calculation and update? in 
save_module() or an event handler, so it gets executed on all the save 
events and you are not modifying base vtiger CRM code

If you want to update a field via REST, it has to be writable.

At least that is how I see it.

Have a nice weekend
Joe
TSolucio



On 21/09/12 17:37, Alan Lord wrote:
>
> On 21/09/12 16:31, Adam Heinz wrote:
>> On Fri, Sep 21, 2012 at 11:20 AM, Alan Lord <alanslists-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org> wrote:
>>> $webserviceField->isReadOnly() == true){
>> Hey look!  A read only check too!  I'm telling you, that stuff has got
>> to be close to working.  Maybe try to fix that instead of hacking
>> webservice?
> Hey - I saw that too!
>
> I'm a bit sceptical about that readonly column though. As it has zero
> effect on the UI I think there may be more work to get that to do
> something rather than breaking Web Services so I can write to a type 2
> field...
>
> Anyway thanks for being a sounding board. Hasn't got me very far but
> interesting nevertheless.
>
> Have a great weekend.
>
> Al
>
>
> _______________________________________________
> http://www.vtiger.com/



More information about the vtigercrm-developers mailing list