Framework:MakroExecutor: Difference between revisions
No edit summary |
No edit summary |
||
| Line 21: | Line 21: | ||
<font color="#0000ff"></</font><font color="#a31545">ClientConfig</font><font color="#0000ff">></font> | <font color="#0000ff"></</font><font color="#a31545">ClientConfig</font><font color="#0000ff">></font> | ||
At server insert the name or the IP of the Computer, on which CoPlanner Server was installed. Insert the portnumber of CoPlanner Server. MaxRows isn't necessary. | |||
== | ==Run== | ||
In this example the CoPlanner server is installed at "C:\Programms\CoPlanner". You will find the MakroExecutor in the folder CoPlanner\Server\Tools. the name of the MakroExecutor is CopMakro. | |||
In unserem Beispiel nehmen wir an der der CoPlanner im Programm – Verzeichnis des Systemlaufwerks liegt. Dh. der Pfad dorthin lautet C:\Programme\CoPlanner. Bei CoPlanner Server Installationen finden Sie den MakroExecutor im Verzeichnis Tools. The name of the macro, which we want to run is "MyCopMakro". So insert in the command prompt following command: | |||
C:\Programme\CoPlanner\Tools\MakroExecutor\CopMakro.exe Makroname=MyCopMakro | C:\Programme\CoPlanner\Tools\MakroExecutor\CopMakro.exe Makroname=MyCopMakro | ||
Revision as of 17:24, 8 February 2011
Description
The MakroEcecutor allows to execute CoPlanner macros without an open CoPlanner client. You start the macro in the command prompt.
Establish the connection
There exists a configuration file with the name "ClientConfig.xml". You find this file in the same folder as the MakroExecutor.
<?xml version="1.0" encoding="utf-16" standalone="yes"?>
<ClientConfig>
<IpSettings>
<Version>1</Version>
<Server>localhost</Server>
<Port>8963</Port>
<MaxRows>100000</MaxRows>
<MaxCells>0</MaxCells>
<TcpFormatter>Bin</TcpFormatter>
</IpSettings>
</ClientConfig>
At server insert the name or the IP of the Computer, on which CoPlanner Server was installed. Insert the portnumber of CoPlanner Server. MaxRows isn't necessary.
Run
In this example the CoPlanner server is installed at "C:\Programms\CoPlanner". You will find the MakroExecutor in the folder CoPlanner\Server\Tools. the name of the MakroExecutor is CopMakro.
In unserem Beispiel nehmen wir an der der CoPlanner im Programm – Verzeichnis des Systemlaufwerks liegt. Dh. der Pfad dorthin lautet C:\Programme\CoPlanner. Bei CoPlanner Server Installationen finden Sie den MakroExecutor im Verzeichnis Tools. The name of the macro, which we want to run is "MyCopMakro". So insert in the command prompt following command:
C:\Programme\CoPlanner\Tools\MakroExecutor\CopMakro.exe Makroname=MyCopMakro
| Hinweis Der Aufruftext ist casesensitive. Das bedeutet, dass die Groß-/Kleinschreibung des Makronamens ausschlaggebend ist. |
Nach dem Bestätigen des Befehls wird eine Verbindung hin zum CoPlanner Server aufgebaut und das Makro wird ausgeführt. Ist in dem Makro eine Importprozedur enthalten oder Aufgaben, die einen bestimmten Plan betreffen gibt es die Möglichkeit, Benutzer, Plan und Unternehmen dem MakroExecutor mitzuteilen und sich dadurch mit einem bestimmten Benutzer, an ein Unternehmen und an einen gewünschten Plan anzumelden. Die ist durch die Datei SessionSetting.xml möglich.
<?xml version="1.0" encoding="utf-16" standalone="yes"?> <SessionSetting> <Version>1</Version> <User>Administrator</User> <Password>pwd</Password> <Entity>Bike GmbH</Entity> <Plan>Plan Bike GmbH</Plan> </SessionSetting>
Tragen Sie bei User den gewünschten Benutzer und bei Password das zugehörige Passwort ein. Entity steht für Unternehmen und bei Plan tragen Sie den Plan ein, an den Sie sich anmelden möchten.
| Hinweis Keiner der obigen Einträge darf Sonderzeichen enthalten, also z.B. auch keine Umlaute! |