<div dir="ltr">Hi,<div><br></div><div>Thanks! for your detail explanation about the issue you are facing.</div><div><br></div><div>There is a problem with redirect uri's you have placed as below</div><div><br></div><div><div style="font-size:13px"><a href="https://crm.domain.com/index.php?module=Google&view=List&operation=sync&sourcemodule=Calendar&service=GoogleCalendar" target="_blank">https://crm.domain.com/index.php?module=Google&view=List&operation=sync&sourcemodule=Calendar&service=GoogleCalendar</a></div><div style="font-size:13px"><a href="https://crm.domain.com/index.php?module=Google&view=List&operation=sync&sourcemodule=Calendar&service=GoogleContacts" target="_blank">https://crm.domain.com/index.php?module=Google&view=List&operation=sync&sourcemodule=Calendar&service=GoogleContacts</a></div></div><div style="font-size:13px"><br></div><div style="font-size:13px">Both of the above url's say sourcemodule value as Calendar instead of Contacts, Please check the <a href="http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/8354">trac</a> ticket for clarification.</div><div style="font-size:13px"><br></div><div style="font-size:13px">You are facing this below error with respect to calendar sync</div><div style="font-size:13px"><br></div><div style><div style="font-size:15px"><span style="line-height:18px"><i>When I press Calendar sync in vTiger it only gives me this;</i></span></div><div style><p style="font-size:15px;margin:11px 0px 22px;padding:0px;overflow:hidden;line-height:22px"><b style="margin:0px;padding:0px"><i>Error: invalid_client</i></b></p><p style="font-size:15px;margin:11px 0px 22px;padding:0px;overflow:hidden;line-height:22px"><i>no support email</i></p><p style="margin:11px 0px 22px;padding:0px;overflow:hidden"><span style="font-size:15px;line-height:22px">Please check Consent screen option under API's & auth to check whether EMAIL ADDRESS has been selected.</span><br></p></div></div><div style="font-size:13px"><br></div><div style="font-size:13px"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Feb 6, 2015 at 3:17 PM, Mike van Egmond <span dir="ltr"><<a href="mailto:mvanegmond@egmmedia.nl" target="_blank">mvanegmond@egmmedia.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Guys,<div><br></div><div>I'm trying to get the oAuth 2.0 to work with vTiger Google Calender & Contact Sync.</div><div><br></div><div>1. Create new app for vTiger in Google</div><div>2. Enabled APIs for Contact & Calendar</div><div>3. Generated Credentials and followed the instructions in <a href="http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/8354" target="_blank">http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/8354</a> to setup the redirect URLs as following;</div><div><br></div><div><div><a href="https://crm.domain.com/index.php?module=Google&view=List&operation=sync&sourcemodule=Calendar&service=GoogleCalendar" target="_blank">https://crm.domain.com/index.php?module=Google&view=List&operation=sync&sourcemodule=Calendar&service=GoogleCalendar</a></div><div><a href="https://crm.domain.com/index.php?module=Google&view=List&operation=sync&sourcemodule=Calendar&service=GoogleContacts" target="_blank">https://crm.domain.com/index.php?module=Google&view=List&operation=sync&sourcemodule=Calendar&service=GoogleContacts</a><br><br>4. Entered clientid & clientsecret in <span style="color:rgb(0,0,0);font-family:Verdana,Arial,'Bitstream Vera Sans',Helvetica,sans-serif;font-size:13px">modules/Google/connectors/Config.php</span></div><div><span style="color:rgb(0,0,0);font-family:Verdana,Arial,'Bitstream Vera Sans',Helvetica,sans-serif;font-size:13px"><br></span></div><div><span style="color:rgb(0,0,0);font-family:Verdana,Arial,'Bitstream Vera Sans',Helvetica,sans-serif;font-size:13px">Now this should work, but all I am getting is this when pressing Google Contact sync;</span></div><div><span style="color:rgb(0,0,0);font-family:Verdana,Arial,'Bitstream Vera Sans',Helvetica,sans-serif;font-size:13px"><br></span></div><div><p style="margin:11px 0px 22px;padding:0px;overflow:hidden;font-size:15px;line-height:22px"><b style="margin:0px;padding:0px">Error: redirect_uri_mismatch</b></p><p style="margin:11px 0px 22px;padding:0px;overflow:hidden;font-size:15px;line-height:22px">The redirect URI in the request: <a href="https://crm.domain.com/index.php?module=Google&amp;view=List&amp;operation=sync&amp;sourcemodule=Contacts&amp;service=GoogleContacts" target="_blank">https://crm.domain.com/index.php?module=Google&amp;view=List&amp;operation=sync&amp;sourcemodule=Contacts&amp;service=GoogleContacts</a> did not match a registered redirect URI.</p><p style="margin:11px 0px 22px;padding:0px;overflow:hidden;font-size:15px;line-height:22px">Request details;</p><div style="margin:0px;padding:0px;font-size:15px;overflow:hidden"><ul style="line-height:18px;margin:0px;padding:0px 0px 0px 14px;list-style-type:none"><li style="margin:2px 0px 0px;padding:0px">scope=<a href="https://www.google.com/m8/feeds" target="_blank">https://www.google.com/m8/feeds</a></li><li style="margin:2px 0px 0px;padding:0px">response_type=code</li><li style="margin:2px 0px 0px;padding:0px">access_type=offline</li><li style="margin:2px 0px 0px;padding:0px">redirect_uri=<a href="https://crm.domain.com/index.php?module=Google&view=List&operation=sync&sourcemodule=Contacts&service=GoogleContacts" target="_blank">https://crm.domain.com/index.php?module=Google&view=List&operation=sync&sourcemodule=Contacts&service=GoogleContacts</a></li><li style="margin:2px 0px 0px;padding:0px">approval_prompt=force</li><li style="margin:2px 0px 0px;padding:0px">client_id=68016783142-ina85euuik9sqoh21et65u0lbeh5j0fs.apps.googleuserconten</li></ul><div><span style="line-height:18px"><br></span></div><div><span style="line-height:18px">When I press Calendar sync in vTiger it only gives me this;</span></div><div><p style="margin:11px 0px 22px;padding:0px;overflow:hidden;line-height:22px"><b style="margin:0px;padding:0px">Error: invalid_client</b></p><p style="margin:11px 0px 22px;padding:0px;overflow:hidden;line-height:22px">no support email</p></div><div><span style="line-height:18px"><br></span></div><div><span style="line-height:18px">Hope one of you can help me out here!</span></div><div><span style="line-height:18px"><br></span></div><div><span style="line-height:18px">Kind regards,</span></div><div><span style="line-height:18px"><br></span></div><div><span style="line-height:18px">Mike</span></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-02-05 17:43 GMT+01:00  <span dir="ltr"><<a href="mailto:vtigercrm-developers-request@lists.vtigercrm.com" target="_blank">vtigercrm-developers-request@lists.vtigercrm.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Send vtigercrm-developers mailing list submissions to<br>
        <a href="mailto:vtigercrm-developers@lists.vtigercrm.com" target="_blank">vtigercrm-developers@lists.vtigercrm.com</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="http://lists.vtigercrm.com/cgi-bin/mailman/listinfo/vtigercrm-developers" target="_blank">http://lists.vtigercrm.com/cgi-bin/mailman/listinfo/vtigercrm-developers</a><br>
