<?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>How can i get module name in app:sync:complete</title><link>https://sugarclub.sugarcrm.com/dev-club/f/questions-answers/5267/how-can-i-get-module-name-in-app-sync-complete</link><description>I am trying to get module name in app:sync:complete . 
 i tried 
 
 (function(app) { app.events.on(&amp;quot;app:sync:complete&amp;quot;, function() { var acls = app.user.getAcls(); acls.fpalt_FPalTickets.create = &amp;#39;no&amp;#39;; var self = this; console.log(&amp;#39;module&amp;#39;,app); 
 //console</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How can i get module name in app:sync:complete</title><link>https://sugarclub.sugarcrm.com/thread/25316?ContentTypeID=1</link><pubDate>Mon, 08 Nov 2021 13:09:10 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:a5eec9b4-69ef-4baa-8c77-084d95d0c9b3</guid><dc:creator>Francesca Shiekh</dc:creator><description>&lt;p&gt;If you are just trying to disable a top panel action (like create) for a specific subpanel on the Leads module then you can override the panel-top-view.&lt;br /&gt;&lt;br /&gt;this is an old post, but it works:&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://sugarclub.sugarcrm.com/explore/enterprise-professional/i/product-suggestions/sugarcrm7-how-to-manipulate-subpanel-top-buttons-actions"&gt;sugarclub.sugarcrm.com/.../sugarcrm7-how-to-manipulate-subpanel-top-buttons-actions&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can i get module name in app:sync:complete</title><link>https://sugarclub.sugarcrm.com/thread/25309?ContentTypeID=1</link><pubDate>Mon, 08 Nov 2021 08:29:04 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:0b493893-8522-4b99-9b90-25ceb52b2bea</guid><dc:creator>neeraj verma</dc:creator><description>&lt;p&gt;also tried&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;var&lt;/span&gt;&lt;span&gt; currentViewId=app.modules.analytics.currentViewId;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; console.log(&lt;/span&gt;&lt;span&gt;&amp;#39;currentViewId&amp;#39;&lt;/span&gt;&lt;span&gt;,currentViewId);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; console.log(&lt;/span&gt;&lt;span&gt;&amp;#39;analytics&amp;#39;&lt;/span&gt;&lt;span&gt;,app.modules.analytics);&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; console.log(&lt;/span&gt;&lt;span&gt;&amp;#39;currentViewId 1&amp;#39;&lt;/span&gt;&lt;span&gt;,app.modules.analytics[&lt;/span&gt;&lt;span&gt;"currentViewId"&lt;/span&gt;&lt;span&gt;]);&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; console.log(&lt;/span&gt;&lt;span&gt;&amp;#39;app.user&amp;#39;&lt;/span&gt;&lt;span&gt;,app.user);&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;if&lt;/span&gt;&lt;span&gt;(currentViewId==&lt;/span&gt;&lt;span&gt;&amp;#39;records/Leads&amp;#39;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; acls.fpalt_FPalTickets.create = &lt;/span&gt;&lt;span&gt;&amp;#39;no&amp;#39;&lt;/span&gt;&lt;span&gt;; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;else&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; acls.fpalt_FPalTickets.create = &lt;/span&gt;&lt;span&gt;&amp;#39;yes&amp;#39;&lt;/span&gt;&lt;span&gt;; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can i get module name in app:sync:complete</title><link>https://sugarclub.sugarcrm.com/thread/25308?ContentTypeID=1</link><pubDate>Mon, 08 Nov 2021 08:28:26 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:6f715214-5683-43e5-8089-721cd45cd936</guid><dc:creator>neeraj verma</dc:creator><description>&lt;p&gt;yes its kind of custom plugin from&amp;nbsp;sugar_sidecar.min.js&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am trying that for lead module , a particular subpanel create fn is disabled . for the rest it should be enabled&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can i get module name in app:sync:complete</title><link>https://sugarclub.sugarcrm.com/thread/25307?ContentTypeID=1</link><pubDate>Mon, 08 Nov 2021 08:08:34 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:9969f8c2-2404-4e21-9e30-c13682275baf</guid><dc:creator>Jeroen Somhorst</dc:creator><description>&lt;p&gt;Can you tell a bit more about what you are trying to do ? By the looks of it you are writing a plugin?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can i get module name in app:sync:complete</title><link>https://sugarclub.sugarcrm.com/thread/25306?ContentTypeID=1</link><pubDate>Mon, 08 Nov 2021 08:07:48 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:f1913633-033d-4be1-8dfa-738406230287</guid><dc:creator>neeraj verma</dc:creator><description>&lt;p&gt;ok , any option for current loaded module&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can i get module name in app:sync:complete</title><link>https://sugarclub.sugarcrm.com/thread/25305?ContentTypeID=1</link><pubDate>Mon, 08 Nov 2021 07:59:40 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:89c62f78-8486-47c9-9a63-89d2a9fa1805</guid><dc:creator>Jeroen Somhorst</dc:creator><description>&lt;p&gt;App.sync runs application wide so there is not such thing as app.module. If you would like to have all current modules for the current user you should be using: app.modules.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>