I decided to try the second option. The groupbox's do become invisible when I insert the code below, but I believe that this is happening when all methods are being executed. I believe the only time I want them to be made invisible is when the "GetByID" method is executed. I've tried incorporating this into the code, but im not sure of the syntax i need to enter, or where it needs to be entered. And i keep getting the following Error:
Error: Â BC30456 - line 110 (562) - 'getbyid' is not a member of 'Epicor.Mfg.UI.FrameWork.AfterAdapterMethodArgs'.
Heres the code that I'm currently using that I believe works for all methods. Have any ideas of what I can do to limit this to just the "GetByID" method?
 Private Sub oTrans_adapter_AfterAdapterMethod(ByVal sender As object, ByVal args As AfterAdapterMethodArgs) Handles oTrans_adapter.AfterAdapterMethod
  '// ** Argument Properties and Uses **
 Â
       '//args.methodname
 Â
  'Add Event Handler Code
  '
  MessageBox.Show(args.MethodName) ' use this to find method
       Dim Groupbox1 As EpiGroupbox  Â
       Groupbox1 = CType(csm.GetNativeControlReference("82cd710f-e168-4924-acad-233e0df73221"), EpiGroupbox)
       Groupbox1.Visible = False
       Groupbox1.Enabled = False
  Select Case args.methodname
Â
   Case "Update"
       Â
   Case Else
Â
  End Select
Â
 End Sub
----- Original Message ----
From: Steven Gotschall <sgotschall@...>
To: vantage@yahoogroups.com
Sent: Wednesday, September 10, 2008 11:48:35 AM
Subject: Re: [Vantage] Customization Question 8.03.4XX
I can think of two other options.
One that I've used is to use the tracing options to determine what business methods are executed when you load a new part. Then you create a BPM that sets a UD check box (one for each groupbox) when the meathod is called. Finally you create a row rule for each checkbox to hide the groupbox when the Checkbox is true.  You customization would then have to clear the check box to show the groupbox.
Another way is to use the after adapter method to hide all the groupbox. Again, you would have to determine which adapter to use.
----- Original Message ----
From: melissa hietala <kevmel822@yahoo. com>
To: vantage@yahoogroups .com
Sent: Wednesday, September 10, 2008 12:10:17 PM
Subject: Re: [Vantage] Customization Question 8.03.4XX
I've tested this scenario and it doesn't seem to work. I believe its because the Part.PartNum field is not actually being "changed' for the current record. Instead, u would be pulling in a different Part. Would you have any other suggestions?
Thanks
Â
Dustin Biniek
UMC, Inc.
DustinB@ultramc. com
----- Original Message ----
From: Steven Gotschall <sgotschall@ yahoo. com>
To: vantage@yahoogroups .com
Sent: Wednesday, September 10, 2008 10:57:15 AM
Subject: Re: [Vantage] Customization Question 8.03.4XX
Use the Wizards/Form Event Wiazrd
Event Type = AfterFieldChange
Table = Part
Fields = PartNum
The Code Would look something like this:
Private Sub OrderDtl_AfterField Change(ByVal sender As object, ByVal args As DataColumnChangeEve ntArgs) Handles
'// ** Argument Properties and Uses **
'// args.Row("[FieldNam e]")
'// args.Column, args.ProposedValue, args.Row
'
'Add Event Handler Code
'
...
...
...
Select Case args.Column. ColumnName
Â
   Case "PartNum"
Handles Part_Column. ColumnChanged       Groupbox1.Visible = False
       Groupbox2.Visible = False
       Groupbox3.Visible = False
   Case Else
