I am working on a customization to the Job Entry Form that does the following:
1. List Serial Numbers Assigned to that Job
2. Allow user to select Serial Numbers INDIVIDUALLY, ALL, or NONE (via a some field on the s/n table)
3. A button on the form flips a UD checkbox field on the JobHead table, which fires a BAM, which fires a custom .p program to print labels out via bartender.
My issues are in step #2:
A) I have a EpiUltraGrid that I populate using the code below. How can I populate this grid with SerialNumber data that is editable?
B) What field can I use as a flag? I see no UD fields in this table. Could I use "Selected" field - what is this field used for, it seems perfect? Or, could I use the SNReference field somehow?
Thanks in advance!
Keith Walter
Private Sub edvJobHead_EpiViewNotification(view As EpiDataView, args As EpiNotifyArgs) Handles edvJobHead.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
Try
If (args.Row > -1) Then
Dim ds As DataSet
Dim opts as SearchOptions
Opts = new SearchOptions(SearchMode.AutoSearch)
opts.DataSetMode = DataSetMode.ListDataSet
opts.SelectMode = SelectMode.MultiSelect
opts.PreLoadSearchFilter = "JobNum = '" & edvJobHead.dataview(edvJobHead.Row)("JobNum").ToString() & "'"
ds = Epicor.Mfg.UI.FrameWork.ProcessCaller.LaunchSearch(oTrans, "SerialNoAdapter", opts)
ugdSerialNumbers.DataSource = ds.Tables(0)
Else
ugdSerialNumbers.DataSource = Nothing
End If
Catch ex as exception
MsgBox(ex.message)
End try
End Sub
1. List Serial Numbers Assigned to that Job
2. Allow user to select Serial Numbers INDIVIDUALLY, ALL, or NONE (via a some field on the s/n table)
3. A button on the form flips a UD checkbox field on the JobHead table, which fires a BAM, which fires a custom .p program to print labels out via bartender.
My issues are in step #2:
A) I have a EpiUltraGrid that I populate using the code below. How can I populate this grid with SerialNumber data that is editable?
B) What field can I use as a flag? I see no UD fields in this table. Could I use "Selected" field - what is this field used for, it seems perfect? Or, could I use the SNReference field somehow?
Thanks in advance!
Keith Walter
Private Sub edvJobHead_EpiViewNotification(view As EpiDataView, args As EpiNotifyArgs) Handles edvJobHead.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
Try
If (args.Row > -1) Then
Dim ds As DataSet
Dim opts as SearchOptions
Opts = new SearchOptions(SearchMode.AutoSearch)
opts.DataSetMode = DataSetMode.ListDataSet
opts.SelectMode = SelectMode.MultiSelect
opts.PreLoadSearchFilter = "JobNum = '" & edvJobHead.dataview(edvJobHead.Row)("JobNum").ToString() & "'"
ds = Epicor.Mfg.UI.FrameWork.ProcessCaller.LaunchSearch(oTrans, "SerialNoAdapter", opts)
ugdSerialNumbers.DataSource = ds.Tables(0)
Else
ugdSerialNumbers.DataSource = Nothing
End If
Catch ex as exception
MsgBox(ex.message)
End try
End Sub