Is it Possible to Change lables dynamically in Report?

ramyavenkat
Member Posts: 94
In a Report reffering sales invoice line, based on the location feild i want to change the display of the lables dynamically in report.
for eg::if the locaiton is bangalore in sales invoice line, the feild label in report should be T.N.G.S.T
If the location is madurai,the feild label of T.N.G.S.t should change in K.S.T
in the report.
Is this possible??if so using which trigger i will get the lables dyanamically change,,or where i should right the code.
for eg::if the locaiton is bangalore in sales invoice line, the feild label in report should be T.N.G.S.T
If the location is madurai,the feild label of T.N.G.S.t should change in K.S.T
in the report.
Is this possible??if so using which trigger i will get the lables dyanamically change,,or where i should right the code.
0
Comments
-
why not use TEXTBOX0
-
Hi Ramya
If i understood correctly,
it is possible to change values at run time. The code can be On After GetRecor(). Here u can verify the location and set appropriate value. I feel instead of label text box will be convinient.
To display customised location, define text variable and link to text box(for ur customised location). Set ur own values in OnAfterGetRecord().
You have to decide how u will relate ur customised location with existing location. If the locations are few in number u can hard code, oterwise u have to think other option.
Try and reply
Murugan
ERP Tech ConsultantMurugan0 -
Try This approach.
You can modify the Location Table By Adding a New Field for the Captions you have in mind ("Name 2" for Example).
Then in the Report, You Use a TextBox as have been suggested.
Next on OnAfterGetRecord of the SalesInvoiceLines, Add codes like these
if LocRec.get (SalesInvLine."Location Code") then
TextLoc := LocRec."Name 2";
else
TextLoc := SalesInvLine."Location Code";
and Of Course you will set the
SourceExpr Property of the TextBox to TextLoc
SggSunday, Godwin G0 -
Thanks Murgan ,I tried ur method and it worked fine.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