POST

This sends a Print request to the Common service.

This command does not print the document directly. Beas Common Service must be active.

 

WEB Service

if StationId, LocationId, ProgramId, AppId or PersnnellId are not defined, the system will use the current information (for example from current web session)

If AppId is defined, the system takes the print information defined in app settings and overwrites all own definitions.

 

Note: if you want to print from the backend, then don't use this PrintService, because this is only a service to send the command over CommonService.

 

// Print document over BeasCommon Service
post PrintService
{
"Title" : "Workorder",
 "PrintType" : "Crystal",
 "ReportName":"workorder.rpt",

 "AppId":"", // overwrite app id
 "Parameter":{"Auftrags-Nr:":6002142,"belpos_id_von":10,"belpos_id_bis":10 } 
}
// Get current Status
get PrintRequest?$select=PrintRequest,Title&$filter=SessionId eq CurrentSessoinId

 

beasscript-logo-small

Note:  The system uses the BeasCommon system. The Server, on which BeasCommon service is running (not the client) will print the document.

instance bsl b
b.post=PrintService={&
"Title":"WorkOrder",&
"PrintType":"Crystal",&
"ReportName":"workorder.rpt",&
"Parameter":{"Auftrags-Nr:":6002142,"belpos_id_von":10,"belpos_id_bis":10 } 

}

 

hmtoggle_plus1Additional Properties of Parameter "Property"