Programatically default a new employees expense code

Many of the Epicor in-memory tables store both the code and description
for dropdowns, I'd guess that expense code is handled the same way. If
you're setting a default code (via BPM or your method) then set the
description too. The field probably called ExpenseCodeDescription.
Otherwise, as you've seen, the description doesn't appear at first, even
though the code is there and properly saved.



Brian.



From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
Of Ted Koch
Sent: Friday, October 19, 2012 9:16 AM
To: vantage@yahoogroups.com
Subject: Re: [Vantage] Programatically default a new employees expense
code





Sorry for wasting time. I didn't change anything except add a new field
to the production tab. Now when I save the new record it changes None
Selected to display the expense code.

________________________________
From: tkoch77 <tkoch77@... <mailto:tkoch77%40yahoo.com> >
To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
Sent: Friday, October 19, 2012 8:58 AM
Subject: [Vantage] Programatically default a new employees expense code

Hi all,

When creating a new Employee I want to default their expense code. I
have tried setting this with an EmpBasic.GetNewEmpBasic post-processing
BPM, as well as using the edvEmpBasic_EpiViewNotification (see below).

What's weird is after I click New, the Expense Code combobox says None
Selected. I enter a name and save and isn't making me enter an expense
code. Right after I save the new employee I run a BAQ and the value for
the expense code is there. Then when I pull the employee's record I just
added, it still says None Selected. The expense code I am using in
either the BPM or code is correct and valid in LabExpCd.ExpenseCode.

Private Sub edvEmpBasic_EpiViewNotification(ByVal view As
EpiDataView, ByVal args As EpiNotifyArgs)
If (args.NotifyType = EpiTransaction.NotifyType.AddRow) Then
If (args.Row > -1) Then
edvEmpBasic.dataView(edvEmpBasic.Row)("ExpenseCode") =
"C01"
edvEmpBasic.dataView(edvEmpBasic.Row)("ShortChar02") =
"1"
oTrans.NotifyAll()
End If
End If
End Sub

Can anyone else replicate this?

Thanks,

-Ted

------------------------------------

Useful links for the Yahoo!Groups Vantage Board are: ( Note: You must
have already linked your email address to a yahoo id to enable access. )
(1) To access the Files Section of our Yahoo!Group for Report Builder
and Crystal Reports and other 'goodies', please goto:
http://groups.yahoo.com/group/vantage/files/.
<http://groups.yahoo.com/group/vantage/files/>
(2) To search through old msg's goto:
http://groups.yahoo.com/group/vantage/messages
(3) To view links to Vendors that provide Vantage services goto:
http://groups.yahoo.com/group/vantage/linksYahoo! Groups Links

[Non-text portions of this message have been removed]





[Non-text portions of this message have been removed]
Hi all,

When creating a new Employee I want to default their expense code. I have tried setting this with an EmpBasic.GetNewEmpBasic post-processing BPM, as well as using the edvEmpBasic_EpiViewNotification (see below).

What's weird is after I click New, the Expense Code combobox says None Selected. I enter a name and save and isn't making me enter an expense code. Right after I save the new employee I run a BAQ and the value for the expense code is there. Then when I pull the employee's record I just added, it still says None Selected. The expense code I am using in either the BPM or code is correct and valid in LabExpCd.ExpenseCode.


Private Sub edvEmpBasic_EpiViewNotification(ByVal view As EpiDataView, ByVal args As EpiNotifyArgs)
If (args.NotifyType = EpiTransaction.NotifyType.AddRow) Then
If (args.Row > -1) Then
edvEmpBasic.dataView(edvEmpBasic.Row)("ExpenseCode") = "C01"
edvEmpBasic.dataView(edvEmpBasic.Row)("ShortChar02") = "1"
oTrans.NotifyAll()
End If
End If
End Sub

Can anyone else replicate this?

Thanks,

-Ted
Sorry for wasting time. I didn't change anything except add a new field to the production tab. Now when I save the new record it changes None Selected to display the expense code.




________________________________
From: tkoch77 <tkoch77@...>
To: vantage@yahoogroups.com
Sent: Friday, October 19, 2012 8:58 AM
Subject: [Vantage] Programatically default a new employees expense code

Hi all,

When creating a new Employee I want to default their expense code. I have tried setting this with an EmpBasic.GetNewEmpBasic post-processing BPM, as well as using the edvEmpBasic_EpiViewNotification (see below).

What's weird is after I click New, the Expense Code combobox says None Selected. I enter a name and save and isn't making me enter an expense code. Right after I save the new employee I run a BAQ and the value for the expense code is there. Then when I pull the employee's record I just added, it still says None Selected. The expense code I am using in either the BPM or code is correct and valid in LabExpCd.ExpenseCode.


   Private Sub edvEmpBasic_EpiViewNotification(ByVal view As EpiDataView, ByVal args As EpiNotifyArgs)
      If (args.NotifyType = EpiTransaction.NotifyType.AddRow) Then
         If (args.Row > -1) Then
            edvEmpBasic.dataView(edvEmpBasic.Row)("ExpenseCode") = "C01"
            edvEmpBasic.dataView(edvEmpBasic.Row)("ShortChar02") = "1"
            oTrans.NotifyAll()
         End If
      End If
   End Sub

Can anyone else replicate this?

Thanks,

-Ted



------------------------------------

Useful links for the Yahoo!Groups Vantage Board are: ( Note:Â You must have already linked your email address to a yahoo id to enable access. )
(1) To access the Files Section of our Yahoo!Group for Report Builder and Crystal Reports and other 'goodies', please goto: http://groups.yahoo.com/group/vantage/files/.%c2%a0
(2) To search through old msg's goto: http://groups.yahoo.com/group/vantage/messages
(3) To view links to Vendors that provide Vantage services goto: http://groups.yahoo.com/group/vantage/linksYahoo! Groups Links



[Non-text portions of this message have been removed]