End Select
...
...
...
----- Original Message ----
From: melissa hietala <kevmel822@yahoo. com>
To: vantage@yahoogroups .com
Sent: Wednesday, September 10, 2008 11:27:46 AM
Subject: [Vantage] Customization Question 8.03.4XX
Hi All,
Â
I'm setting up a customization in Part Maintenance.  I added a custom button to the form and placed the code seen below as the actions to be performed when the button is clicked. Basically, I have 3 different group boxes that are originally set to be invisible, and when the user clicks on the button, one of the group boxes will be made visible depending on the value of the "Part.SearchWord" field. This all seems to be working fine. However, say I pull in a part # and click on my custom button to make the appropriate groupbox visible. I then search for and pull in a different part#. Unfortunately the Groupbox is still being displayed, when really I would like it to be made invisible again when a different part is selected. So really what I was wondering is how I could get 3 groupboxes to be invisible each time a different part number is used? I hope this all makes sense & I would appreciate any advice that you would have to offer.
Â
Thanks in advance,
Â
Dustin Biniek
DustinB@ultramc. com
Â
Â
Private Sub btnEpiCustom1_ Click(ByVal Sender As Object, ByVal Args As System.EventArgs) Handles btnEpiCustom1. Click
       '// ** Place Event Handling Code Here **
   Dim edv as EpiDataView = CType(oTrans. EpiDataViews( "Part"), EpiDataView)
   Dim GroupBox1 As EpiGroupbox
   Dim GroupBox2 As EpiGroupbox
   Dim GroupBox3 As EpiGroupbox
   If edv.dataview( edv.row)( "SearchWord" ) = "Drill" Then   Â
   Groupbox1 = CType(csm.GetNative ControlReference ("82cd710f- e168-4924- acad-233e0df7322 1"), EpiGroupbox)
   Groupbox1.Visible = True
   Groupbox1.Enabled = True
   Else If edv.dataview( edv.row)( "SearchWord" ) = "Endmill" Then   Â
   Groupbox2 = CType(csm.GetNative ControlReference ("a016dcd2- c0f9-47a7- bed5-03d88d5d7ff 7"), EpiGroupbox)
   Groupbox2.Visible = True
   Groupbox2.Enabled = True
   Else If edv.dataview( edv.row)( "SearchWord" ) = "BOREBAR" Then   Â
   Groupbox3 = CType(csm.GetNative ControlReference ("c7ffa9a8- 5f36-4721- 8360-0c360e2e069 f"), EpiGroupbox)
   Groupbox3.Visible = True
   Groupbox3.Enabled = True
   End If
   End Sub
[Non-text portions of this message have been removed]
[Non-text portions of this message have been removed]
[Non-text portions of this message have been removed]
[Non-text portions of this message have been removed]
[Non-text portions of this message have been removed]
Error: Â BC30456 - line 110 (562) - 'getbyid' is not a member of 'Epicor.Mfg.UI.FrameWork.AfterAdapterMethodArgs'.
Heres the code that I'm currently using that I believe works for all methods. Have any ideas of what I can do to limit this to just the "GetByID" method?
 Private Sub oTrans_adapter_AfterAdapterMethod(ByVal sender As object, ByVal args As AfterAdapterMethodArgs) Handles oTrans_adapter.AfterAdapterMethod
  '// ** Argument Properties and Uses **
 Â
       '//args.methodname
 Â
  'Add Event Handler Code
  '
  MessageBox.Show(args.MethodName) ' use this to find method
       Dim Groupbox1 As EpiGroupbox  Â
       Groupbox1 = CType(csm.GetNativeControlReference("82cd710f-e168-4924-acad-233e0df73221"), EpiGroupbox)
       Groupbox1.Visible = False
       Groupbox1.Enabled = False
  Select Case args.methodname
Â
   Case "Update"
       Â
   Case Else
Â
  End Select
Â
 End Sub
