Currently it is not possible to retrieve the marked values from an In-Database data table using IronPython and/or Javascript API or Data Functions (TERR).
You may get the following error when trying to read the marked values using Javascript API
ErrorInternal: Could not find method '_InternalFormat'.
When trying to read marked data using Iron Python API, no data is retrieved in "markedselection = markings.GetSelection(dataTable)"
Data functions execution using R/TERR is only supported for imported data tables (In-Memory tables) not in-Database tables