Table Box Page Up and Down

Toddy_Boy
Member Posts: 232
Is there an easy way (I'm guessing not) of getting Navision to page up and down the entries on a table box by clicking aPage Up and Down buttons, this will have the same effect as clicking the slide bar so the current bottom row of the table box moves to the top and the rows underneath are refreshed.
Cheers
Cheers
Life is for enjoying ... if you find yourself frowning you're doing something wrong
0
Comments
-
:?:
This should just work.
My page up and down buttons do what you describe.
Tino Ruijs
Microsoft Dynamics NAV specialist0 -
what do i have to assign to a button to make it page up and down? there's nothing obvious in the onPush event.Life is for enjoying ... if you find yourself frowning you're doing something wrong0
-
Ok. Now I understand you. You want to click on new button which simulates page up and a new button which simulates page down. Right?
Just Curious; why?
Tino Ruijs
Microsoft Dynamics NAV specialist0 -
Your assumption is correct. Our client has touch screen terminals, so when presented with a list of records they would like to click a nice big page up and page down button rather than trying to click on the slide bar.Life is for enjoying ... if you find yourself frowning you're doing something wrong0
-
Make a new MenuButton.
1. Up (Ctrl+U)
2. down (Ctrl+D)
behind 1. type follwing in OnPush() Triggerif next(-20) = 0 then;
behind 2. type follwing in OnPush() Triggerif next(20) = 0 then;
RegardsDo you make it right, it works too!0 -
Hi garak
I like that solution =D>
however, how do I know how many rows are visible? if there are 20 rows visible as in your example then all well and good, but if the user has the screen resized then the paging isn't quite right. :-kLife is for enjoying ... if you find yourself frowning you're doing something wrong0 -
Tja, thats the problem ;-)Do you make it right, it works too!0
-
You can use SendKeys to send the PgUp PgDown keypress when you press the button...0
-
ever i say: people use sendkeys and wsh, but here i've forgotten the sendkey option ](*,)
here the sourceVariable: Name DataType Subtype Length WSHShell Automation 'Windows Script Host Object Model'.WshShell if isclear(WSHShell) then create(WSHShell); WSHShell.SendKeys('{PGDN}'); //{PGUP}
Regards :oops:Do you make it right, it works too!0 -
Guys well done and thanks that works well =D> Had a few problems with PgDown until I used the correct syntax.
However, the table box doesn't seem to refresh properly. When I click on a row after I have paged the details on the row change. I am using a temp table for this card so could the real records and the temp records become out of step after paging?Life is for enjoying ... if you find yourself frowning you're doing something wrong0 -
A bit of a mistake, the table is not temp table, which makes the reason why the records are not refreshing properly a little curious. #-oLife is for enjoying ... if you find yourself frowning you're doing something wrong0
-
Hi,
Have you tried putting in a currform.update(FALSE); to refresh the screen ?0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions