Before you publish the application as a smart client application, deploy it to a local directory to make sure it builds successfully, and then run it from the deployed executable file to make sure the application runs as it did in the development environment.
Double-click the p_pbtutor_winform
project
in the System Tree to open the Project painter.
If you select each of the tab pages, you see that there are options you can set in the painter that cannot be set in the wizard. For now, use the defaults set in the wizard.
Select Design>Deploy Project from the Project painter menu or click the Deploy button in the PainterBar.
Deploy builds the application and deploys it to the local directory specified in the Output Path field on the General page in the Project painter.
A success message displays on the Default tab page in the Output window, and a new tab displays showing unsupported features. Some menu properties, such as ToolbarHighlightColor, are not supported in Windows Forms.
Troubleshooting
If the application fails to deploy, make sure you have the
.NET Framework SDK installed on your computer and that its bin directory
is in your system PATH environment variable.
If you see the syntax error “Unexpected
token: 'line 4:8' unexpected token: -
”,
open m_my_sheet in the Menu painter,
select Design>Options from the PowerBuilder menu, and select the
Allow Dashes in Identifiers check box on the Script tab page in
the Options dialog box.
For more troubleshooting tips, see the chapter on troubleshooting in the Deploying Applications and Components to .NET book.
Select Design>Run Project from the Project painter menu or click the Run Project button in the PainterBar.
The AcmeUpdate.exe file in the pbtutor_winform_WinFormOutput directory runs and displays the Welcome window.
Enter dba
as
the value for the user ID and sql
as
the password.
Notice that the application’s icon in the Windows task bar indicates it is a Windows Forms application.
Run the application as you did in the development environment and test some database operations.
Close the application when you have finished testing. Next, you publish the application to a Web server and install it from the publish page.