Hello. I have a data entry form with a tab control at the bottom. The form has a large panel behind all the controls so that if a user clicks on it inadvertently, I can prevent a commit. I just noticed, though, that if you click anywhere on a tab control on that same form, I'm getting a commit action.
I'd like to prevent that. I thought maybe at the top of my onrecordcommit, I could check to see if the user is clicking on the tab control and, if so, exit with a 'false' to prevent the commit at this point. I tried get(activelayoutobjectname), but it's not returning anything even though each tab is named.
While I could similarly put a panel over the area of each tab control, it still doesn't prevent a user from clicking in that tiny area right around the name of the actual tab.
Any ideas?
How about using a global variable?
onRecordCommit
If [ not $$comittable ]
Exit Script [ 0 ]
Else
Set Variable [ $$comittable ; "" ]
Exit Script [ 1 ] //not need
End If
Button to commit
Set Variable [ $$comittable ; 1 ]
Commit Record