Skip to Content

SAPUI5 objectpagelayout ECC6 not displayed

Hi Everyone,

I deployed an objectpagelayout app on ECC6 system. objectpagelayout is not displayed.

is there a problem of incompatibility ?

header is displayed but not the rest. I have another view with only one tab which is displayed.

here is my View :

<core:View xmlns:core="sap.ui.core" xmlns="sap.uxap" xmlns:layout="sap.ui.layout" xmlns:m="sap.m"
	xmlns:Pdl="SIMMdashboard.SIMMdashboard.block.Pdl" xmlns:Releves="SIMMdashboard.SIMMdashboard.block.Releves"
	xmlns:Factures="SIMMdashboard.SIMMdashboard.block.Factures" xmlns:blockcolor="SIMMdashboard.SIMMdashboard.block.blockcolor"
	controllerName="SIMMdashboard.SIMMdashboard.controller.View3" height="100%">
	<ObjectPageLayout id="ObjectPageLayout" enableLazyLoading="true">
		<headerTitle>
			<ObjectPageHeader objectImageURI="/Images/businessman.png" objectTitle="Denise Smith" objectImageShape="Circle"
				objectImageAlt="Denise Smith" isObjectIconAlwaysVisible="true" objectSubtitle="Client Particulier"/>
		</headerTitle>
		<headerContent>
			<layout:VerticalLayout>
				<m:Text text="+33 6 4512 5158"/>
				<m:Text text="DeniseSmith@edf.com"/>
				<m:Label text="Dummy" id="PDL" visible="false"/>
			</layout:VerticalLayout>
			<layout:VerticalLayout>
				<m:Label text="Domiciliée au :"/>
			</layout:VerticalLayout>
			<layout:VerticalLayout>
				<m:Label text="14 Rue des Rosiers"/>
				<m:VBox height="63px">
					<m:Label text="à St Jean la fleurie"/>
					<m:Label text="47320"/>
				</m:VBox>
			</layout:VerticalLayout>
			<layout:VerticalLayout>
				<m:Link text="Lien fiche client" press="LinkBP"/>
				<m:Link text="Modification Coordonnées bancaires" press="LinkBPCb"/>
				<Button xmlns="sap.m" text="Terminer contact" id="button1" icon="sap-icon://popup-window" press="action"
					xmlns:action="http://schemas.sap.com/sapui5/extension/sap.ui.core.CustomData/1"
					action:wiring="\{'press':\{'navigation':\{'routeName':'View1'\}\}\}"/>
			</layout:VerticalLayout>
			<layout:VerticalLayout>
				<m:Label text="Compte de contrat confirmé :"/>
				<m:Link text="Dummy" press="LinkCC" id="LienCC"/>
				<m:Label text="Secteur d'activité :"/>
				<m:Label text="Dummy" id="SecteurActivite"/>
			</layout:VerticalLayout>
		</headerContent>
		<sections>
			<ObjectPageSection title="Données du point de comptage" subSections="{DonneesPdlSet>/}">
				<subSections>
					<ObjectPageSubSection title="Point de comptage">
						<blocks>
							<Pdl:InfoPDCBlock id="InfoPDC" columnLayout="3"/>
						</blocks>
					</ObjectPageSubSection>
				</subSections>
			</ObjectPageSection>
			<ObjectPageSection title="Info de relevés" subSections="{DonneesRelevesSet>/}">
				<subSections>
					<ObjectPageSubSection title="Historique des relevés">
						<blocks>
							<Releves:BlockInforeleve id="Inforeleve" columnLayout="3"/>
						</blocks>
					</ObjectPageSubSection>
				</subSections>
			</ObjectPageSection>
			<ObjectPageSection title="Liste des factures" subSections="{DonneesFactures>/}">
				<subSections>
					<ObjectPageSubSection title="Liste des factures">
						<blocks>
							<Factures:FacturesBlock id="InfoFactures" columnLayout="3"/>
						</blocks>
					</ObjectPageSubSection>
				</subSections>
			</ObjectPageSection>
		</sections>
	</ObjectPageLayout>
</core:View>

Here is one of the subsection (others are pretty much the same) :

<mvc:View xmlns:mvc="sap.ui.core.mvc" xmlns:forms="sap.ui.layout.form" xmlns="sap.m" xmlns:core="sap.ui.core" controllerName="SIMMdashboard.SIMMdashboard.controller.View3" afterRendering="onAfterRendering">
	<forms:SimpleForm editable="true" layout="ResponsiveGridLayout">
		<core:Title text="Liste des factures du Client"/>
	</forms:SimpleForm>
	<Table noDataText="Drop column list items here and columns in the area above" id="table2" items="{dummy}">
		<items>
			<ColumnListItem type="Active" id="item0">
				<cells>
					<Link text="{oValFactures>Opbel}" press="linkOpbel"/>
					<Text text="{oValFactures>Druckdat}" id="text6"/>
					<Text text="{oValFactures>Faedn}" id="text7"/>
					<Text text="{oValFactures>Fikey}" id="text8"/>
					<Link text="{oValFactures>Vkont}" press="LinkCC"/>
					<Text text="{oValFactures>Portion}" id="text10"/>
					<Text text="{oValFactures>TotalAmnt} {oValFactures>TotalWaer}" id="text11"/>
				</cells>
			</ColumnListItem>
		</items>
		<columns>
			<Column id="column0">
				<header>
					<Label text="Facture" id="label4"/>
				</header>
			</Column>
			<Column id="column1">
				<header>
					<Label text="Date d'impression" id="label5"/>
				</header>
			</Column>
			<Column id="column2">
				<header>
					<Label text="Date d'échéance" id="label6"/>
				</header>
			</Column>
			<Column id="column6">
				<header>
					<Label text="Clé de rapprochement" id="label10"/>
				</header>
			</Column>
			<Column id="column3">
				<header>
					<Label text="Compte de contrat" id="label7"/>
				</header>
			</Column>
			<Column id="column4">
				<header>
					<Label text="Portion" id="label8"/>
				</header>
			</Column>
			<Column id="column5">
				<header>
					<Label text="Montant/Monnaie" id="label9"/>
				</header>
			</Column>
		</columns>
	</Table>
