Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   Crossplatform   Server (Not)   Client   Components   Old   Guides
New in version: 4.0   4.1   4.2   4.3   4.4   5.0   5.1   5.2   5.3   5.4   6.0   6.1   6.2   6.3   6.4   6.5   7.0   7.1    Statistic  

CUPS.GetJobsCount

Selects some jobs and returns the count of jobs found.

Component: CUPS
Version: 2.5
Mac OS X: Yes
Windows: No
Server: Yes
FileMaker Cloud: No

MBS( "CUPS.GetJobsCount" { ; Name; OnlyMyJobs; whichJobs } )

Parameters

Parameter Description Example value
Name Optional
Name of the printer queue to query. If no name or empty string is specified, we get all queues.
"Brother_DCP_8085DN"
OnlyMyJobs Optional
Pass either "my" for your users jobs or "all" for all jobs.
"all"
whichJobs Optional
Pass "active" to get only active jobs, "all" for all jobs or "complete" for completed jobs.
"complete"

Result

The number of jobs found.

Description

Selects some jobs and returns the count of jobs found.
First call this function to build job list. Than call other GetJob* functions to query values.

With indexes from 0 to count-1, you can call the other functions CUPS.GetJobState, CUPS.GetJobCompletionTime, CUPS.GetJobCreationTime, CUPS.GetJobProcessingTime, CUPS.GetJobPrinter, CUPS.GetJobID, CUPS.GetJobTitle, CUPS.GetJobPriority, CUPS.GetJobFormat, CUPS.GetJobSize and CUPS.GetJobUser.

Examples

Query all jobs:

MBS( "CUPS.GetJobsCount"; ""; "all"; "all"" )

See also


CUPS.GetJobUser   -   CUPS.GetPrinterCount

Feedback: Report problem or ask question.




Links
MBS Real Studio PDF Plugins - Nachhilfe in Andernach