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

How to update a DataWindow in PowerBuilder

Status
Not open for further replies.

santosh2natal

Programmer
Aug 10, 2003
37
IN
Hi all,
How to update a DataWindow in PowerBuilder at run-time of application, which is created using stored procedure itselt?
 
Hi,

Set the update rows properties on datawindow. Allow Updates. Use key. Select all of the updateable columns. Select the key. Select use update. and make the table name a Junk name like"Junk".
In the sqlpreview event. Add the code to get all the values from your data window. and either update the db via sql or another stored proc

I hope this wasn't too confusing as I am doing this from memory.

Cheers
MJ
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top