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!

Can I use Data Window without DataBase?

Status
Not open for further replies.

bbone

Programmer
Aug 18, 2003
10
SI
Hi!

I need a data window for a data that is only valid while application is running. After that i must clear that data window for next use of app. Do i need all thet connect, settransobject, retrieve,... statements or is there another way to do it? Do i still use InsertRow function? How? And how do i clear that data at fresh start of app?
Thanks!
 
Define a datawindow with an External datasource. In this type you define the type of columns, column names, etc.
To use this in your app you insert a row and then populated it via setitems; there is no need to settransobject. To refresh it use the reset method.
 
BBone,

Use an datawindow with External presentation-style. You can store static-data in the datawindow definition itself from the menu: Rows->Data. You can work on static data at runtime using functions such as Reset(), InsertRow(), DeleteRow()...

---
PowerObject!
-----------------------------------------
PowerBuilder / PFC Developers' Group
 
Hi!

I did that and it is running without errors, but when i open window on which datawindow is located, the datawindow is still empty. No data can be seen. Can u please tell me why?
Thanks for ur help!
 
It is b'cos u don't have any data / inserted no data there.
Or if you have data then check the properties of the datawindows etc.
 
You might have assigned a wrong dataobject to the datawindow on your window. Check to see if you have assigned the same dataobject that you saved with pre-inserted rows.

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

Part and Inventory Search

Sponsor

Back
Top