<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: How to Implement a Full Screen Button in View Header? in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/how-to-implement-a-full-screen-button-in-view-header/qaa-p/11178378#M4126450</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dude! ctri+shift+i, go to sources, find a source&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/737136" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/737137" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Jul 2015 06:41:45 GMT</pubDate>
    <dc:creator>former_member182372</dc:creator>
    <dc:date>2015-07-01T06:41:45Z</dc:date>
    <item>
      <title>How to Implement a Full Screen Button in View Header?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-implement-a-full-screen-button-in-view-header/qaq-p/11178376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: 1em; font-size: 15px; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;"&gt;In SAPUI5 demokit, I found there is a full screen button for chartContainer. Also in a explored example, the detail header has a full screen button as well.&lt;/P&gt;&lt;P style="margin-bottom: 1em; font-size: 15px; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;"&gt;see &lt;A href="https://sapui5.hana.ondemand.com/sdk/explored.html#/sample/sap.suite.ui.commons.sample.ChartContainer/preview"&gt;https://sapui5.hana.ondemand.com/sdk/explored.html#/sample/sap.suite.ui.commons.sample.ChartContainer/preview&lt;/A&gt;&lt;/P&gt;&lt;P style="margin-bottom: 1em; font-size: 15px; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;"&gt;I would like to implement such a full screen button in header of my detail view. But How to implement it?&lt;/P&gt;&lt;P style="margin-bottom: 1em; font-size: 15px; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;"&gt;thanks,&lt;/P&gt;&lt;P style="margin-bottom: 1em; font-size: 15px; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;"&gt;Yang&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2015 03:20:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-implement-a-full-screen-button-in-view-header/qaq-p/11178376</guid>
      <dc:creator>former_member204682</dc:creator>
      <dc:date>2015-07-01T03:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to Implement a Full Screen Button in View Header?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-implement-a-full-screen-button-in-view-header/qaa-p/11178377#M4126449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or put this in a simple way - how to implement a fullscreen toggle for a view, like detail view&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2015 04:11:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-implement-a-full-screen-button-in-view-header/qaa-p/11178377#M4126449</guid>
      <dc:creator>former_member204682</dc:creator>
      <dc:date>2015-07-01T04:11:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to Implement a Full Screen Button in View Header?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-implement-a-full-screen-button-in-view-header/qaa-p/11178378#M4126450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dude! ctri+shift+i, go to sources, find a source&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/737136" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/737137" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2015 06:41:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-implement-a-full-screen-button-in-view-header/qaa-p/11178378#M4126450</guid>
      <dc:creator>former_member182372</dc:creator>
      <dc:date>2015-07-01T06:41:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to Implement a Full Screen Button in View Header?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-implement-a-full-screen-button-in-view-header/qaa-p/11178379#M4126451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Yang,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in your example, the property showFullScreen seems to be specific to sap.suite.ui.commons.sample.ChartContainer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suppose you use a sap.m.SplitApp as you referred to a detail view which you want to display full screen. So one option for you would be implementing a button which toggles your SplitApp. See &lt;A href="https://sapui5.netweaver.ondemand.com/sdk/#docs/api/symbols/sap.m.SplitContainer.html" title="https://sapui5.netweaver.ondemand.com/sdk/#docs/api/symbols/sap.m.SplitContainer.html"&gt;SAPUI5 SDK - Demo Kit - Split App&lt;/A&gt; for methods you can use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could use hideMaster() and showMaster() to toggle.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Dominik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2015 06:54:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-implement-a-full-screen-button-in-view-header/qaa-p/11178379#M4126451</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-07-01T06:54:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to Implement a Full Screen Button in View Header?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-implement-a-full-screen-button-in-view-header/qaa-p/11178380#M4126452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A __default_attr="976017" __jive_macro_name="user" class="jive_macro_user jive_macro" data-objecttype="3" data-orig-content="Maksim Rashchynski" href="https://community.sap.com/"&gt;&lt;/A&gt;, &lt;A __default_attr="949131" __jive_macro_name="user" class="jive_macro_user jive_macro" data-objecttype="3" data-orig-content="Dominik Rosch" href="https://community.sap.com/"&gt;&lt;/A&gt;, thank you for your replies!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, I am not using sap.m.SplitApp, but sap.ca.scfld.md.controller. However, I figured out how to hide/show master page when toggles the fullscreen button via javascript.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you guys for the hints!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Yang&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jul 2015 02:13:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-implement-a-full-screen-button-in-view-header/qaa-p/11178380#M4126452</guid>
      <dc:creator>former_member204682</dc:creator>
      <dc:date>2015-07-02T02:13:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to Implement a Full Screen Button in View Header?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-implement-a-full-screen-button-in-view-header/qaa-p/11178381#M4126453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://answers.sap.com/people/yang.wang"&gt;Yang Wang,&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Please share your code for other users and mark the question as solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Dominik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jul 2015 10:19:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-implement-a-full-screen-button-in-view-header/qaa-p/11178381#M4126453</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-07-03T10:19:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to Implement a Full Screen Button in View Header?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-implement-a-full-screen-button-in-view-header/qaa-p/11178382#M4126454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is what I do to implement a FullScreen button:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;this._fullScreen = false;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; this._oFullScreenButton = new sap.m.Button({&lt;/P&gt;
