ItemList Lookup in Consumption Journal form.

navuser1
Member Posts: 1,334
Dear all,
I have faced a problem regarding ItemList Lookup. The "Item No." field (in the Consumption Journal form) can not Lookup the Item List Form properly.
The Code under the Item No. - OnLookup(VAR Text : Text[1024];) : Boolean definitely create a problem.
What can I do ?? :-k
I have faced a problem regarding ItemList Lookup. The "Item No." field (in the Consumption Journal form) can not Lookup the Item List Form properly.
The Code under the Item No. - OnLookup(VAR Text : Text[1024];) : Boolean definitely create a problem.
What can I do ?? :-k
Now or Never
0
Answers
-
The Item lookup on consumption journal works fine for me.
What kind of problem do you run into?0 -
Thanks for your reply Rashed!!
I am not able to go from Item No. 1000 Bicycle (Consumption Journal Form) to Item No. 1000 Bicycle ( Item List Form) thru Lookup. It always direct me the previous Item No. (Item List Form) where the cursor was.
Lookup is not working perfect in NAVIN version Base db (Nav 5.0 SP1).Now or Never0 -
Why are you doing this and not using the function to populate the journal. Also why would you consume 1000 when you make 1000 - your issue is not clear.The art of teaching is clarity and the art of learning is to listen0
-
yes, this is an issue. that it takes you to a different Item no on the item journal table (which is the consumption journal).
I've reported it to MS to fix.
Here is the link and the solution to the problem.
https://connect.microsoft.com/dynamicss ... kID=4965000 -
Yaa!!
This is the reply which I'm waiting for. 8)
Thanks Rashed for your support.Now or Never0 -
You are welcome. And make sure you vote on it.0
-
Hmm this looks like the same bug they had in version 3.10? They fixed that in 3.60, has it found its way back again?David Singleton0
-
David Singleton wrote:Hmm this looks like the same bug they had in version 3.10? They fixed that in 3.60, has it found its way back again?
Yes, In 3.6 the code was on onLookup trigger.
In later version they created a function called Itemlookup and moved the code in there but also changed it.Item No. - OnLookup() IF "Entry Type" = "Entry Type"::Output THEN BEGIN SetFilterProdOrderLine; IF FORM.RUNMODAL(FORM::"Prod. Order Line List",ProdOrderLine) = ACTION::LookupOK THEN BEGIN ProdOrderLine.SETRECFILTER; VALIDATE("Item No.",ProdOrderLine."Item No."); END; END ELSE BEGIN IF Item.GET("Item No.") OR Item.GET(xRec."Item No.") THEN ; IF FORM.RUNMODAL(FORM::"Item List",Item) = ACTION::LookupOK THEN VALIDATE("Item No.",Item."No."); END;
New code
LookupItemNo()IF "Entry Type" = "Entry Type"::Output THEN BEGIN SetFilterProdOrderLine; IF FORM.RUNMODAL(FORM::"Prod. Order Line List",ProdOrderLine) = ACTION::LookupOK THEN BEGIN ProdOrderLine.SETRECFILTER; VALIDATE("Item No.",ProdOrderLine."Item No."); END; END ELSE BEGIN ItemList.LOOKUPMODE := TRUE; IF ItemList.RUNMODAL = ACTION::LookupOK THEN BEGIN ItemList.GETRECORD(Item); VALIDATE("Item No.",Item."No."); END; END;
They removed in 2009 the code from the Itemlookup trigger. So that it Item journal now works in 2009, but consumptions journal still calls this functions.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