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!

RichTextEdit and DataWindow ... HELP URGENT!!!!!

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I am new to PB Development. I have a datawindow with several columns. One of them is a varchar(2000). I want to use a RichTextEdit to display this column, so that users can edit that field just like an editor. I am using PB7.0 and I don't know how to do it. I tried to insert a RichTextEdit in the DataWindow, but how can I connect this with that column???? Please help.

Thank you.
 
You should try this:
Create a new RichText DataWindow. When creating this datawindow, in the SQL part:
-select the table that contains the column varchar(2000) you want to display.
-click that column
-add an argument (eg "argument_name")
-in the where clause, add eg id=:argument_name //where id is a unique identifier identifying the row you want to display
-save this RichText DataWindow

Then, in the DataWindow where you want to display the RichText:
- add an object of type "report"
- As propriety for this report, select the datawindow you created before
- in the proprieties of this sub-report you can choose which field of the main DataWindow is the id for the argument_name of the sub-datawindow

Sorry for the bad English (I use to speek french) and also sorry for the approximations. I have PowerBuilder at work but not at home. I'm now at home!

Good luck!
 
Thanks for your reply.

I tried the same. But I am getting an error 'RTF report {report name} cannot be used as a nested report'.

Any suggestions?.
Thanks

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top