Expense Customization

Yes, it uses submitselected method. I tried using that with the empexpense adapter but it still wasn't submitting it, even on the single expense. It seems like the only one that will actually submit the solo expense is using oTrans.SubmitExpenseRecords.

--- In vantage@yahoogroups.com, Karen Schoenung <kschoenung@...> wrote:
>
> Did you try a trace to see what happens when you do it manually?
>
> From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of duckorz
> Sent: Thursday, June 13, 2013 3:59 PM
> To: vantage@yahoogroups.com
> Subject: [Vantage] Expense Customization
>
>
>
> I wrote a customization that creates an expense when I click a button on time entry. Everything works fine when I hit the button and there are no expenses for that day yet to be entered. It creates the expense, enters the information and submits it for approval. I'm running into the issue of having an existing expense before the button is used. It will create the expense, add all the information but it won't submit it. I'm using SubmitExpenseRecords() to submit the expense and it works fine until there's already an expense for that day. It seems like when I use SubmitExpenseRecords() it only tries to submit the first data row. I guess my question would be how do I get this to point at the second expense(or even further down the line)?
>
> I've tried this.oTrans.SubmitExpenseRecords(); and oTrans.SubmitExpenseRecords(); to no avail.
> I originally thought it would be adapterEmpExpense.SubmitSelected(); but that wouldn't work either.
>
> Any C# or VB gurus out there that could help me out?
>
> Thanks
>
>
>
> [Non-text portions of this message have been removed]
>
I wrote a customization that creates an expense when I click a button on time entry. Everything works fine when I hit the button and there are no expenses for that day yet to be entered. It creates the expense, enters the information and submits it for approval. I'm running into the issue of having an existing expense before the button is used. It will create the expense, add all the information but it won't submit it. I'm using SubmitExpenseRecords() to submit the expense and it works fine until there's already an expense for that day. It seems like when I use SubmitExpenseRecords() it only tries to submit the first data row. I guess my question would be how do I get this to point at the second expense(or even further down the line)?

I've tried this.oTrans.SubmitExpenseRecords(); and oTrans.SubmitExpenseRecords(); to no avail.
I originally thought it would be adapterEmpExpense.SubmitSelected(); but that wouldn't work either.

Any C# or VB gurus out there that could help me out?

Thanks
Did you try a trace to see what happens when you do it manually?

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of duckorz
Sent: Thursday, June 13, 2013 3:59 PM
To: vantage@yahoogroups.com
Subject: [Vantage] Expense Customization



I wrote a customization that creates an expense when I click a button on time entry. Everything works fine when I hit the button and there are no expenses for that day yet to be entered. It creates the expense, enters the information and submits it for approval. I'm running into the issue of having an existing expense before the button is used. It will create the expense, add all the information but it won't submit it. I'm using SubmitExpenseRecords() to submit the expense and it works fine until there's already an expense for that day. It seems like when I use SubmitExpenseRecords() it only tries to submit the first data row. I guess my question would be how do I get this to point at the second expense(or even further down the line)?

I've tried this.oTrans.SubmitExpenseRecords(); and oTrans.SubmitExpenseRecords(); to no avail.
I originally thought it would be adapterEmpExpense.SubmitSelected(); but that wouldn't work either.

Any C# or VB gurus out there that could help me out?

Thanks



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