Quantcast
Channel: SCN : Discussion List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 6412

calling calculation view packed as odata service with timestamp parameters

$
0
0

Hi All,

 

We packed a stored procedure call in a calculation view and the calculation view itself is exposed via calculation view with parameters.

 

Here is the source of the odata service:

service namespace "ami.ui.browse.viz.services" {

    "ami.ui.browse.viz.data::get_counts_for_chart" as "LogCounts" keys generate local "ID"

    parameters via entity;

}

 

Here is its metadata:

<edmx:Edmxxmlns:edmx="http://schemas.microsoft.com/ado/2007/06/edmx"Version="1.0">

 

<edmx:DataServicesxmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"m:DataServiceVersion="2.0">

 

 

<Schemaxmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"xmlns="http://schemas.microsoft.com/ado/2008/09/edm"Namespace="ami.ui.browse.viz.services">

 

 

<EntityTypeName="LogCountsType">

 

 

<Key>

 

 

<PropertyRefName="ID"/>

 

</Key>

<PropertyName="ID"Type="Edm.String"Nullable="false"MaxLength="2147483647"/>

<PropertyName="SYSTEMID"Type="Edm.String"MaxLength="3"/>

<PropertyName="CLIENT"Type="Edm.String"MaxLength="3"/>

<PropertyName="USER"Type="Edm.String"MaxLength="12"/>

<PropertyName="TIMESLOT"Type="Edm.String"MaxLength="50"/>

<PropertyName="CNT"Type="Edm.Int32"/>

</EntityType>

 

<EntityTypeName="LogCountsParametersType">

 

 

<Key>

 

 

<PropertyRefName="from_ts"/>

 

<PropertyRefName="to_ts"/>

<PropertyRefName="measure"/>

</Key>

<PropertyName="from_ts"Type="Edm.DateTime"Nullable="false"/>

<PropertyName="to_ts"Type="Edm.DateTime"Nullable="false"/>

<PropertyName="measure"Type="Edm.String"Nullable="false"MaxLength="50"/>

<NavigationPropertyName="Results"Relationship="ami.ui.browse.viz.services.LogCountsParameters_LogCountsType"FromRole="LogCountsParametersPrincipal"ToRole="LogCountsDependent"/>

</EntityType>

 

<AssociationName="LogCountsParameters_LogCountsType">

 

 

<EndType="ami.ui.browse.viz.services.LogCountsParametersType"Role="LogCountsParametersPrincipal"Multiplicity="*"/>

 

<EndType="ami.ui.browse.viz.services.LogCountsType"Role="LogCountsDependent"Multiplicity="*"/>

</Association>

 

<EntityContainerName="get_counts_for_chart"m:IsDefaultEntityContainer="true">

 

 

<EntitySetName="LogCounts"EntityType="ami.ui.browse.viz.services.LogCountsType"/>

 

<EntitySetName="LogCountsParameters"EntityType="ami.ui.browse.viz.services.LogCountsParametersType"/>

 

<AssociationSetName="LogCountsParameters_LogCounts"Association="ami.ui.browse.viz.services.LogCountsParameters_LogCountsType">

 

 

<EndRole="LogCountsParametersPrincipal"EntitySet="LogCountsParameters"/>

 

<EndRole="LogCountsDependent"EntitySet="LogCounts"/>

</AssociationSet>

</EntityContainer>

</Schema>

</edmx:DataServices>

</edmx:Edmx>


And here is how we try to pass the parameters in the URL:



Viewing all articles
Browse latest Browse all 6412

Trending Articles



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