Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 9.2   9.3   9.4   9.5   10.0   10.1   10.2   10.3   10.4   10.5    Statistic    FMM    Blog  

CUPS.GetJobsAsJSON

Queries some jobs and returns JSON Array.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
CUPS 10.5 Yes No Yes, macOS only No No
MBS( "CUPS.GetJobsAsJSON" { ; Name; OnlyMyJobs; whichJobs } )   More

Parameters

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

Result

Returns JSON array or error.

Description

Queries some jobs and returns JSON Array.

Examples

Find all jobs:

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

See also

Release notes

  • Version 10.5
    • Added CUPS.GetPrintersAsJSON and CUPS.GetJobsAsJSON functions.

Created 5th October 2020, last changed 5th October 2020


CUPS.GetJobUser   -   CUPS.GetJobsCount

Feedback: Report problem or ask question.




Links
MBS Xojo Plugins