Browser event posting

This forum is for eXpress++ general support.
Post Reply
Message
Author
c-tec
Posts: 379
Joined: Tue Apr 20, 2010 1:36 am
Location: SALZBURG/AUSTRIA
Contact:

Browser event posting

#1 Post by c-tec »

Hello,
to fill the browser with the scoped records, I post the event CTRL+PGDN to the browser object, but in my code it does not work. It is still only the last record displayed in the browser, so I have manually to skip up. The code for scoping in init_tab() is executed correct.
regards
Rudolf


// Tabpage with browse object
@ 0,0 DCTABPAGE aoTabPage[2] CAPTION 'MA Buchungen' RELATIVE aoTabPage[1] STATICAREA aoTabStatic[2] GOTFOCUS {||init_tab("STD",oBrowse2,getlist)}
...
// Browse
@ .1,.5 DCBROWSE oBrowse2 PARENT aoTabStatic[2] ALIAS "STD" SCOPE SIZE SIZE_X-18,SIZE_Y-6 CURSORMODE XBPBRW_CURSOR_ROW
...


static function init_tab(cCode,oBrowse,aGetlist)
******************************************************************
std->(setorder("MITARB")) //
std->(DC_SETSCOPE(0,pers->nummer))
std->(DC_SETSCOPE(1,pers->nummer))
std->(dc_dbgobottom())
setappfocus(oBrowse)
postappevent(xbeK_CTRL_PGDN,,,oBrowse)
return .t.
Rudolf Reinthaler
digital pen & paper systems
http://www.formcommander.net

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

Re: Browser event posting

#2 Post by rdonnay »

I don't understand why you would want to do a page down in the browse when the record pointer is already at the bottom.

What are you trying to acheive?
The eXpress train is coming - and it has more cars.

c-tec
Posts: 379
Joined: Tue Apr 20, 2010 1:36 am
Location: SALZBURG/AUSTRIA
Contact:

Re: Browser event posting

#3 Post by c-tec »

Hello Roger,
attached are screenshots, one is when I go bottom, the otherone after I press CTRL and PGDN key. Ohterwise I have only one line in my browser, the last one of the scope.
regards
Rudolf
Attachments
after_ctrl_pgdn.jpg
after_ctrl_pgdn.jpg (204.79 KiB) Viewed 9722 times
without_ctrl_pgdn.jpg
without_ctrl_pgdn.jpg (56.39 KiB) Viewed 9722 times
Rudolf Reinthaler
digital pen & paper systems
http://www.formcommander.net

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

Re: Browser event posting

#4 Post by rdonnay »

Do this:

Code: Select all

@ .. DCBROWSE .. EVAL {|o|o:goBottom(),o:forceStable(),o:refreshAll()}
The eXpress train is coming - and it has more cars.

User avatar
Auge_Ohr
Posts: 1428
Joined: Wed Feb 24, 2010 3:44 pm

Re: Browser event posting

#5 Post by Auge_Ohr »

c-tec wrote:

Code: Select all

 postappevent(xbeK_CTRL_PGDN,,,oBrowse)
your Syntax is wrong, must be

Code: Select all

    Postappevent( xbeP_Keyboard ,;
                  xbeK_CTRL_PGDN,;
                                ,;
                          oBrowse)
greetings by OHR
Jimmy

c-tec
Posts: 379
Joined: Tue Apr 20, 2010 1:36 am
Location: SALZBURG/AUSTRIA
Contact:

Re: Browser event posting

#6 Post by c-tec »

Hello,
thank you all, works now, was my wrong syntax of postappevent()
regards
Rudolf
Rudolf Reinthaler
digital pen & paper systems
http://www.formcommander.net

Post Reply