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!

not allowing user to edit data

Status
Not open for further replies.

Bri123456

Programmer
Jan 3, 2002
30
CA
Hi I want the option for the user to enter data but not edit the data displayed in my datawindow. Is there a property that I can use (something lik in access for a form form.allowedits()) thanks for any help with this
 
Bruce,

Are you talking about being able to enter new data but protect the existing data? If so, you can set the column properties inside the dw under Expressions tab to:

Protected:
If( IsRowNew(), 0, 1 )

Background Color:
If( IsRowNew(), RGB( 255,255,255 ), RGB( 192,192,192 ))

The above dynamic-expressions enable columns for all new rows and disable for existing rows. Further, the background color is set to indicate their editability.

---
PowerObject!
-----------------------------------------
PowerBuilder / PFC Developers' Group
 
Check your data window tab property ..edit column must be assigned some tab value in stead of zero .

And by the way if want to protect ur previous data n add new ..then use variablles and assign them accordingly.

Hope it solves ur probs.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top