<br>
or, via email, send a message with subject or body 'help' to<br>
        <a href="mailto:vtigercrm-developers-request@lists.vtigercrm.com" target="_blank">vtigercrm-developers-request@lists.vtigercrm.com</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:vtigercrm-developers-owner@lists.vtigercrm.com" target="_blank">vtigercrm-developers-owner@lists.vtigercrm.com</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of vtigercrm-developers digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
   1. Updating "Chosen" Selects using jQuery? (Alan Lord)<br>
   2. forgot password link has hard coded from  address (Alan Bell)<br>
   3. Re: Updating "Chosen" Selects using jQuery?       [Solved] (Alan Lord)<br>
   4. Re: Updating "Chosen" Selects using jQuery?       [Solved]<br>
      (socialboostdk)<br>
   5. Error w. picklists (socialboostdk)<br>
   6. Re: Access quote lineitems from custom module (lajeesh k)<br>
   7. Database schema (Phasaphon Kwanrutai)<br>
   8. Re: Access quote lineitems from custom module (Alan Lord)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Thu, 05 Feb 2015 13:50:47 +0000<br>
From: Alan Lord <<a href="mailto:alanslists@gmail.com" target="_blank">alanslists@gmail.com</a>><br>
To: <a href="mailto:vtigercrm-developers@lists.vtigercrm.com" target="_blank">vtigercrm-developers@lists.vtigercrm.com</a><br>
Subject: [Vtigercrm-developers] Updating "Chosen" Selects using<br>
        jQuery?<br>