</mvc:View>

You may find attached results on fiori launchpad.

do you Have an Idea why this is happening ?

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Mar 07 at 08:40 AM

    it seems that the treatment doesn't pass in the onafterrendering method when table1 object is recognized :

    onAfterRendering: function (oEvent) {
    	var oDataFactures = {
    				"d": {
    					"results": [{
    						"Opbel": "7000000007",
    						"Druckdat": "00000000",
    						"Faedn": "20180803",
    						"Faeds": "20180803",
    						"Budat": "20180803",
    						"Bldat": "20180803",
    						"TotalAmnt": "131.410",
    						"TotalWaer": "EUR",
    						"Partner": "3000012",
    						"Vkont": "1",
    						"Portion": "OAS0101",
    						"Abrvorg": "01",
    						"Formkey": "IS_U_BILL",
    						"Fikey": "12345",
    						"Ergrd": "01",
    						"Status": "Non Payée"
    					}, {
    						"Opbel": "7000000037",
    						"Druckdat": "00000000",
    						"Faedn": "20181205",
    						"Faeds": "20181205",
    						"Budat": "20181205",
    						"Bldat": "20181205",
    						"TotalAmnt": "13218.880",
    						"TotalWaer": "EUR",
    						"Partner": "3000012",
    						"Vkont": "15",
    						"Portion": "OAS0101",
    						"Abrvorg": "01",
    						"Formkey": "IS_U_BILL",
    						"Fikey": "140616-001",
    						"Ergrd": "01"
    					}, {
    						"Opbel": "7000000010",
    						"Druckdat": "00000000",
    						"Faedn": "20190121",
    						"Faeds": "20190121",
    						"Budat": "20190119",
    						"Bldat": "20190119",
    						"TotalAmnt": "10892.350",
    						"TotalWaer": "EUR",
    						"Partner": "3000012",
    						"Vkont": "210000000",
    						"Portion": "OAS0101",
    						"Abrvorg": "01",
    						"Formkey": "ZIS_U_BILL",
    						"Fikey": "TEST BN 4",
    						"Ergrd": "01",
    						"Status": "Non Payée"
    					}, {
    						"Opbel": "7000000011",
    						"Druckdat": "00000000",
    						"Faedn": "20190121",
    						"Faeds": "20190121",
    						"Budat": "20190119",
    						"Bldat": "20190119",
    						"TotalAmnt": "12.960",
    						"TotalWaer": "EUR",
    						"Partner": "3000012",
    						"Vkont": "210000001",
    						"Portion": "OAS0101",
    						"Abrvorg": "01",
    						"Formkey": "ZIS_U_BILL",
    						"Fikey": "TESTBN23",
    						"Ergrd": "01",
    						"Status": "Non Payée"
    					}, {
    						"Opbel": "7000000033",
    						"Druckdat": "00000000",
    						"Faedn": "20190121",
    						"Faeds": "20190121",
    						"Budat": "20190121",
    						"Bldat": "20190121",
    						"TotalAmnt": "-29001.000",
    						"TotalWaer": "EUR",
    						"Partner": "3000012",
    						"Vkont": "210000002",
    						"Portion": "ZC13_M",
    						"Abrvorg": "02",
    						"Formkey": "ZIS_U_BILL",
    						"Fikey": "19012019",
    						"Ergrd": "01",
    						"Status": "Non Payée"
    					}]
    				}
    			};
    
    	var oTable3 = this.byId("table2");
    			if (oTable3) {
    				var oValFactures = new sap.ui.model.json.JSONModel();
    				oValFactures.setData(oDataFactures);
    				oTable3.setModel(oValFactures, "oValFactures");
    				var oFilter4 = new sap.ui.model.Filter("Vkont", FilterOperator.EQ, oVkont);
    				var filters2 = new sap.ui.model.Filter({
    					and: true,
    					filters: [oFilter4]
    				});
    				oTable3.bindItems({
    					path: "/d/results",
    					model: "oValFactures",
    					template: oTable3.getBindingInfo("items").template,
    					filters: filters2
    				});
    			}
    

    in web-ide I succeed in finding the object "table2" but not in fiori launchpad.

    is there another way to affect data to my table ? in the onInit event, table2 is not available too.

    Add comment
    10|10000 characters needed characters exceeded

  • Mar 07 at 11:18 AM

    I tried ObjectPageLazyLoader but now when deployed on ecc6 launchpad, i've got the following error :

    Error: failed to load 'sap/uxap/ObjectPageLazyLoader.js' from /sap/bc/ui5_ui5/ui2/ushell/resources/sap/uxap/ObjectPageLazyLoader.js: 404 - NOT FOUND

    I'm very unlucky...

    Add comment
    10|10000 characters needed characters exceeded