Solved

Dynamic DW object(Label Names)

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Visual Studio 2013  Distorts Chrome Browser 2 182
Anomalies in ASP.NET ConnectionStrings 4 89
populate value from mongo db in java 98 365
VS can't find System.IO.Packaging 5 650
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: …
How to install Selenium IDE and loops for quick automated testing. Get Selenium IDE from http://seleniumhq.org Go to that link and select download selenium in the right hand columnThat will then direct you to their download page.From that page s…
The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

856 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