Hyderabad Jobs Book Website FREE PowerBuilder Training I Love Hyderabad Hyderabad Colleges
Home Business Emails Hyderabad Classifieds Contact Us
7 Wonders of Hyderabad Web Hosting Yellow Pages Our Network

 
Webpowerbuilder.hyderabad-colleges.com

Mastering PowerBuilder

HomePrevious Lesson: Distributed Computing—PowerBuilder Implementation
Next Lesson: Connection Object Properties

Connection Object

Using this object, the client application can talk to the server application. The usage of this object is similar to using a transaction object. However, unlike SQLCA, there is no built-in global variable for the connection object. You need to declare and instantiate a Connection Object using CREATE statement and set attributes similar to the one you set in the SQLCA. In this object, you set attributes like communication-driver name, server computer name and communication protocol type, etc.—explained in detail in 'Connection Object Properties' section. Finally you need to call ConnectToServer() function to connect to the server application.

The are the steps you need to follow to connect to the PowerBuilder Application Server.

  • Create a User Object of type Connection
  • Define events/functions to start/stop connection, initialization, error handling
  • Declare a global variable of the User Object you created in the earlier step
  • Create an instance of Connection object
  • Set various attributes
  • Call ConnectToServer() function to start listening requests from client applications.

Then you need to call CreateInstance() function as needed throughout the application to create instances of remote objects.
HomePrevious Lesson: Distributed Computing—PowerBuilder Implementation
Next Lesson: Connection Object Properties

Copyright © 1996 - 2006 HamaraShehar.com Pvt. Ltd. All Rights Reserved.
Domain Registration, Website Design, Website Hosting by HamaraShehar.com