<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://sugarclub.sugarcrm.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Need to add customization to a common view, which is extended by every other view</title><link>https://sugarclub.sugarcrm.com/dev-club/f/questions-answers/4917/need-to-add-customization-to-a-common-view-which-is-extended-by-every-other-view</link><description>Team, 
 
 I want to know a common view file where i could add my conditional customization, so that i can apply my changes to multiple files. 
 
 Digging into the code it seems like clients/base/views/base/base.js can be that file which could serve my</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Need to add customization to a common view, which is extended by every other view</title><link>https://sugarclub.sugarcrm.com/thread/24212?ContentTypeID=1</link><pubDate>Wed, 07 Jul 2021 12:27:05 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:8cd9245e-9047-4b2b-a4ec-cb5d85fd0434</guid><dc:creator>Andr&amp;#233; Lopes</dc:creator><description>&lt;p&gt;As I previously explained and&amp;nbsp;Sanchez agreeded, it is not possible to accomplish such a feature without creating custom views for all cascading views.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need to add customization to a common view, which is extended by every other view</title><link>https://sugarclub.sugarcrm.com/thread/24208?ContentTypeID=1</link><pubDate>Wed, 07 Jul 2021 06:17:02 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:f71c99ee-85ac-4904-beca-b09ec707ef1b</guid><dc:creator>Amber Sharma</dc:creator><description>&lt;p&gt;@Andre Lopes - I want to extend functionality of BaseView itself because most of the views inherit BaseView. My requirement is not to create any new custom view. The BaseView itself should add my customization everytime it gets called.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;When i write my customization in the core file itself, it works as expected, but to make it upgrade safe, i am trying to move it to custom folder so that every time parent BaseView is called, it should also include my customization.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need to add customization to a common view, which is extended by every other view</title><link>https://sugarclub.sugarcrm.com/thread/24182?ContentTypeID=1</link><pubDate>Tue, 06 Jul 2021 18:13:27 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:b9452fac-fef7-4443-9481-7d7dc4032c2a</guid><dc:creator>Sanchez Jorge Luis</dc:creator><description>&lt;p&gt;I agree with andr&amp;eacute; on the point that custom views would have to inherit from the custombaseview&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need to add customization to a common view, which is extended by every other view</title><link>https://sugarclub.sugarcrm.com/thread/24180?ContentTypeID=1</link><pubDate>Tue, 06 Jul 2021 18:08:40 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:227fcb27-3178-4a55-badf-dd2e0735d84a</guid><dc:creator>Andr&amp;#233; Lopes</dc:creator><description>&lt;p&gt;Your approach will not work because all views which extends BaseView explicit inherit from it:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="javascript"&gt;extendsFrom: &amp;quot;BaseView&amp;quot;,&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Your approach will work for custom views which, eventually, extends your custom one:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;extendsFrom: &amp;quot;CustomBaseView&amp;quot;,&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need to add customization to a common view, which is extended by every other view</title><link>https://sugarclub.sugarcrm.com/thread/24177?ContentTypeID=1</link><pubDate>Tue, 06 Jul 2021 17:48:53 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:2ca8fa8a-dfe4-438b-aa62-5fe4f4427902</guid><dc:creator>Amber Sharma</dc:creator><description>&lt;p&gt;&lt;a href="/members/jlsanchez"&gt;Sanchez Jorge Luis&lt;/a&gt; -&amp;nbsp; Thanks for reply, but what i am trying to do is extend BaseView to CustomBaseView.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;But with whatever i did, it just doesn&amp;#39;t trigger the initialize method in my CustomBaseView which normally does happen for the Record View which you have shared.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Basically i want to extend the Parent BaseView in clients/base/views/base/base.js&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need to add customization to a common view, which is extended by every other view</title><link>https://sugarclub.sugarcrm.com/thread/24176?ContentTypeID=1</link><pubDate>Tue, 06 Jul 2021 17:40:07 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:0a69963a-050e-460f-8374-479d8955f9ce</guid><dc:creator>Sanchez Jorge Luis</dc:creator><description>&lt;p&gt;Dear Amber&lt;/p&gt;
&lt;p&gt;Overriding is essentially creating or copying a view to be used by your application that is not extending its parent.&lt;/p&gt;
&lt;p&gt;Please check the next doc &lt;a href="https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_11.0/User_Interface/Views/#Extending_Views"&gt;here&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Kind regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>