Hi,
I have the following code in eg. a button detail-trigger.
vTreeRepr = $fieldvalrep(rubtrad.myent) ;do something with vTreeRepr $fieldvalrep(rubtrad.myent) = vTreeRepr rubtrad.myent = "1" ;Set to begin of tree, as here "1" is the first key-value.
If the tree is big this doesn't work fully out, as the scroll bar isn't set to the top of the tree, although the "cursor" is set to the first node.
Leaving away $fieldvalrep(rubtrad.myent) = vTreeRepr, its working correctly. So making another button and doing two clicks will work.
I found some kind of bug report about this, but the problem was then using $valrep, which now seem to work, however I can't use that. There was also a workaround using the Asynchronous Interrupt-trigger, but it didn't work with $fieldvalrep, ie. one should trick Uniface by setting rubtrad.myent = "1" in the Asynchronous interrupt-trigger and do a postmessage.
(Unfortunately I can't find that bug-report anymore.)
Has anyone had the same problem, is this just a problem of my Uniface 9.7.04 or does eg. Uniface 10 have the same problem? Is there a workaround?
Regards RogerW.




