cancel
Showing results for 
Search instead for 
Did you mean: 

bind bound oData function to UI5 control

akuller
Participant
0 Kudos
313

Hi all,

 

i want to bind a bound function to an control as described here: https://sapui5.hana.ondemand.com/sdk/#/topic/b54f7895b7594c61a83fa7257fa9d13f

we have great examples for unbound functions:

 

<VBox id="getAvailableItems" binding="{path : '/GetAvailableItems(...)', parameters : {$select : ['ProductName', 'ProductId']}}">
    <List id="xyz" items="{value}">
        <items>
            <ObjectListItem title="{ProductName}" />
        </items>
    </List>
</VBox>

 

but for bound functions only the js part is referenced:

 

var ...
    oSalesOrderContext = oTable.getSelectedItem().getBindingContext(),
    oAction = oModel.bindContext("name.space.InvoiceCreated(...)", oSalesOrderContext);
 
oAction.invoke()...

 

I've been trying to do this directly with a binding in the xml view for some time now, but it doesn't work. Has anyone got it working?

View Entire Topic
akuller
Participant
0 Kudos

Ok, i got it ...

{path : 'namespace.getHierachy()', ...}
I am 100% sure that I have tried this before ... Thanks for your participation!