Kbase P123472: How to install and run the SportsPro sample application?
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  2/10/2009 |
|
Status: Verified
GOAL:
How to install and run the SportsPro sample application?
GOAL:
How to avoid errors (560), (3135) and (3140) when running the SportsPro sample application?
FACT(s) (Environment):
Windows
OpenEdge 10.1A
OpenEdge 10.1B
OpenEdge 10.1C
FIX:
In all the following we assume that your working directory is:
C:\OpenEdge\WRK101B\gui
1. Start a proenv session:
Start -> OpenEdge -> Proenv
2. Create a copy of the sports2000 demo database:
prodb sports2000 sports2000
3. Use the Windows Explorer to copy the src\sports2000\gui and src\sports2000\images subdirectories of src\sports2000 directory into your working directory. This will create two subdirectories:
C:\OpenEdge\WRK101B\gui
C:\OpenEdge\WRK101B\images
4. Start an AppBuilder session connecting to the sports2000 database using the command:
proenv>prowin32 sports2000 -1 -p _ab
5. Use the Tools -> Protools -> PROPATH to add the following two subdirectories to your PROPATH:
C:\OpenEdge\WRK101B\gui
C:\OpenEdge\WRK101B\images
6. Use the Tools -> Protools -> Application Compiler to compile all the files in the subdirectory:
C:\OpenEdge\WRK101B\gui
Note that without recompiling all the code of the SportsPro sample application, the following error messages will be displayed at runtime:
Entry <entry#> is outside the range of list <list-string>. (560)
Invalid handle. Not initialized or points to a deleted object. (3135)
Cannot access the <attribute name> attribute because the widget does not exist. (3140)
7. Use the Tools -> Protools - Service Parameter Maintenance to create a partition with the following details:
Partition: sports2000partition
Host: localhost
Service: 20931
Application Service: sports2000partition
Configuration: Local
Prompt for userid and password: Unchecked
Choose: Close and Yes to dismiss the Service Parameter Maintenance dialog box.
Note that in the Service Parameter Maintenance function, the host and port/service entries are not required for local partitions if the AdminServer is listening at the default port on the local machine. Also, the port required is for AdminServer port and not the NameServer port or AppServer port in this case.
8. Open the file wmain.w in the AppBuilder:
File -> Open -> gui\wmain.w
9. Edit the main block of the window by inserting the following statement:
SESSION:SUPPRESS-WARNINGS = TRUE.
before the statement:
{src/adm2/windowmn.i}
10. Save the file gui\wmain.w.
11. Run the file gui\wmain.w.
12. Enjoy the SportsPro sample application!