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!

A Secured Field after fill

Status
Not open for further replies.

Pianotech

Technical User
Oct 20, 2001
8
US
This is in paradox 9. I'm building a database for salesmen in a music store. I need the user to put his name in the salesman field when he/she opens a new recored but that field turns into readonly when it is written to the record so other salesmen can't overwrite his name. I've experimented with several objectpal codes and have had no luck with it working.

Thanks

Alan
 
Alan,
Is it possible to do this by having each user assigned a different log-on ID? Let your code insert the Salesman's ID / Name in the background, based on the log-on ID.

Alternatively, in your Salesman's name field, set the field to readOnly if the field has data in it using the arrive method for the field, e.g.
method arrive (....);
if self.value = blank() then
self.readOnly = false
else
self.readOnly = true
endif
endMethod
HTH
Padraig

 
Thanks I'll try it. It looks like I was close except I was going at it backwards.

Alan - Pianotech
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top