Saturday, December 23, 2017

Oracle JET : How to get OJTables current selected rowkey

I would like to share a simple snippet which can be used to get the current selected rowkey.

This is useful in creating Master Detail oj data tables in JET.
This is also useful where you want a different section to be refreshed based on selected row.


In the view level , enter the below handler "[[actionSequence]]" for the "on-oj-before-current-row" attribute : 





Also in the corresponding viewModel javascript file, implement the handler as below :
   "data.detail.currentRow.rowKey"

Added this content/ topic as this snippet was not readily available on the net. Hope this helps and might save your lot of time in implementing the same.

Thanks for reading.

No comments:

Post a Comment

Fusion BIP : How to show one parameter in report and pass different value to the datamodel

Hi All, There can be a scenario where we might need to show one value in the report and a different value to the actual query. Lets say a...