on 10-30-2021 1:52 PM
Hi,
We are trying to bind a segment of an XML view to an oData v4 function import which returns a deep json structure, like this:
<FlexBox binding="{MyService.getMyData()}">
<MessageStrip text="{SomeText}" />
<List items="{SomeItems}">
<!-- Some nested content -->
</List>
</FlexBox>
<FlexBox binding="{MyService.getMyData()}"> <MessageStrip text="{SomeText}" /> <List items="{SomeItems}"> <!-- Some nested content --> </List></FlexBox>
the "getMyData" bound function returns something like this
{
SomeText: "Hello World",
SomeItems: [
{Name: "Item 1", Value: "Value 1"},
{Name: "Item 2", Value: "Value 2"}
]
}
We are not able to make this function call trigger and key into the resulting values. Is this scenario possible, if so how? Our workaround is otherwise to query the function from the controller and put the result in a local JSON model which is then bound to the view. This works, but seems unnecessarily complicated...
Thanks in advance!
//Carl
The documentation here OData V2 Model says that the ODataModel supports invoking function imports or actions by the callFunction method, so I'm not sure if the way you are trying will work.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.