The Microsiga Protheus line allows all routines listed in the Menu to be run without going through the user menu.
This operation can be performed in two different ways:
- Via SmartClient
- Via SmartClientHTML
- Numeric code of the Microsiga Protheus module
- Name of the menu Routine that will be called
Calling a routine through the command line - TOTVS | SmartClient
When started, TOTVS | SmartClient displays the initial parameters screen, for Environment, Connection and Initial APO identification. However, such information can be provided through the command line of the access icon to TOTVS | SmartClient.
Through this TOTVS | SmartClient feature we can create a shortcut to a specific product routine, as shown below:
Smartclient.exe -m -p=sigabpm -e=environment -c=tcp -a=5 -a=mata010
In the example above, two parameters are provided for the initial program: the first parameter is the module code and the second parameter is the routine name. In addition to the other parameters of the command line of TOTVS | SmartClient
Calling a routine through TOTVS | SmartClientHTML
When started, TOTVS | SmartClientHTML displays the initial parameters screen, for Environment, Connection and Initial APO identification. However, such information can be provided through the Browser address bar accessing TOTVS | SmartClientHTML.
Through this feature of TOTVS | SmartClientHTML, we can create a shortcut to a specific product routine, as shown below:
http://localhost:8081/?auto=true&StartProg=SIGABPM&Comm=TCP&Env=Environment&p0=5&p1=mata 010
In the example above, two parameters are provided for the initial program: the first parameter is the module code (p0) and the second parameter(p1) is the routine name. In addition to the other parameters of the command line of TOTVS | SmartClientHTML