Skip to Content

oData Binding to Simple Form

I'm creating a read only form that will be used to display a summary of information. I need to send a parameter to the backend first before getting the information but I don't seem to see that parameter is reaching it.

It does reach the entity set but it does not show the parameter. Am I binding correctly?

This is on the controller:

onInit: function() {

    var urlEnding = "1000012233";
        var oFilterDist = new sap.ui.model.Filter("ID", 
          sap.ui.model.FilterOperator.EQ, urlEnding);
        var summaryText = this.getView().byId("summaryForm");
            path: "/SummaryScreenSet",
            filters: [oFilterDist]


<VBox class="sapUiSmallMargin" fitContainer="true" 
height="100%" width="100%" justifyContent="End" 
displayInline="true" id="leftVBox" items="{/SummaryScreenSet}">

    <f:SimpleForm editable="true" layout="ResponsiveGridLayout" 
id="summaryForm" columnsL="1" columnsXL="1" labelSpanL="5" 
title="Account Summary" labelSpanM="5">
         <Label text="Status" id="__label6" design="Bold" class="sizeText"/>
        <ObjectStatus text="{CONTRACT_STATUS}" id="__status6" state="Success" class="boldText"/>
        <Label text="Permit Required" id="__label10" design="Bold" class="sizeText"/>
        <Text text="{PERMIT_REQD}" id="__text32" wrapping="false" class="sizeText"/>
        <Label text="Bill Date | Due Date" id="__label11" design="Bold" class="sizeText"/>
        <Text text="{BILL_DATE} | {DUE_DATE}" id="__text33" wrapping="false" class="sizeText"/>
        <Label text="Last Estimated Date | Next MR Date" id="__label17" design="Bold" class="sizeText"/>
        <Text text="{LAST_PAYMENT_DATE} | {nextMRDate}" id="__text39" wrapping="false" class="sizeText"/>

Thank You!

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Feb 22, 2018 at 02:35 AM

    if you know the id of the record, it should be

    Add comment
    10|10000 characters needed characters exceeded