LookupSettings.cls custom code trying to pull rowdata from the table when "User Clicked the Delete button for a row"
Working on a custom view for LookupSettings.cls. I've added code to adda Change Log entry into the table when rows are added/updated. I'm trying to do the same for when rows are deleted. How can I pull the key & value for the row when it is selected for delete /un-delete? The variable rowData is used a pointer for the row index. I know I'm missing something simple...
from: ClientMethod removeRow(row, addBack) [ Language = javascript ]
var ThisRow = ????????
var values = this.getTableValues();
var user = zenPage.GetUserName();
var DT = zenPage.GetCurrentDT();
var autokey = '###'+ DT +' by '+ user;
var autoValue = '### UN-deleted row: ' + ThisRow;
var data = { "key": autokey, "value": autoValue, "_isNew": true };
values.push(data);
Comments
The answer was obvious, I was just over-thinking it.
key = rowData.key;
value = rowData.value;
var ThisRow = rowData.key + ' > ' + rowData.value;