TableBox Scrolling

polonious
Member Posts: 64
Hi,
Here's a good one! I have a tablebox with two fields, on a small form that shows a list of item numbers. The second field is a Qty. field that is populated by a textbox elsewhere on the form. What I would like to do is, as each item is populated with a quantity, I want the list to scroll down to show the next item without a quanitity. The tablebox shows 6 lines, but it could have any number of records. Of course the user can simply use the scrollbar, but the form is on a handheld device and it would be easier if it automatically scrolled each time. Anybody got any ideas??
Cheers,
P
Here's a good one! I have a tablebox with two fields, on a small form that shows a list of item numbers. The second field is a Qty. field that is populated by a textbox elsewhere on the form. What I would like to do is, as each item is populated with a quantity, I want the list to scroll down to show the next item without a quanitity. The tablebox shows 6 lines, but it could have any number of records. Of course the user can simply use the scrollbar, but the form is on a handheld device and it would be easier if it automatically scrolled each time. Anybody got any ideas??
Cheers,
P
0
Comments
-
did you try:
rec.setrange(quantity,0); rec.findfirst; rec.setrange(quantity); currform.update; //don't know if it is needed
you can do this in the onvalidate, of the quantity...
just try it, cause I don't know if it generates problems :-k0 -
Cool thanks Belias, I'll try it now and come back to you in a few mins.0
-
That worked a treat thanks Belias. Solved0
-
Yeh it's doing what I want it to do anyway. I left out the Currform.Update because it was trying to modify the record. If I was to leave it in, I would have had to add (False) to the end of it. But it wasn't needed.0
-
You can do the following:
Create a record variable (rec2) for the same record as the form Rec.
Then:rec2.RESET; rec2.COPYFILTERS(Rec); rec2.SETRANGE(Extra Filter Here); //<- Add Additional filters you need... IF rec2.FINDFIRST THEN Rec := rec2; //<- Don't make any modifications to rec2...
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