Forum Stats

  • 3,826,361 Users
  • 2,260,636 Discussions
  • 7,896,916 Comments

Discussions

on-oj-before-row-edit-end is called before on-oj-action

3893507
3893507 Member Posts: 13
edited May 23, 2019 9:10AM in Oracle JET

Hi,

Im using JET version 6.1.0

I have oj-table with edit-mode and a button. When I click that OJ-BUTTON when table is in edit-mode ON it calls on-oj-before-row-edit-end first and not hitting OJ-BUTTON. I want to hit the button first and then the on-oj-before-row-edit-end. If Oj-button called before on-oj-before-row-edit-end everything works fine.

Note: Oj-Button outside the table

<oj-button id="clearButton" class='oj-button-primary' on-oj-action="[[savesurgemstr]]">

                            Save

                        </oj-button>

<oj-table id="table" aria-label="Lookup Type"

                              data='[[pagingDatasource]]'

                              display='grid'

                              on-current-row-changed ="[[selectionListener]]"

                              on-oj-before-row-edit-end="[[beforeRowEditType]]"

                              columns= '[{"headerText": "Season Details",  "headerStyle":"text-align:left;",

                              "field": "eid_season"},

                              {"headerText":"Eff. Start date",  "headerStyle":"text-align:left;",

                              "field": "effective_start_date",

                              "style":"text-align:right;width:100px;"},

                              {"headerText":"Eff. End date",  "headerStyle":"text-align:left;",

                              "field": "effective_end_date",

                              "style":"text-align:right;width:100px;"},

                              {"headerText": "Remarks",  "headerStyle":"text-align:left;",

                              "field": "remarks"}]'

                              edit-mode='rowEdit'

                              row-renderer='[[rowSurgemstr]]'

                              style='width: 50%; height:50%;'>

Answers