Message-ID: <mavsfn$lp6$<a href="mailto:1@ger.gmane.org" target="_blank">1@ger.gmane.org</a>><br>
Content-Type: text/plain; charset=utf-8; format=flowed<br>
<br>
I have a small customisation to perform a lookup and update various<br>
fields in a module based on the value selected by the user.<br>
<br>
Using jQuery.val(newValue) works for inputs and text boxes, but is not<br>
working for Selects.<br>
<br>
I am selecting the element via it's "name" property in the form object.<br>
<br>
What do I need to do to update the UI so the Select box shows the change<br>
to the user?<br>
<br>
I found this online:<br>
<br>
> $("#form_field").trigger("chosen:updated");<br>
<br>
from <a href="http://harvesthq.github.io/chosen/" target="_blank">http://harvesthq.github.io/chosen/</a> but this doesn;t seem to have<br>
helped at all.<br>
<br>
Thanks<br>
<br>
Al<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Thu, 05 Feb 2015 14:06:21 +0000<br>
From: Alan Bell <<a href="mailto:alan.bell@libertus.co.uk" target="_blank">alan.bell@libertus.co.uk</a>><br>
To: <a href="mailto:vtigercrm-developers@lists.vtigercrm.com" target="_blank">vtigercrm-developers@lists.vtigercrm.com</a><br>
Subject: [Vtigercrm-developers] forgot password link has hard coded<br>
        from    address<br>
Message-ID: <<a href="mailto:54D378DD.4070405@libertus.co.uk" target="_blank">54D378DD.4070405@libertus.co.uk</a>><br>
Content-Type: text/plain; charset=utf-8; format=flowed<br>
<br>
in forgotPassword.php around line 48 the mail for a forgotton password<br>
is hard coded with a from address of <a href="mailto:support@vtiger.com" target="_blank">support@vtiger.com</a><br>
This means that if you are using Amazon SMTP (or any other server that<br>
is a bit strict about from addresses) for your outgoing mail server you<br>
get a mail server not configure error reported, and in the log you get:<br>
<br>
<br>
Thu Feb  5 13:55:07 2015,142 [21421] DEBUG VT - Error in Mail Sending :<br>
Error log = 'SMTP Error: Data not accepted.<p>SMTP server error: Message<br>
rejected: Email address is not verified.<br>
</p><br>
which is Amazon error 554 Message rejected: Email address is not verified<br>
<br>
<a href="http://docs.aws.amazon.com/ses/latest/DeveloperGuide/smtp-response-codes.html" target="_blank">http://docs.aws.amazon.com/ses/latest/DeveloperGuide/smtp-response-codes.html</a><br>
<br>
<br>
this should use the email address configured for the outgoing server.<br>
<br>
<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Thu, 05 Feb 2015 14:21:56 +0000<br>
From: Alan Lord <<a href="mailto:alanslists@gmail.com" target="_blank">alanslists@gmail.com</a>><br>
To: <a href="mailto:vtigercrm-developers@lists.vtigercrm.com" target="_blank">vtigercrm-developers@lists.vtigercrm.com</a><br>
Subject: Re: [Vtigercrm-developers] Updating "Chosen" Selects using<br>
        jQuery? [Solved]<br>
