![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
the simplest way would be to not let them do this is Edit Mode.. clicking on a field doesn't lock the record.. clicking on a field *in Edit Mode* locks the record.. |
#3
| |||
| |||
|
|
My question is how can I prevent users from locking a record when they click on the field. |
#4
| |||
| |||
|
#5
| |||
| |||
|
|
On a table frame on my form I have a field on the right most column designed for users to left click on and then slide the mouse down over as many records as they wish to select. The field is logical. As they slide the mouse down the color of the field changes and the value is turned to False. I then use this field to setGenFilter the table when the user clicks a button. My question is how can I prevent users from locking a record when they click on the field. Here is the code I am using so far: In the built in action method of the field: ;-------------------------------------------------------------- method action(var eventInfo ActionEvent) id = eventInfo.id() if id = DataLockRecord then disableDefault endif if self.value = True then Self.Color = Blue else Self.color = Gray endif endMethod ;---------------------------------------------------- In the built in mouseDown method of the field: ;------------------------------------------------------ method mouseDown(var eventInfo MouseEvent) moveto(self) if select.recordStatus("Locked") then select.unlockRecord() endIf if self.value = False then self.value = True else self.value = False endif endMethod ;------------------------------------------------ In the built in mouseEnter method of the field: ;------------------------------------------------ method mouseEnter(var eventInfo MouseEvent) var TopLeft, BotRight Point endVar disabledefault if eventInfo.isLeftDown() then moveto(self) if select.recordStatus("Locked") then select.unlockRecord() endIf if self.value = False then self.value = True else self.value = False endif self.action(MoveScrollDown) else endif endMethod Thanks for your help in advance! -Bruce |
![]() |
| Thread Tools | |
| Display Modes | |
| |