Yes - But what you really want to do is trigger the unchecking by the presence of a newly loaded part number (not just the initial form load):
Module Script
Private WithEvents oTrans_adapter As EpiBaseAdapter
Private WithEvents edvMisc As EpiDataView
Sub InitializeCustomCode()
oTrans_adapter = csm.TransAdaptersHT("oTrans_adapter")
edvMisc = CType(oTrans.EpiDataViews("Misc"), EpiDataView)
End Sub
Sub DestroyCustomCode()
oTrans_adapter = Nothing
edvMisc = Nothing
End Sub
Private Sub oTrans_adapter_AfterAdapterMethod(ByVal sender As object,
_ByVal args As AfterAdapterMethodArgs)
_Handles oTrans_adapter.AfterAdapterMethod
Select Case args.MethodName
Case "GetFrameTitle"
'txtEpiCustom1 is a custom textbox control
'linked to table "Misc" field "PartNum
'and set to Enabled = True, Visible = False
'(drag it off the panel to a
'negative x,y cooridinate for good measure
'so it doesn't 'bleed though' and annoy users
If (txtEpiCustom1.Text <> String.Empty) Then
edvMisc.dataView(edvMisc.Row)("TOSuggestions") = False
edvMisc.dataView(edvMisc.Row)("Suggestions") = False
End If
Case Else
End Select
End Sub
End Module
Module Script
Private WithEvents oTrans_adapter As EpiBaseAdapter
Private WithEvents edvMisc As EpiDataView
Sub InitializeCustomCode()
oTrans_adapter = csm.TransAdaptersHT("oTrans_adapter")
edvMisc = CType(oTrans.EpiDataViews("Misc"), EpiDataView)
End Sub
Sub DestroyCustomCode()
oTrans_adapter = Nothing
edvMisc = Nothing
End Sub
Private Sub oTrans_adapter_AfterAdapterMethod(ByVal sender As object,
_ByVal args As AfterAdapterMethodArgs)
_Handles oTrans_adapter.AfterAdapterMethod
Select Case args.MethodName
Case "GetFrameTitle"
'txtEpiCustom1 is a custom textbox control
'linked to table "Misc" field "PartNum
'and set to Enabled = True, Visible = False
'(drag it off the panel to a
'negative x,y cooridinate for good measure
'so it doesn't 'bleed though' and annoy users
If (txtEpiCustom1.Text <> String.Empty) Then
edvMisc.dataView(edvMisc.Row)("TOSuggestions") = False
edvMisc.dataView(edvMisc.Row)("Suggestions") = False
End If
Case Else
End Select
End Sub
End Module
--- On Tue, 7/29/08, Brian <brian.chandler@...> wrote:
From: Brian <brian.chandler@...>
Subject: [Vantage] Time Phase Suggestions
To: vantage@yahoogroups.com
Date: Tuesday, July 29, 2008, 11:14 AM
Does anyone know how I can modify the Time Phase form to
leave 'Suggestions' unchecked when the form is opened?