SlideShare a Scribd company logo
1 of 19
Download to read offline
Graphical RPG Framework for IBM i 
SilverDev Tutorial 
How to Build a Graph in IBM i Applications?
SilverDev – Tutorial – Build a Graph 
Experia Europe – All Rights Reserved -- 2/ 19 
Steps: 
1. Build a new program ...................................................................................... 3 
2. Screen preparation ......................................................................................... 6 
3. Graphs types ................................................................................................... 9 
4. Data insertion ............................................................................................... 11 
5. Compilation .................................................................................................. 14 
6. CLP Creation ................................................................................................. 15 
7. 1st deployment ............................................................................................ 17 
8. Result ............................................................................................................ 18
SilverDev – Tutorial – Build a Graph 
Experia Europe – All Rights Reserved -- 3/ 19 
1. Build a new program 
Launch SilverDev Designer and select a context from the menu Tools > Context.
SilverDev – Tutorial – Build a Graph 
Experia Europe – All Rights Reserved -- 4/ 19 
Use the « + » icon to create your new program, 
in the Context tab 
This program will contain SQL : 
Select SVDSQLRPG type
SilverDev – Tutorial – Build a Graph 
Experia Europe – All Rights Reserved -- 5/ 19 
Your program appears on the Context tab list 
Double-click it to open it
SilverDev – Tutorial – Build a Graph 
Experia Europe – All Rights Reserved -- 6/ 19 
2. Screen preparation 
Put first a panel on the top of the screen: 
On the Components tab, click on the CPanel icon and place it on the screen with another click. 
To adapt it to the screen width, use the Align property on the Inspector tab: alTop value.
SilverDev – Tutorial – Build a Graph 
Experia Europe – All Rights Reserved -- 7/ 19 
Add a button to load data. 
Use CButton Component, place it on the screen and name it ‘Load’ with its Caption property.
SilverDev – Tutorial – Build a Graph 
Experia Europe – All Rights Reserved -- 8/ 19 
Now prepare the graph display area: 
Use a CChart Component and select alClient value on the Align property
SilverDev – Tutorial – Build a Graph 
Experia Europe – All Rights Reserved -- 9/ 19 
3. Graphs types 
Double click on the graph area 
This pop-up appears. 
Click the New icon, at the top left, to insert new series. 
You can choose your graph type on this dialog box. 
We select the pie one.
SilverDev – Tutorial – Build a Graph 
Experia Europe – All Rights Reserved -- 10/ 19 
The form is ready to receive data. 
Be careful: This screen is a preview. It does not displays real data
SilverDev – Tutorial – Build a Graph 
Experia Europe – All Rights Reserved -- 11/ 19 
4. Data insertion 
We’ll use the Load button to load data. Select it on the form. 
On the Events tab, select and double click the OnClick event. 
The source code has been automatically updated
SilverDev – Tutorial – Build a Graph 
Experia Europe – All Rights Reserved -- 12/ 19 
We’ll use data on two tables from SilverDev demo library : 
On table contains a book list (sddmbks), the other one contains books themes (sddmthm). 
The graph will display the number of books of each theme. 
Declare your variables: 
And prepare SQL query :
SilverDev – Tutorial – Build a Graph 
Experia Europe – All Rights Reserved -- 13/ 19 
Before displaying query’s resulsts, we need to clear previous data so they don’t overlap 
Use sdSeriesClear function: 
Now you can add data with sdAddPie function 
Tip: To get more info on SilverDev functions, use F1.
SilverDev – Tutorial – Build a Graph 
Experia Europe – All Rights Reserved -- 14/ 19 
5. Compilation 
Save and compile the form 
Then Generate your program on Compiling menu
SilverDev – Tutorial – Build a Graph 
Experia Europe – All Rights Reserved -- 15/ 19 
6. CLP Creation 
To deploy the app, you need a CLP. Let’s build it on SilverDev: 
Open a new member 
Add on it your library and call your RPG program :
SilverDev – Tutorial – Build a Graph 
Experia Europe – All Rights Reserved -- 16/ 19 
Save the CLP 
And compile it.
SilverDev – Tutorial – Build a Graph 
Experia Europe – All Rights Reserved -- 17/ 19 
7. 1st deployment 
Launch MyDesk and right click where you want to make your application available. Then, choose « New application » 
Fill the dialog box with the application title, the file name and the call command. 
On next screen, select the app authorizations.
SilverDev – Tutorial – Build a Graph 
Experia Europe – All Rights Reserved -- 18/ 19 
8. Result 
You can now launch your application and click the Load button to load data:
SilverDev – Tutorial – Build a Graph 
Experia Europe – All Rights Reserved -- 19/ 19 
More info on www.silverdev.com 
EXPERIA Europe 
4, rue L.Beridot 
Les jardins d'Epione 
38500 VOIRON - FRANCE 
www.experia.com 
info@experia.com

