Back Midas Rome Roody Rootana
  Midas DAQ System  Not logged in ELOG logo
Entry  27 Feb 2024, Pavel Murat, Forum, displaying integers in hex format ? 2024_02_27_dtc_registers_in_odb.png2024_02_27_custom_page.png2024_02_27_custom_page_html.png
    Reply  27 Feb 2024, Stefan Ritt, Forum, displaying integers in hex format ? 
       Reply  27 Feb 2024, Pavel Murat, Forum, displaying integers in hex format ? 
Message ID: 2719     Entry time: 27 Feb 2024     Reply to this: 2720
Author: Pavel Murat 
Topic: Forum 
Subject: displaying integers in hex format ? 
Dear MIDAS Experts,

I'm having an odd problem when trying to display an integer stored in ODB on a custom 
web page:  the hex specifier, "%x", displays integers as if it were "%d" .

- attachment 1 shows the layout and the contents of the ODB sub-tree in question
- attachment 2 shows the web page as it is displayed
- attachment 3 shows the snippet of html/js producing the web page

I bet I'm missing smth trivial - an advice is greatly appreciated! 

Also, is there an equivalent of a "0x%04x" specifier to have the output formatted 
into a fixed length string ?  

-- thanks, regards, Pasha  
Attachment 1: 2024_02_27_dtc_registers_in_odb.png  361 kB  | Hide | Hide all | Show all
2024_02_27_dtc_registers_in_odb.png
Attachment 2: 2024_02_27_custom_page.png  296 kB  | Hide | Hide all | Show all
2024_02_27_custom_page.png
Attachment 3: 2024_02_27_custom_page_html.png  457 kB  | Show | Hide all | Show all
ELOG V3.1.4-2e1708b5