cancel
Showing results for 
Search instead for 
Did you mean: 

data is not getting fetched in table

Former Member
0 Kudos

Hi all,

I created one project in eclipse in which I am using odata service which I have created in D10 720 client but I have registered this through D10 730 client into the gateway system G10 .

Now when I have set the model in the controller

test123.controller.js


onInit: function() {

     var url = "proxy/https://<server>:8000/sap/opu/odata/sap/YKOLPHASE2_SRV/";

     var oModel = new sap.ui.model.odata.ODataModel(url);

     this.getView().setModel(oModel);

   }

test123.view.xml


<core:View xmlns:core="sap.ui.core" xmlns:mvc="sap.ui.core.mvc" xmlns="sap.m"

  controllerName="test.test123" xmlns:html="http://www.w3.org/1999/xhtml">

  <Page title="Title">

  <content>

  <Table items="{/es_asmngr}">

     <columns>

         <Column>

             <Text text="Full name mm"/>

         </Column>

         <Column>

             <Text text="Brand"/>

         </Column>

         <Column>

             <Text text="Start Date"/>

         </Column>

         <Column>

             <Text text="End Date"/>

         </Column>

     </columns>

     <items> <!-- Column List -->

  <ColumnListItem>

  <cells>

  <Text text="{FullNameMm}" />

  <Text text="{Brand}" />

  <Text text="{StDate}" />

  <Text text="{EnDate}" />

  </cells>

  </ColumnListItem>

  </items>

   

  </Table>

  </content>

  </Page>

</core:View>A

After creating the BSP when I am trying to run the BSP application its showing the error

so can anyone please help me with this error .

thanks,

Anshul Dharmadhikari

Message was edited by: Michael Appleby

Accepted Solutions (0)

Answers (1)

Answers (1)

maximilian_lenkeit
Participant
0 Kudos

The proxy part of the url seems to be odd to me. The pattern is usually proxy/https/path (without colon and double slash).

Did you try: url = "proxy/https/<server>:8000/sap/opu/odata/sap/YKOLPHASE2_SRV/";

- Max

Message was edited by: Michael Appleby

Former Member
0 Kudos

Hi Max,

still the same error

is it possible that error might be because odata project is in client 720 but its getting the data from client 730 and I am running the BSP application from 720 .

Thanks

Anshul Dharmadhikari

Qualiture
Active Contributor
0 Kudos

On a sidenote, please anonymize the used URLs.

Clients aren't particularly fond of giving away clues to internal URLs

agentry_src
Active Contributor
0 Kudos

Anonymization completed.

Thanks Robin!

Regards, Mike (Moderator)