----- Original Message ----
From: Steven Gotschall <sgotschall@...>
To: vantage@yahoogroups.com
Sent: Wednesday, September 10, 2008 11:48:35 AM
Subject: Re: [Vantage] Customization Question 8.03.4XX
I can think of two other options.
One that I've used is to use the tracing options to determine what business methods are executed when you load a new part. Then you create a BPM that sets a UD check box (one for each groupbox) when the meathod is called. Finally you create a row rule for each checkbox to hide the groupbox when the Checkbox is true.  You customization would then have to clear the check box to show the groupbox.
Another way is to use the after adapter method to hide all the groupbox. Again, you would have to determine which adapter to use.
----- Original Message ----
From: melissa hietala <kevmel822@yahoo. com>
To: vantage@yahoogroups .com
Sent: Wednesday, September 10, 2008 12:10:17 PM
Subject: Re: [Vantage] Customization Question 8.03.4XX
I've tested this scenario and it doesn't seem to work. I believe its because the Part.PartNum field is not actually being "changed' for the current record. Instead, u would be pulling in a different Part. Would you have any other suggestions?
Thanks
Â
Dustin Biniek
UMC, Inc.
DustinB@ultramc. com
----- Original Message ----
From: Steven Gotschall <sgotschall@ yahoo. com>
To: vantage@yahoogroups .com
Sent: Wednesday, September 10, 2008 10:57:15 AM
Subject: Re: [Vantage] Customization Question 8.03.4XX
Use the Wizards/Form Event Wiazrd
Event Type = AfterFieldChange
Table = Part
Fields = PartNum
The Code Would look something like this:
Private Sub OrderDtl_AfterField Change(ByVal sender As object, ByVal args As DataColumnChangeEve ntArgs) Handles
'// ** Argument Properties and Uses **
'// args.Row("[FieldNam e]")
'// args.Column, args.ProposedValue, args.Row
'
'Add Event Handler Code
'
...
...
...
Select Case args.Column. ColumnName
Â
   Case "PartNum"
Handles Part_Column. ColumnChanged       Groupbox1.Visible = False
       Groupbox2.Visible = False
       Groupbox3.Visible = False
   Case Else
End Select
...
...
...
----- Original Message ----
From: melissa hietala <kevmel822@yahoo. com>
To: vantage@yahoogroups .com
Sent: Wednesday, September 10, 2008 11:27:46 AM
Subject: [Vantage] Customization Question 8.03.4XX
Hi All,
Â
I'm setting up a customization in Part Maintenance.  I added a custom button to the form and placed the code seen below as the actions to be performed when the button is clicked. Basically, I have 3 different group boxes that are originally set to be invisible, and when the user clicks on the button, one of the group boxes will be made visible depending on the value of the "Part.SearchWord" field. This all seems to be working fine. However, say I pull in a part # and click on my custom button to make the appropriate groupbox visible. I then search for and pull in a different part#. Unfortunately the Groupbox is still being displayed, when really I would like it to be made invisible again when a different part is selected. So really what I was wondering is how I could get 3 groupboxes to be invisible each time a different part number is used? I hope this all makes sense & I would appreciate any advice that you would have to offer.
Â
Thanks in advance,
Â
Dustin Biniek
DustinB@ultramc. com
Â
Â
Private Sub btnEpiCustom1_ Click(ByVal Sender As Object, ByVal Args As System.EventArgs) Handles btnEpiCustom1. Click
       '// ** Place Event Handling Code Here **
   Dim edv as EpiDataView = CType(oTrans. EpiDataViews( "Part"), EpiDataView)
   Dim GroupBox1 As EpiGroupbox
   Dim GroupBox2 As EpiGroupbox
   Dim GroupBox3 As EpiGroupbox
   If edv.dataview( edv.row)( "SearchWord" ) = "Drill" Then   Â
   Groupbox1 = CType(csm.GetNative ControlReference ("82cd710f- e168-4924- acad-233e0df7322 1"), EpiGroupbox)
   Groupbox1.Visible = True
   Groupbox1.Enabled = True
   Else If edv.dataview( edv.row)( "SearchWord" ) = "Endmill" Then   Â
   Groupbox2 = CType(csm.GetNative ControlReference ("a016dcd2- c0f9-47a7- bed5-03d88d5d7ff 7"), EpiGroupbox)
   Groupbox2.Visible = True
   Groupbox2.Enabled = True
   Else If edv.dataview( edv.row)( "SearchWord" ) = "BOREBAR" Then   Â
   Groupbox3 = CType(csm.GetNative ControlReference ("c7ffa9a8- 5f36-4721- 8360-0c360e2e069 f"), EpiGroupbox)
   Groupbox3.Visible = True
   Groupbox3.Enabled = True
   End If
   End Sub
[Non-text portions of this message have been removed]
[Non-text portions of this message have been removed]
[Non-text portions of this message have been removed]
[Non-text portions of this message have been removed]
[Non-text portions of this message have been removed]