Use NotePad to conquer datawindow

Source: Internet
Author: User

The data window of PowerBuilder is a major achievement of PowerBuilder. It can be used to produce different types of reports, and the connection with various databases is quite convenient.

However, there is always something imperfect about everything. When you complete a beautiful report, the customer may

Format modification, for example, to convert from one format to another (for example, from Tabular to grid). At this time,

You may have a headache. It took three hours to create a datawindow. If you try again, it will take three hours.

PowerBuilder itself does not provide such conversion .... Ah, hard work!

Don't worry. There is a way to convert a data window from the tabular format to the grid format. It only takes 1 minute!

 

There is a ready-made tabular datawindow (d_test_init)

Find it in the library, right-click it and select Export

 

Save to text file (d_test_init.srd)

 

Open it (you can use notepad or the edit tool provided by PowerBuilder .)

The wonderful world is coming!

 

Change the High Brightness part to processing = 1.

Then save the disk.

 

Find the database that stores d_test_init in the library again. Right-click and choose import...

 

Select the SRD file on the disk you just saved and import it.

 

Open it again, and the data window will become grid!

 

 

 

The above is just a small example. In fact, through direct operations on the SRD file, you can quickly complete a lot of originally very difficult work, you can even modify the SQL. by understanding its specific content, you can go deep into the PowerBuilder internal to find out.

 

Okay. Now let's get started!

 

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.