CALLILOG

Contents


Callocx allows the display of the orders on the Gantt chart using ILOG components, from the Adonix language, in the capacity planning function.

 

Prerequisites

In Adonix X3, the Capacity Planning / Optimization function is run on the client workstation from all specific files defined below.

Directly under the directory containing the client workstation: X3Ilog.DLL file, which contains all Capacity Planning / Optimization functions

Directly under the directory containing the client workstation: X3Ilog.ini file, which contains the user's parameters, e.g., the set of personalized colors for all graphic representations

In the sub-directory, LAN of the directory containing the Adonix X3 client: The files, X3OptFra.dbm, X3OptPor.dbm, X3OptIta.dbm, X3OptSPA.dbm, and X3OptENG.dbm, which contain all text required in the function in the various languages managed by the ERP as a standard. This text is parameterized and translated via the APLSTD file, chapter 9150, and generated with the installation on client workstations in the X3OptFra.dbm files.

Five data files are created in CSV format when you run the Adonix X3 Capacity Planning / Optimization function:  Optlnk.csv/ Optmfg.csv / Optope.csv / Optpar.csv / Optwst.csv.  They are stored in the directory that contains the ADONIX X3 client, X3Client\Rts\Temp.

 

Syntax

   Callilog retour="" with param_list

 

Parameters

Element

Description

Restrictions

return

Return of information in the form a character string table

param_list

param_id list separated by the comma (,).

The expressions must be alphanumeric and are limited to 240.

 

Examples

#--- Creation of the Gantt
Local Char RETOUR(255)
Local Char CODE, GANTTNBR, SCALENBR
Callilog RETOUR="" With "IAction=" +chr$(1)+ "1"


#--- Retrieval of the Gantt identification
CODE = left$(RETOUR,3)
If (CODE = "001"): GANTTNBR = mid$(RETOUR, 9, 1): Endif
If (CODE = "990"): Gosub PROCESS_ERR: End: Endif

#--- Activation of the Gantt
Callilog RETOUR="" With "INumber="+chr$(1)+GANTTNBR, "IAction="+chr$(1)+"2"
If (CODE = "990"): Gosub PROCESS_ERR: End: Endif

 

Description and Comments

Callocx allows the display of the orders on the Gantt chart using ILOG components, from the Adonix language, in the capacity planning function.

 

Parameters

The parameters are passed in the following format:

Parameter = Index + Value

·         Value: must be alphanumeric and limited to 240.

·         Index: Value is preceeded by an index on a character that allows you to group all of the values for a given parameter and therefore exceed the limit of 240 characters for this parameter.

The following parameters should be assigned for the call of the ILOG components:

Parameter

Description

Value

IAction

Executes an action for the component instance.

"1" : Creates the GANTT component
"2": Activates the GANTT component
"3": Closes the GANTT component
"6": Creates the BALANCE component
"7": Activates the BALANCE component
"8": Closes the BALANCE component

INumber

Identifies a component instance.
This number is returned by X3 with the creation of the instance.
Next, it must be passed for any action on this same instance.

on one character

 

Return Format of an Event

The return message is created in the following way:

code=chr$(x)formatFvalue

The code: Application Message Code

·         001 = Retrieval of the Gantt identification

·         011 = Tunnel

·         014 = Backup Notification of the Results

·         015 = Launch Request of the On-line Help

·         990 = Error

·         999 = Exit

chr$(x): In the same way that you cannot send a message of over 240 bytes, you must send as many sub-messages as necessary. chr$(x) then allows you to identify a sub-occurence of the complete message. x has one of the following values: 1, 2, 3, etc.

Format: Description of the format of the value data field. A format is made up of two characters:

·         Data Type: N for Numeric; X for Alphanumeric

·         Length of the Parameter (ASCII value)

F: Constant used as a separator between the format and value

Value: Value of all parameters defined in the format

For example:

For the tunnel to the FCY01010001 work order, we have two parameters: The MFG OBJect code and WO number FCY01010001

011=1X3X11FMFGFCY01010001

 

Remarks

For more information on Capacity Planning, you may consult this function's on-line help.

Associated Errors

Error

Description

 

 

 

Associated Keywords


CONTENTS


Copyright © Sage 1999 - 2007