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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Add a field in a report

Status
Not open for further replies.

jcura

Programmer
Oct 18, 2002
34
PT
I have a datawindow object , and I need to update it with a new column in
the Detail band which have a fixed value.
I have tried with a Text box, with a Computed field and nothing works
The code I used was:
dw_1.of_setreport(TRUE)
ls_aux=dw_1.inv_report.of_addText("1","Detail",Right!,Vcenter!)
or
ls_aux=dw_1.inv_report.of_addCompute("1","Detail",Right!,Vcenter!)

and then I export the report to a text file, and the file hasn't that new
field...

Am I missing something??

Thanks
Jose Silva
 
Hi,

The only things that get saved when you export data to a TEXT file are the raw data in the db-columns (from the SQL SELECT statement). You cannot save the computed fields or text objects into a text file. You may try exporting it to a HTML! or PowersoftReport! (PSR) format.

Regards,

--
PowerObject!
-----------------------------------------
PowerBuilder / PFC Developers' Group
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top