Solved

Dynamic DW object(Label Names)

Posted on 2004-04-15
3
392 Views
Last Modified: 2013-12-26
Hi,

I created the dynamic dw object using syntax from SQL with tabular format. Now i need to assign the names to the labels. Label text it is taking same as column name by default. I want to know the name assigned to it or i should be able to assign the name to it.
And also i want grand totals at the end.

Thanks in advance
Srinib
0
Comment
Question by:srinib
  • 2
3 Comments
 
LVL 15

Expert Comment

by:namasi_navaretnam
ID: 10837433
Srinib,

See this issue: It may be bit tricky. lables are usually named columname + '_t'
http://experts-exchange.com/Programming/Programming_Languages/PowerBuilder/Q_20897769.html

Please maintain open questions as well.

regards-
0
 
LVL 1

Author Comment

by:srinib
ID: 10844410
I need grand totals in the footer.
Is it possible??

Thanks
Srinib
0
 
LVL 15

Accepted Solution

by:
namasi_navaretnam earned 30 total points
ID: 10849485
Yes. It is possible.  You will need to use modify to create computed fields. Here is the template.

<DW Control Name>.Modify(&
"create compute(band=<Detail, Footer, Header, Header.<group #>, Summary, Trailer.<group #>, Background, Foreground>"  +  &
" color='<a long>' alignment='<0 - Left, 1 - Right, 2 - Center>' border='<0 - None, 1- Shadow, 2 - Box, 3 - Resize, 4 - Underline, 5 - 3D Lowered, 6 - 3D Raised>'" + &
" height.autosize=<Yes or No> pointer='<Arrow!, Cross!, HourGlass!, IBeam!, Icon!, Size!, SizeNESW!, SizeNS!, SizeNWSE!, SizeWE!, UpArrow!, or cursor filename (with path)>' moveable=<0 - False, 1 - True> resizeable=<0 - False, 1 - True> x='<an integer>' y='<an integer>' height='<an integer>' width='<an integer>' format='<constant string containing display format (i.e., [general]) for col (can also be an expression)>'" + &
" name=<string> tag='<string>' expression='<expression>' font.face='<name of type face (i.e., SYSTEM, COURIER)>' font.height='<negative number for points, positive number for PBUs (i.e., -10 = 10 points, 10 = 10 PBUs>' font.weight='<400 - Normal, 700 - Bold>' font.family='<0 - AnyFont, 1 - Roman, 2 - Swiss, 3 - Modern, 4 - Script, 5 - Decorative>' font.pitch='<0 - default, 1 - Fixed, 2 - Variable>' font.charset='<0 - Ansi, 1 - default, 2 - Symbol, 128 - Shift JIS, 255 - OEM>' font.italic='<0 - False, 1 - True>' font.strikethrough='<0 - False, 1 - True>' font.underline='<0 - False, 1 - True>' background.mode='<0 - Opaque, 1 - Transparent>' background.color='<a long>')")

This is how I add page number for example:

ls_exp = "'Report Date: ' + string(today(), 'mm/dd/yyyy') "
ls_desc = "#1.X"
ll_x = long(dw_report.Describe(ls_desc))
dw_1.Modify('create compute(name=pagenumberanddate band=footer expression="' + ls_exp + '" border="0" color="0" x="'+string(ll_x)+'" y="5" height="80" width="800" alignment="0" format="[general]"  font.face="Arial" font.height="-10" font.weight="600" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )' )


regards-
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project (http://www.eclipse.org/sequoyah/) automates most of the tasks discussed in this article. You can even fin…
Jaspersoft Studio is a plugin for Eclipse that lets you create reports from a datasource.  In this article, we'll go over creating a report from a default template and setting up a datasource that connects to your database.
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question