on 2018 May 14 11:07 PM
Hi,
I have an SAPUI5 table.
<Table id="idProductsTable" inset="false" mode="MultiSelect" selectionChange="onInvoiceSelectionChange" items="{ path: '/value', sorter: { path: 'DocNum' } }">
I need to set the a value in the table for a row that has just been seletcted.
var oCtx = oEvent.getSource().getSelectedItem().getBindingContext();
amount = oCtx.getProperty("DocTotal");
oCtx.setProperty("U_JC1_Amount", amount, false); (FAILS - "is not a function")
The setProperty option fails, thought is listed as an option in the documentation.
What is the correct way to set the value of a column in a table for the currently selected row?
Thanks.
Regards,
Mel
Help others by sharing your knowledge.
AnswerRequest clarification before answering.
Binding context never has the method 'setProperty'
you need to change the value by accessing the model.getPath().setProperty()
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 22 | |
| 19 | |
| 14 | |
| 9 | |
| 7 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.