[Vtigercrm-developers] Help about Workflow
Ranieri
rslemer at gmail.com
Sat Sep 5 19:15:38 GMT 2015
Thanks for your reply Allan !
After saving for the user is not a natural thing (he sees an
information and will
change the recording to another).
And the biggest problem is that the field can not be marked as mandatory
That's how we are doing today, reading from the database and then changing.
But I wanted to manipulate the on-screen variávels (without reading from
the database) in which data structure, you could take the data that are the
variables on the screen?
Thanks!
2015-09-05 13:15 GMT-03:00 Alan Lord (News) <alanslists at gmail.com>:
> On 05/09/15 16:48, Ranieri wrote:
>
>> Hi
>>
>> I need complete and check some fields before saving a record.
>>
>> If I use a workflow only after save right?
>>
>
> Yes, but you can always update the record after it has been saved. There
> is no problem with that.
>
> Is possible created a workflow ( or another function or code ) for
>> checking any data before a save record?
>>
>> My intention not change a vTiger code ( hard code )
>>
>> Example:
>>
>> When user put a postal code, i will execute a API to get street name,
>> city, state, country and put that information at proper field, and set
>> each field a mandatory.
>>
>
> You could write an Event Handler and trigger on the
> vtiger.entity.beforesave event.
>
> Or, personally, I would write my own Javascript class and custom actions
> to deal with all this via Ajax so the fields are populated whilst the user
> sees it happening. You could wrap all this in a custom module and load the
> Javascript class using a HEADERSCRIPT link type.
>
> HTH
>
> Al
>
> --
> Libertus Solutions
> http://www.libertus.co.uk
>
> _______________________________________________
> http://www.vtiger.com/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20150905/2cac3940/attachment.html>
More information about the vtigercrm-developers
mailing list