SlideShare a Scribd company logo
SilverDev
                                  by Experia



      Wizard Tutorial
    Develop with just a few clicks
graphical applications on IBM i – AS/400
SilverDev – Wizard Tutorial




                                                                Content


  1.    Introduction. .............................................................................................................................................. 3
  2.    Schemes Tool............................................................................................................................................. 4
  3.    Database Viewer ....................................................................................................................................... 4
  4.     Saving the Scheme.................................................................................................................................... 5
  5.    Configuring the Table ................................................................................................................................ 6
  6.    How to Create a Grid with the Wizard ...................................................................................................... 7
  7.    Generating the Source............................................................................................................................... 9
  8.    Compiling the Program............................................................................................................................ 10
  9.    Distributing the Program ......................................................................................................................... 10
  10.      Running the Program .......................................................................................................................... 12
  11.      Selection Wizard ................................................................................................................................. 13
  12.      Create a Form with the Wizard ........................................................................................................... 15
  13.      Going Further: How to Display an Image ............................................................................................ 17
  14.      Modifiying the Generated Source ....................................................................................................... 19
  15.      Protection Against Overwritting ......................................................................................................... 19
  16.      Tools .................................................................................................................................................... 19




Experia -- All Rights Reserved --                                                                                                                2 / 20
SilverDev – Wizard Tutorial




1. Introduction.

With this tutorial you will learn how to create a graphical application in a few clicks using SilverDev Wizard.




                                    You will create this application :




            You have to install SilverDev on your server. You can download a free 60-day trial on
            http://www.silverdev.com/test-silverdev.php




Experia -- All Rights Reserved --                                                                  3 / 20
SilverDev – Wizard Tutorial




2. Schemes Tool


             Run the Designer.exe program and sign in with your as400 profile.




                1        Access the "Tools/Databas
                         scheme" menu




                         The "Schemes" window is


                2
                         displayed on the screen.
                         Click the "New scheme"
                         button to open a new blank
                         scheme




3. Database Viewer




1        Use the "DataBase" icon to display
         the database assistant




Experia -- All Rights Reserved --                                                             4 / 20
SilverDev – Wizard Tutorial




         Type "SILVERDEMO/SDDM*" in the
         search field to display all files



2
         beginning with sddm in the
         SilverDemo library.

         The SilverDemo library is installed
         with the SilverDev product.



         Drag and drop into the scheme the
         following files :
           • SDDMAUT
           • SDDMBKS
           • SDDMBKS3


3          • SDDMGEND
           • SDDMPUB
           • SDDMTHM
         Links are created automatically
         between the tables.
         These links are deduced from the sql
         constraints between the tables.




            When working on your own files, if there are
            no sql constraints between the tables, you can
     link two tables in the scheme manually.
     To link two tables manually, use the button as shown
     on the right.




4. Saving the Scheme.

To save the scheme, use the button shown on the right in the
"Schemes" window.




Experia -- All Rights Reserved --                                                     5 / 20
SilverDev – Wizard Tutorial




5. Configuring the Table

Double-click the SDDMAUT table. A dialog box is displayed.
Fill in the "Foreign key parameters" fields as shown below:




Do the same for the SDDMPUB, SDDMTHM and SDDMGENDER tables.




The "pick list" option is selected for the SDDMTHM and SDDMGENDER files, because they do not contain many
records.
The SDDMAUT and SDDMPUB files have too many records to display them all in a pick list, which is why
"External program" is selected for these files.
We'll see later how these settings interact with the Wizard.


          Some fields may be filled in automatically. The selection type is chosen based on the number of
          records in the table and the field to display is the first alpha field in the table.




Experia -- All Rights Reserved --                                                              6 / 20
SilverDev – Wizard Tutorial



6. How to Create a Grid with the Wizard


Select the SDDMBKS3 table in the scheme and choose "Grid wizard" in the right click menu.




In the window displayed, we have chosen to select all options to have the most sophisticated program
possible.




