My Question

ismailthesacrificer1@gmail.com
Member Posts: 76
Create a simple report for customer list. The report should be in landscape with 15 or more columns. In the options tab, there should be 5 checkboxes indicating any 5 columns. If I select those checkboxes then they should not be printed and the columns should be moved. We are talking about moving of columns on the fly. can any one explain me how to create a report...and where should we write code..?
0
Comments
-
Can any one please suggest me to do this.0
-
Take a look at report 110.0
-
Actually my case is different and i followed this code
onaftergetrecord() trigger:
IF NOT Hide THEN
FormatAddr.Customer(CustAddr,Customer);
IF NOT HideName THEN BEGIN
FOR i := 1 TO ARRAYLEN(Customer.Name) DO
CustAddr[3] := Customer.Name;
CustAddr[3] := CustAddr[2];
TName[1] := Customer.FIELDCAPTION(Name);
END;
IF NOT HideAddress THEN BEGIN
FOR i := 1 TO ARRAYLEN(Customer.Address) DO
CustAddr[1] := Customer.Address;
TAddress[1] := Customer.FIELDCAPTION(Address);
END;
IF NOT HideCity THEN BEGIN
FOR i := 1 TO ARRAYLEN(Customer.City) DO
CustAddr[2] := Customer.City;
TCity[1] := Customer.FIELDCAPTION(City);
END;
IF NOT HideCountry THEN BEGIN
FOR i := 1 TO ARRAYLEN(Customer.County) DO
CustAddr[4] := Customer.County;
TCountry[1] := Customer.FIELDCAPTION(County);
END;
IF NOT HideContact THEN BEGIN
FOR i := 1 TO ARRAYLEN(Customer.Contact) DO
CustAddr[5] := Customer.Contact;
TContact[1] := Customer.FIELDCAPTION(Contact);
END;
while running the report I am not able to move the columns properly..0 -
You don't need to move them if you create a section for each combination of the tickboxes and display them accordingly. Just like report 110 does.0
-
But my requirement is when i select all check boxes then check boxes indicating any columns should not print remaining columns should print..0
-
ReportColumnHeaders : Array[15] of Text
ReportColumns : Array[15] of TextIF HideSomeColumnX THEN BEGIN ReportColumns[ColumnX] := ''; ReportColumnHeaders[ColumnX] := ''; END ELSE IF ReportColumns[ColumnX] = '' THEN ReportColumns[ColumnX] := '-';//some filler charater //.. and so on for remanining columns
the last lineCOMPRESSARRAY(ReportColumns); COMPRESSARRAY(ReportColumnHeaders);
the filler character in the part of the code...END ELSE IF ReportColumns[ColumnX] = '' THEN ReportColumns[ColumnX] := '-';
is required to avoind compressing columns which are supposed to be shown but have no value.
You can remove it after COMPRESSARRAYFOR i: = 1 to ARRAYLEN(ReportColumns) DO IF ReportColumns[i] := '-' THEN ReportColumns[i] := ''
Slawek Guzek
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-030 -
But it was not working...
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