Message-ID: <mavua5$m8i$<a href="mailto:1@ger.gmane.org" target="_blank">1@ger.gmane.org</a>><br>
Content-Type: text/plain; charset=windows-1252; format=flowed<br>
<br>
On 05/02/15 13:50, Alan Lord wrote:<br>
><br>
>> $("#form_field").trigger("chosen:updated");<br>
<br>
Worked it out in the end... vtiger is using an older version of Chosen<br>
and requires the "liszt:updated" syntax.<br>
<br>
HTH<br>
<br>
Al<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 4<br>
Date: Thu, 5 Feb 2015 15:28:39 +0100<br>
From: socialboostdk <<a href="mailto:socialboostdk@gmail.com" target="_blank">socialboostdk@gmail.com</a>><br>
To: "<a href="mailto:vtigercrm-developers@lists.vtigercrm.com" target="_blank">vtigercrm-developers@lists.vtigercrm.com</a>"<br>
        <<a href="mailto:vtigercrm-developers@lists.vtigercrm.com" target="_blank">vtigercrm-developers@lists.vtigercrm.com</a>><br>
Subject: Re: [Vtigercrm-developers] Updating "Chosen" Selects using<br>
        jQuery? [Solved]<br>
Message-ID:<br>
        <<a href="mailto:CACQ7aj_81M-CsPtX6RV8pw_Ths69WbSNO4R4oFo5t5XazooqTg@mail.gmail.com" target="_blank">CACQ7aj_81M-CsPtX6RV8pw_Ths69WbSNO4R4oFo5t5XazooqTg@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
*Yes - BTW: *<br>
<br>
Why dont "we" update to latest version of chosen?<br>
<br>
Its much better, retina-support, etc?<br>
<br>
:)<br>
<br>
On 5 February 2015 at 15:21, Alan Lord <<a href="mailto:alanslists@gmail.com" target="_blank">alanslists@gmail.com</a>> wrote:<br>
<br>
> On 05/02/15 13:50, Alan Lord wrote:<br>
><br>
>><br>
>>  $("#form_field").trigger("chosen:updated");<br>
>>><br>
>><br>
> Worked it out in the end... vtiger is using an older version of Chosen and<br>
> requires the "liszt:updated" syntax.<br>
><br>
> HTH<br>
><br>
> Al<br>
><br>
> _______________________________________________<br>
> <a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><br>
><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20150205/73f2eecd/attachment-0001.html" target="_blank">http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20150205/73f2eecd/attachment-0001.html</a>><br>
<br>
------------------------------<br>
<br>
Message: 5<br>
Date: Thu, 5 Feb 2015 15:56:44 +0100<br>
From: socialboostdk <<a href="mailto:socialboostdk@gmail.com" target="_blank">socialboostdk@gmail.com</a>><br>
To: "<a href="mailto:vtigercrm-developers@lists.vtigercrm.com" target="_blank">vtigercrm-developers@lists.vtigercrm.com</a>"<br>
        <<a href="mailto:vtigercrm-developers@lists.vtigercrm.com" target="_blank">vtigercrm-developers@lists.vtigercrm.com</a>><br>
Subject: [Vtigercrm-developers] Error w. picklists<br>
Message-ID:<br>
        <<a href="mailto:CACQ7aj_iYaG_pNCA51fHGx5ZyN9dO2miPF-s6pW8xD%2Bmph4ZDw@mail.gmail.com" target="_blank">CACQ7aj_iYaG_pNCA51fHGx5ZyN9dO2miPF-s6pW8xD+mph4ZDw@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Hi there Uma & co :)<br>
