meta data for this page
  •  

This is an old revision of the document!


Excel file

  • File Type: Excel file type to be used to output the data:
    • File type “Excel 97 - 2003 workbook” (*.xls): The choice of this type of file requires the use of the Excel application to generate the output.
    • File type “Excel 2007 Workbook” (supporting *.xlsm macros or not *.xlsx): The choice of this file type allows you to generate the output without using the Excel application.

The use of the Excel application to generate the output requires a lot of system resources if the result of the query contains many rows. This is why it is recommended to use the “Excel 2007 Workbook” format if the number of rows returned by the query exceeds a few hundred.

  • Define a file: define the name of the file and the location where the result of the query will be saved.

This option is not available by default. To have access to it, users (or the group they belong to) must have been authorized to do so in the AdminTool application (see Restriction of rights\Restitutions\Authorize restitution to particular files).

  • Model: the file specified as a template allows you to use Excel to finalize the formatting of the query data (pivot table, graph, conditional formatting, etc). It is advisable to store the template in the shared directory of Vigilens to be sure that it is accessible during the execution of the query (especially in case of Web type execution).

The file used as a template can be any type of Excel file. It is not necessarily an “Excel template” type file. (*.xlt).

  • Location : Defines the location where Vigilens will deposit the result of the query (often used with templates to ensure consistency between the result obtained from Vigilens and the formatting done by Excel).
  • Apply format set at Vigilens Level: Keeps the formatting defined in Vigilens (format, conditional formatting).
  • Macro to launch: Automatic execution of a macro at the end of editing. For the macro to run, remember to uncheck the box “Remove personal information from file properties when saving” in the Excel options when saving the model.

Running from Excel by adapting the Macro

Running from Excel / Calling up external data

The call of a Vigilens query from Excel is done through the menuDataExternal DataFrom web.

Mandatory parameters

  • Root Adress: http://<ServeurWeb>/vigilens/table.php?​
  • vglOutput=XLTable&​
  • vglCtrlName=<NomDeLaRequête>&
  • vglUserName=<NomUtilisateur>​

Parameters order does not matter​

It is possible to automate this processing by using Excel macros. Here is an example of a macro to be adapted according to the needs:Example macro