Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3576

Re: set a control's model

$
0
0

Thanks for your reply

 

This is exactly what I'm looking for. It still have some issues :

 

I want to do it like this:

 

I have my oDataModel which bind to  /OData.svc/

 

var oDataModel;

 

// I use this model to create an entity:

 

oDataModel.create('/entries', entity,{

 

     success: function(entry){

          oVizFrame.bindElement("/entities(guid'" +entry.Id + "')");

     }

})

 

the oVizFrame use the dataset :

 

var oDataset = new FlattenedDataset(

     {

          dimensions: [{ name: "Time", value: "{Time}", dataType : 'date' } ],

          measures: [ { name : "Value", value : "{Value}" } ],

          data: { path: "/Points"  }

     }

);    

 

 

however, to get my timeseries data,  sapui5 use the url

 

/Points

 

instead of

 

/Entities('id')/Points

 

 

 

Please help me if you know how to write it correctly

 

Thanks a lot.

 

Yan


Viewing all articles
Browse latest Browse all 3576

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>