Problem with List Form!!!!!!!!

southindian
Member Posts: 247
Dear All...
I am facing a problem with list form. IN Sales order when ever user press f5 Sales list form gets loaded . My query is , the same sales list form get s loaded when user click f5 in Export order form the same sales list form get loaded.
the No series for sales order starts with SO-P0001..... etc
The No.series for export Order Starts with EO-E0001... etc
Whenever User click f5 in Sales order the no.series associated with Sales order should get sorted Ascending wise and the cursor should point the latest order which has been created (Frist record in sales list form.). And the same whenever User click f5 in Export order form the no.series associated with Export order should get sorted Ascending wise and the cursor should point the latest order which has been created (Frist record in sales list form.). The main point is both the Record related to sales order and the export order is getting reflected in the same sales header and sales line table. Need advice in this.... :-k
I am facing a problem with list form. IN Sales order when ever user press f5 Sales list form gets loaded . My query is , the same sales list form get s loaded when user click f5 in Export order form the same sales list form get loaded.
the No series for sales order starts with SO-P0001..... etc
The No.series for export Order Starts with EO-E0001... etc
Whenever User click f5 in Sales order the no.series associated with Sales order should get sorted Ascending wise and the cursor should point the latest order which has been created (Frist record in sales list form.). And the same whenever User click f5 in Export order form the no.series associated with Export order should get sorted Ascending wise and the cursor should point the latest order which has been created (Frist record in sales list form.). The main point is both the Record related to sales order and the export order is getting reflected in the same sales header and sales line table. Need advice in this.... :-k
0
Comments
-
What form is opened when you press f5 is determained by the property "LookupFormID" on table 36 "Sales Header". The default value of this property is "Sales List" (form 45).
You could edit this forms OnOpenForm trigger to alter its behavior, sort order etc, depending on the value of LOOKUPMODE and the record "Rec" that is passed to it when f5 is pressed.0 -
You mean that in the Open form trigger of Sales list form .... i can define the forms(like Sales order , Export order ) and make the system understand.... that from which form it has been called .... anm i right, is it posssible........ :-k0
-
Yes!
You could check the contets of the field "Document Type" and "No." of the record Rec that is passed to the form when you press f5. That way you can determaine if the form was called from Sales Order or Export order.
Depending on the outcome of this check you can change the forms caption and just about everything else to suit the differen kinds of documents.0 -
Thanks ur idea is working fine... but still i had a small problem... the No series for sales order is defined as
SO-60001 to SO100001... If i set the current key as Document type No. the system is considering 100001 as frist record(it takes as 1 instead as 100000 , which is less that 6 instead of 60000)... think u got... how resolve it0 -
Is the number series defined as SO-60001 to SO100001 and not SO-60001 to SO-100001?0
-
let me explain u clearly.
user has defined the no series like this
for the year 2006 , they had created the no series starting with SO-60001.
for the year 2007 , they had created the no series starting with SO-70001.
for the year 2008 , they had created the no series starting with SO-80001.
for the year 2009 , they had created the no series starting with SO-90001.
when it comes to the year 2010 , they had created the no series starting with SO-100001.
User want to cursro to point to the latest Sales order that has been created (Say SO-100035 then point the cursor to that record and it should comes as frist record of sales list or as the last record of the sales list).
But System doesnot consider in sequence and it is considering the 100000 as 1 and sorting ascending with 100000 record frist and then comes the 60000 series and then 70000 series and finally 90000 series... u got my point
Do we have any solution for that0 -
I don't think you can change the way navision sorts the records.
It's probably not a good idea but would it be possible to rename all the old records on the form SO-0######? You could create a report that does this.
This would probably lead to all sorts of problems but it's easy to test just to see what happens.0 -
there is no other way to do the sorting0
-
You could sort on "Document date" perhaps then No.0
-
u mean sort by (Document type,No.,Document Date)... i do think i need to define a n ew key in sales header table then........0
-
That's correct.0
-
Same senario applies to Purchase list form also0
-
I think so.0
-
THANK YOU SIR0
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