Thats ok! I ended up using btnSubmit.PerformClick(); after i put the time into the dataview in my custom button to emulate a user clicking the epicor Default submit button in my custom button click event.
My problem with the default submit button was the it seemed to submit then run the custom code that i put into its event, which would not work since you cant change any fields after it has been submitted.
Doing a custom button that stuffs the time into the database then emulates the click of the default button works because it stuffs the data first and then submits.
This works but just seems a little sloppy to me.
Thanks for all the help.
---In email@example.com, <don.n.doan@...> wrote:
I'm at a loss of how to go about this. I wrote up a customization and attempted to write it out but I had no luck either.---In firstname.lastname@example.org, <jtannehill07@...> wrote:
<localTime>11/18/2013 12:21:00:9582924 PM</localTime>
<parameter name='ds' type='LaborDataSet' ><LaborDataSet xmlns="http://www.epicor.com/Mfg/100/BO.Labor/Labor">
I found this in my trace notice the SubmitForApproval Method but it looks like a Progress/BO method which I do not know how to trigger from C#.---In email@example.com, <epdba1337@...> wrote:
If you have the ability to save the form programmatically you can set a checkbox in Plant Configuration Control to have time entries submit on save.---In firstname.lastname@example.org, <don.n.doan@...> wrote:
Very strange, I'm not seeing it either. Try running a trace on your time entry submit and check what methods it is using. It'll tell you exactly what you'll need in your c# code.---In email@example.com, <jtannehill07@...> wrote:
Ok I have figured out how to plug the time into the dataview but can not find oTrans.SubmitForApproval in object explorer? I have found oTrans.SubmitRecords(weekFlag) but I do not understand the weekFlag bit.
I cant get "this.oTrans.SubmitForApproval();" to work it says Epicor.Mfg.UI.App.TimeAndExpenseEntry.Transaction' does not contain a definition for 'SubmitForApproval'.If i could figure out the submitForApproval method or code I think I can make this work.
By the way thanks for your time and patience with my questions.---In firstname.lastname@example.org, <don.n.doan@...> wrote:
Sounds like you should be using MES instead.. It should do exactly what you are talking about. You could use the wizard and put the submit on any event. So similar to the field leave you could have the current time plug itself into the dataview instead of the text field and then have it oTrans.Update and this.oTrans.SubmitForApproval.---In email@example.com, <jtannehill07@...> wrote:
Is there way to call the submitForapproval method from C#?
After job number is input I have it saving on field leave( in order to know that the job is in process) but I dont want it to submit then(I want to submit after they finish job) so the Checkbox wont work.
This screen is customized for ease of use on the shop floor. I am starting an instance of stopwatch after job # is put in and trying to stop when submit button is press then store the time. The only way I know how to save the time to the db is to push it into a text field then bind it to a database table.field but it seem like it is submit before the time is saved to field. Is there a better way to save this stopwatch time to the database I am sure there is?---In firstname.lastname@example.org, <don.n.doan@...> wrote:
Search "bo method 2.5" on epic web to see all the methods available. As for submitting time, the only experience I have with automating that is through ESC and xls files. I recall using update and then submitforapproval on the workflow. I'm not sure what you're trying to accomplish but I believe there is an auto-submit feature on T&E. I haven't used it myself but maybe have a bpm trigger that checkbox if it cant be set by default.---In email@example.com, <jtannehill07@...> wrote:
I am submitting Time---In firstname.lastname@example.org, <don.n.doan@...> wrote:
Also, what are you submitting? Expense and time are two different methods.---In email@example.com, <don.n.doan@...> wrote:
Are you customizing a form or making a BPM? What language?---In firstname.lastname@example.org, <jtannehill07@...> wrote:Does anyone now how to call the submit method or emulate what happens when the submit button is pressed on Time and Expense entry. I want to use an event to trigger the submit method or what happens when the submit button is pressed but I dont know the code behind the submit button or how to call that method.Thanks,Jeremy TannehillIndaco Metals LLC