<div dir="ltr">That fixed it.<div><br></div><div>Thank you Uma.</div><div><br></div><div>Kind regards,</div><div><br></div><div>Mike<br><div class="gmail_extra"><br><div class="gmail_quote">2015-02-06 12:14 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:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Send vtigercrm-developers mailing list submissions to<br>
        <a href="mailto:vtigercrm-developers@lists.vtigercrm.com">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">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">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. Re: Google oAuth 2.0 failing (Uma S)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Fri, 6 Feb 2015 16:43:51 +0530<br>
From: Uma S <<a href="mailto:uma.s@vtiger.com">uma.s@vtiger.com</a>><br>
To: <a href="mailto:vtigercrm-developers@lists.vtigercrm.com">vtigercrm-developers@lists.vtigercrm.com</a><br>
Subject: Re: [Vtigercrm-developers] Google oAuth 2.0 failing<br>
Message-ID:<br>
        <CAH83UoJoziU9M_jbKj=fAXL9z3LEF6X3ZL5kVqQ3eH3y2V=<a href="mailto:fgQ@mail.gmail.com">fgQ@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Hi,<br>
<br>
Thanks! for your detail explanation about the issue you are facing.<br>
<br>
There is a problem with redirect uri's you have placed as below<br>
<br>
<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><br>
<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>
Both of the above url's say sourcemodule value as Calendar instead of<br>
Contacts, Please check the trac<br>
<<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>> ticket for<br>
clarification.<br>
<br>
You are facing this below error with respect to calendar sync<br>
<br>
*When I press Calendar sync in vTiger it only gives me this;*<br>
<br>
*Error: invalid_client*<br>
<br>
*no support email*<br>
<br>
Please check Consent screen option under API's & auth to check whether<br>
EMAIL ADDRESS has been selected.<br>
<br>
<br>
<br>
On Fri, Feb 6, 2015 at 3:17 PM, Mike van Egmond <<a href="mailto:mvanegmond@egmmedia.nl">mvanegmond@egmmedia.nl</a>><br>
wrote:<br>
<br>
> Hi Guys,<br>
><br>
> I'm trying to get the oAuth 2.0 to work with vTiger Google Calender &<br>
> Contact Sync.<br>
><br>
> 1. Create new app for vTiger in Google<br>
> 2. Enabled APIs for Contact & Calendar<br>
> 3. Generated Credentials and followed the instructions in<br>
> <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<br>
> URLs as following;<br>
><br>
><br>
> <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><br>
><br>
> <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 modules/Google/connectors/Config.php<br>
><br>
> Now this should work, but all I am getting is this when pressing Google<br>
> Contact sync;<br>
><br>
> *Error: redirect_uri_mismatch*<br>
><br>
> The redirect URI in the request:<br>
> <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><br>
> did not match a registered redirect URI.<br>
><br>
> Request details;<br>
><br>
>    - scope=<a href="https://www.google.com/m8/feeds" target="_blank">https://www.google.com/m8/feeds</a><br>
>    - response_type=code<br>
>    - access_type=offline<br>
>    - redirect_uri=<br>
>    <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><br>
>    - approval_prompt=force<br>
>    -<br>
>    client_id=68016783142-ina85euuik9sqoh21et65u0lbeh5j0fs.apps.googleuserconten<br>
><br>
><br>
> When I press Calendar sync in vTiger it only gives me this;<br>
><br>
> *Error: invalid_client*<br>
><br>
> no support email<br>
><br>
> Hope one of you can help me out here!<br>
><br>
> Kind regards,<br>
><br>
> Mike<br>
><br>
> 2015-02-05 17:43 GMT+01:00 <<br>
> <a href="mailto:vtigercrm-developers-request@lists.vtigercrm.com">vtigercrm-developers-request@lists.vtigercrm.com</a>>:<br>
><br>
>> Send vtigercrm-developers mailing list submissions to<br>
>>         <a href="mailto:vtigercrm-developers@lists.vtigercrm.com">vtigercrm-developers@lists.vtigercrm.com</a><br>
>><br>
>> To subscribe or unsubscribe via the World Wide Web, visit<br>
>><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">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">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<br>
>> 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">alanslists@gmail.com</a>><br>
>> To: <a href="mailto:vtigercrm-developers@lists.vtigercrm.com">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">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">alan.bell@libertus.co.uk</a>><br>
>> To: <a href="mailto:vtigercrm-developers@lists.vtigercrm.com">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">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">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>
>><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">alanslists@gmail.com</a>><br>
>> To: <a href="mailto:vtigercrm-developers@lists.vtigercrm.com">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">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">socialboostdk@gmail.com</a>><br>
>> To: "<a href="mailto:vtigercrm-developers@lists.vtigercrm.com">vtigercrm-developers@lists.vtigercrm.com</a>"<br>
>>         <<a href="mailto:vtigercrm-developers@lists.vtigercrm.com">vtigercrm-developers@lists.vtigercrm.com</a>><br>
>> Subject: Re: [Vtigercrm-developers] Updating "Chosen" Selects using<br>
>>         jQuery? [Solved]<br>
>> Message-ID:<br>
>>         <<br>
>> <a href="mailto:CACQ7aj_81M-CsPtX6RV8pw_Ths69WbSNO4R4oFo5t5XazooqTg@mail.gmail.com">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">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<br>
>> 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: <<br>
>> <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>
>><br>
>> Message: 5<br>
>> Date: Thu, 5 Feb 2015 15:56:44 +0100<br>
>> From: socialboostdk <<a href="mailto:socialboostdk@gmail.com">socialboostdk@gmail.com</a>><br>
>> To: "<a href="mailto:vtigercrm-developers@lists.vtigercrm.com">vtigercrm-developers@lists.vtigercrm.com</a>"<br>
>>         <<a href="mailto:vtigercrm-developers@lists.vtigercrm.com">vtigercrm-developers@lists.vtigercrm.com</a>><br>
>> Subject: [Vtigercrm-developers] Error w. picklists<br>
>> Message-ID:<br>
>>         <<br>
>> <a href="mailto:CACQ7aj_iYaG_pNCA51fHGx5ZyN9dO2miPF-s6pW8xD%2Bmph4ZDw@mail.gmail.com">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<br>
>> 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<br>
>> clearly<br>
>> preferred. As a minimum this means fixing the picklist-dependancy setup,<br>
>> so<br>
>> this is robust. Perhaps even the "add-new-fields" option, while this is<br>
>> 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<br>
>> 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: <<br>
>> <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>
>><br>
>> Message: 6<br>
>> Date: Thu, 5 Feb 2015 20:53:24 +0530<br>
>> From: lajeesh k <<a href="mailto:lajeeshk@gmail.com">lajeeshk@gmail.com</a>><br>
>> To: vtigercrm-developers <<a href="mailto:vtigercrm-developers@lists.vtigercrm.com">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=<br>
>> <a href="mailto:FQ@mail.gmail.com">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">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">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<br>
>> Vtiger_QuotePDFController('Quotes');<br>
>> >>>> $controller->loadRecord(vtlib_purify($request->get('quote')));<br>
>> >>>>                 foreach($controller->associated_products as<br>
>> $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<br>
>> 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: <<br>
>> <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>
>><br>
>> Message: 7<br>
>> Date: Thu, 5 Feb 2015 23:34:45 +0700<br>
>> From: Phasaphon Kwanrutai <<a href="mailto:sunkohchangresort@gmail.com">sunkohchangresort@gmail.com</a>><br>
>> To: <a href="mailto:vtigercrm-developers@lists.vtigercrm.com">vtigercrm-developers@lists.vtigercrm.com</a><br>
>> Subject: [Vtigercrm-developers] Database schema<br>
>> Message-ID:<br>
>>         <<br>
>> <a href="mailto:CAPAnwr4aKquuVqPGDKmLo_fEgpfyPXOFHpny%2BY2n%2BBiDsP5HxQ@mail.gmail.com">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: <<br>
>> <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>
>><br>
>> Message: 8<br>
>> Date: Thu, 05 Feb 2015 16:43:12 +0000<br>
>> From: Alan Lord <<a href="mailto:alanslists@gmail.com">alanslists@gmail.com</a>><br>
>> To: <a href="mailto:vtigercrm-developers@lists.vtigercrm.com">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">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">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>
>><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>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20150206/db9b86ac/attachment.html" target="_blank">http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20150206/db9b86ac/attachment.html</a>><br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
vtigercrm-developers mailing list<br>
<a href="mailto:vtigercrm-developers@lists.vtigercrm.com">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 29<br>
*****************************************************<br>
</blockquote></div><br></div></div></div>