Page 1 of 1
dcbrowse ... itemmarked ...
Posted: Thu Aug 01, 2013 5:38 am
by skiman
Hi,
I was wondering when the ITEMMARKED of a DCBROWSE is evaluated? It looks as this is not evaluated when refreshing the browse :refreshcurrent() or :refreshall() don't fire the ITEMMARKED codeblock?
Someone who can confirm this?
Re: dcbrowse ... itemselected ...
Posted: Thu Aug 01, 2013 6:12 am
by skiman
I added a wtf() to the itemmarked codeblock and did the following.
I changed the scope for the browse and did oBrowse:gobottom() , oBrowse:refreshall() , oBrowse:forceStable()
The code block wasn't evaluated at all. The cursor was highlighted at the bottom of the browse, which was as expected. However, since the cursor was hightlighted on another record and on another row, I expected the itemmarked should be evaluated?
Re: dcbrowse ... itemselected ...
Posted: Thu Aug 01, 2013 6:23 am
by skiman
In further testing, I tried an PostAppEvent(xbeBRW_ItemMarked,,,oBrowse).
Shouldn't this evaluate the itemmarked block?
Re: dcbrowse ... itemselected ...
Posted: Fri Aug 02, 2013 12:04 am
by Tom
Shouldn't this evaluate the itemmarked block?
It does. If you move the pointer using :GoBottom(), it does aswell. Check your code. Is there a second ITEMMARKED in there?
Re: dcbrowse ... itemmarked ...
Posted: Sat Aug 03, 2013 2:30 am
by skiman
Hi Tom,
I will check my code again. I'm wondering if it is since the last Express version. In the past I never encountered problems with it. Now I have some weird results, and the cause seemed to be the itemmarked. The customer->(dbseek(invoice->custnr)) isn't evaluated when I expected it.
Re: dcbrowse ... itemmarked ...
Posted: Mon Aug 05, 2013 9:00 am
by rdonnay
Almost every application used ITEMMARKED. If this fails, as you say it is, then I would be hearing about it constantly.
There is something else going on here.
What does WTF oBrowse:itemMarked show as the codeblock?