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

How to bind a control's property to a path of entity set?

$
0
0

Hi guys,

 

I'm developing a custom control which accepts an array of objects as input. property abcs is the property which accepts the data.

    metadata: {        properties: {            abcs: {                type: "object[]",                defaultValue: []            }          }     }

Imaging the following odata entity definition(I've simplified the xml to make it easier to understand).

 

            <EntityType Name="Abc">                <Property Name="Key">                <NavigationProperty Name=DefSet" />            </EntityType>

 

Now I've set the control to oDataModel and bind the abcs property to the path:

        theControl.bindProperty('abcs', {            path: '/AbcSet?$expand=DefSet'        })

But after I call the bindProperty method, odata request is not triggered. So there's only an empty array when I call getAbcs() inside the control.

 

What's the problem here?

 

Regards,

Aaron


Viewing all articles
Browse latest Browse all 9193

Trending Articles



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