Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to access control model from 'blur' browser event

Hello Experts,

I have a textField column in a table.

I need to listen to the 'blur' event of each textField cell.

I use the following code:

<textField>.attachBrowserEvent("blur", onBlur);

The code works and I can get the textField's value (by using this.getLiveValue()).

However, I need to get other property from the model (from the same row).

How can I get the model from the 'blur' function? (get the exact row properties)

I can always add a hidden column and use jQuery sibling etc to get the value but I'm sure there is more elegant way (-:

Regards,

Omri

Former Member replied

This is not entirely correct. The method getBindingContext does take a parameter, which is the model name. So you can do something like this.getBindingContext("tblModel")

Here's the working example: http://jsbin.com/qedupuhepo/2/

- Max

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question