how to do sorting on the form ?

cyuwono
Member Posts: 28
Hi
I create new form which contain 3 columns Tablebox (Type, Color and Qty ) let say the data come from table X. This table only have one field , Text (250) , this field is contains Type, Color and Qty . I have to parse this data in order to populate my tablebox inside my from.
I am parsing the record from table X On After Get record function on my form; everything works great , except the user don't have the ability to sort the data on the form.
Is the a way for me to do something so the the user will be able to sort by Color or Type on the form ?
I create new form which contain 3 columns Tablebox (Type, Color and Qty ) let say the data come from table X. This table only have one field , Text (250) , this field is contains Type, Color and Qty . I have to parse this data in order to populate my tablebox inside my from.
I am parsing the record from table X On After Get record function on my form; everything works great , except the user don't have the ability to sort the data on the form.
Is the a way for me to do something so the the user will be able to sort by Color or Type on the form ?
Carlos Yuwono
0
Answers
-
Only way I can think of efficiently doing so would be to add 2 more fields to that table (and keys) and use it as a temporary table. Or use another table as a temp table that has the structure required to sort by the 3 fields you wish to populate with your parsed data.
On the form load, populate the temporary table with the parsed information.
But it would probably be better to have done the parsing prior to inserting the data to the database0 -
how about if I MARKED the record
IF FIND('-') THEN
REPEAT
WorkTextLine := "Raw Data 1" + "Raw Data 2" + "Raw Data 3" + "Raw Data 4";
IF DELCHR(COPYSTR(WorkTextLine,45,1),'>',' ') = vFilter THEN BEGIN
MARK(TRUE);
END ELSE
MARK(FALSE);
UNTIL NEXT = 0;
IF vFilter <> '' THEN
MARKEDONLY(TRUE)
ELSE
MARKEDONLY(FALSE);
FINDFIRST;
vFilter will be the source for the text box (user input).Carlos Yuwono0 -
If it works for you and you like it, go for it0
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