Data can be displayed in a grid format in Sage ERP X3 by adding a Table Block type to a screen. Using the Graph representation in a screen, this data can easily be displayed in a graph by creating graphs in Sage ERP X3 screens. Below are the steps for creating a Graph from table data on an Sage ERP X3 screen.
Default display – when this value is set to "Graph", the initial display will be the graph. This can also be set to "Table" to make the table grid the initial display.
Default graphic – select the default graph type to display.
Note: To change the Graphical Parameter values once they are saved, right-click on "Char or Graph" in the grid, and select "Graphical Parameters".
Populate the table with the data. The code below shows a simple example to load the invoice summary to the grid by Customer.
#######################################################################
## Populate Asset Utlization and History Details
#######################################################################
$ACTION
Case ACTION
When "LIENS" : Gosub LIENS
When Default
Endcase
Return########################################################
## After Load
########################################################
$LIENS# Load Invoice Sales Summary
Gosub LOADSALESReturn
########################################################
## Load Invoice Sales Summary from SINVOICE
########################################################
$LOADSALESLocal Integer NOL : NOL = 0
Local Char CUSTNO : CUSTNO = ""
Local Char CUSTNAM : CUSTNAM = ""
Local Decimal SALES : SALES = 0
Local Integer COUNT : COUNT = 0For [SIH]SIH1 Where CPY = [M:ZCS0]CPY
If [F:SIH]BPR CUSTNO
If CUSTNO ""
[M:ZCS1]BPR(NOL) = CUSTNO
[M:ZCS1]BPRNAM(NOL) = CUSTNAM
[M:ZCS1]AMTATI(NOL) = SALES
[M:ZCS1]NBRINV(NOL) = COUNT
NOL = NOL + 1
Endif
CUSTNO = [F:SIH]BPR
CUSTNAM = [F:SIH]BPRNAM
SALES = 0
COUNT = 0
EndifSALES += [F:SIH]AMTATI / 1000
COUNT += 1Next
If CUSTNO ""
[M:ZCS1]BPR(NOL) = CUSTNO
[M:ZCS1]BPRNAM(NOL) = CUSTNAM
[M:ZCS1]AMTATI(NOL) = SALES
NOL = NOL + 1
Endif[M:ZCS1]NBLIG = NOL
Affzo [M:ZCS1]1-99Return
Create a window and function to display the new screens. The results appear below.
By clicking the "dial" at the top of the page, the grid type can be changed.
Click the small grid icon at the upper left corner, to toggle between graph and table view.
If the presentation type in the screen is changed to "Char and Graph", both the chart and the graph will appear at the same time, as shown below. The position of the graph can be set to appear to the right, left, above or below.
Contact us if you want to learn more about these features.
[jbutton color="green" size="medium" link="http://www.rklesolutions.com/contact-us/"]Contact RKL eSolutions >>>[/jbutton]