More Related Content

Viewers also liked (8)

Matchtech Group Plc Group Overview
Matchtech Group Plc Group OverviewMatchtech Group Plc Group Overview
Matchtech Group Plc Group Overview
 
Elemense Overview
Elemense OverviewElemense Overview
Elemense Overview
 
Certification Gl
Certification   GlCertification   Gl
Certification Gl
 
Certification Dnv
Certification   DnvCertification   Dnv
Certification Dnv
 
Certification Ccs
Certification   CcsCertification   Ccs
Certification Ccs
 
Certification Bv
Certification   BvCertification   Bv
Certification Bv
 
Certification Lr
Certification   LrCertification   Lr
Certification Lr
 
Hengtong Presentation India Market 29.11
Hengtong Presentation   India Market 29.11Hengtong Presentation   India Market 29.11
Hengtong Presentation India Market 29.11
 

Similar to [Tutorial] Build a graph in RPG with SilverDev

Line Graph Analysis using R Script for Intel Edison - IoT Foundation Data - N...
Line Graph Analysis using R Script for Intel Edison - IoT Foundation Data - N...Line Graph Analysis using R Script for Intel Edison - IoT Foundation Data - N...
Line Graph Analysis using R Script for Intel Edison - IoT Foundation Data - N...
WithTheBest
 
Stat planet - tutorial
Stat planet - tutorialStat planet - tutorial
Stat planet - tutorial
Sathya Seelan
 
P.N. 4219640_inDex User's Manual
P.N. 4219640_inDex User's ManualP.N. 4219640_inDex User's Manual
P.N. 4219640_inDex User's Manual
David Wise
 
Mapping%20Skills%20Tutorial
Mapping%20Skills%20TutorialMapping%20Skills%20Tutorial
Mapping%20Skills%20Tutorial
tutorialsruby
 
Mapping%20Skills%20Tutorial
Mapping%20Skills%20TutorialMapping%20Skills%20Tutorial
Mapping%20Skills%20Tutorial
tutorialsruby
 

Similar to [Tutorial] Build a graph in RPG with SilverDev (20)

Analytics with Power BI and R
Analytics with Power BI and RAnalytics with Power BI and R
Analytics with Power BI and R
 
Advance Computer Architecture
Advance Computer ArchitectureAdvance Computer Architecture
Advance Computer Architecture
 
Build your first android mobile app
Build your first android mobile appBuild your first android mobile app
Build your first android mobile app
 
Android Programing Course Material Labs
Android Programing Course Material LabsAndroid Programing Course Material Labs
Android Programing Course Material Labs
 
Line Graph Analysis using R Script for Intel Edison - IoT Foundation Data - N...
Line Graph Analysis using R Script for Intel Edison - IoT Foundation Data - N...Line Graph Analysis using R Script for Intel Edison - IoT Foundation Data - N...
Line Graph Analysis using R Script for Intel Edison - IoT Foundation Data - N...
 
Stat planet - tutorial
Stat planet - tutorialStat planet - tutorial
Stat planet - tutorial
 
EC6612 VLSI Design Lab Manual
EC6612 VLSI Design Lab ManualEC6612 VLSI Design Lab Manual
EC6612 VLSI Design Lab Manual
 
Android Training Ahmedabad , Android Project Training Ahmedabad, Android Live...
Android Training Ahmedabad , Android Project Training Ahmedabad, Android Live...Android Training Ahmedabad , Android Project Training Ahmedabad, Android Live...
Android Training Ahmedabad , Android Project Training Ahmedabad, Android Live...
 
