Adressing objects in the footer. 
Author Message
 Adressing objects in the footer.
One quick question:

How do I adress fields in the footer (header, or similar)? There are heaps
of ways to get and set properties for these bands, but I can't figure out
how do get values from e.g. a calculated field containing some total of all
the rows in the body of the datawindow.

total_percentage = this.blah-blah.that. ... .compute_percentage... ?

Thanks in advance.

Regards,
Per Granaune

IT Consultant, Nor-Trykk Narvik AS, Norway.

Powerbuilder 7.0.2, build 8033, developing for Oracle 8.0.5.0.0.



Mon, 20 Jan 2003 03:00:00 GMT
 Adressing objects in the footer.

The same way you access columns.

For example, if there is a datawindow that had a list of employees.  On the
footer, there is a computed column that sums the total of employees and is
named employee_total.

You can get the value stored in this column with the following script:
dw_1.getitemnumber(1, "employee_total")

The row 1 simply points to the first row.

For grouped computes, simply get the value of the computed object via a row
that is within the group itself.  Any row will do.


Quote:
> One quick question:

> How do I adress fields in the footer (header, or similar)? There are heaps
> of ways to get and set properties for these bands, but I can't figure out
> how do get values from e.g. a calculated field containing some total of
all
> the rows in the body of the datawindow.

> total_percentage = this.blah-blah.that. ... .compute_percentage... ?

> Thanks in advance.

> Regards,
> Per Granaune

> IT Consultant, Nor-Trykk Narvik AS, Norway.

> Powerbuilder 7.0.2, build 8033, developing for Oracle 8.0.5.0.0.



Tue, 21 Jan 2003 03:00:00 GMT
 
 [ 2 post ] 

 Relevant Pages 

1. Adressing FAX with SQL Mail

2. Adressing Oracle Parallel Server from Oracle Services for MTS

3. 64-bit adressing on ASE12 ?

4. Header and footer

5. DTS to destination text file containing headers / footers

6. Importing header, footer and detail records

7. Export File with a header and footer

8. Unwanted Header and Footer

9. Ignoring Footer Record in a text file

10. Please help DTS header/footer

11. Footer record


 
Powered by phpBB® Forum Software