Guide Progiciel GOLD
Guide Progiciel GOLD
TS200
20090608
1 I1©I Aldata
© Aldata Solution
Solution 2009
2009 I Confidentiality
I Confidentiality Level
Level – Internal
– Internal Only
Only Aldata Training
Group Introduction
Trainee Name
Trainer Name,
Role, Experience,
etc.
Knowledge
JAVA SQL
PRO*C PL-SQL
Software
ADER (mandatory)
Eclipse (recommended)
Required Material
1 General Overview
3 G.O.L.D. Screens
3 G.O.L.D. Screens
Once set up, G.O.L.D. Stock offers a warehouse the following contributions:
1. optimization of special handlings
2. management of merchandise flows
3. check of the storage level
4. safety activities of the warehouse
5. observance of FIFO rules
Definition :
– G.O.L.D. can be interfaced with third party systems from which it can
receive data and to which it can send data.
– 2 types of interfaces can be defined:
– Integration interfaces (or inbound)
– XML-based export interfaces (or outbound)
3 G.O.L.D. Screens
ADER :
– is a small application developed by the Aldata R&D team
– is used to design Java screens quickly using the ALDATA Graphical Framework.
– ADER translates your screen into Java Code
Report Designer :
– is a small application developed by the Aldata R&D team
– is a 100% Java (Swing) tool used to design reports according to a preset format
– Eclipse
1 General Overview
3 G.O.L.D. Screens
– The G.O.L.D. clients are java-based applications used to access the screens from a
PC with a simple browser. For instance
– G.O.L.D. central/shop client : eRetail
– G.O.L.D. Stock client : eStock
– The G.O.L.D. application server GAIA handles the communication between the
G.O.L.D. clients and the database server and hosts most of the processing.
– The Oracle database server stores the data and part of the application logic
PRO*C Batch
Client tier: data display, user events and controls of user interface. Java. Aldata
graphical library.
Middleware tier: encapsulates the applicative logic and makes it available to the client.
Application framework. Communication.
Data tier: responsible for the data storage and management. Oracle.
G.O.L.D. Central
PO
G.O.L.D.
G.O.L.D. Prod server
G.O.L.D. Shops 301-600
:8081 Datasource database server
Central/shop
GAIA
:8082
WH1
WH2
testers
1 General Overview
3 G.O.L.D. Screens
Server side
Client side
Report templates
\script
1 General Overview
3 G.O.L.D. Screens
Rules :
a
– A margin of 1 is set between the panels and the edges of the screen
b
– Between two panels, leave a margin of 2 (by default) or 1 (if lack of space).
c
– A minimum margin of 3 must be set between the panels and the edge of the lower
screen, to display the menu icon.
Rules :
– Adjust the size of the screen according to its content.
– By default: centre.
Standard Panel
Modifiable Panel
Text Fields :
– Height : 2 units.
– Plan enough space between the description and the field for the translation and for
the query symbol
– Size of a screen field = Number of characters to be displayed + 1
– Exception: long descriptions (i.e. 40-character article description must be
inserted in a zone of 35)
– Code-description fields, must be side by side with a one-unit space
– For values in specific units, specify the unit.
code description
Buttons :
– Size of Panel : 4 units
– Height : 2 units
Checkboxes :
– Check box must be on the right of the description
Descriptions :
– Only the first word of the description has a capital letter.
– No accent in descriptions.
– Possibility to use : - / ’ ( )
OISJEntete
OISJScreen
OISJTabbedPane
OISJPanel
OISJPanel
OISJLabel
OISField
OISJTable
OISJButton
TS200_GOLDStockDevelopment_Exercises - 1
– Log into G.O.L.D.
TS200_GOLDStockDevelopment_Exercises - 2
– Add new column in the table
– (Add query field)
1 General Overview
3 G.O.L.D. Screens
Yes
package ?
Modify standard G.O.L.D.
Screen
No
Yes
deployment
Modify eStock Create menu entry in G.O.L.D. Admin Test Create Patch
A few guidelines :
– Except for very particular cases, there must be no direct call to swing components
(JAVA basic graphic class).
Add Components
4
Restart GAIA Place .JAR in GAIA Compilation Modify Build.xml
Export to JAVA
6
Available components
By default, the SCREEN object is shown. It is the root panel, where all other objects will be
placed.
Lael (OISJLabel)
Business Object
Tree (OISJTree)
Table (OISJTable)
Button (OISJButton)
interface
interface
Listener interface
interface
Link to a file with JAVA import list that should be included in the class
object.
1
Select the container component
To create a query field, enter here the query label (used in the SQL request)
Mandatory field
Text on Button
clic
1
and delete
Tip ! Use image to get screen validated before you export and start coding !
Save project as .ADER before exporting so you can modify your screen if necessary.
TS200_GOLDStockDevelopment_Exercises – 3
1. Launch Ader
2. Set project properties
3. Add Container Components
4. Add Components
5. Create an image
6. Export to JAVA
Yes
package ?
Modify standard G.O.L.D.
Screen
No
Yes
Modify eStock Create menu entry in G.O.L.D. Admin Test Create Patch
– Service call
Server
Yes
package ?
Modify standard G.O.L.D.
Screen
No
Yes
Modify eStock Create menu entry in G.O.L.D. Admin Test Create Patch
Structure of build.xml
1. Variables
2. Class Path
Structure of build.xml
3. Build Client
4. Sign JAR
Client Side
Server Side
Note :
Yes
package ?
Modify standard G.O.L.D.
Screen
No
Yes
Modify eStock Create menu entry in G.O.L.D. Admin Test Create Patch
Connect to an Unix
Yes
package ?
Modify standard G.O.L.D.
Screen
No
Yes
Modify eStock Create menu entry in G.O.L.D. Admin Test Create Patch
Client Side :
– $GOLD_HOME\gaia\deploy\DEFAULT\web\estock
Server Side
– $GOLD_HOME\gaia\deploy\DEFAULT\resource\estock\lib
Yes
package ?
Modify standard G.O.L.D.
Screen
No
Yes
Modify eStock Create menu entry in G.O.L.D. Admin Test Create Patch
Yes
package ?
Modify standard G.O.L.D.
Screen
No
Yes
Modify eStock Create menu entry in G.O.L.D. Admin Test Create Patch
Yes
package ?
Modify standard G.O.L.D.
Screen
No
Yes
Modify eStock Create menu entry in G.O.L.D. Admin Test Create Patch
Yes
package ?
Modify standard G.O.L.D.
Screen
No
Yes
Modify eStock Create menu entry in G.O.L.D. Admin Test Create Patch
Yes
package ?
Modify standard G.O.L.D.
Screen
No
Yes
Modify eStock Create menu entry in G.O.L.D. Admin Test Create Patch
According to what we have just seen, if you create a new screen for your
client, what will you put in the patch ?
– Hint : 3 files are mandatory
1. ______________________________
2. ______________________________
3. ______________________________
1 General Overview
3 G.O.L.D. Screens
Code Program
Executable
New Program ?
Yes
No
Data Extraction
Myreport-data.xml
Myreport.xml
XML-FO
Myreport-custom.xml
FOP
PDF REPORT
A model set is composed of several objects : each object is child a parent node.
The characteristics of each object are set as attributes.
Example :
<Modeles>
<Modele Name=“Title" … />
<Modele Name="Logo" … />
<Modele Name=“Head-line" … />
<Modele Name="CustomerTable" … />
<Modele Name="Subtotal" … />
</Modeles>
Each model file contains the definition of several templates corresponding to a given
report.
There are two template types:
– the simple template, which can be of several types (line, table …),
– the container, which will contain several simple templates.
The position of each template is defined in the 3 different parts of the document.
– "Header": header of the document,
– "Footer": footer, bottom of each page.
– "Body": rest of the document
Report Designer is a reporting tool 100% Java (Swing) use to publish reports into preset
formats (PDF, HTML, TXT).
– Model :
– to print the publishing model set (myreport.xml)
– Custom:
– to alter objects of the model set (myreport-custom.xml)
– Data:
– to manage the publishing data (myreport-data.xml)
Required Reading :
– Construction of the publishing model sets
– Use and compilation of Genrpt
Code Program
Executable
Generate report
5
Note :
objects located in the Header or Footer part will only be displayed once on the XML
data document and the data in the header and footer never changes in the
document.
(myreport.xml)
This object must absolutely be present in the model and set up first.
It specifies the report environment.
Description number.
In % of the page
dictionary
(0 for PDF)
language code for searching in the dictionary
HH12
model set.
spaces)
body, footer)
i.e. 172,223,1696,460
Note:
• by default, columns are left aligned.
• only specifies the alignment of values in columns (no impact on
Font size for characters. Possible values: 1, 2, 3, 4…11 (from the smallest to the largest font).
– “gray” + “grid”
– Nothing
– “box”
– “box” attribute is only valid for a table with one column.
– “box” attribute is not compatible with “gray” and “grid” attribute
• a description number
• or the ' v ' character to indicate the presence of a variable in the XML data file.
Nothing or “gray”
Content of table
Example :
Creating the data.xml file now will be useful for tests or previews.
Pick Format
Modele Name=“title”
Modele Name=“Logo”
Modele Name=“head-line”
Modele Name=“CustomerTable”
Modele Name=“Subtotal”
Code Program
Executable
New Program ?
Yes
No
Code Program
Executable
Generate report
5
5.Report Designer
– 1.1. Set preferences
– 1.2. Open existing report
– 1.3. Create data file
– 1.4. Generate report
Code Program
Executable
New Program ?
Yes
No
In the program is implemented logic for report, report XML data generation
Pro*C program use standard functions of the different GOLD libraries
– InitModele (templateName)
InitModeleWithAttributes(templateName,Attrib,nbAttrib)
Attrib[]={"Label","3,toto,1,tutu"," UpLabel","1,up1,2,up2"};
It is very important that the call order in the data XML file starts with the HEADER data
then the FOOTER data, and finally the data to be displayed in the BODY.
1. Report designer
Code Program
Executable
New Program ?
Yes
No
Code Program
Executable
New Program ?
Yes
No
The compilation,
though one
command is
used, two
compiles are
done :
Oracle Proc
CC compilator
Code Program
Executable
New Program ?
Yes
No
Program/Batch
– $BIN ($GOLD_HOME\bin)
1. Customize report
2. Alter source code
3. Modify makefile
4. Compile
5. Deploy and test
Code Program
Executable
New Program ?
Yes
No
TS200_GOLDStockDevelopment_Exercises - 10
If you create a new screen + report for your client, what will you put in the
patch ?
– (5 files are mandatory)
1. ______________________________
2. ______________________________
3. ______________________________
4. ______________________________
5. ______________________________
You could also need to add the makefile and prXXX.o files in order to re-link
with specific Oracle version on your client’s server
A.D.E.R. 2.0
– Ref. GB-GSP-505-EXP-ADER-240-1
Reporting engine
– Ref. GB-GSP-505-EXP-MOREP-242-1