dcbrowse ... itemmarked ...

This forum is for eXpress++ general support.
Post Reply
Message
Author
skiman
Posts: 1199
Joined: Thu Jan 28, 2010 1:22 am
Location: Sijsele, Belgium
Contact:

dcbrowse ... itemmarked ...

#1 Post 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?
Last edited by skiman on Sat Aug 03, 2013 2:31 am, edited 1 time in total.
Best regards,

Chris.
www.aboservice.be

skiman
Posts: 1199
Joined: Thu Jan 28, 2010 1:22 am
Location: Sijsele, Belgium
Contact:

Re: dcbrowse ... itemselected ...

#2 Post 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?
Best regards,

Chris.
www.aboservice.be

skiman
Posts: 1199
Joined: Thu Jan 28, 2010 1:22 am
Location: Sijsele, Belgium
Contact:

Re: dcbrowse ... itemselected ...

#3 Post by skiman »

In further testing, I tried an PostAppEvent(xbeBRW_ItemMarked,,,oBrowse).

Shouldn't this evaluate the itemmarked block?
Best regards,

Chris.
www.aboservice.be

User avatar
Tom
Posts: 1234
Joined: Thu Jan 28, 2010 12:59 am
Location: Berlin, Germany

Re: dcbrowse ... itemselected ...

#4 Post 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?
Best regards,
Tom

"Did I offend you?"
"No."
"Okay, give me a second chance."

skiman
Posts: 1199
Joined: Thu Jan 28, 2010 1:22 am
Location: Sijsele, Belgium
Contact:

Re: dcbrowse ... itemmarked ...

#5 Post 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.
Best regards,

Chris.
www.aboservice.be

User avatar
rdonnay
Site Admin
Posts: 4813
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: dcbrowse ... itemmarked ...

#6 Post 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?
The eXpress train is coming - and it has more cars.

Post Reply