Doc Biwee
English
English
  • Presentation of Biwee
  • Get Started
    • Install Biwee
    • Video : My first steps with Biwee
  • Create dashboard
    • Add a visual component
      • Chart
      • Pie
      • Cards
      • Treemap
      • Text Box
      • Pivot Grid
      • Tabs
      • Scatter Chart
      • Gauge
      • Images
      • Grid
      • Range Filter
      • Filter Elements
      • Geo Points Map
      • Choropleth Map
      • Groups
    • Right-click on a component
    • Export a visual component
    • Maximize a visual component
    • Interactivity of a component
    • Data filters in components
    • Dashboard parameters
    • Conditionnal formatting
    • Interactions between dashboard
  • API Integration
  • Data Analyse
    • Performing calculations on data
    • Configure a calculated field
    • Directory of functions
    • Configure calcul in a visual component
    • Aggregate function
      • Aggregations at an intermediate level
      • Usage examples and use cases for the aggr() function
    • Window calculation
  • Settings
    • My account
    • User groups
    • Agent
    • Company settings
    • Options
    • About Biwee
  • Data connection
    • Introduction
    • Database connectors
    • Social network connectors
    • Emailing connectors
    • Files connectors
    • Other connectors
  • Sharing in Biwee
  • Creation of queries
    • Queries on databases
    • SQL Querie parameters
  • Back office biwee
    • User management
  • Changelog
    • Version 3.3
Propulsé par GitBook
Sur cette page

Cet article vous a-t-il été utile ?

  1. Creation of queries

SQL Querie parameters

PrécédentQueries on databasesSuivantUser management

Dernière mise à jour il y a 7 mois

Cet article vous a-t-il été utile ?

You can set some query parameters in order to filter your queries in real time, using the values entered or selected by the user when opening the dashboard.

To create a query parameter, you have to use the @ symbol the texte of your query : @parameter_name

In the example below, the query filters the users according to the email typed by the user in the prompt .

Then, in the Biwee software, you can type the value that will be given to the query

When the dashboard is opened on the web, the user gets the following prompt :

The user can change the values of the parameters several times, by clicking on the icon below on the top right corner of the dashboard

Configuring query parameters

You can configure query parameters to define the label, the data type, the input type : dropdown list, date selector, free input...

To do so, click in the Settings menu, and then on Query parameters.The window to configure query parameters appears :

Data type :

  • Automatic : Biwee sends the value of the parameter as it is entered by the user without any changes

  • String : the value selected or entered by the user will be given to the query as a text value : it will be surrounded automatically with ' '.

  • DateTime : the user will have a calendar to select a date. This date will be given to the query using the format indicated in the format column.

  • Int32 : the value given to the query will be the value entered by the user : it will not be surrounded by ' '.

  • Decimal : the value given to the query will be the value entered by the user : it will not be surrounded by ' '.

Display name :

This text will be displayed in the prompt displayed to the user to enter his values.

Default value :

You can specify a default value to be passed as a parameter to the query. If all the query parameters have a default entry value, the user will not see the parameter prompt when the dashboard is opened.

He will be able to change the values by clicking on the icon below :

Available values :

If you want the user to select one or many values in a drop-down list, you can enter the values to display to the user, separated by a ','

Example : value 1, value 2, value 3 displays to the user the drop-down list below :

Multiple selection :

Check this box if you want the user to be able to select several values in the drop-down list and have them passed as values to the query

Format

This box must be filled in for date parameters only, in order to specify to Biwee the format in which the date selected by the user in the calendar will be returned.

The format to be specified depends on the type of database being queried.

DBMS
Value to set

SQL Server

'yyyy-MM-dd'

MySQL

DATE 'yyyy-MM-dd'

PostgreSQL

'yyyy-MM-dd'

When calling the dashboard using an IFRAME, passing date-type parameter values must respect the syntax expected by the SQL engine in the query. Biwee will replace the @parameter with the value entered during the IFRAME call.

For example, in SQL Server: in the url, enter: ?p_date=2024-10-29

API input :

If the dashboard is integrated into an application using IFRAME, check this box if you want the user to be able to change the parameter values. Otherwise, only the values passed during the IFRAME call will be used, and the user will not be able to change them.

Query parameters creation
Prompt in the Biwee software
Prompt on the Web
Button to change the values of query parameters in the dashboard