Tree Item formatting changes at runtime
Posted: Sat Jun 17, 2017 12:11 am
My RP sends the #PRIM_TREE to a server function to get entries added. In some cases, I want to change the style of a label at runtime.
Where do I do that? The server module just gets the fields, so it doesn't know about the labels. The Tree Item exposes a property for the label I want to change.
Is this the best way to update all the items? I'm doing this in the server module completed event.
selectList #tree
#CurrentTreeItem <= #tree.Currentitem.design *as #TreeItemRP
#currentTreeItem.pLabel2.style <= #Theme01<Text10BoldAlmostBlack>
endSelect
Thanks, Art
Where do I do that? The server module just gets the fields, so it doesn't know about the labels. The Tree Item exposes a property for the label I want to change.
Is this the best way to update all the items? I'm doing this in the server module completed event.
selectList #tree
#CurrentTreeItem <= #tree.Currentitem.design *as #TreeItemRP
#currentTreeItem.pLabel2.style <= #Theme01<Text10BoldAlmostBlack>
endSelect
Thanks, Art