Hello everyone,
I have a table with a custom row action. I would like to render the row action based on the value from another model. The problem I am facing is I cannot work out how to get the value of the current row to compare with the value from the other field.
var params = arguments[0],<br> $ = skuid.$;<br>var selectedWorkItems = skuid.model.getModel('SelectedWorkItems');<br>selectedWorkItemsFirstRow = selectedWorkItems.getFirstRow();<br>if(selectedWorkItems.data.length === 0){<br> return true;<br>}<br>if(selectedWorkItems.data.length > 0){<br> if(selectedWorkItems.data[0].Site_Certification_Standard__r.Site_Certification__r.Site_Certification_Contact__r.Name === <b>currentRow</b>.Site_Certification_Standard__r.Site_Certification__r.Site_Certification_Contact__r.Name){<br> return true;<br> } else {<br> return false;<br> }<br>}<br>skuid.component.getById('workitem-table').render();
Any help would be greatly appreciated.
