getBindingContext() Returns undefined

后端 未结 2 1920
天命终不由人
天命终不由人 2020-11-27 23:23

I am working on a SplitApp. On selecting an item from the list, it says

Uncaught TypeError: Cannot read property \'getPath\' of undefined

2条回答
  •  日久生厌
    2020-11-27 23:45

    Try:

    entity: oItem.getBindingContext("data").getPath().substr(1),  
    

    You have to pass the name of the model to 'getBindingContext()', if the bound model has been named.

提交回复
热议问题