Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How get computed field’s value from no detail band

Status
Not open for further replies.

Yu2k

Programmer
Mar 19, 2003
11
GB
How get computed field’s value in the script if it locate in no detail band. In PB help - «When you refer to an control in a band other than the detail band (usually a computed field) you still specify a row number. For the header, footer, or summary, specify a row number of 1.» But this not work. PB 8.0 in me.
 
getitemnumber(1, "computedfieldname") does not work?
can you post an export of your dw?
sounds strange to me... --
regards,
Simon
 
To 51m0n: computed field's definition from dw - compute(band=header expression="~"Page ~" + page()" name=compute_page ... ).
I get tips. Correct work this expression: dw_1.getitemstring(dw_1.GetRow(), "compute_page"). But it not work in case Print.Preview = "yes"
 
did you try dw_1.getitemstring(1, "compute_page")? getrow() may return something different from 1 in report view.
also try dw_1.getitemnumber(1, "compute_page"). --
regards,
Simon
 
To Simon: dw_1.getitemstring(1, "compute_page") for each page return 'Page 1'. I don't see logic in GetRow() too. But this work correctly.
Repeat: my PB version is 8.0. Possible in previous versions this work in another way.
--
regards,
Yury
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top