on 2020 Oct 21 5:49 PM
I am building a view with hardcoded data. which comes from home screen to the next view which is supposed to be a split view screen.
I am using FlexibleColumnLayout and inside of it begin and end layout to call views from my view folder. I have been following this tutorial. and even then my split view is not expanding on click.
My aggregation looks like this:
App -> (View1, FCLView)
FCLView -> (MasterVIew, DetailView)
FCLView:
<mvc:View displayBlock="true" height="100%" xmlns="sap.f" xmlns:mvc="sap.ui.core.mvc">
<FlexibleColumnLayout id="flexibleColumnLayout" backgroundDesign="Solid">
<beginColumnPages>
<mvc:XMLView id="beginView" viewName="Ui5.Ui.view.MasterView"/>
</beginColumnPages>
<midColumnPages>
<mvc:XMLView id="detailView" viewName="Ui5.Ui.view.DetailView"/>
</midColumnPages>
</FlexibleColumnLayout>
</mvc:View>
component.js
...
getHelper:function(){
var oFCL = this.getRootControl().byId('flexibleColumnLayout'),
oSettings ={
defaultTwoColumnLayoutType:sap.f.LayoutType.TwoColumnsMidExpanded,
initialColumnsCount:2};return FlexibleColumnLayoutSemanticHelper.getInstanceFor(oFCL, oSettings);}
MasterViewController
...
onListItemPress:function(oEvent){
MessageToast.show("here");
var oRouter =sap.ui.core.UIComponent.getRouterFor(this);
var oFCL = this.oView.getParent().getParent();
oFCL.setLayout(fioriLibrary.LayoutType.TwoColumnsMidExpanded);}
This onPress function hits, but gives an errror on the last line "Uncaught TypeError: oFCL.setLayout is not a function"
Whereas, in the tutorial I am following it does not look like I have to do anything else besides this.
Any kind of help would be appreciated 🙂
Request clarification before answering.
User | Count |
---|---|
62 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 | |
4 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.