on 12-03-2021 3:06 PM
I have a view containing a SplitContainer inside an IconTabBar:
kepernyokep-2021-12-03-160503.jpg
The SplitContainer has a master page, which is supposed to have a footer:
kepernyokep-2021-12-03-160249.jpg
The footer, however, does not show for some reason:
kepernyokep-2021-12-03-160322.jpg
Is this related to the viewport, or are there any missing properties?
Please check following example and remove first all attributes of the page which are not required.
https://sapui5.hana.ondemand.com/#/entity/sap.m.Page/sample/sap.m.sample.Page/code
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Thorsten!
I checked the example. Unfortunately, this doesn't seem to have resolved the issue either.
Hi Attila,
I think your problem is that your are using controls for aggregations where they are not fully supported.
I would suggest you use a Page as direct subchild of the App Control like:
<App id="app">
<Page id="page">
<content>
<IconTabBar stretchContentHeight="true">
...
</IconTabBar>
</content>
</Page>
</App>
Also I would get rid of the height="100%" properties in your views as they don't seem necessary.
Don't know about the views inside the IconTabFilter content aggregation maybe they cause problems too.
So if the above things don't help you could switch to a fragment instead of a nested view and have the SpliContainer control inserted directly into the content aggregation of the IconTabFilter.
Hope this leads you to a solution.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sebastian!
I have tried using a page as direct subchild of the app control and removing the height="100%" properties in my views. Unfortunately, the footer is still not 100% in the viewport.
Hey there!
When I want to use a footer in my page, I always use the "semantic" library and develop all my contents inside semantic tags, like this:
<mvc:View xmlns:core="sap.ui.core" xmlns:mvc="sap.ui.core.mvc" xmlns="sap.m"
controllerName="controllerName" xmlns:html="http://www.w3.org/1999/xhtml" xmlns:semantic="sap.m.semantic">
<semantic:FullscreenPage id="page" semanticRuleSet="Optimized" navButtonPress="onNavBack" showNavButton="true">
<semantic:content>
<!-- YOUR BODY CONTENT HERE !-->
</semantic:content>
<semantic:customFooterContent>
<!-- YOUR FOOTER CONTENT HERE !-->
</semantic:customFooterContent>
</semantic:FullscreenPage>
</mvc:View>
This works, as you declare a custom footer content.
More information:
Semantic Fullscreen Page: https://sapui5.hana.ondemand.com/#/api/sap.m.semantic.FullscreenPage%23methods/Summary
Semantic Page: https://sapui5.hana.ondemand.com/#/api/sap.m.semantic.SemanticPage%23aggregations
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Or you can reference this question:
https://answers.sap.com/questions/12961161/sap-ui5-page-footer-is-not-displaying.html
Hey there!
I am not completely sure what you mean 🙂 I have updated my code like so:
<semantic:MasterPage showFooter="true" floatingFooter="true" title="Activity Trees" id="master" backgroundDesign= "List" class="sapUiResponsivePadding--header sapUiResponsivePadding--content sapUiResponsivePadding--footer sapUiResponsivePadding--floatingFooter"> <List id="templateTreeList" mode="SingleSelectMaster" selectionChange=".onSelect" > </List> <semantic:customFooterContent> <OverflowToolbarButton icon="sap-icon://settings" text="Settings" press="onPress"/> <OverflowToolbarButton icon="sap-icon://video" text="Video" press="onPress"/> </semantic:customFooterContent> </semantic:MasterPage>Unfortunately it still does not seem to workI have a sample code here for a page, you can try it:
<App>
<pages>
<Page title="{i18n>title}">
<Panel id="panelFilters">
<f:SimpleForm maxContainerCols="4" editable="true" layout="ResponsiveGridLayout" labelSpanL="4" labelSpanM="4" emptySpanL="0" emptySpanM="0"
columnsL="2" columnsM="2" title="Filters">
<f:content></f:content>
</f:SimpleForm>
</Panel>
<VBox>
<l:Grid defaultSpan="L12 M12 S12"></l:Grid>
</VBox>
<Panel id="panelList">
<VBox>
<Table id="item" growing="true" mode="MultiSelect" delete="deleteRow"></Table>
<layoutData>
<l:GridData span="L12 M12 S12"/>
</layoutData>
</VBox>
</Panel>
<footer>
<OverflowToolbar>
<ToolbarSpacer/>
<Button id="btn1" text="Button 1" press="handle1">
<layoutData>
<OverflowToolbarLayoutData moveToOverflow="false"/>
</layoutData>
</Button>
<Button id="btn2" type="Accept" text="Button2" press="handle2">
<layoutData>
<OverflowToolbarLayoutData moveToOverflow="false"/>
</layoutData>
</Button>
</OverflowToolbar>
</footer>
</Page>
</pages>
</App>
I keep getting an error saying: The "OverflowToolbar" class is under the "customFooterContent" aggregation and must match the "Button" type.
User | Count |
---|---|
87 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.