Instead of doing this, you could create a part template for the different
types of parts that you will be making.
Nice thing about this is that you can set up part class, product group and
check boxes.
Then, to make a new part just start with the template and do a
Action->Duplicate
Whole lot easier then doing some VB.Net code
Bruce
_____
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of
teaglem
Sent: Thursday, March 19, 2009 10:07 AM
To: vantage@yahoogroups.com
Subject: [Vantage] Re: Default checkbox
Hi, this is the code we have in one of our part customizations, hope it
helps
'//**************************************************
'// Custom VB.NET code for PartForm
'// Created: 18/07/2007 15:06:35
'//**************************************************
Imports System
Imports System.Data
Imports System.Diagnostics
Imports System.Windows.Forms
Imports System.ComponentModel
Imports Microsoft.VisualBasic
Imports Epicor.Mfg.UI
Imports Epicor.Mfg.UI.FrameWork
Imports Epicor.Mfg.UI.ExtendedProps
Imports Epicor.Mfg.UI.FormFunctions
Imports Epicor.Mfg.UI.Customization
Imports Epicor.Mfg.UI.Adapters
Imports Epicor.Mfg.UI.Searches
Imports Epicor.Mfg.BO
Module Script
'// ** Wizard Insert Location - Do Not Remove 'Begin/End Wizard
Added Module Level Variables' Comments! **
'// Begin Wizard Added Module Level Variables **
Private WithEvents edvPart As EpiDataView
'// End Wizard Added Module Level Variables **
'// Add Custom Module Level Variables Here **
Sub InitializeCustomCode()
'// ** Wizard Insert Location - Do not delete 'Begin/End Wizard
Added Variable Intialization' lines **
'// Begin Wizard Added Variable Intialization
edvPart = CType(oTrans.EpiDataViews("Part"), EpiDataView)
'// End Wizard Added Variable Intialization
'// Begin Custom Method Calls
Sub DestroyCustomCode()
'// ** Wizard Insert Location - Do not delete 'Begin/End Wizard
Added Object Disposal' lines **
'// Begin Wizard Added Object Disposal
'// End Wizard Added Object Disposal
'// Begin Custom Code Disposal
'// End Custom Code Disposal
End Sub
Private Sub edvPart_EpiViewNotification(view As EpiDataView, args As
EpiNotifyArgs) Handles edvPart.EpiViewNotification
'// ** Argument Properties and Uses **
'// view.dataView(args.Row)("[FieldName]")
'// args.Row, args.Column, args.Sender, args.NotifyType
'// NotifyType.Initialize, NotifyType.AddRow,
NotifyType.DeleteRow, NotifyType.InitLastView,
NotifyType.InitAndResetTreeNodes
If (args.NotifyType = EpiTransaction.NotifyType.AddRow) Then
If (args.Row > -1) Then
Dim partView As EpiDataView = CType(oTrans.EpiDataViews("Part"),
EpiDataView)
partView.dataView(partView.Row)("NonStock") = "TRUE"
End If
End If
End Sub
End Module
--- In vantage@yahoogroups <mailto:vantage%40yahoogroups.com> .com,
"kirsty2179" <dobby01@...> wrote:
custamations?
types of parts that you will be making.
Nice thing about this is that you can set up part class, product group and
check boxes.
Then, to make a new part just start with the template and do a
Action->Duplicate
Whole lot easier then doing some VB.Net code
Bruce
_____
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of
teaglem
Sent: Thursday, March 19, 2009 10:07 AM
To: vantage@yahoogroups.com
Subject: [Vantage] Re: Default checkbox
Hi, this is the code we have in one of our part customizations, hope it
helps
'//**************************************************
'// Custom VB.NET code for PartForm
'// Created: 18/07/2007 15:06:35
'//**************************************************
Imports System
Imports System.Data
Imports System.Diagnostics
Imports System.Windows.Forms
Imports System.ComponentModel
Imports Microsoft.VisualBasic
Imports Epicor.Mfg.UI
Imports Epicor.Mfg.UI.FrameWork
Imports Epicor.Mfg.UI.ExtendedProps
Imports Epicor.Mfg.UI.FormFunctions
Imports Epicor.Mfg.UI.Customization
Imports Epicor.Mfg.UI.Adapters
Imports Epicor.Mfg.UI.Searches
Imports Epicor.Mfg.BO
Module Script
'// ** Wizard Insert Location - Do Not Remove 'Begin/End Wizard
Added Module Level Variables' Comments! **
'// Begin Wizard Added Module Level Variables **
Private WithEvents edvPart As EpiDataView
'// End Wizard Added Module Level Variables **
'// Add Custom Module Level Variables Here **
Sub InitializeCustomCode()
'// ** Wizard Insert Location - Do not delete 'Begin/End Wizard
Added Variable Intialization' lines **
'// Begin Wizard Added Variable Intialization
edvPart = CType(oTrans.EpiDataViews("Part"), EpiDataView)
'// End Wizard Added Variable Intialization
'// Begin Custom Method Calls
Sub DestroyCustomCode()
'// ** Wizard Insert Location - Do not delete 'Begin/End Wizard
Added Object Disposal' lines **
'// Begin Wizard Added Object Disposal
'// End Wizard Added Object Disposal
'// Begin Custom Code Disposal
'// End Custom Code Disposal
End Sub
Private Sub edvPart_EpiViewNotification(view As EpiDataView, args As
EpiNotifyArgs) Handles edvPart.EpiViewNotification
'// ** Argument Properties and Uses **
'// view.dataView(args.Row)("[FieldName]")
'// args.Row, args.Column, args.Sender, args.NotifyType
'// NotifyType.Initialize, NotifyType.AddRow,
NotifyType.DeleteRow, NotifyType.InitLastView,
NotifyType.InitAndResetTreeNodes
If (args.NotifyType = EpiTransaction.NotifyType.AddRow) Then
If (args.Row > -1) Then
Dim partView As EpiDataView = CType(oTrans.EpiDataViews("Part"),
EpiDataView)
partView.dataView(partView.Row)("NonStock") = "TRUE"
End If
End If
End Sub
End Module
--- In vantage@yahoogroups <mailto:vantage%40yahoogroups.com> .com,
"kirsty2179" <dobby01@...> wrote:
>up new part form it still not ticked.
> Thanks have tried this it says please save new part and when you open
>Hughes thughes281@ wrote:
>
> --- In vantage@yahoogroups <mailto:vantage%40yahoogroups.com> .com, Tony
> >Layouts.
> > I think all forms work this way, try this:
> > Check the box you want as default, from Tools menu click Save
> > Now every time you open the form, the box should be checked.tick like qty bearing when new part is enter how do i do this in
> >
> >
> >
> >
> >
> > ________________________________
> > From: kirsty2179 dobby01@
> > To: vantage@yahoogroups <mailto:vantage%40yahoogroups.com> .com
> > Sent: Thursday, March 19, 2009 4:43:07 AM
> > Subject: [Vantage] Default checkbox
> >
> >
> > Hello,
> >
> > Can anyone help ,need to set tick box for non stock to automallay
custamations?
> >[Non-text portions of this message have been removed]
> >
> >
> >
> >
> >
> >
> >
> > [Non-text portions of this message have been removed]
> >
>