<?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 to Show cases as popup in Account Detail View?</title><link>https://sugarclub.sugarcrm.com/dev-club/f/questions-answers/1083/how-to-show-cases-as-popup-in-account-detail-view</link><description>we are using sugarcrm community edition and we want to show Cases in account detail view as a popup. Please tell us how can we do that. if someone opens the account and if that particular account has the cases in it doesnt matter opened cases or closed</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to Show cases as popup in Account Detail View?</title><link>https://sugarclub.sugarcrm.com/thread/4357?ContentTypeID=1</link><pubDate>Sun, 21 Jan 2018 21:44:55 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:921e839b-5bf6-4d67-bfca-415dc2a19faf</guid><dc:creator>gaurav narula</dc:creator><description>&lt;p&gt;hello Hats&lt;/p&gt;&lt;p&gt;i created a popup in javascript and able to show the popup with the if statement for phone number&lt;/p&gt;&lt;p&gt;but i need to show the popup with the Case details like if there is any case linked to the the account then it should show popup otherwise it should not do anything...&lt;/p&gt;&lt;p&gt;Please check my code and suggest me accordingly&lt;/p&gt;&lt;p&gt;thanks&lt;/p&gt;&lt;div style="color:#d4d4d4;background-color:#1e1e1e;font-weight:normal;font-size:14px;"&gt;&lt;div&gt;&lt;span style="color:#d4d4d4;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color:#c586c0;"&gt;if&lt;/span&gt;&lt;span style="color:#d4d4d4;"&gt;(&lt;/span&gt;&lt;span style="color:#dcdcaa;"&gt;empty&lt;/span&gt;&lt;span style="color:#d4d4d4;"&gt;(&lt;/span&gt;&lt;span style="color:#569cd6;"&gt;$this&lt;/span&gt;&lt;span style="color:#d4d4d4;"&gt;-&amp;gt;&lt;/span&gt;&lt;span style="color:#9cdcfe;"&gt;bean&lt;/span&gt;&lt;span style="color:#d4d4d4;"&gt;-&amp;gt;&lt;/span&gt;&lt;span style="color:#9cdcfe;"&gt;phone_office&lt;/span&gt;&lt;span style="color:#d4d4d4;"&gt;)){&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color:#d4d4d4;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color:#d4d4d4;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color:#d4d4d4;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color:#c586c0;"&gt;else&lt;/span&gt;&lt;span style="color:#d4d4d4;"&gt; {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color:#d4d4d4;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color:#dcdcaa;"&gt;echo&lt;/span&gt;&lt;span style="color:#d4d4d4;"&gt; &lt;/span&gt;&lt;span style="color:#ce9178;"&gt;&amp;#39;&amp;lt;script type=&amp;quot;text/javascript&amp;quot; src=&amp;quot;modules/Accounts/sweetalert.min.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&amp;#39;&lt;/span&gt;&lt;span style="color:#d4d4d4;"&gt;;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color:#d4d4d4;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color:#dcdcaa;"&gt;echo&lt;/span&gt;&lt;span style="color:#d4d4d4;"&gt; &lt;/span&gt;&lt;span style="color:#9cdcfe;"&gt;$js&lt;/span&gt;&lt;span style="color:#d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color:#ce9178;"&gt;&amp;lt;&amp;lt;&amp;lt;&lt;/span&gt;&lt;span style="color:#d4d4d4;"&gt;EOF&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color:#ce9178;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;script&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color:#ce9178;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color:#ce9178;"&gt;swal(&amp;quot;Refund Or Chargeback!&amp;quot;, &amp;quot;Please check cases for this customer&amp;quot;, &amp;quot;warning&amp;quot;);&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color:#ce9178;"&gt;&amp;lt;/script&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color:#d4d4d4;"&gt;EOF&lt;/span&gt;&lt;span style="color:#d4d4d4;"&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color:#d4d4d4;"&gt;}&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 to Show cases as popup in Account Detail View?</title><link>https://sugarclub.sugarcrm.com/thread/4356?ContentTypeID=1</link><pubDate>Mon, 27 Nov 2017 15:41:51 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:105ecc85-a9a8-4a3d-9d23-b68c39f7971e</guid><dc:creator>Hatim Alam</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://sugarclub.sugarcrm.com/members/gauravlnarula"&gt;gaurav narula&lt;/a&gt;,&lt;/p&gt;&lt;p&gt;This customization involves a bit of HTML and javascript coding. You just have to design a basic HTML tabular layout to display a list of cases and then a javascript code to make an AJAX call to PHP file to fetch data and populate on the HTML layout. You can also use Show/Hide button to toggle the tabular view.&lt;/p&gt;&lt;p&gt;Regards.&lt;/p&gt;&lt;p&gt;Hats&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to Show cases as popup in Account Detail View?</title><link>https://sugarclub.sugarcrm.com/thread/4355?ContentTypeID=1</link><pubDate>Mon, 27 Nov 2017 11:40:26 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:5531f5bd-d604-4874-9679-d7c66cceb29e</guid><dc:creator>gaurav narula</dc:creator><description>&lt;p&gt;Hats, Can we talk on phone??&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to Show cases as popup in Account Detail View?</title><link>https://sugarclub.sugarcrm.com/thread/4354?ContentTypeID=1</link><pubDate>Mon, 27 Nov 2017 11:33:26 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:cb7d75d7-d04f-479d-a45e-b5636d257610</guid><dc:creator>gaurav narula</dc:creator><description>&lt;p&gt;can you make a replacement file for me if possible and i will replace it with the files here??&lt;/p&gt;&lt;p&gt;&lt;span style="color:#000000;background-color:#ffffff;"&gt;custom/modules/Accounts/views/view.detail.php&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color:#000000;background-color:#ffffff;"&gt;Please let me know if you can do it i would really appreciate it. thanks &lt;span class="emoticon_happy emoticon-inline" style="height:16px;width:16px;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to Show cases as popup in Account Detail View?</title><link>https://sugarclub.sugarcrm.com/thread/4353?ContentTypeID=1</link><pubDate>Thu, 23 Nov 2017 04:24:54 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:52fa273c-efce-4f27-b961-e89313eba78c</guid><dc:creator>Hatim Alam</dc:creator><description>&lt;p&gt;Hi Gaurav,&lt;/p&gt;&lt;p&gt;Just to move ahead, you can start with writing javascript code in view.detail.php file of Accounts module - custom/modules/Accounts/views/view.detail.php or a separate js file and include it in your detailviewdefs.php - custom/modules/Accounts/metadata/detailviewdefs.php&lt;/p&gt;&lt;p&gt;As you are using SugarCE, you can&amp;nbsp;make use of yahoo ui library to create popup and use standard ajax call to bring data from PHP file and display on the popup.&lt;/p&gt;&lt;p&gt;Let us know if this helps.&lt;/p&gt;&lt;p&gt;Regards.&lt;/p&gt;&lt;p&gt;Hats&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>