Solved

Dynamic DW object(Label Names)

Posted on 2004-04-15
3
382 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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Programmer's Notepad is, one of the best free text editing tools available, simply because the developers appear to have second-guessed every weird problem or issue a programmer is likely to run into. One of these problems is selecting and deleti…
Here is a helpful source code for C++ Builder programmers that allows you to manage and manipulate HTML content from C++ code, while also handling HTML events like onclick, onmouseover, ... Some objects defined and used in this source include: …
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 keystrokes in Netbeans IDE 8.0 for Windows.

758 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now