KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: How do I deselect a record on a Single Selection subform object?
PRODUCT: 4D | VERSION: 2004.2 | PLATFORM: Mac & Win
Published On: October 20, 2005
Your current browser may not allow you to download the asset. We recommend Mozilla Firefox or Google Chrome.
Log In

In some cases developers want to remove the selected record in a Single Selection subform. The way to deselect the highlighted record in the subform is change the current record pointer for the subform table before or while the detail form is open.

For example, if you want the selected record in the subform to be removed when the form is opened, put this code in your detail form's Form Method:

Case of
: (Form Event = On Load)
LAST RECORD([subformtable])
NEXT RECORD([subformtable])
End case