Back Midas Rome Roody Rootana
  Midas DAQ System  Not logged in ELOG logo
Entry  26 Nov 2025, Lars Martin, Bug Report, Error(?) in custom page documentation 
    Reply  27 Nov 2025, Stefan Ritt, Bug Report, Error(?) in custom page documentation 
       Reply  27 Nov 2025, Zaher Salman, Bug Report, Error(?) in custom page documentation 
          Reply  27 Nov 2025, Konstantin Olchanski, Bug Report, Error(?) in custom page documentation 
          Reply  08 Dec 2025, Zaher Salman, Bug Report, Error(?) in custom page documentation 
Message ID: 3147     Entry time: 26 Nov 2025     Reply to this: 3148
Author: Lars Martin 
Topic: Bug Report 
Subject: Error(?) in custom page documentation 
https://daq00.triumf.ca/MidasWiki/index.php/Custom_Page#modb

says that

If the ODB path does not point to an individual value but to a subdirectory, the 
whole subdirectory is mapped to this.value as a JavaSctipt object such as

<div class="modb" data-odb-path="/Runinfo" onchange="func(this.value)">

<script>function func(value) { console.log(value["run number"]); }</script>


In fact, it seems to return the JSON string of said object, so you'd have to write

console.log(JSON.parse(value)["run number"])
ELOG V3.1.4-2e1708b5