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?
dcbrowse ... itemmarked ...
dcbrowse ... itemmarked ...
Last edited by skiman on Sat Aug 03, 2013 2:31 am, edited 1 time in total.
Re: dcbrowse ... itemselected ...
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?
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 ...
In further testing, I tried an PostAppEvent(xbeBRW_ItemMarked,,,oBrowse).
Shouldn't this evaluate the itemmarked block?
Shouldn't this evaluate the itemmarked block?
Re: dcbrowse ... itemselected ...
It does. If you move the pointer using :GoBottom(), it does aswell. Check your code. Is there a second ITEMMARKED in there?Shouldn't this evaluate the itemmarked block?
Best regards,
Tom
"Did I offend you?"
"No."
"Okay, give me a second chance."
Tom
"Did I offend you?"
"No."
"Okay, give me a second chance."
Re: dcbrowse ... itemmarked ...
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.
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 ...
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?
There is something else going on here.
What does WTF oBrowse:itemMarked show as the codeblock?
The eXpress train is coming - and it has more cars.