How can builtin fields in Report Builder be used in Dataset Query?

mpuest 21 Reputation points
2023-01-04T09:52:03.303+00:00

Hi,

ReportBuilder has builtin fields, e.g. Language or User ID.

How can I use them within dataset's query?

Example: Having a dataset for text translations I want to use the builtin Field "Language" to fill the dataset only with this certain language.

How to write the query for that?

SELECT * FROM TranslationTable WHERE TranslationLanguage LIKE ►►►BuiltInField!Language◄◄◄ ???

Thank you in advance,
Martin

SQL Server Reporting Services
SQL Server Reporting Services
A SQL Server technology that supports the creation, management, and delivery of both traditional, paper-oriented reports and interactive, web-based reports.
2,972 questions
0 comments No comments
{count} votes

Accepted answer
  1. Olaf Helper 45,626 Reputation points
    2023-01-04T13:31:01.083+00:00

    Hello Martin,

    create a report parameter (invisible) and assign the build-in function as default value to it.
    Write a query with a (named) parameter like @language and then map in the dataset settings => parameter the one created before.

    SELECT *   
    FROM TranslationTable  
    WHERE TranslationLanguage = @language  
    

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.