Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

change datawindow type

1,087 views
Skip to first unread message

Nesaar

unread,
Mar 27, 2001, 2:04:40 AM3/27/01
to
hi,

anybody know how to change the type of a datawindow once it has been created
my datawindow is a crosstab one and i would like to change it to a grid
even if i change it in the Options of the datawindow the change does not
take place

i am using PB6

thanks
nesaar


Sabine.Imfeld

unread,
Mar 27, 2001, 3:50:04 AM3/27/01
to
1. Select the DataWindow in the library painter.

2. Right click on it, and select "Export", accept the default name ending
with srd, or enter any filename.

3. Invoke the editor ( "Shift + F6" ), and open the file you just exported
in step 2.

4. Search for the word "PROCESSING" - this is the key word that defines the
appearance of the DataWindow.

Here is a list of values for the processing property of a DataWindow.

0 ? (Default) Form, group, query, or tabular
1 ? Grid
2 ? Label
3 ? Graph
4 ? Crosstab
5 ? Composite
7 ? RichText


5. Save the changes, go back to the library painter, and import the file
into the pbl containing the old DataWindow (make sure you overwrite it!).

After a little bit of formatting work, your new DataWindow is ready for
use!


TR

unread,
Mar 30, 2001, 10:40:51 AM3/30/01
to
Hello,

For changing the datawindow type try the following:

1. Export the datawindow that U would like to change.
2. Open the imported file in the powerbuilder editor.
3. On the third line of the file will have a similar entry as this,
datawindow(units=0 timer_interval=0 color=1073741824 processing=4
print.documentname="" processing=1 ....(so on)
4. Change the entry keyvalue for the key 'Processing=' as 1(one).
5. Save the file.
6. Import the file back to the same lib where the datawindow object exists.
7. Regenerate the datawindow object.
8. open the check the datawindow object. It will be changed.


0 new messages