&lt;P&gt;&amp;nbsp; icon: "sap-icon://full-screen",&lt;/P&gt;
&lt;P&gt;&amp;nbsp; type: sap.m.ButtonType.Transparent,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; press: jQuery.proxy(this.toggleFullScreen, this)&lt;/P&gt;
&lt;P&gt;&amp;nbsp; });&lt;/P&gt;
&lt;P&gt;// Add the fullScreen toggle button to view custom header&lt;/P&gt;
&lt;P&gt;&amp;nbsp; this.getView().byId("pageS3").getCustomHeader().addContentRight(this._oFullScreenButton);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;toggleFullScreen: function() {&lt;/P&gt;
&lt;P&gt;&amp;nbsp; if (this._fullScreen) {&lt;/P&gt;
&lt;P&gt;&amp;nbsp; this._closeFullScreen();&lt;/P&gt;
&lt;P&gt;&amp;nbsp; this._fullScreen = false;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; } else {&lt;/P&gt;
&lt;P&gt;&amp;nbsp; this._openFullScreen();&lt;/P&gt;
&lt;P&gt;&amp;nbsp; this._fullScreen = true;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; }&lt;/P&gt;
&lt;P&gt;&amp;nbsp; var sIcon = (this._fullScreen ? "sap-icon://exit-full-screen" : "sap-icon://full-screen");&lt;/P&gt;
&lt;P&gt;&amp;nbsp; this._oFullScreenButton.setIcon(sIcon);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; },&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; _openFullScreen: function() {&lt;/P&gt;
&lt;P&gt;&amp;nbsp; var s2Controller = this.oApplicationFacade.getApplicationModel("sharedData").getData().s2Controller;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; var masterPage = s2Controller.byId("page").getParent().getParent().$();&lt;/P&gt;
&lt;P&gt;&amp;nbsp; masterPage.css({&lt;/P&gt;
&lt;P&gt;&amp;nbsp; display: "none"&lt;/P&gt;
&lt;P&gt;&amp;nbsp; });&lt;/P&gt;
&lt;P&gt;&amp;nbsp; },&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; _closeFullScreen: function() {&lt;/P&gt;
&lt;P&gt;&amp;nbsp; var s2Controller = this.oApplicationFacade.getApplicationModel("sharedData").getData().s2Controller;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; var masterPage = s2Controller.byId("page").getParent().getParent().$();&lt;/P&gt;
&lt;P&gt;&amp;nbsp; masterPage.css({&lt;/P&gt;
&lt;P&gt;&amp;nbsp; display: ""&lt;/P&gt;
&lt;P&gt;&amp;nbsp; });&lt;/P&gt;
&lt;P&gt;&amp;nbsp; },&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2015 02:04:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-implement-a-full-screen-button-in-view-header/qaa-p/11178382#M4126454</guid>
      <dc:creator>former_member204682</dc:creator>
      <dc:date>2015-07-06T02:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to Implement a Full Screen Button in View Header?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-implement-a-full-screen-button-in-view-header/qaa-p/11178383#M4126455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yeah, I did that. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you, Dominik!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Yang&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2015 02:07:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-implement-a-full-screen-button-in-view-header/qaa-p/11178383#M4126455</guid>
      <dc:creator>former_member204682</dc:creator>
      <dc:date>2015-07-06T02:07:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to Implement a Full Screen Button in View Header?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-implement-a-full-screen-button-in-view-header/qaa-p/11178384#M4126456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I needed to implement the same toggle full screen button in my project, &lt;SPAN style="font-size: 10.8px; color: #333333; background: #ffffff;"&gt;&lt;STRONG&gt;&lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" data-avatarid="43362" data-externalid="" data-presence="null" data-userid="26229" data-username="maksim.rashchynski" href="https://answers.sap.com/people/maksim.rashchynski" style="padding: 0 3px 0 0; font-weight: inherit; font-style: inherit; font-size: 1.1em; font-family: inherit; color: #3778c7; background: transparent;"&gt;Maksim Rashchynski&lt;/A&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;'s answer helped me figure out a simpler way if anyone's interested:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;button in XML view&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;&amp;lt;Button id="btnFullScreen" icon="sap-icon://full-screen" tooltip="Show in full screen mode" press="toggleFullScreen" /&amp;gt;&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;function in controller&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;toggleFullScreen : function(oEvent) {&lt;/P&gt;
&lt;P&gt;&amp;nbsp; var id = oEvent.getSource().sId; &lt;/P&gt;
&lt;P&gt;&amp;nbsp; var cid = this.getView().byId(id);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; var spapp = sap.ui.getCore().byId('appId');&lt;/P&gt;
&lt;P&gt;&amp;nbsp; if(spapp.getMode() == "ShowHideMode"){&lt;/P&gt;
&lt;P&gt;&amp;nbsp; spapp.setMode('HideMode');&lt;/P&gt;
&lt;P&gt;&amp;nbsp; cid.setIcon('sap-icon://exit-full-screen').setTooltip('Show in full screen mode');&lt;/P&gt;
&lt;P&gt;&amp;nbsp; }else{&lt;/P&gt;
&lt;P&gt;&amp;nbsp; spapp.setMode('ShowHideMode'); &lt;/P&gt;
&lt;P&gt;&amp;nbsp; cid.setIcon('sap-icon://full-screen').setTooltip('Exit from full screen mode');&lt;/P&gt;
&lt;P&gt;&amp;nbsp; }&lt;/P&gt;
&lt;P&gt;&amp;nbsp; },&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ty.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2015 10:49:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-implement-a-full-screen-button-in-view-header/qaa-p/11178384#M4126456</guid>
      <dc:creator>former_member446403</dc:creator>
      <dc:date>2015-11-06T10:49:24Z</dc:date>
    </item>
  </channel>
</rss>

