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!