Transform PB's C/s application into B/S application

Source: Internet
Author: User
Tags ini odbc sybase sybase database

Author: Xingda Computer technology company (www.study01job.com) Guo Baoli

PB in B/S application before the popular is very popular, so many PB developed programs have converted into B/s application needs. I summarized the experience of my project development, summed up the technical problems in the conversion process, and did not give a concrete example. If your friends have this kind of demand, you can contact our company for consultation.
First, the client needs to install the following procedures:
1 PB Window Plugin support file: Nppba70.dll. Copy the file to the browser's plugins directory.
2 PB distribution supporting documents, including:
LPBVM70.DLL and LIBJCC.DLL are the two files required,
LPBDWE70.DLL is the Data window support file,
LNPPBA70.DLL is a PB window plug-in support file,
LSYSYB95.DLL is a supporting file that connects the Sybase database
LPBODB70.DLL is a required file to connect to the database using ODBC
The above files are copied to the system directory of the OS.
3 Set ODBC: Create DSN, name Gsdsn,server GS, database is GSJ, use Sybase system 11 connection.
4 Create the Bs_report directory on the user's C disk and place the Gs.ini and Role.ini configuration files.
5 Install Sybase's Front desk file.
  
Second, the server side needs to do the following work:
1 Set up WWW server, add MIME type to Application/vnd.powerbuilder7, and pbd suffix corresponds.
2 Place all PBD files and paging files into one directory of the server.
3 installation of PowerBuilder intenet tools.
  
Third, the process of transformation:
1, Reasonable Division module, in principle, each PBD file should not be greater than 1M (or larger, depending on the application of the Unit network conditions). The module is divided according to user's usage, and the program of similar function is placed in the same PBD package.
2, the original C/s system structure of the program structure of a relatively thorough clean-up, to ensure that the module does not contain the use of the program, so as to ensure that the module short, thus increasing the speed of operation.
3, Unified Planning window interface style, the existing C/s application of the interface style of overall adjustment to maintain and existing B/s system overall interface consistency.
4, in ensuring the original C/S program business process unchanged, according to B/s system structure under the operating characteristics of the original procedure to make appropriate adjustments.
5. All settransobject in the Open event of the window, or functions of a similar set transaction object, are placed in a custom event in the window and are triggered by using the Postevent function in the Open event (note that the Triggerevent function cannot be used).
6. An application cannot contain a window of type main, using the child type. You cannot have control menus, maximum and minimized buttons on a window. The original window application uses the child type, and you can open other response, popup-type windows in the window, but you cannot open windows of type Main, MDI, child, and so on.
7. When the page opens another window from the original child window, the original page jumps to another page, although the initial child window closes (equivalent to the entire application being closed), but other open windows are not closed. Other windows can be closed only in the close or Closequery event of the child. In the Closequery event of the child window, using return has no meaning and cannot prevent the window from continuing to close.
8, the Application object does not work, only in the development phase for debugging. All work that originally required the Application object to complete can only be done in the child window that was originally opened. Invalid Activate event for child window.
9, in the program can not directly use the name of the window, can only use this, parent and other pronouns to represent the window.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.