<?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>topic sap.m.App issue with Width in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-m-app-issue-with-width/m-p/12040159#M1967910</link>
    <description>&lt;P&gt;Hi, I'm new to creating mobile apps and am having through configuring my app to be responsive. &lt;/P&gt;
  &lt;P&gt;I'm instantiating "sap.m.App" and calling "addPage" to add my layout. Is there a configuring step I'm missing? When I check the width of "sap.m.App" - I'm getting the default 100%. Any help would be great! &lt;/P&gt;
  &lt;P&gt;Here's the view code: &lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt; /*jshint esversion: 6 */
sap.ui.jsview("fieldTech.ui.fieldTechSchedule", {
  getControllerName: function() {
    return "fieldTech.ui.fieldTechSchedule";
  },
  createContent: function(oController) {
	console.log("hitting field tech schedule")
    oController.sID = $GRE.setsID();
    const { userRoles } = $GRE.session;
//    oController.responsiveLayout = new sap.f.DynamicPage({
//    		title: new sap.f.DynamicPageTitle({
//    			heading: new sap.m.Text({text: "Field Tech Dashboard"})
//    		})
//    });
    const testPage = new sap.m.Page("page", {
    		title: "test EOS app"
    });
    const oTable = new sap.m.Table({
    		headerToolbar: new sap.m.Toolbar({
    			content: [
    				new sap.m.Label({
    					text: "Customer List"
    				})
    			]
    		}),
    		columns: [
    			new sap.m.Column({
//    				width: "2em",
    				header: new sap.m.Label({
    					text: "id"
    				})
    			}),
    			new sap.m.Column({
//    				width: "2em",
    				header: new sap.m.Label({
    					text: "name"
    				})
    			}),
    			new sap.m.Column({
//    				width: "2em",
    				header: new sap.m.Label({
    					text: "test1"
    				})
    			}),
    			new sap.m.Column({
//    				width: "2em",
    				header: new sap.m.Label({
    					text: "test2"
    				})
    			}),
    			new sap.m.Column({
//    				width: "2em",
    				header: new sap.m.Label({
    					text: "test3"
    				})
    			}),
    		]
    });
    testPage.addContent(oTable);
    oController.app = new sap.m.App({
    		mobileWebAppCapable: true
//    		initialPage: "testPage"
    			
    });
    oController.app.addPage(testPage);
    return oController.app;
  },
});
&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 09 Oct 2019 20:57:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2019-10-09T20:57:09Z</dc:date>
    <item>
      <title>sap.m.App issue with Width</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-m-app-issue-with-width/m-p/12040159#M1967910</link>
      <description>&lt;P&gt;Hi, I'm new to creating mobile apps and am having through configuring my app to be responsive. &lt;/P&gt;
  &lt;P&gt;I'm instantiating "sap.m.App" and calling "addPage" to add my layout. Is there a configuring step I'm missing? When I check the width of "sap.m.App" - I'm getting the default 100%. Any help would be great! &lt;/P&gt;
  &lt;P&gt;Here's the view code: &lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt; /*jshint esversion: 6 */
sap.ui.jsview("fieldTech.ui.fieldTechSchedule", {
  getControllerName: function() {
    return "fieldTech.ui.fieldTechSchedule";
  },
  createContent: function(oController) {
	console.log("hitting field tech schedule")
    oController.sID = $GRE.setsID();
    const { userRoles } = $GRE.session;
//    oController.responsiveLayout = new sap.f.DynamicPage({
//    		title: new sap.f.DynamicPageTitle({
//    			heading: new sap.m.Text({text: "Field Tech Dashboard"})
//    		})
//    });
    const testPage = new sap.m.Page("page", {
    		title: "test EOS app"
    });
    const oTable = new sap.m.Table({
    		headerToolbar: new sap.m.Toolbar({
    			content: [
    				new sap.m.Label({
    					text: "Customer List"
    				})
    			]
    		}),
    		columns: [
    			new sap.m.Column({
//    				width: "2em",
    				header: new sap.m.Label({
    					text: "id"
    				})
    			}),
    			new sap.m.Column({
//    				width: "2em",
    				header: new sap.m.Label({
    					text: "name"
    				})
    			}),
    			new sap.m.Column({
//    				width: "2em",
    				header: new sap.m.Label({
    					text: "test1"
    				})
    			}),
    			new sap.m.Column({
//    				width: "2em",
    				header: new sap.m.Label({
    					text: "test2"
    				})
    			}),
    			new sap.m.Column({
//    				width: "2em",
    				header: new sap.m.Label({
    					text: "test3"
    				})
    			}),
    		]
    });
    testPage.addContent(oTable);
    oController.app = new sap.m.App({
    		mobileWebAppCapable: true
//    		initialPage: "testPage"
    			
    });
    oController.app.addPage(testPage);
    return oController.app;
  },
});
&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 09 Oct 2019 20:57:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-m-app-issue-with-width/m-p/12040159#M1967910</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-10-09T20:57:09Z</dc:date>
    </item>
  </channel>
</rss>

