Hi,
I'm trying to get a current record (Rec.) for generating a Report out of an action button from the page "Misc. Article Information."
Or to get the right Employee Data...
DEBBUGING:
The record "Employee" holds the wrong value for "No." - Why? I am in the right Employee Card, as below:
Should be "DH" not "MH".
Here my code:
report 50101 PA { Caption = 'PA'; UsageCategory = ReportsAndAnalysis; ApplicationArea = All; DefaultLayout = Word; WordLayout = 'PA.docx'; dataset { dataitem("Employee"; "Employee") { column(No_; "No.") { IncludeCaption = true; } column(First_Name; "First Name") { IncludeCaption = true; } column(Last_Name; "Last Name") { IncludeCaption = true; } column(Total_Value; "Total Value") { IncludeCaption = true; AutoFormatType = 10; AutoFormatExpression = '1,EUR'; } } dataitem("TableData"; "Misc. Article Information") { column(Employee_No_; "Employee No.") { IncludeCaption = true; } column(Line_No_; "Line No.") { IncludeCaption = true; } column(Misc__Article_Code; "Misc. Article Code") { IncludeCaption = true; } column(Description; Description) { IncludeCaption = true; } column(Serial_No_; "Serial No.") { IncludeCaption = true; } column(Color; Color) { IncludeCaption = true; } column(Size; Size) { IncludeCaption = true; } column(Amount; Amount) { IncludeCaption = true; } column(From_Date; "From Date") { IncludeCaption = true; } column(To_Date; "To Date") { IncludeCaption = true; } column(In_Use; "In Use") { IncludeCaption = true; } column(Value; Value) { IncludeCaption = true; AutoFormatType = 10; AutoFormatExpression = '1,EUR'; } trigger OnPreDataItem() begin SetFilter("Employee No.", Employee."No."); SetFilter("In Use", 'true'); end; } } }
Thank you!
Btw: www.dynamicsuser.net isn't working...
Tom