code: def render_analyses_table(self, table="lab"):
          
          if table not in ["lab", "field", "qc"]:
              raise KeyError("Table '{}' does not exist".format(table))
          view_name = "table_{}_analyses".format(table)
          view = api.get_view(
              view_name, context=self.context, request=self.request)
          # Call listing hooks
          view.update()
          view.before_render()
          return view.ajax_contents_table()
docs: Render Analyses Table