await function jsGetDocumentState()

Get mode of the current document open

Return values can be NA, DT, RT, OML. OLDDQL, QBM and Catalog