When you click the "Fields" tab, the file’s field list is displayed. The wizard automatically detects the best
column type to suit each field. The NAMEAUT, NAMEPUB and NAMETHEME fields come from tables other
than the one we are working on. They are displayed in a different color.

The previous settings determine which fields are displayed and the column type.


            It is possible to add, change or delete certain fields.


Experia -- All Rights Reserved --                                                                  7 / 20
SilverDev – Wizard Tutorial




1        Click the check box in the Filter
         column on the TITLE field row.




2
         Tick the "Start" checkbox.
         This will generate a search criterion
         on the start of the TITLE field.




3        Use the "File/Apply to scheme" menu
         to apply the wizard information to the
         scheme.




         A wizard figure is added to the
         scheme.


4        The wizard properties can be
         modified by double-clicking this
         figure.




Experia -- All Rights Reserved --                                        8 / 20
SilverDev – Wizard Tutorial




7. Generating the Source




1
         Now, we are going to generate the
         RPG program source using the
         "File/Generate" menu.




2
         A window is displayed to select a
         context.
         Select the Silverdemo context.




         The results tab is displayed.


3
         A grid displays the operations carried
         out by the wizard.
         Successfully completed operations are
         indicated by a green dot.




4        The screen object has now been created, along with the rpg program source that appears in the background.
         Close the wizard window to access the rpg source that has been generated.




You can use the F10 key to switch between the rpg source and the screen.


Experia -- All Rights Reserved --                                                                    9 / 20
SilverDev – Wizard Tutorial



You can change the screen and program source manually, but this is not covered by this tutorial.
For information on how to create a program manually, use the "QuickStart" and "Programming guide"
documents, available to download on http://www.silverdev.com/test-silverdev.php.


8. Compiling the Program




1
         To compile the program, use
         the      "Compiling/Generate
         program" menu.




         The compilation results are



2
         displayed in another window.
         Since the rpg source has not
         been changed, there is no
         reason for compilation to fail.




9. Distributing the Program

               Now that we have created our first program, we are
               going to use MyDesk to add an icon to run the
               application.
               Make sure you are a SilverDev administrator by adding
               your profile name to the silverdev/psvdadm file.

Run the MyDesk.exe program, sign in using the "Server/Connection"
menu.

Right click the directory where you want to create the icon and access
the "New application" menu.

Fill in the fields as shown on the figure opposite:




Experia -- All Rights Reserved --                                                              10 / 20
SilverDev – Wizard Tutorial




                                      A window is displayed to set the access rights to this application.
                                      We choose to authorize everyone to access this application.




The program called by this icon is Silverdemo/Ctuto1.
This program is a cl program created with the following code:




The purpose of this program is to add SILVERDEMO to the library list and to call the lstsddmbks program
created using the wizard.
You can create this cl in SILVERDEMO/QCLSRC source file.




Experia -- All Rights Reserved --                                                               11 / 20
SilverDev – Wizard Tutorial




10.     Running the Program

You can now double click the icon created in MyDesk.
The program starts and the following screen is displayed:

                                                                         The application already allows the records
                                                                         to be filtered on the header field, to be
                                                                         sorted on one or more columns, to be
                                                                         deleted or modified directly in the grid.




However, if you double click a row or click the button in the publisher column, an error message is displayed

                                                                         In the grid wizard, we designed calls to
                                                                         the FRMSDDMBKS, LSTSDDMPUB and
                                                                         LSTSDDMAUT programs, but these
                                                                         programs do not yet exist.

                                                                         We are now going to use the wizard to
                                                                         create these programs.




Experia -- All Rights Reserved --                                                                12 / 20
SilverDev – Wizard Tutorial




  11. Selection Wizard




         Select the SDDMPUB table in


1        the scheme, right click and
         open the "Selection Wizard"
         menu




2        Do not change anything in the
         "General" tab.




3
         In the "Fields" tab, add a filter
         on the NAMEPUB field, like we
         did in the main program.




          Apply the wizard to                    Generate         the


 4        the scheme using
          the "File/Apply to
          scheme" menu.                      5   program      source
                                                 using the "File/
                                                 Generate" menu.




