Passa al contenuto principale
Supporto OCLC

Variabili del rapporto

Imparate a usare le variabili e gli oggetti dei report per creare formule predefinite e riutilizzabili in Report Designer.

Overview

When modifying a standard or new custom report, you can create a report variable. Report variables allow you to:

  • Creare formule riutilizzabili e predefinite utilizzando gli oggetti del report.
  • Eseguire una formula in Report Designer invece di esportare i dati in Excel per eseguire le formule.

 Nota: le variabili del report sono disponibili solo con Report Designer.

Creare una variabile di report per un report standard o personalizzato

Finestra di dialogo Crea variabile - Immagine
Create Variable dialog
  1. Click Reading in the upper-right corner of the open report to switch the report display to Design mode.
  2. Click the Add a new variable button (Screenshot of WorldShare Reports Add a new variable button) in the Objects tab of the Main side panel. The Create Variable dialog opens.
  3. Nella finestra di dialogo Crea variabile:
    1. Enter a name for the variable.
    2. (Optional) Click the Show/Hide description panel button (Screenshot of WorldShare Reports Show/Hide description panel button) to open the Description text field and enter a description for the variable.
    3. Select the type of variable you're creating from the Qualification drop-down list.
      • Dimension (default)
      • Misura
      • Detail - If selected, click the Display list of dimensions button (Screenshot of WorldShare Reports Display list of dimensions button), select an associated dimension from the Objects and Variables dialog, and click OK.
    4. Enter the formula for the variable in the Formula pane by double-clicking objects in the following panes.

       Note: When available, single-click an object, function, or operator value to view its definition beneath the Formula pane.

      • Oggetti
      • Functions
      • Operators - You can choose from the list of available values to insert values for a particular report object into the variable formula. After you have added a report object from the Objects pane:
        1. Click the Show operators list button (Screenshot of WorldShare Reports Show operators list button).
        2. Double-click an operator in the Operators pane to add it to the formula.
    5. Click the Validate formula button (Screenshot of WorldShare Reports Validate formula button) to validate your formula.
      • If your formula fails validation, you will receive a warning message about your error(s).
        1. Click OK to close the warning message dialog.
        2. Edit your existing formula or click the Cancel formula button (Screenshot of WorldShare Reports Cancel formula button) to start over.
  4. Click OK to save your variable.

Cancellare una variabile del report

È possibile eliminare le variabili dai report standard o personalizzati.

  1. Click Reading in the upper-right corner of the open report to switch the report display to Design mode.
  2. Click Dimensions in the Document dictionary pane of the Main side panel to collapse the accordion.
  3. Select the variable you want to delete from the Variables accordion.
  4. Click the More options button (Screenshot of WorldShare Reports More options button) and select Delete from the pop-up menu. The Warning dialog opens.
  5. Click OK in the Warning dialog. The variable is automatically deleted.

Modifica di una variabile del report

È possibile modificare le variabili dei report standard o personalizzati.

  1. Click Reading in the upper-right corner of the open report to switch the report display to Design mode.
  2. Click Dimensions in the Document dictionary pane of the Main side panel to collapse the accordion.
  3. Select the variable you want to edit from the Variables accordion.
  4. Click the More options button (Screenshot of WorldShare Reports More options button) and select Edit from the pop-up menu.
  5. Edit the variable as desired.
  6. Click OK to save your changes.