sqlschool.gr logo

articles

Articles of SQLschool.gr Team

Επειδή στην σημερινή εποχή τα reports μας μπορούν να τα βλέπουν χρήστες που δεν έχουν απαραίτητα το ίδιο culture με εμάς, είναι σκόπιμο να τους δίνουμε αυτό την εμπειρία καθώς έτσι θα κάνουν καλύτερα την δουλειά τους και εμείς θα έχουμε ένα χρήστη λιγότερο πάνω από το κεφάλι μας.

Σε αυτό το web cast σας δείχνω πως μπορείτε να το κάνετε αυτό μιας και δεν υπάρχει σαν build in διαδικασία μέσα στα Reporting Services.
Επίσης όπως αναφέρω και στο web cast δεν μπορώ να έχω localization στα λεκτικά των παραμέτρων. Αυτό είναι κάτι το οποίο το ζητάμε εδώ και καιρό και μάλιστα υπάρχει και connect item.


Ο κώδικας που δείχνω στο συγκεκριμένο web cast είναι ο παρακάτω


 

CREATE TABLE dbo.ReportTranslations
(
[LabelID] int not null
, [Language] nvarchar(10) not null
, [LabelText] nvarchar(255) not null
);
GO
ALTER TABLE dbo.ReportTranslations
ADD CONSTRAINT PK_ReportTranslations PRIMARY KEY CLUSTERED ([LabelID],[Language]);
GO
INSERT INTO dbo.ReportTranslations VALUES (1,'el-GR',N'Πωλήσεις Διαδυκτίου');
INSERT INTO dbo.ReportTranslations VALUES (1,'en-US',N'Internet Sales');
INSERT INTO dbo.ReportTranslations VALUES (2,'el-GR',N'Ημ/νια');
INSERT INTO dbo.ReportTranslations VALUES (2,'en-US',N'Date');
INSERT INTO dbo.ReportTranslations VALUES (3,'el-GR',N'Κωδικός Προϊόντος')
INSERT INTO dbo.ReportTranslations VALUES (3,'en-US',N'Product Key');
INSERT INTO dbo.ReportTranslations VALUES (4,'el-GR',N'Ποσότητα')
INSERT INTO dbo.ReportTranslations VALUES (4,'en-US',N'Quantity');
INSERT INTO dbo.ReportTranslations VALUES (5,'el-GR',N'Τιμή Μονάδος')
INSERT INTO dbo.ReportTranslations VALUES (5,'en-US',N'Unit Price');
INSERT INTO dbo.ReportTranslations VALUES (6,'el-GR',N'Αξία Πωλήσεως')
INSERT INTO dbo.ReportTranslations VALUES (6,'en-US',N'Sales Amount');
INSERT INTO dbo.ReportTranslations VALUES (7,'el-GR',N'Αξία Φόρων')
INSERT INTO dbo.ReportTranslations VALUES (7,'en-US',N'Tax Amount');

select LabelID,LabelText from dbo.ReportTranslations where Language=@UserLanguage;  

  Public Function GetLabel(P as Parameter, LabelID as Integer) as String Dim i as Integer Dim rv as string rv="" For i = 0 to Ubound(P.Value) If (P.Value(i)=LabelID) Then rv=P.Label(i) End If Next i Return rv End Function

=Code.GetLabel(Parameters!Labels,1)
/*antonch*/

Antonios Chatzipavlis

Antonios Chatzipavlis

Antonios Chatzipavlis is a highly experienced Data Solutions Consultant and Trainer. He has been working in the IT industry since 1988, holding various roles such as senior developer, IT Manager, Data & AI Solutions Architect and Consultant.

Since 1995, Antonios has focused on modern technologies and software development tools, primarily by Microsoft. He has specialized in Data & AI since 2000, with expertise in Microsoft Data Platform (SQL Server, Azure SQL Databases, Azure Synapse Analytics, Microsoft Fabric, Power BI, AI) and Databricks.

Antonios is also a Microsoft Certified Trainer (MCT) for over 25 years, has been recognized as a Microsoft Most Valuable Professional (MVP) in Data Platform since 2010 and he is in the Data Expert 40 Powerlist 2024 by Boussias. He is the co-founder and visionary behind XLYTiCA, a company dedicated to Data & AI solutions.

Episode

Task Flows in Microsoft Fabric

image

More Episodes...

Tip

Get Certified: Become a Fabric Data Engineer

More Tips...

Become a member

If you want to receive updates from us become a member to our community.

Connect

Explore

Learn

sqlschool.gr © 2010-2025 All rights reserved

This site uses cookies for operational and analytics purposes only. By continuing to browse this site, you agree to their use.