Experia -- All Rights Reserved --                                             13 / 20
SilverDev – Wizard Tutorial




6        Select
         context.
                  the      SILVERDEMO




7        The generation results are
         displayed in the "Results" tab.




         Restart   the  LSTSDDMBKS


8        program. Now, when you click
         the button in the Publisher
         column…




9
         …the LSTSDDMPUB program is
         called and the following
         window is displayed.




Experia -- All Rights Reserved --                                14 / 20
SilverDev – Wizard Tutorial



12.     Create a Form with the Wizard




         Now, we are going to create
         the FRMSDDMBKS program.
         This program is called by



1
         double clicking the grid of the
         main program.

         Select the SDDMBKS table in
         the scheme, right click and click
         the "Form wizard" menu.




         In the General tab, the error


2        message type can be changed
         to have something more
         sophisticated




         Note in the parameters tab


3        that the wizard has prepared
         two parameters for the
         program.




         Use the "File/Apply to scheme"
         and "File/Generate" menus as
         before.



4        The results are displayed:

         Then use the "Compile/
         Generate program" menu.




Experia -- All Rights Reserved --                                  15 / 20
SilverDev – Wizard Tutorial




         Restart      the   LSTSDDMBKS


5        program; it is now possible to
         call the form by double clicking
         the grid or via "Form" in the
         right click popup menu.




         In the form, the button next to


6
         the Publisher field calls the
         LSTSDDMPUB program that we
         have already called from the
         main program.




         In the Wizard, we specified that
         title and price were mandatory.


7
         So, if we try to validate without
         filling in these two fields, a grid
         with the error list will be
         displayed. Double click a row to
         indicate the field in error.




Experia -- All Rights Reserved --                                    16 / 20
SilverDev – Wizard Tutorial




13.     Going Further: How to Display an Image




         We are going to work on



1
         the FRMSDDMBKS wizard
         again.
         Double click the wizard in
         the scheme:




         In the wizard window,


2        select the "Fields" tab and
         click "Add a calculated
         field" menu item.




3        Fill in the fields as shown
         on the right:




         In the "Custom blocks" tab, write the following code:
         C                             eval          img1 = '/silverdev/Demo/Books/images/Img'+
         C                                           %char(idbook)+'.jpg'


4
5        Use the "File/Apply to scheme" and "File/Generate" menus.
         Then use the "Compilation/Generate program" menu as before.




Experia -- All Rights Reserved --                                                            17 / 20
SilverDev – Wizard Tutorial




6        Restart the LSTSSDDMBKS application; the form now has an image:




Experia -- All Rights Reserved --                                                                18 / 20
SilverDev – Wizard Tutorial




14.     Modifiying the Generated Source

Once a program has been generated by the wizard, the screens or rpg source can be modified manually.
To do so, use the "Tools/Context…" menu item and select a context. The program list in this context is then
displayed. Double click an item in the list to open the rpg source and the screen in design. You can then modify
the generated source like any SilverDeb program.


15.     Protection Against Overwritting

Once a program has been modified manually, you cannot use the wizard to overwrite your work; the following
message will be displayed:




The wizard can still be used to generate in another context, under another name or after removing the objects
you have manually changed.

16.     Tools
               Scheme Printing                           Change the Appearance of an Object




                                                         Open the « Visual properties » menu with a right click.




Experia -- All Rights Reserved --                                                                  19 / 20
SilverDev – Wizard Tutorial




                                            Copyright Information.


The information contained in this document may be modified without notification and may not be considered binding in
any manner upon EXPERIA Europe. Software packages are supplied under licence or confidentiality agreement. The
software package may only be used, copied or reproduced onto any support in compliance with the terms of the said
licence or confidentiality agreement. The buyer may only make copies for backup or archiving purposes.
No part of the manual or software package may be reproduced or transmitted via any means, electronic or otherwise,
including photocopying, recording or any other storage, processing or information retrieval process for any purpose other
than the buyer’s personal use without express, written permission from EXPERIA Europe.

