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

bind complex data type to a SmartTable

$
0
0

Hi,

 

I try to use UI5 SmartTable control with my OData service.

OData service has following metadata with annotations.

 

<edmx:Edmx Version="1.0">

    <edmx:DataServices m:DataServiceVersion="1.0">

        <Schema Namespace="com.sap.appcore.odata2.bp">

            <EntityType Name="Organization">

                <Key><PropertyRef Name="businessPartnerID"/></Key>

                <Property Name="businessPartnerID" Type="Edm.String" MaxLength="32" ConcurrencyMode="Fixed"/>

                <Property Name="organizationName" Type="com.sap.appcore.odata2.bp.organizationName"/>

            </EntityType>

            <ComplexType Name="organizationName">

                <Property Name="organizationName1" Type="Edm.String" MaxLength="255"/>

                <Property Name="organizationName2" Type="Edm.String" MaxLength="255"/>

            </ComplexType>

            <EntityContainer Name="ODataBP" m:IsDefaultEntityContainer="true">

                <EntitySet Name="Organizations" EntityType="com.sap.appcore.odata2.bp.Organization"/>

            </EntityContainer>

            <Annotations Target="com.sap.appcore.odata2.bp.Organization">

                <Annotation Term="com.sap.vocabularies.UI.v1.LineItem">

                    <Collection>

                        <Record Type="com.sap.vocabularies.UI.v1.DataField">

                            <PropertyValue Property="Label" String="Organization Name" />

                            <PropertyValue Property="Value" Path="organizationName/organizationName1"/>

                        </Record>

                    </Collection>

                </Annotation>

            </Annotations>

        </Schema>

    </edmx:DataServices>

</edmx:Edmx>

 

I want to bind to SmartTable column complex data type field organizationName/organizationName1. But this path in annotation doesn't work.

 

Could you please help how complex data types can be bind in a SmartTable control?

 

Regards,

Yuriy


Viewing all articles
Browse latest Browse all 771

Trending Articles



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