ibmresilient / resilient-community-apps

Source code for IBM SOAR Apps that are available on our App Exchange
https://ibm.biz/soar-apps-docs
MIT License
88 stars 96 forks source link

Update dt_utils_get_row.py #84

Closed nickpartner-goahead closed 2 years ago

nickpartner-goahead commented 2 years ago

current function doesn't allow getting a row from a menu as the function to get the row_id is missing. Changing so that if you put a 0 then it will use current row as the context which is consistent with delete row

Description

row_id is pulled when the reference is set to 0 to make consistent with the validation function, spec and deleterow so that either row id or search is used

Motivation and Context

It makes consistent use of function with others, however is valuable when using a menu item to pull a row which isn't otherwise possible, for example to take a field and add it as an artifact

How Has This Been Tested?

Checklist:

Signed-off-by:

annmarien commented 2 years ago

Thanks for you for your input. We have made this change and it is available on the App Exchange in 2.0.0 release of the Data Table Helper Functions.