Question Philip McClean · Feb 16, 2018

OnDrawItem in ZEN dataListBox

I have a dataListBox in ZEN which has an OnDrawItem method associated with it. The DrawItem method never seems to be called and I cannot see why.  I am using IE11. Can anyone suggest a reason? The attached code runs in a namespace called CODE and can be run using view webpage on the TheLabsApp.BioAnal class. Please note that the data is in a global called ^%ANAL that resides in %SYS.

Comments

Robert Cemper · Feb 17, 2018

This functionality seems to be broken. Since quite some time.
It also fails in SAMPLES /  Class ZENTest.ComboTest.cls and the method
is never called.
Analysis of   Class %ZEN.Component.
dataListBox  shows that the related call to method %DrawItem got lost.

I verified it with a personal hack. 

You may contact WRC for a fix.

0
Tomas Vaverka · Feb 19, 2018

Robert Cemper is right, the call to %DrawItem (and subsequently to OnDrawItem) was removed from the code - the most probably by mistake. It was done by change FKH002 - multiple column handling for dataListBox, which was released with version 2012.2.0, therefore last version where it was working was 2011.1.5.

I have entered development request to fix it.

0
Robert Cemper  Feb 19, 2018 to Tomas Vaverka

Ahoj, Tomas!

děkuju moc!   Thanks!

yes

0