Value from Different Table

Lamba
Member Posts: 263
I have to flow a value from a custom table to Sales Quote report(Report Id-204).
The Scenario is :
As i go to the item card there is a custom field Shade.The lookup of the shade field opens a table.
There are two fields in shade table namely code and desc.
I have to flow the Shade's Description as per the corresponding item no. selected in the sales Quote line.
How it could be done.
The Scenario is :
As i go to the item card there is a custom field Shade.The lookup of the shade field opens a table.
There are two fields in shade table namely code and desc.
I have to flow the Shade's Description as per the corresponding item no. selected in the sales Quote line.
How it could be done.
0
Comments
-
What did you try?0
-
I have tried with the following code on the Roundloop's OnAftergetRecord trigger:
Item.SETRANGE("No.","Sales Line"."No.");
Pack.SETRANGE(Pack.Code, Pack.Description);
IF Pack.FINDFIRST THEN
REPEAT
PackDesc :=Pack.Description;
UNTIL Pack.NEXT = 0;
MESSAGE('%1',PackDesc);
still the value in the Msg is blank.0 -
Lamba wrote:Pack.SETRANGE(Pack.Code, Pack.Description);0
-
I got it by the following code:
Item.RESET;
Item.GET("Sales Line"."No.");
Pack.RESET;
Pack.SETRANGE(Pack.Code,Item."Pack Code");
IF Pack.FINDFIRST THEN
PackDesc :=Pack.Description;
Thanx for your time.0 -
Lamba wrote:Item.RESET;
Item.GET("Sales Line"."No.");
What if the Sales Line type is Resource or G/L Account? :-k0 -
it's also a good idea to check if sales line No. is blank or not.Microsoft Certified IT Professional for Microsoft Dynamics NAV
Just a happy frood who knows where his towel is0
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