We help IT Professionals succeed at work.

powerbuilder grid datawindow title bar

basilhs_s
basilhs_s asked
on
Medium Priority
1,365 Views
Last Modified: 2013-12-26
i am having a datawindow which has a grid style and a title bar (dw_1). under what conditions the command dw_1.print() will print the title bar contents ?
Comment
Watch Question

Hi,

im not sure if that is possible,

Can u provide more details as to why u wish to print ur title bar, could give u a work around.

U can have a text object on the header of ur dw to print similar contents like ur title bar contents.

Cheers,
Rosh

Author

Commented:
Is it possible for a grid data window to have any kind of text in its header area except from the labels of the fields which it contains?
Hi,

Yes, it is possible. U can insert a text object on the header of ur DW.
Change the property of the text object as follows
Position Tab--> Layer --> Change this from "Band" to "Foreground"

Cheers,
Rosh

Author

Commented:
suppose that we have a grid as follows

-------------------------------------------------
| cust_code |   cust_firm                          |
-------------------------------------------------
|  xxxxx      | xxxxxxxxxxxxxxxxxxxxx  |
-------------------------------------------------

cust_code, cust_firm are the fields from the database. is it possible to place a text in the header of the datawindow as

          **********  TITLE ************
-------------------------------------------------
| cust_code |   cust_firm                          |
-------------------------------------------------
|  xxxxx      | xxxxxxxxxxxxxxxxxxxxx  |
-------------------------------------------------
Hi,

Yes, it is possible.
Increase the header band and move the below columns lower to make place to insert a text for title.
--------------------------------------------------
| cust_code |   cust_firm                          |


U can insert a text object just above cust_code text object, increase the width and Change the property of the text object as follows
Position Tab--> Layer --> Change this from "Band" to "Foreground"

Give it a try or export and paste ur DW here, ill insert the text and export and paste the DW back again for u here.

Cheers,
Rosh

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts

Author

Commented:
perfect solution. !!!thanks very much.
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.