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.
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