[Vtigercrm-developers] handleQuickCreateData not working with Events

Uma S uma.s at vtiger.com
Wed Feb 18 10:06:36 GMT 2015


Hi,

For the above given screen-shot of edit-view, we can see input element
value in developer tool is different from what we can see in UI, I was not
able to reproduce this either in local instance or demo.vtiger.com.

Hope, your api in java-script is over-writing the value before form submit.
Can you provide clarification for this.

On Tue, Feb 17, 2015 at 6:28 PM, Conrado Maggi <comaggi at gmail.com> wrote:

> Hello Uma,
>
> What I'm doing is extending the calendar to pass start/end times.
> Essentially select an slot of time instead of 5min. Its working fine with
> the standard javascript and the quick create but something is overrating
> the values I set.
>
> Take a look at the attached image
>
>
> I'm using this callback to set the
> time:  jQuery('[name="time_end"]').timepicker('setTime',endDateInstance);
>
>
>
>>
> On Tue, Feb 17, 2015 at 10:26 AM, Uma S <uma.s at vtiger.com> wrote:
>
>> Hi,
>>
>> Activity type is of 3 like Call, Meeting and Mobile Call. So it's
>> depending on that value. Can you please let what is test-case scenario your
>> facing the problem.
>>
>> Because if you edit end-time value to any other it will save the value,
>> if not specified then by default will take up 5 mins duration.
>>
>>
>>
>> On Tue, Feb 17, 2015 at 2:22 PM, Conrado Maggi <comaggi at gmail.com> wrote:
>>
>>> Hello..
>>>
>>> I've  just found it. In
>>> layouts/vlayout/modules/Calendar/resources/Edit.js
>>>
>>> registerBasicEvents : function(container) {
>>> this._super(container);
>>> this.registerActivityTypeChangeEvent(container);
>>> this.registerTimeStartChangeEvent(container);
>>>         this.registerEndDateTimeChangeLogger(container);
>>>         *//Required to set the end time based on the default
>>> ActivityType selected*
>>> *         container.find('[name="activitytype"]').trigger('change');*
>>> },
>>>
>>> You do not need those bold line. There is only one activity default
>>> duration and no need to trigger the change event on document ready.
>>>
>>> Regards,
>>> Conrado
>>>
>>> On Tue, Feb 17, 2015 at 9:24 AM, Conrado Maggi <comaggi at gmail.com>
>>> wrote:
>>>
>>>> Hello,
>>>>
>>>> I'm trying to pass a variable into the quick create form
>>>> using headerInstance.handleQuickCreateData to set the event start / end
>>>> dates according to some other values.
>>>>
>>>> No matter what I do the Event end date is being override and set always
>>>> to 5 min later than the start date.
>>>>
>>>> Does anyone knows where  the end date is being force to be 5min later
>>>> than the start date? (The 5 min are in the user profile, I need to find the
>>>> javascript thats uses that value)
>>>>
>>>> Thanks!
>>>>
>>>
>>>
>>> _______________________________________________
>>> http://www.vtiger.com/
>>>
>>
>>
>>
>> --
>> With
>> Best Regards
>> Uma.S
>> Vtiger Team
>>
>> _______________________________________________
>> http://www.vtiger.com/
>>
>
>
> _______________________________________________
> http://www.vtiger.com/
>



-- 
With
Best Regards
Uma.S
Vtiger Team
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20150218/bf886b14/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Imagen1.png
Type: image/png
Size: 292566 bytes
Desc: not available
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20150218/bf886b14/attachment-0001.png>


More information about the vtigercrm-developers mailing list