P.N. 4219640_inDex User's Manual
P.N. 4219640_inDex User's ManualP.N. 4219640_inDex User's Manual
P.N. 4219640_inDex User's Manual
 
AT&T Hack Dallas Node-RED Tutorial
AT&T Hack Dallas Node-RED TutorialAT&T Hack Dallas Node-RED Tutorial
AT&T Hack Dallas Node-RED Tutorial
 
APPIUM
APPIUMAPPIUM
APPIUM
 
Devry cis-170-c-i lab-1-of-7-getting-started
Devry cis-170-c-i lab-1-of-7-getting-startedDevry cis-170-c-i lab-1-of-7-getting-started
Devry cis-170-c-i lab-1-of-7-getting-started
 
Devry cis-170-c-i lab-1-of-7-getting-started
Devry cis-170-c-i lab-1-of-7-getting-startedDevry cis-170-c-i lab-1-of-7-getting-started
Devry cis-170-c-i lab-1-of-7-getting-started
 
Innovyze Infonet Manual
Innovyze Infonet ManualInnovyze Infonet Manual
Innovyze Infonet Manual
 
Mapping%20Skills%20Tutorial
Mapping%20Skills%20TutorialMapping%20Skills%20Tutorial
Mapping%20Skills%20Tutorial
 
Mapping%20Skills%20Tutorial
Mapping%20Skills%20TutorialMapping%20Skills%20Tutorial
Mapping%20Skills%20Tutorial
 
DSA Lesson 2 - Algorithm and Flowcharting.pdf
DSA Lesson 2 - Algorithm and Flowcharting.pdfDSA Lesson 2 - Algorithm and Flowcharting.pdf
DSA Lesson 2 - Algorithm and Flowcharting.pdf
 
A d swincc15e
A d swincc15eA d swincc15e
A d swincc15e
 
Tutorial20
Tutorial20Tutorial20
Tutorial20
 
PVS-Studio and Continuous Integration: TeamCity. Analysis of the Open RollerC...
PVS-Studio and Continuous Integration: TeamCity. Analysis of the Open RollerC...PVS-Studio and Continuous Integration: TeamCity. Analysis of the Open RollerC...
PVS-Studio and Continuous Integration: TeamCity. Analysis of the Open RollerC...
 

More from SilverDev by Experia

More from SilverDev by Experia (14)

[Tutoriel] Créez un graph en RPG avec SilverDev
[Tutoriel] Créez un graph en RPG avec SilverDev[Tutoriel] Créez un graph en RPG avec SilverDev
[Tutoriel] Créez un graph en RPG avec SilverDev
 
[Tutorial] Crear gráficos en RPG con SilverDev
[Tutorial] Crear gráficos en RPG con SilverDev[Tutorial] Crear gráficos en RPG con SilverDev
[Tutorial] Crear gráficos en RPG con SilverDev
 
[Tutoriel] Insérer une image dans une application IBM i avec SilverDev
[Tutoriel] Insérer une image dans une application IBM i avec SilverDev[Tutoriel] Insérer une image dans une application IBM i avec SilverDev
[Tutoriel] Insérer une image dans une application IBM i avec SilverDev
 
[Tutorial] Insertar una imagen en una aplicación IBM i con SilverDev
[Tutorial] Insertar una imagen en una aplicación IBM i con SilverDev[Tutorial] Insertar una imagen en una aplicación IBM i con SilverDev
[Tutorial] Insertar una imagen en una aplicación IBM i con SilverDev
 
[Tutoriel] SilverDev pour IBM i : Démarrage rapide
[Tutoriel] SilverDev pour IBM i : Démarrage rapide[Tutoriel] SilverDev pour IBM i : Démarrage rapide
[Tutoriel] SilverDev pour IBM i : Démarrage rapide
 
Comment simplifier et améliorer l'interfaçage IBM i / PC?
Comment simplifier et améliorer l'interfaçage IBM i / PC?Comment simplifier et améliorer l'interfaçage IBM i / PC?
Comment simplifier et améliorer l'interfaçage IBM i / PC?
 
How to simplify IBM i / PC exchanges with SilverDev?
How to simplify IBM i / PC exchanges with SilverDev?How to simplify IBM i / PC exchanges with SilverDev?
How to simplify IBM i / PC exchanges with SilverDev?
 
