Change TreeItem value Lua
We are researching how to add composite values to the protocol tree. It would be ideal to parse the child fields first and update the parent "composite". One thing that is missing is a set_value(). Is there a method to update the "show" value in the protocol tree.
Here is an example of an output in PDML:
<field name="cme.futures.ilink3.sbe.v8.5.timetoexpiration" showname="Time To Expiration: " size="5" pos="247" show="" value="ffffff7f7f">
<field name="cme.futures.ilink3.sbe.v8.5.mantissa32" showname="Mantissa 32: No Value" size="4" pos="247" show="2147483647" value="ffffff7f"/>
<field name="cme.futures.ilink3.sbe.v8.5.exponent" showname="Exponent: No Value" size="1" pos="251" show="127" value="7f"/>
</field>
Is there a way to update the show="" attribute of the parent? We could generate 2 separate reader functions as an alternate.
Thanks in advance
(Related to Update parent tree node)
WSDG: 12.7.1. TreeItem
Would
12.7.1.4. treeitem:set_text(text)
or12.7.1.15. treeitem.text
work?When I tried:
I got: