Next record in page (type Card)

RemcoRemco Member Posts: 81
edited 2010-08-13 in NAV Three Tier
In the Page Customer Card you have 2 items in the actionmenu, Previous (Ctrl+PgUp) and Next (Ctrl+PgDn). I want them to promote to the Actionpane. I created myself 2 icons on the actionpane, but it is not possible to go to the next page. It seems that the Customer No. is hard filtered. however with Ctrl+PgDn it is possible to go to the next customer. Has somebody a good advise how to do this? By the way, I also tried to work with SendKeys.

Answers

  • BeliasBelias Member Posts: 2,998
    what do you mean with
    Remco wrote:
    I created myself 2 icons on the actionpane
    ?have you created the buttons without code/without properties?
    -Mirko-
    "Never memorize what you can easily find in a book".....Or Mibuso
    My Blog
  • RemcoRemco Member Posts: 81
    I added them first as an action and then set the property promoted to yes.
  • BeliasBelias Member Posts: 2,998
    and do you expect them to work without coding, or property setting? :-k
    it would just be a miracle :!:
    next and previous actions are built in actions of some types of pages, AFAIK, you have to replicate their behaviour with NEXT and NEXT(-1) instructions...i don't know if there are properties instead of code to achive this...
    -Mirko-
    "Never memorize what you can easily find in a book".....Or Mibuso
    My Blog
  • RemcoRemco Member Posts: 81
    Off course I added code behind the actions with NEXT(1) and NEXT(-1). But this doesn't work. it skips to the next record but flips back again to the existing record.
  • mihail_kolevmihail_kolev Member Posts: 379
    -Mihail- [MCTS]
  • RemcoRemco Member Posts: 81
    As I said in my initial post i tried it also with SendKeys, but this also doesn't work.
  • BeliasBelias Member Posts: 2,998
    Remco wrote:
    As I said in my initial post i tried it also with SendKeys, but this also doesn't work.
    there was a post from a MS guy who programmed the next&previous functions for nav 2009 (no SP), because in that version, these functions was not available in cards...unfortunately i don't find the post now
    -Mirko-
    "Never memorize what you can easily find in a book".....Or Mibuso
    My Blog
  • mihail_kolevmihail_kolev Member Posts: 379
    Remco wrote:
    As I said in my initial post i tried it also with SendKeys, but this also doesn't work.

    Works like charm :

    CREATE(WSHShell,TRUE,TRUE);
    WSHShell.SendKeys('^{PGDN}');
    CLEAR(WSHShell);
    is the code for Next record
    -Mihail- [MCTS]
  • RemcoRemco Member Posts: 81
    Thanks Mihail, it works like that.
Sign In or Register to comment.