IBM, AS/400, iSeries, System i, i5, Power i are registered trademarks belonging to International Business Machines
Corporation.
Windows is a registered trademark belonging to Microsoft.
All other products are registered trademarks belonging to their respective companies.




                                                                                               Contact Us:
      EXPERIA Europe                                                                  Information info@experia.com
      4, rue L.Beridot                                                     Technical Support support@silverdev.com
      Les jardins d'Epione
      F-38500 VOIRON                                                                      Phone +33 (0)4 76 67 07 70


      www.experia.com
      www.silverdev.com




Experia -- All Rights Reserved --                                                                      20 / 20

More Related Content

PDF
Manual rational rose
PDF
SilverDev: Modernize Your IBM i User Experience
PDF
[Tutorial] SilverDev Designer - RPG Development Studio
PDF
(A1)_RWS_Customization_WORKSAMPLE
PDF
[Tutorial] Build a graph in RPG with SilverDev
DOCX
Android Programing Course Material Labs
PDF
Schematics designer tutorial_i
PDF
Dsplab v1
Manual rational rose
SilverDev: Modernize Your IBM i User Experience
[Tutorial] SilverDev Designer - RPG Development Studio
(A1)_RWS_Customization_WORKSAMPLE
[Tutorial] Build a graph in RPG with SilverDev
Android Programing Course Material Labs
Schematics designer tutorial_i
Dsplab v1

Similar to [Tutorial] SilverDev Wizard - english (20)

PDF
CIC_Manual.pdf
PDF
Mapping%20Skills%20Tutorial
PDF
Mapping%20Skills%20Tutorial
PDF
Big Data: Big SQL web tooling (Data Server Manager) self-study lab
PDF
Part 4 working with databases
PDF
MDA Architecture - UML modeling Presentation
PDF
Perl on Netbeans - User Guide - v0.5
PDF
Easyeda tutorial
PPT
Module pool programming
PDF
Doorsng po t_core_workbook_sse_imagev3.3.1_v6moda_final_letter
PPTX
Visual studio-database-project
PDF
[Tutorial] SilverDev for IBM i: Quick Start
PDF
Electrónica: PROTEUS design suite Visual Designer Help
PDF
Big Data: Explore Hadoop and BigInsights self-study lab
PDF
Die View Users Guide
PDF
Build your first DApp using Substrate Framework - Part I
PDF
Eight Rules for Making Your First Great Game
PDF
Own cloudusermanual
PDF
Consuming and Publishing Ordnance Survey Open Data with Open Source Software
PDF
Petrel Ocean wizards and developers tools 2013
CIC_Manual.pdf
Mapping%20Skills%20Tutorial
Mapping%20Skills%20Tutorial
Big Data: Big SQL web tooling (Data Server Manager) self-study lab
Part 4 working with databases
MDA Architecture - UML modeling Presentation
Perl on Netbeans - User Guide - v0.5
Easyeda tutorial
Module pool programming
Doorsng po t_core_workbook_sse_imagev3.3.1_v6moda_final_letter
Visual studio-database-project
[Tutorial] SilverDev for IBM i: Quick Start
Electrónica: PROTEUS design suite Visual Designer Help
Big Data: Explore Hadoop and BigInsights self-study lab
Die View Users Guide
Build your first DApp using Substrate Framework - Part I
Eight Rules for Making Your First Great Game
Own cloudusermanual
Consuming and Publishing Ordnance Survey Open Data with Open Source Software
Petrel Ocean wizards and developers tools 2013
Ad

More from SilverDev by Experia (16)

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

Recently uploaded (20)

PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Approach and Philosophy of On baking technology
PDF
Unlocking AI with Model Context Protocol (MCP)
PPTX
MYSQL Presentation for SQL database connectivity
PPTX
Cloud computing and distributed systems.
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
20250228 LYD VKU AI Blended-Learning.pptx
Approach and Philosophy of On baking technology
Unlocking AI with Model Context Protocol (MCP)
MYSQL Presentation for SQL database connectivity
Cloud computing and distributed systems.
The Rise and Fall of 3GPP – Time for a Sabbatical?
Agricultural_Statistics_at_a_Glance_2022_0.pdf
gpt5_lecture_notes_comprehensive_20250812015547.pdf
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Network Security Unit 5.pdf for BCA BBA.
Per capita expenditure prediction using model stacking based on satellite ima...
Mobile App Security Testing_ A Comprehensive Guide.pdf
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Encapsulation_ Review paper, used for researhc scholars
Diabetes mellitus diagnosis method based random forest with bat algorithm
Review of recent advances in non-invasive hemoglobin estimation
Chapter 3 Spatial Domain Image Processing.pdf
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf

[Tutorial] SilverDev Wizard - english

  • 1. SilverDev by Experia Wizard Tutorial Develop with just a few clicks graphical applications on IBM i – AS/400
  • 2. SilverDev – Wizard Tutorial Content 1. Introduction. .............................................................................................................................................. 3 2. Schemes Tool............................................................................................................................................. 4 3. Database Viewer ....................................................................................................................................... 4 4. Saving the Scheme.................................................................................................................................... 5 5. Configuring the Table ................................................................................................................................ 6 6. How to Create a Grid with the Wizard ...................................................................................................... 7 7. Generating the Source............................................................................................................................... 9 8. Compiling the Program............................................................................................................................ 10 9. Distributing the Program ......................................................................................................................... 10 10. Running the Program .......................................................................................................................... 12 11. Selection Wizard ................................................................................................................................. 13 12. Create a Form with the Wizard ........................................................................................................... 15 13. Going Further: How to Display an Image ............................................................................................ 17 14. Modifiying the Generated Source ....................................................................................................... 19 15. Protection Against Overwritting ......................................................................................................... 19 16. Tools .................................................................................................................................................... 19 Experia -- All Rights Reserved -- 2 / 20
  • 3. SilverDev – Wizard Tutorial 1. Introduction. With this tutorial you will learn how to create a graphical application in a few clicks using SilverDev Wizard. You will create this application : You have to install SilverDev on your server. You can download a free 60-day trial on http://www.silverdev.com/test-silverdev.php Experia -- All Rights Reserved -- 3 / 20
  • 4. SilverDev – Wizard Tutorial 2. Schemes Tool Run the Designer.exe program and sign in with your as400 profile. 1 Access the "Tools/Databas scheme" menu The "Schemes" window is 2 displayed on the screen. Click the "New scheme" button to open a new blank scheme 3. Database Viewer 1 Use the "DataBase" icon to display the database assistant Experia -- All Rights Reserved -- 4 / 20
  • 5. SilverDev – Wizard Tutorial Type "SILVERDEMO/SDDM*" in the search field to display all files 2 beginning with sddm in the SilverDemo library. The SilverDemo library is installed with the SilverDev product. Drag and drop into the scheme the following files : • SDDMAUT • SDDMBKS • SDDMBKS3 3 • SDDMGEND • SDDMPUB • SDDMTHM Links are created automatically between the tables. These links are deduced from the sql constraints between the tables. When working on your own files, if there are no sql constraints between the tables, you can link two tables in the scheme manually. To link two tables manually, use the button as shown on the right. 4. Saving the Scheme. To save the scheme, use the button shown on the right in the "Schemes" window. Experia -- All Rights Reserved -- 5 / 20
  • 6. SilverDev – Wizard Tutorial 5. Configuring the Table Double-click the SDDMAUT table. A dialog box is displayed. Fill in the "Foreign key parameters" fields as shown below: Do the same for the SDDMPUB, SDDMTHM and SDDMGENDER tables. The "pick list" option is selected for the SDDMTHM and SDDMGENDER files, because they do not contain many records. The SDDMAUT and SDDMPUB files have too many records to display them all in a pick list, which is why "External program" is selected for these files. We'll see later how these settings interact with the Wizard. Some fields may be filled in automatically. The selection type is chosen based on the number of records in the table and the field to display is the first alpha field in the table. Experia -- All Rights Reserved -- 6 / 20
  • 7. SilverDev – Wizard Tutorial 6. How to Create a Grid with the Wizard Select the SDDMBKS3 table in the scheme and choose "Grid wizard" in the right click menu. In the window displayed, we have chosen to select all options to have the most sophisticated program possible. When you click the "Fields" tab, the file’s field list is displayed. The wizard automatically detects the best column type to suit each field. The NAMEAUT, NAMEPUB and NAMETHEME fields come from tables other than the one we are working on. They are displayed in a different color. The previous settings determine which fields are displayed and the column type. It is possible to add, change or delete certain fields. Experia -- All Rights Reserved -- 7 / 20
  • 8. SilverDev – Wizard Tutorial 1 Click the check box in the Filter column on the TITLE field row. 2 Tick the "Start" checkbox. This will generate a search criterion on the start of the TITLE field. 3 Use the "File/Apply to scheme" menu to apply the wizard information to the scheme. A wizard figure is added to the scheme. 4 The wizard properties can be modified by double-clicking this figure. Experia -- All Rights Reserved -- 8 / 20
  • 9. SilverDev – Wizard Tutorial 7. Generating the Source 1 Now, we are going to generate the RPG program source using the "File/Generate" menu. 2 A window is displayed to select a context. Select the Silverdemo context. The results tab is displayed. 3 A grid displays the operations carried out by the wizard. Successfully completed operations are indicated by a green dot. 4 The screen object has now been created, along with the rpg program source that appears in the background. Close the wizard window to access the rpg source that has been generated. You can use the F10 key to switch between the rpg source and the screen. Experia -- All Rights Reserved -- 9 / 20
  • 10. SilverDev – Wizard Tutorial You can change the screen and program source manually, but this is not covered by this tutorial. For information on how to create a program manually, use the "QuickStart" and "Programming guide" documents, available to download on http://www.silverdev.com/test-silverdev.php. 8. Compiling the Program 1 To compile the program, use the "Compiling/Generate program" menu. The compilation results are 2 displayed in another window. Since the rpg source has not been changed, there is no reason for compilation to fail. 9. Distributing the Program Now that we have created our first program, we are going to use MyDesk to add an icon to run the application. Make sure you are a SilverDev administrator by adding your profile name to the silverdev/psvdadm file. Run the MyDesk.exe program, sign in using the "Server/Connection" menu. Right click the directory where you want to create the icon and access the "New application" menu. Fill in the fields as shown on the figure opposite: Experia -- All Rights Reserved -- 10 / 20
  • 11. SilverDev – Wizard Tutorial A window is displayed to set the access rights to this application. We choose to authorize everyone to access this application. The program called by this icon is Silverdemo/Ctuto1. This program is a cl program created with the following code: The purpose of this program is to add SILVERDEMO to the library list and to call the lstsddmbks program created using the wizard. You can create this cl in SILVERDEMO/QCLSRC source file. Experia -- All Rights Reserved -- 11 / 20
  • 12. SilverDev – Wizard Tutorial 10. Running the Program You can now double click the icon created in MyDesk. The program starts and the following screen is displayed: The application already allows the records to be filtered on the header field, to be sorted on one or more columns, to be deleted or modified directly in the grid. However, if you double click a row or click the button in the publisher column, an error message is displayed In the grid wizard, we designed calls to the FRMSDDMBKS, LSTSDDMPUB and LSTSDDMAUT programs, but these programs do not yet exist. We are now going to use the wizard to create these programs. Experia -- All Rights Reserved -- 12 / 20
  • 13. SilverDev – Wizard Tutorial 11. Selection Wizard Select the SDDMPUB table in 1 the scheme, right click and open the "Selection Wizard" menu 2 Do not change anything in the "General" tab. 3 In the "Fields" tab, add a filter on the NAMEPUB field, like we did in the main program. Apply the wizard to Generate the 4 the scheme using the "File/Apply to scheme" menu. 5 program source using the "File/ Generate" menu. Experia -- All Rights Reserved -- 13 / 20
  • 14. SilverDev – Wizard Tutorial 6 Select context. the SILVERDEMO 7 The generation results are displayed in the "Results" tab. Restart the LSTSDDMBKS 8 program. Now, when you click the button in the Publisher column… 9 …the LSTSDDMPUB program is called and the following window is displayed. Experia -- All Rights Reserved -- 14 / 20
  • 15. SilverDev – Wizard Tutorial 12. Create a Form with the Wizard Now, we are going to create the FRMSDDMBKS program. This program is called by 1 double clicking the grid of the main program. Select the SDDMBKS table in the scheme, right click and click the "Form wizard" menu. In the General tab, the error 2 message type can be changed to have something more sophisticated Note in the parameters tab 3 that the wizard has prepared two parameters for the program. Use the "File/Apply to scheme" and "File/Generate" menus as before. 4 The results are displayed: Then use the "Compile/ Generate program" menu. Experia -- All Rights Reserved -- 15 / 20
  • 16. SilverDev – Wizard Tutorial Restart the LSTSDDMBKS 5 program; it is now possible to call the form by double clicking the grid or via "Form" in the right click popup menu. In the form, the button next to 6 the Publisher field calls the LSTSDDMPUB program that we have already called from the main program. In the Wizard, we specified that title and price were mandatory. 7 So, if we try to validate without filling in these two fields, a grid with the error list will be displayed. Double click a row to indicate the field in error. Experia -- All Rights Reserved -- 16 / 20
  • 17. SilverDev – Wizard Tutorial 13. Going Further: How to Display an Image We are going to work on 1 the FRMSDDMBKS wizard again. Double click the wizard in the scheme: In the wizard window, 2 select the "Fields" tab and click "Add a calculated field" menu item. 3 Fill in the fields as shown on the right: In the "Custom blocks" tab, write the following code: C eval img1 = '/silverdev/Demo/Books/images/Img'+ C %char(idbook)+'.jpg' 4 5 Use the "File/Apply to scheme" and "File/Generate" menus. Then use the "Compilation/Generate program" menu as before. Experia -- All Rights Reserved -- 17 / 20
  • 18. SilverDev – Wizard Tutorial 6 Restart the LSTSSDDMBKS application; the form now has an image: Experia -- All Rights Reserved -- 18 / 20
  • 19. SilverDev – Wizard Tutorial 14. Modifiying the Generated Source Once a program has been generated by the wizard, the screens or rpg source can be modified manually. To do so, use the "Tools/Context…" menu item and select a context. The program list in this context is then displayed. Double click an item in the list to open the rpg source and the screen in design. You can then modify the generated source like any SilverDeb program. 15. Protection Against Overwritting Once a program has been modified manually, you cannot use the wizard to overwrite your work; the following message will be displayed: The wizard can still be used to generate in another context, under another name or after removing the objects you have manually changed. 16. Tools Scheme Printing Change the Appearance of an Object Open the « Visual properties » menu with a right click. Experia -- All Rights Reserved -- 19 / 20
  • 20. SilverDev – Wizard Tutorial Copyright Information. The information contained in this document may be modified without notification and may not be considered binding in any manner upon EXPERIA Europe. Software packages are supplied under licence or confidentiality agreement. The software package may only be used, copied or reproduced onto any support in compliance with the terms of the said licence or confidentiality agreement. The buyer may only make copies for backup or archiving purposes. No part of the manual or software package may be reproduced or transmitted via any means, electronic or otherwise, including photocopying, recording or any other storage, processing or information retrieval process for any purpose other than the buyer’s personal use without express, written permission from EXPERIA Europe. IBM, AS/400, iSeries, System i, i5, Power i are registered trademarks belonging to International Business Machines Corporation. Windows is a registered trademark belonging to Microsoft. All other products are registered trademarks belonging to their respective companies. Contact Us: EXPERIA Europe Information info@experia.com 4, rue L.Beridot Technical Support support@silverdev.com Les jardins d'Epione F-38500 VOIRON Phone +33 (0)4 76 67 07 70 www.experia.com www.silverdev.com Experia -- All Rights Reserved -- 20 / 20