Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
method action(var eventInfo ActionEvent)
var
siActionID smallInt
endVar
siActionID = eventInfo.id()
switch
case siActionID = dataUnlockRecord :
if not active.action( dataPostRecord ) then
eventInfo.setErrorCode( userError )
endIf
case siActionID = dataPostRecord :
if self.Touched then
if msgQuestion( "Confirmation",
"Are you sure you want to save these " +
"changes? They cannot be reversed." ) <> "Yes" then
eventInfo.setErrorCode( userError )
active.postAction( dataCancelRecord )
endIf
endIf
endSwitch
endMethod
method action(var eventInfo ActionEvent)
if eventInfo.id() = dataBeginEdit then
if msgQuestion( "Confirmation",
"Are you sure you want to change this record? " +
"Saved changes cannot be reversed." ) <> "Yes" then
eventInfo.setErrorCode( userError )
endIf
endIf
endMethod
method changeValue(var eventInfo ValueEvent)
if eventInfo.reason() <> startupValue then
if msgQuestion( "Confirmation",
"Are you sure you want to change this field? " +
"Saved changes cannot be reversed." ) <> "Yes" then
eventInfo.setErrorCode( userError )
endIf
endIf
endMethod