<br>
I've found a small bug w. picklists.<br>
<br>
Ie. normally, when adding a picklist its not possible to include comma<br>
(",") in the list, as this will trigger a new option in the picklist. Ie<br>
"Somewhere, sometown, somecountry" becomes "Somewhere" + "sometown" +<br>
"somecountry".<br>
<br>
But - if I add the picklist first, and then later under "picklisteditor"<br>
add the values, then I CAN add a value like "Somewhere, sometown,<br>
somecountry" , ie. make "Somewhere, sometown, somecountry" , "Otherewhere,<br>
othertown, othercountry", etc.<br>
<br>
This kinda works :)<br>
<br>
But, then if i want to make picklist dependency - which is possible to set<br>
up with the above values - then the acutal contents shown in the picklists<br>
are not showing. Ie. the "dependant" picklist no 2 is not having the values<br>
shown in its drop-down.<br>
<br>
There are 3 options as I see it, in prioritized order:<br>
<br>
1) Either this should be fixed so we can indeed use comma, which is clearly<br>
preferred. As a minimum this means fixing the picklist-dependancy setup, so<br>
this is robust. Perhaps even the "add-new-fields" option, while this is not<br>
a requirement.<br>
<br>
2) There is perhaps a small loophole ie. a comma can be shown as two<br>
different ascii-charcters (&#44; vs &#130;) -  dont know if this would work?<br>
<br>
3) Make it so that you cannot add comma under picklist-editor either, so<br>
the picklist-dependancy setup is robust.<br>
<br>
:)<br>
<br>
Chris<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20150205/240e23ef/attachment-0001.html" target="_blank">http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20150205/240e23ef/attachment-0001.html</a>><br>
<br>
------------------------------<br>
<br>
Message: 6<br>
Date: Thu, 5 Feb 2015 20:53:24 +0530<br>
From: lajeesh k <<a href="mailto:lajeeshk@gmail.com" target="_blank">lajeeshk@gmail.com</a>><br>
To: vtigercrm-developers <<a href="mailto:vtigercrm-developers@lists.vtigercrm.com" target="_blank">vtigercrm-developers@lists.vtigercrm.com</a>><br>
Subject: Re: [Vtigercrm-developers] Access quote lineitems from custom<br>
        module<br>
Message-ID:<br>
        <CAA1bLmoELocWkrst8kjhSt0bHKryeV-3VZT39bu-=p7dhYc=<a href="mailto:FQ@mail.gmail.com" target="_blank">FQ@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Use getAssociatedProducts function  in include/utils/EditViewUtils.php<br>
<br>
$focus = CRMEntity::getInstance($module);<br>
$focus->id = $recordId;<br>
$related_products = getAssociatedProducts($module,$focus);<br>
<br>
<br>
<br>
<br>
Regards,<br>
Lajeesh<br>
<br>
On Thu, Feb 5, 2015 at 3:53 PM, Uma S <<a href="mailto:uma.s@vtiger.com" target="_blank">uma.s@vtiger.com</a>> wrote:<br>
<br>
> Hi,<br>
><br>
> Using getProducts() api on Inventory record model, will get information<br>
> regarding line-items linked with inventory modules (SalesOrder/ Quotes/<br>
> Invoice/ PurchaseOrder).<br>
><br>
> On Thu, Feb 5, 2015 at 1:11 PM, Alan Lord <<a href="mailto:alanslists@gmail.com" target="_blank">alanslists@gmail.com</a>> wrote:<br>
><br>
>> On 04/02/15 22:22, Richard Hills - Technologywise wrote:<br>
>><br>
>>> I am now doing this as follows:<br>
>>><br>
>>>                  include_once 'modules/Quotes/QuotePDFController.php';<br>
>>>>                 $controller = new Vtiger_QuotePDFController('Quotes');<br>
>>>> $controller->loadRecord(vtlib_purify($request->get('quote')));<br>
>>>>                 foreach($controller->associated_products as $lineitem)<br>
>>>> ...<br>
>>>><br>
>>> Happy to hear of any better methods.<br>
>>><br>
>><br>
>> I haven't looked at the Quote/Inventory design but I would have thought<br>
>> you should be simply getting the Record model for the<br>
>> Quote/SalesOrder/Invoice. I would have assumed that the line item data will<br>
>> be present (or accessible) in the Record itself.<br>
>><br>
>> HTH<br>
>><br>
>> Al<br>
>><br>
>><br>
>> _______________________________________________<br>
>> <a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><br>
>><br>
><br>
><br>
><br>
> --<br>
> With<br>
> Best Regards<br>
> Uma.S<br>
> Vtiger Team<br>
><br>
> _______________________________________________<br>
> <a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><br>
><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20150205/2fa54c49/attachment-0001.html" target="_blank">http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20150205/2fa54c49/attachment-0001.html</a>><br>
<br>
------------------------------<br>
<br>
Message: 7<br>
Date: Thu, 5 Feb 2015 23:34:45 +0700<br>
From: Phasaphon Kwanrutai <<a href="mailto:sunkohchangresort@gmail.com" target="_blank">sunkohchangresort@gmail.com</a>><br>
To: <a href="mailto:vtigercrm-developers@lists.vtigercrm.com" target="_blank">vtigercrm-developers@lists.vtigercrm.com</a><br>
Subject: [Vtigercrm-developers] Database schema<br>
Message-ID:<br>
        <<a href="mailto:CAPAnwr4aKquuVqPGDKmLo_fEgpfyPXOFHpny%2BY2n%2BBiDsP5HxQ@mail.gmail.com" target="_blank">CAPAnwr4aKquuVqPGDKmLo_fEgpfyPXOFHpny+Y2n+BiDsP5HxQ@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Hi, please help :-)<br>