Témoignage Igloo Post-Mix (Orangina-Schweppes / Pepsi Cola)
Témoignage Igloo Post-Mix (Orangina-Schweppes / Pepsi Cola)Témoignage Igloo Post-Mix (Orangina-Schweppes / Pepsi Cola)
Témoignage Igloo Post-Mix (Orangina-Schweppes / Pepsi Cola)
 
SilverDev / ARCAD Skipper Interface - for Structured Graphic Developments in ...
SilverDev / ARCAD Skipper Interface - for Structured Graphic Developments in ...SilverDev / ARCAD Skipper Interface - for Structured Graphic Developments in ...
SilverDev / ARCAD Skipper Interface - for Structured Graphic Developments in ...
 
Temoignage SilverDev - Moderniser l’existant en RPG avec SilverDev
Temoignage SilverDev - Moderniser l’existant en RPG avec SilverDevTemoignage SilverDev - Moderniser l’existant en RPG avec SilverDev
Temoignage SilverDev - Moderniser l’existant en RPG avec SilverDev
 
[Tutoriel] Studio de développement RPG SilverDev Designer
[Tutoriel] Studio de développement RPG SilverDev Designer[Tutoriel] Studio de développement RPG SilverDev Designer
[Tutoriel] Studio de développement RPG SilverDev Designer
 
[Tutoriel] SilverDev Wizard - français
[Tutoriel]  SilverDev Wizard - français[Tutoriel]  SilverDev Wizard - français
[Tutoriel] SilverDev Wizard - français
 
Experia annonce la nouvelle version de SilverDev pour AS400 / IBM i
Experia annonce la nouvelle version de SilverDev pour AS400 / IBM iExperia annonce la nouvelle version de SilverDev pour AS400 / IBM i
Experia annonce la nouvelle version de SilverDev pour AS400 / IBM i
 
RPG : Développez des applications graphiques avec Silverdev
RPG : Développez des applications graphiques avec SilverdevRPG : Développez des applications graphiques avec Silverdev
RPG : Développez des applications graphiques avec Silverdev
 

Recently uploaded

%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
masabamasaba
 
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
masabamasaba
 
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
VictoriaMetrics
 
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
masabamasaba
 
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
chiefasafspells
 
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Medical / Health Care (+971588192166) Mifepristone and Misoprostol tablets 200mg
 

Recently uploaded (20)

WSO2CON 2024 - How to Run a Security Program
WSO2CON 2024 - How to Run a Security ProgramWSO2CON 2024 - How to Run a Security Program
WSO2CON 2024 - How to Run a Security Program
 
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
 
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
 
Artyushina_Guest lecture_YorkU CS May 2024.pptx
Artyushina_Guest lecture_YorkU CS May 2024.pptxArtyushina_Guest lecture_YorkU CS May 2024.pptx
Artyushina_Guest lecture_YorkU CS May 2024.pptx
 
%in Benoni+277-882-255-28 abortion pills for sale in Benoni
%in Benoni+277-882-255-28 abortion pills for sale in Benoni%in Benoni+277-882-255-28 abortion pills for sale in Benoni
%in Benoni+277-882-255-28 abortion pills for sale in Benoni
 
Architecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the pastArchitecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the past
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 
tonesoftg
tonesoftgtonesoftg
tonesoftg
 
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
 
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
 
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
 
WSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go PlatformlessWSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go Platformless
 
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open SourceWSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
 
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension AidDirect Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
 
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park %in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
 
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
 
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
 
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
 
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
 
WSO2Con204 - Hard Rock Presentation - Keynote
WSO2Con204 - Hard Rock Presentation - KeynoteWSO2Con204 - Hard Rock Presentation - Keynote
WSO2Con204 - Hard Rock Presentation - Keynote
 

