Hide Table of Contents

Report Query Arguments

Arguments in report queries control how the query runs against the database. They can specify variables that are used in the SQL query and how values are returned to the SQL query, or cause the user to be prompted for input when the query is run.

Each argument has the following components:

type name[count] [instruction]

Predefined argument types

The first column in the result table displays the argument type. The following types are predefined:
FileID DocumentID of selected file
UserID UserID of selected user
ProjectID ProjectID of selected folder
String String
GroupID GroupID of selected group
StatusID StatusID of selected workflow state

Rules for argument definition

  • The name cannot contain spaces.
  • The count can be either a hard coded count or the characters N, S, or M.
    N Signifies a variable count where the user is prompted to enter values.
    S
    • If the argument type is FileID, the argument is fetched from the selection list.

      Files are added to the selected files window.

    • If the argument type is UserID, the ID of the currently logged on user is retrieved.

    One table is displayed for each file.

    M If the argument type is FileID, the argument is fetched from the selection list.

    All files are put in an array, and the result is displayed in one table.



Provide feedback on this topic

SOLIDWORKS welcomes your feedback concerning the presentation, accuracy, and thoroughness of the documentation. Use the form below to send your comments and suggestions about this topic directly to our documentation team. The documentation team cannot answer technical support questions. Click here for information about technical support.

* Required

 
*Email:  
Subject:   Feedback on Help Topics
Page:   Report Query Arguments
*Comment:  
*   I acknowledge I have read and I hereby accept the privacy policy under which my Personal Data will be used by Dassault Systèmes

Print Topic

Select the scope of content to print:

x

We have detected you are using a browser version older than Internet Explorer 7. For optimized display, we suggest upgrading your browser to Internet Explorer 7 or newer.

 Never show this message again
x

Web Help Content Version: SOLIDWORKS PDM 2014 SP05

To disable Web help from within SOLIDWORKS and use local help instead, click Help > Use SOLIDWORKS Web Help.

To report problems encountered with the Web help interface and search, contact your local support representative. To provide feedback on individual help topics, use the “Feedback on this topic” link on the individual topic page.