I need to update database schema to suit to v 6.2. i believe migration<br>
wasn't successful 100% and to make it working I would like to update all<br>
default fields and relations. I am very far from expertise in mysql<br>
therefore I would like to ask you to help me in this case. Possibly some<br>
script or command line tool?<br>
OK, hope you can help somehow.<br>
<br>
Phasa<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20150205/05943b28/attachment-0001.html" target="_blank">http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20150205/05943b28/attachment-0001.html</a>><br>
<br>
------------------------------<br>
<br>
Message: 8<br>
Date: Thu, 05 Feb 2015 16:43:12 +0000<br>
From: Alan Lord <<a href="mailto:alanslists@gmail.com" target="_blank">alanslists@gmail.com</a>><br>
To: <a href="mailto:vtigercrm-developers@lists.vtigercrm.com" target="_blank">vtigercrm-developers@lists.vtigercrm.com</a><br>
Subject: Re: [Vtigercrm-developers] Access quote lineitems from custom<br>
        module<br>
Message-ID: <mb06j0$da1$<a href="mailto:1@ger.gmane.org" target="_blank">1@ger.gmane.org</a>><br>
Content-Type: text/plain; charset=windows-1252; format=flowed<br>
<br>
On 05/02/15 15:23, lajeesh k wrote:<br>
> Use getAssociatedProducts function  in include/utils/EditViewUtils.php<br>
><br>
> $focus = CRMEntity::getInstance($module);<br>
> $focus->id = $recordId;<br>
> $related_products= getAssociatedProducts($module,$focus);<br>
<br>
Why?<br>
<br>
This is old code. Surely it is better and more "correct" now to use the<br>
MVC pattern and use the Record model.<br>
<br>
In a Quote the Record model extends the Inventory Record model which<br>
extends the Vtiger Record Model. In the Inventory Record model are all<br>
the APIs required to retrieve the data in the correct format and with<br>
the correct permissions.<br>
<br>
$recordModel = Vtiger_Record_Model::getInstanceById(crmid, 'Quotes');<br>
$lineItems = $recordModel->getProducts();<br>
<br>
HTH<br>
<br>
Al<br>
<br>
<br>
<br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
vtigercrm-developers mailing list<br>
<a href="mailto:vtigercrm-developers@lists.vtigercrm.com" target="_blank">vtigercrm-developers@lists.vtigercrm.com</a><br>
<a href="http://lists.vtigercrm.com/cgi-bin/mailman/listinfo/vtigercrm-developers" target="_blank">http://lists.vtigercrm.com/cgi-bin/mailman/listinfo/vtigercrm-developers</a><br>
<br>
<br>
End of vtigercrm-developers Digest, Vol 109, Issue 27<br>
*****************************************************<br>
</blockquote></div><br></div></div></div>
<br>_______________________________________________<br>
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">With<br>Best Regards<br>Uma.S<br><div>Vtiger Team</div></div></div>
</div>