[Tutorial] Build a graph in RPG with SilverDev

  • 1. Graphical RPG Framework for IBM i SilverDev Tutorial How to Build a Graph in IBM i Applications?
  • 2. SilverDev – Tutorial – Build a Graph Experia Europe – All Rights Reserved -- 2/ 19 Steps: 1. Build a new program ...................................................................................... 3 2. Screen preparation ......................................................................................... 6 3. Graphs types ................................................................................................... 9 4. Data insertion ............................................................................................... 11 5. Compilation .................................................................................................. 14 6. CLP Creation ................................................................................................. 15 7. 1st deployment ............................................................................................ 17 8. Result ............................................................................................................ 18
  • 3. SilverDev – Tutorial – Build a Graph Experia Europe – All Rights Reserved -- 3/ 19 1. Build a new program Launch SilverDev Designer and select a context from the menu Tools > Context.
  • 4. SilverDev – Tutorial – Build a Graph Experia Europe – All Rights Reserved -- 4/ 19 Use the « + » icon to create your new program, in the Context tab This program will contain SQL : Select SVDSQLRPG type
  • 5. SilverDev – Tutorial – Build a Graph Experia Europe – All Rights Reserved -- 5/ 19 Your program appears on the Context tab list Double-click it to open it
  • 6. SilverDev – Tutorial – Build a Graph Experia Europe – All Rights Reserved -- 6/ 19 2. Screen preparation Put first a panel on the top of the screen: On the Components tab, click on the CPanel icon and place it on the screen with another click. To adapt it to the screen width, use the Align property on the Inspector tab: alTop value.
  • 7. SilverDev – Tutorial – Build a Graph Experia Europe – All Rights Reserved -- 7/ 19 Add a button to load data. Use CButton Component, place it on the screen and name it ‘Load’ with its Caption property.
  • 8. SilverDev – Tutorial – Build a Graph Experia Europe – All Rights Reserved -- 8/ 19 Now prepare the graph display area: Use a CChart Component and select alClient value on the Align property
  • 9. SilverDev – Tutorial – Build a Graph Experia Europe – All Rights Reserved -- 9/ 19 3. Graphs types Double click on the graph area This pop-up appears. Click the New icon, at the top left, to insert new series. You can choose your graph type on this dialog box. We select the pie one.
  • 10. SilverDev – Tutorial – Build a Graph Experia Europe – All Rights Reserved -- 10/ 19 The form is ready to receive data. Be careful: This screen is a preview. It does not displays real data
  • 11. SilverDev – Tutorial – Build a Graph Experia Europe – All Rights Reserved -- 11/ 19 4. Data insertion We’ll use the Load button to load data. Select it on the form. On the Events tab, select and double click the OnClick event. The source code has been automatically updated
  • 12. SilverDev – Tutorial – Build a Graph Experia Europe – All Rights Reserved -- 12/ 19 We’ll use data on two tables from SilverDev demo library : On table contains a book list (sddmbks), the other one contains books themes (sddmthm). The graph will display the number of books of each theme. Declare your variables: And prepare SQL query :
  • 13. SilverDev – Tutorial – Build a Graph Experia Europe – All Rights Reserved -- 13/ 19 Before displaying query’s resulsts, we need to clear previous data so they don’t overlap Use sdSeriesClear function: Now you can add data with sdAddPie function Tip: To get more info on SilverDev functions, use F1.
  • 14. SilverDev – Tutorial – Build a Graph Experia Europe – All Rights Reserved -- 14/ 19 5. Compilation Save and compile the form Then Generate your program on Compiling menu
  • 15. SilverDev – Tutorial – Build a Graph Experia Europe – All Rights Reserved -- 15/ 19 6. CLP Creation To deploy the app, you need a CLP. Let’s build it on SilverDev: Open a new member Add on it your library and call your RPG program :
  • 16. SilverDev – Tutorial – Build a Graph Experia Europe – All Rights Reserved -- 16/ 19 Save the CLP And compile it.
  • 17. SilverDev – Tutorial – Build a Graph Experia Europe – All Rights Reserved -- 17/ 19 7. 1st deployment Launch MyDesk and right click where you want to make your application available. Then, choose « New application » Fill the dialog box with the application title, the file name and the call command. On next screen, select the app authorizations.
  • 18. SilverDev – Tutorial – Build a Graph Experia Europe – All Rights Reserved -- 18/ 19 8. Result You can now launch your application and click the Load button to load data:
  • 19. SilverDev – Tutorial – Build a Graph Experia Europe – All Rights Reserved -- 19/ 19 More info on www.silverdev.com EXPERIA Europe 4, rue L.Beridot Les jardins d'Epione 38500 VOIRON - FRANCE www.experia.com info@experia.com