Fantastic solution thank you Steve, this works as I need.
One small thing, I read in another post the question if the url for the action can be triggered in a new tab of the browser, I did not find if this is possible
currently the URL in my action looks like below and it opens in the same RecordDialog window with limited actions
url="{$this->url('-action=list&-table=Treatments&-sort=TreatmentID+desc&-cursor=0&-skip=0&-limit=30&-edit=1&-mode=find&-edit=1&PatientID=' . $record->getValueAsString('PatientID'))}"
If not possible I will redesign the destination URL to work well within the RecordDialog, you have already helped a lot.
Thanks for such a wonderful tool and gift to us.
Francisco