New Job with button click

This is what I have now. It clears the JobEntryAdapter, then switches back to the Job tab and populates the job number with the desired number. It is not creating the new JobHeader record though. The job number textbox is the only one that you can input text into and if you click anywhere else you get an index is out of range error.

         Dim edvJobHead As EpiDataView = CType(oTrans.EpiDataViews("JobHead"), EpiDataView)
         Dim jobNum As String = edvJobHead.dataView(edvJobHead.Row)("JobNum")
         Dim edvJobMtl As EpiDataView = CType(oTrans.EpiDataViews("JobMtl"), EpiDataView)
         Dim jobMtl As String = edvJobMtl.dataView(edvJobMtl.Row)("MtlSeq")
     Â
         'Delcare jobentry adapter
         Dim oTrans_JobAdapter As JobEntryAdapter

         'Get the current jobentry adapter
         oTrans_JobAdapter = DirectCast(csm.TransAdaptersHT("oTrans_jobAdapter"), JobEntryAdapter)

         oTrans_JobAdapter.clearData()

         Dim jobExists as Boolean = Nothing
         oTrans_JobAdapter.ValidateJobNum(jobNum & "-" & jobMtl)
        Â
         edvJobHead.Notify(New EpiNotifyArgs(oTrans, edvJobHead.dataView.Count, edvJobHead.Column))

         Dim tab As Epicor.Mfg.UI.App.JobEntry.JobHeadSheetPanel = CType(csm.GetNativeControlReference("70f5542d-e234-4cd1-a17d-6470ff9593ca"),Epicor.Mfg.UI.App.JobEntry.JobHeadSheetPanel)

         tab.Focus()
                 Â
         dim txtJobNum as epiTextBox = CType(csm.GetNativeControlReference("46567b2e-6bc0-4967-be35-a0ec6843838f"), epiTextBox)

         txtJobNum.text = jobNum & "-" & jobMtl

         oTrans_JobAdapter.GetNewJobHead()



________________________________
From: Greg Payne <gpayne@...>
To: "vantage@yahoogroups.com" <vantage@yahoogroups.com>
Sent: Friday, December 16, 2011 7:40 AM
Subject: RE: [Vantage] New Job with button click

John:
Pretty good from memory.

GetDatasetForTree
This methods will return the dataset for Job Entry. The method will return the records related to the assembly
provided and the first child level assemblies related to the input inputted assembly.
Parameters
Name Type Description
ipJobNum String The Job Number to return data for.
ipStartAssemblySeq Int32 The Assembly Sequence to return data for.
ipCurrentAssemblySeq Int32 The Assembly Sequence to return data for.
Would you like to retun a complete dataset for this job
number?
ipCompleteTree Boolean
Job must be one of these types else it is an error.
ipJobTypeMode can be blank, no constraint
ipJobTypeMode String
Returns

Job Entry data set



-----Original Message-----
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of John Driggers
Sent: Thursday, December 15, 2011 10:32 PM
To: vantage@yahoogroups.com
Subject: Re: [Vantage] New Job with button click



I believe there is a function to reset the tree on the jobentry adapter.

"getTreeDataSet" or something like that, forgive me for not knowing the name, I don't have Epicor in front of me.



That failing, try running update.





On Thu, Dec 15, 2011 at 1:32 PM, Ted Koch <tkoch77@...<mailto:tkoch77@...>> wrote:



> **

>

>

> I posted this on Tuesday, wondering if anyone had a chance to take a look.

> Have been playing with this in my free time but still haven't got it yet.

>

>

> I am putting a button on JobDetail -> Materials -> Detail. When a user

> clicks this button I want it to call GetNewJobHead() and pre populate

> the Job Number textbox. So far when you click the button I get no

> errors, but it doesn't reset the tree view. It creates a new blank job

> record in the tree view and it has the sub asm, ops, and mtls

> underneath it from the job that was active on the form when the button

> was clicked. So it's not first clearing the form and then calling

> GetNewJobHead. Could someone take a look at what I have and tell me

> what I am missing?

>

> Thank you in advance,

>

> Ted

>

>Â Â Â Â Â Â Dim edvJobHead As EpiDataView =

> CType(oTrans.EpiDataViews("JobHead"), EpiDataView)

>Â Â Â Â Â Â Dim jobNum As String =

> edvJobHead.dataView(edvJobHead.Row)("JobNum")

>Â Â Â Â Â Â Dim edvJobMtl As EpiDataView =

> CType(oTrans.EpiDataViews("JobMtl"), EpiDataView)

>Â Â Â Â Â Â Dim jobMtl As Int32 =

> edvJobMtl.dataView(edvJobMtl.Row)("MtlSeq")

>

>Â Â Â Â Â Â 'Delcare jobentry adapter

>Â Â Â Â Â Â Dim oTrans_JobAdapter As JobEntryAdapter

>

>Â Â Â Â Â Â 'Get the current jobentry adapter

>Â Â Â Â Â Â oTrans_JobAdapter =

> DirectCast(csm.TransAdaptersHT("oTrans_jobAdapter"), JobEntryAdapter)

>

>Â Â Â Â Â Â oTrans_JobAdapter.GetNewJobHead()

>

>Â Â Â Â Â Â edvJobHead.Notify(New EpiNotifyArgs(oTrans,

> edvJobHead.dataView.Count, edvJobHead.Column))

>

>

>Â Â Â Â dim txtJobNum as epiTextBox =

>

> CType(csm.GetNativeControlReference("46567b2e-6bc0-4967-be35-a0ec68438

> 38f"),

> epiTextBox)

>

>Â Â Â Â Â Â txtJobNum.text = jobNum & "-" & jobMtl

>

> ________________________________

> From: tkoch77 <tkoch77@...<mailto:tkoch77@...>>

> To: vantage@yahoogroups.com<mailto:vantage@yahoogroups.com>

> Sent: Monday, December 12, 2011 7:42 PM

> Subject: [Vantage] New Job with button click

>

>

> I am putting a button on JobDetail -> Materials -> Detail. When a user

> clicks this button I want it to call GetNewJobHead() and pre populate

> the Job Number textbox. So far when you click the button I get no

> errors, but it doesn't reset the tree view. It creates a new blank job

> record in the tree view and it has the sub asm, ops, and mtls

> underneath it from the job that was active on the form when the button

> was clicked. So it's not first clearing the form and then calling

> GetNewJobHead. Could someone take a look at what I have and tell me what I am missing?

>

> Thank you in advance,

>

> Ted

>

>Â Â Â Â Â Â Dim edvJobHead As EpiDataView =

> CType(oTrans.EpiDataViews("JobHead"), EpiDataView)

>Â Â Â Â Â Â Dim jobNum As String =

> edvJobHead.dataView(edvJobHead.Row)("JobNum")

>Â Â Â Â Â Â Dim edvJobMtl As EpiDataView =

> CType(oTrans.EpiDataViews("JobMtl"), EpiDataView)

>Â Â Â Â Â Â Dim jobMtl As Int32 =

> edvJobMtl.dataView(edvJobMtl.Row)("MtlSeq")

>

>Â Â Â Â Â Â 'Delcare jobentry adapter

>Â Â Â Â Â Â Dim oTrans_JobAdapter As JobEntryAdapter

>

>Â Â Â Â Â Â 'Get the current jobentry adapter

>Â Â Â Â Â Â oTrans_JobAdapter =

> DirectCast(csm.TransAdaptersHT("oTrans_jobAdapter"), JobEntryAdapter)

>

>Â Â Â Â Â Â oTrans_JobAdapter.GetNewJobHead()

>

>Â Â Â Â Â Â edvJobHead.Notify(New EpiNotifyArgs(oTrans,

> edvJobHead.dataView.Count, edvJobHead.Column))

>

>Â Â Â Â Â Â dim txtJobNum as epiTextBox =

> CType(csm.GetNativeControlReference("46567b2e-6bc0-4967-be35-a0ec68438

> 38f"),

> epiTextBox)

>

>Â Â Â Â Â Â txtJobNum.text = jobNum & "-" & jobMtl

>

> ------------------------------------

>

>

> 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/.

> (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]

>

>

>







--

*John Driggers*

*High End Dev, System Design, Profit Drinking

*

*:: 904.962.2887*

*:: waffqle@...*<mailto:waffqle@...*>

*:: NO FAXES*



*



*





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







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



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/.

(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



  http://groups.yahoo.com/group/vantage/



  Individual Email | Traditional



  http://groups.yahoo.com/group/vantage/join

  (Yahoo! ID required)



  vantage-digest@yahoogroups.com<mailto:vantage-digest@yahoogroups.com>

  vantage-fullfeatured@yahoogroups.com<mailto:vantage-fullfeatured@yahoogroups.com>



  vantage-unsubscribe@yahoogroups.com<mailto:vantage-unsubscribe@yahoogroups.com>



  http://docs.yahoo.com/info/terms/



________________________________
CONFIDENTIALITY NOTICE

The information contained in this communication, including attachments, is privileged and confidential. It is intended only for the exclusive use of the addressee. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us at (727) 578-6258 and immediately delete the communication.

"This (document/presentation) may contain technical data as defined in the International Traffic In Arms Regulations (ITAR) 22 CFR 120.10. Export of this material is restricted by the Arms Export Control Act (22 U.S.C. 2751 et seq.) and may not be exported to foreign persons without prior approval form the U.S. Department of State."


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



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

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]
I am putting a button on JobDetail -> Materials -> Detail. When a user clicks this button I want it to call GetNewJobHead() and pre populate the Job Number textbox. So far when you click the button I get no errors, but it doesn't reset the tree view. It creates a new blank job record in the tree view and it has the sub asm, ops, and mtls underneath it from the job that was active on the form when the button was clicked. So it's not first clearing the form and then calling GetNewJobHead. Could someone take a look at what I have and tell me what I am missing?

Thank you in advance,

Ted

Dim edvJobHead As EpiDataView = CType(oTrans.EpiDataViews("JobHead"), EpiDataView)
Dim jobNum As String = edvJobHead.dataView(edvJobHead.Row)("JobNum")
Dim edvJobMtl As EpiDataView = CType(oTrans.EpiDataViews("JobMtl"), EpiDataView)
Dim jobMtl As Int32 = edvJobMtl.dataView(edvJobMtl.Row)("MtlSeq")

'Delcare jobentry adapter
Dim oTrans_JobAdapter As JobEntryAdapter

'Get the current jobentry adapter
oTrans_JobAdapter = DirectCast(csm.TransAdaptersHT("oTrans_jobAdapter"), JobEntryAdapter)

oTrans_JobAdapter.GetNewJobHead()

edvJobHead.Notify(New EpiNotifyArgs(oTrans, edvJobHead.dataView.Count, edvJobHead.Column))

dim txtJobNum as epiTextBox = CType(csm.GetNativeControlReference("46567b2e-6bc0-4967-be35-a0ec6843838f"), epiTextBox)

txtJobNum.text = jobNum & "-" & jobMtl
I posted this on Tuesday, wondering if anyone had a chance to take a look. Have been playing with this in my free time but still haven't got it yet.

I am putting a button on JobDetail -> Materials -> Detail. When a
user clicks this button I want it to call GetNewJobHead() and pre
populate the Job Number textbox. So far when you click the button I get
no errors, but it doesn't reset the tree view. It creates a new blank
job record in the tree view and it has the sub asm, ops, and mtls
underneath it from the job that was active on the form when the button
was clicked. So it's not first clearing the form and then calling
GetNewJobHead. Could someone take a look at what I have and tell me what I am missing?

Thank you in advance,

Ted

         Dim edvJobHead As EpiDataView = CType(oTrans.EpiDataViews("JobHead"), EpiDataView)
         Dim jobNum As String = edvJobHead.dataView(edvJobHead.Row)("JobNum")
         Dim edvJobMtl As EpiDataView = CType(oTrans.EpiDataViews("JobMtl"), EpiDataView)
         Dim jobMtl As Int32 = edvJobMtl.dataView(edvJobMtl.Row)("MtlSeq")

         'Delcare jobentry adapter
         Dim oTrans_JobAdapter As JobEntryAdapter

         'Get the current jobentry adapter
         oTrans_JobAdapter = DirectCast(csm.TransAdaptersHT("oTrans_jobAdapter"), JobEntryAdapter)

         oTrans_JobAdapter.GetNewJobHead()

         edvJobHead.Notify(New EpiNotifyArgs(oTrans, edvJobHead.dataView.Count, edvJobHead.Column))
        Â
  Â
      dim txtJobNum as epiTextBox =
CType(csm.GetNativeControlReference("46567b2e-6bc0-4967-be35-a0ec6843838f"),
epiTextBox)

         txtJobNum.text = jobNum & "-" & jobMtl



________________________________
From: tkoch77 <tkoch77@...>
To: vantage@yahoogroups.com
Sent: Monday, December 12, 2011 7:42 PM
Subject: [Vantage] New Job with button click

I am putting a button on JobDetail -> Materials -> Detail. When a user clicks this button I want it to call GetNewJobHead() and pre populate the Job Number textbox. So far when you click the button I get no errors, but it doesn't reset the tree view. It creates a new blank job record in the tree view and it has the sub asm, ops, and mtls underneath it from the job that was active on the form when the button was clicked. So it's not first clearing the form and then calling GetNewJobHead. Could someone take a look at what I have and tell me what I am missing?

Thank you in advance,

Ted

         Dim edvJobHead As EpiDataView = CType(oTrans.EpiDataViews("JobHead"), EpiDataView)
         Dim jobNum As String = edvJobHead.dataView(edvJobHead.Row)("JobNum")
         Dim edvJobMtl As EpiDataView = CType(oTrans.EpiDataViews("JobMtl"), EpiDataView)
         Dim jobMtl As Int32 = edvJobMtl.dataView(edvJobMtl.Row)("MtlSeq")

         'Delcare jobentry adapter
         Dim oTrans_JobAdapter As JobEntryAdapter

         'Get the current jobentry adapter
         oTrans_JobAdapter = DirectCast(csm.TransAdaptersHT("oTrans_jobAdapter"), JobEntryAdapter)

         oTrans_JobAdapter.GetNewJobHead()

         edvJobHead.Notify(New EpiNotifyArgs(oTrans, edvJobHead.dataView.Count, edvJobHead.Column))
        Â
         dim txtJobNum as epiTextBox = CType(csm.GetNativeControlReference("46567b2e-6bc0-4967-be35-a0ec6843838f"), epiTextBox)

         txtJobNum.text = jobNum & "-" & jobMtl



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

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]
I believe there is a function to reset the tree on the jobentry adapter.
"getTreeDataSet" or something like that, forgive me for not knowing the
name, I don't have Epicor in front of me.

That failing, try running update.


On Thu, Dec 15, 2011 at 1:32 PM, Ted Koch <tkoch77@...> wrote:

> **
>
>
> I posted this on Tuesday, wondering if anyone had a chance to take a look.
> Have been playing with this in my free time but still haven't got it yet.
>
>
> I am putting a button on JobDetail -> Materials -> Detail. When a
> user clicks this button I want it to call GetNewJobHead() and pre
> populate the Job Number textbox. So far when you click the button I get
> no errors, but it doesn't reset the tree view. It creates a new blank
> job record in the tree view and it has the sub asm, ops, and mtls
> underneath it from the job that was active on the form when the button
> was clicked. So it's not first clearing the form and then calling
> GetNewJobHead. Could someone take a look at what I have and tell me what I
> am missing?
>
> Thank you in advance,
>
> Ted
>
> Dim edvJobHead As EpiDataView =
> CType(oTrans.EpiDataViews("JobHead"), EpiDataView)
> Dim jobNum As String =
> edvJobHead.dataView(edvJobHead.Row)("JobNum")
> Dim edvJobMtl As EpiDataView =
> CType(oTrans.EpiDataViews("JobMtl"), EpiDataView)
> Dim jobMtl As Int32 =
> edvJobMtl.dataView(edvJobMtl.Row)("MtlSeq")
>
> 'Delcare jobentry adapter
> Dim oTrans_JobAdapter As JobEntryAdapter
>
> 'Get the current jobentry adapter
> oTrans_JobAdapter =
> DirectCast(csm.TransAdaptersHT("oTrans_jobAdapter"), JobEntryAdapter)
>
> oTrans_JobAdapter.GetNewJobHead()
>
> edvJobHead.Notify(New EpiNotifyArgs(oTrans,
> edvJobHead.dataView.Count, edvJobHead.Column))
>
>
> dim txtJobNum as epiTextBox =
>
> CType(csm.GetNativeControlReference("46567b2e-6bc0-4967-be35-a0ec6843838f"),
> epiTextBox)
>
> txtJobNum.text = jobNum & "-" & jobMtl
>
> ________________________________
> From: tkoch77 <tkoch77@...>
> To: vantage@yahoogroups.com
> Sent: Monday, December 12, 2011 7:42 PM
> Subject: [Vantage] New Job with button click
>
>
> I am putting a button on JobDetail -> Materials -> Detail. When a user
> clicks this button I want it to call GetNewJobHead() and pre populate the
> Job Number textbox. So far when you click the button I get no errors, but
> it doesn't reset the tree view. It creates a new blank job record in the
> tree view and it has the sub asm, ops, and mtls underneath it from the job
> that was active on the form when the button was clicked. So it's not first
> clearing the form and then calling GetNewJobHead. Could someone take a look
> at what I have and tell me what I am missing?
>
> Thank you in advance,
>
> Ted
>
> Dim edvJobHead As EpiDataView =
> CType(oTrans.EpiDataViews("JobHead"), EpiDataView)
> Dim jobNum As String =
> edvJobHead.dataView(edvJobHead.Row)("JobNum")
> Dim edvJobMtl As EpiDataView =
> CType(oTrans.EpiDataViews("JobMtl"), EpiDataView)
> Dim jobMtl As Int32 =
> edvJobMtl.dataView(edvJobMtl.Row)("MtlSeq")
>
> 'Delcare jobentry adapter
> Dim oTrans_JobAdapter As JobEntryAdapter
>
> 'Get the current jobentry adapter
> oTrans_JobAdapter =
> DirectCast(csm.TransAdaptersHT("oTrans_jobAdapter"), JobEntryAdapter)
>
> oTrans_JobAdapter.GetNewJobHead()
>
> edvJobHead.Notify(New EpiNotifyArgs(oTrans,
> edvJobHead.dataView.Count, edvJobHead.Column))
>
> dim txtJobNum as epiTextBox =
> CType(csm.GetNativeControlReference("46567b2e-6bc0-4967-be35-a0ec6843838f"),
> epiTextBox)
>
> txtJobNum.text = jobNum & "-" & jobMtl
>
> ------------------------------------
>
>
> 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/.
> (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]
>
>
>



--
*John Driggers*
*High End Dev, System Design, Profit Drinking
*
*:: 904.962.2887*
*:: waffqle@...*
*:: NO FAXES*

*

*


[Non-text portions of this message have been removed]
John:
Pretty good from memory.

GetDatasetForTree
This methods will return the dataset for Job Entry. The method will return the records related to the assembly
provided and the first child level assemblies related to the input inputted assembly.
Parameters
Name Type Description
ipJobNum String The Job Number to return data for.
ipStartAssemblySeq Int32 The Assembly Sequence to return data for.
ipCurrentAssemblySeq Int32 The Assembly Sequence to return data for.
Would you like to retun a complete dataset for this job
number?
ipCompleteTree Boolean
Job must be one of these types else it is an error.
ipJobTypeMode can be blank, no constraint
ipJobTypeMode String
Returns

Job Entry data set



-----Original Message-----
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of John Driggers
Sent: Thursday, December 15, 2011 10:32 PM
To: vantage@yahoogroups.com
Subject: Re: [Vantage] New Job with button click



I believe there is a function to reset the tree on the jobentry adapter.

"getTreeDataSet" or something like that, forgive me for not knowing the name, I don't have Epicor in front of me.



That failing, try running update.





On Thu, Dec 15, 2011 at 1:32 PM, Ted Koch <tkoch77@...<mailto:tkoch77@...>> wrote:



> **

>

>

> I posted this on Tuesday, wondering if anyone had a chance to take a look.

> Have been playing with this in my free time but still haven't got it yet.

>

>

> I am putting a button on JobDetail -> Materials -> Detail. When a user

> clicks this button I want it to call GetNewJobHead() and pre populate

> the Job Number textbox. So far when you click the button I get no

> errors, but it doesn't reset the tree view. It creates a new blank job

> record in the tree view and it has the sub asm, ops, and mtls

> underneath it from the job that was active on the form when the button

> was clicked. So it's not first clearing the form and then calling

> GetNewJobHead. Could someone take a look at what I have and tell me

> what I am missing?

>

> Thank you in advance,

>

> Ted

>

> Dim edvJobHead As EpiDataView =

> CType(oTrans.EpiDataViews("JobHead"), EpiDataView)

> Dim jobNum As String =

> edvJobHead.dataView(edvJobHead.Row)("JobNum")

> Dim edvJobMtl As EpiDataView =

> CType(oTrans.EpiDataViews("JobMtl"), EpiDataView)

> Dim jobMtl As Int32 =

> edvJobMtl.dataView(edvJobMtl.Row)("MtlSeq")

>

> 'Delcare jobentry adapter

> Dim oTrans_JobAdapter As JobEntryAdapter

>

> 'Get the current jobentry adapter

> oTrans_JobAdapter =

> DirectCast(csm.TransAdaptersHT("oTrans_jobAdapter"), JobEntryAdapter)

>

> oTrans_JobAdapter.GetNewJobHead()

>

> edvJobHead.Notify(New EpiNotifyArgs(oTrans,

> edvJobHead.dataView.Count, edvJobHead.Column))

>

>

> dim txtJobNum as epiTextBox =

>

> CType(csm.GetNativeControlReference("46567b2e-6bc0-4967-be35-a0ec68438

> 38f"),

> epiTextBox)

>

> txtJobNum.text = jobNum & "-" & jobMtl

>

> ________________________________

> From: tkoch77 <tkoch77@...<mailto:tkoch77@...>>

> To: vantage@yahoogroups.com<mailto:vantage@yahoogroups.com>

> Sent: Monday, December 12, 2011 7:42 PM

> Subject: [Vantage] New Job with button click

>

>

> I am putting a button on JobDetail -> Materials -> Detail. When a user

> clicks this button I want it to call GetNewJobHead() and pre populate

> the Job Number textbox. So far when you click the button I get no

> errors, but it doesn't reset the tree view. It creates a new blank job

> record in the tree view and it has the sub asm, ops, and mtls

> underneath it from the job that was active on the form when the button

> was clicked. So it's not first clearing the form and then calling

> GetNewJobHead. Could someone take a look at what I have and tell me what I am missing?

>

> Thank you in advance,

>

> Ted

>

> Dim edvJobHead As EpiDataView =

> CType(oTrans.EpiDataViews("JobHead"), EpiDataView)

> Dim jobNum As String =

> edvJobHead.dataView(edvJobHead.Row)("JobNum")

> Dim edvJobMtl As EpiDataView =

> CType(oTrans.EpiDataViews("JobMtl"), EpiDataView)

> Dim jobMtl As Int32 =

> edvJobMtl.dataView(edvJobMtl.Row)("MtlSeq")

>

> 'Delcare jobentry adapter

> Dim oTrans_JobAdapter As JobEntryAdapter

>

> 'Get the current jobentry adapter

> oTrans_JobAdapter =

> DirectCast(csm.TransAdaptersHT("oTrans_jobAdapter"), JobEntryAdapter)

>

> oTrans_JobAdapter.GetNewJobHead()

>

> edvJobHead.Notify(New EpiNotifyArgs(oTrans,

> edvJobHead.dataView.Count, edvJobHead.Column))

>

> dim txtJobNum as epiTextBox =

> CType(csm.GetNativeControlReference("46567b2e-6bc0-4967-be35-a0ec68438

> 38f"),

> epiTextBox)

>

> txtJobNum.text = jobNum & "-" & jobMtl

>

> ------------------------------------

>

>

> 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/.

> (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]

>

>

>







--

*John Driggers*

*High End Dev, System Design, Profit Drinking

*

*:: 904.962.2887*

*:: waffqle@...*<mailto:waffqle@...*>

*:: NO FAXES*



*



*





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







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



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/.

(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



http://groups.yahoo.com/group/vantage/



Individual Email | Traditional



http://groups.yahoo.com/group/vantage/join

(Yahoo! ID required)



vantage-digest@yahoogroups.com<mailto:vantage-digest@yahoogroups.com>

vantage-fullfeatured@yahoogroups.com<mailto:vantage-fullfeatured@yahoogroups.com>



vantage-unsubscribe@yahoogroups.com<mailto:vantage-unsubscribe@yahoogroups.com>



http://docs.yahoo.com/info/terms/



________________________________
CONFIDENTIALITY NOTICE

The information contained in this communication, including attachments, is privileged and confidential. It is intended only for the exclusive use of the addressee. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us at (727) 578-6258 and immediately delete the communication.

"This (document/presentation) may contain technical data as defined in the International Traffic In Arms Regulations (ITAR) 22 CFR 120.10. Export of this material is restricted by the Arms Export Control Act (22 U.S.C. 2751 et seq.) and may not be exported to foreign persons without prior approval form the U.S. Department of State."


[Non-text portions of this message have been removed]
Thank you John and Greg, I'll give it a shot sometime today and see where I get.

Ted



________________________________
From: Greg Payne <gpayne@...>
To: "vantage@yahoogroups.com" <vantage@yahoogroups.com>
Sent: Friday, December 16, 2011 7:40 AM
Subject: RE: [Vantage] New Job with button click

John:
Pretty good from memory.

GetDatasetForTree
This methods will return the dataset for Job Entry. The method will return the records related to the assembly
provided and the first child level assemblies related to the input inputted assembly.
Parameters
Name Type Description
ipJobNum String The Job Number to return data for.
ipStartAssemblySeq Int32 The Assembly Sequence to return data for.
ipCurrentAssemblySeq Int32 The Assembly Sequence to return data for.
Would you like to retun a complete dataset for this job
number?
ipCompleteTree Boolean
Job must be one of these types else it is an error.
ipJobTypeMode can be blank, no constraint
ipJobTypeMode String
Returns

Job Entry data set



-----Original Message-----
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of John Driggers
Sent: Thursday, December 15, 2011 10:32 PM
To: vantage@yahoogroups.com
Subject: Re: [Vantage] New Job with button click



I believe there is a function to reset the tree on the jobentry adapter.

"getTreeDataSet" or something like that, forgive me for not knowing the name, I don't have Epicor in front of me.



That failing, try running update.





On Thu, Dec 15, 2011 at 1:32 PM, Ted Koch <tkoch77@...<mailto:tkoch77@...>> wrote:



> **

>

>

> I posted this on Tuesday, wondering if anyone had a chance to take a look.

> Have been playing with this in my free time but still haven't got it yet.

>

>

> I am putting a button on JobDetail -> Materials -> Detail. When a user

> clicks this button I want it to call GetNewJobHead() and pre populate

> the Job Number textbox. So far when you click the button I get no

> errors, but it doesn't reset the tree view. It creates a new blank job

> record in the tree view and it has the sub asm, ops, and mtls

> underneath it from the job that was active on the form when the button

> was clicked. So it's not first clearing the form and then calling

> GetNewJobHead. Could someone take a look at what I have and tell me

> what I am missing?

>

> Thank you in advance,

>

> Ted

>

>Â Â Â Â Â Â Dim edvJobHead As EpiDataView =

> CType(oTrans.EpiDataViews("JobHead"), EpiDataView)

>Â Â Â Â Â Â Dim jobNum As String =

> edvJobHead.dataView(edvJobHead.Row)("JobNum")

>Â Â Â Â Â Â Dim edvJobMtl As EpiDataView =

> CType(oTrans.EpiDataViews("JobMtl"), EpiDataView)

>Â Â Â Â Â Â Dim jobMtl As Int32 =

> edvJobMtl.dataView(edvJobMtl.Row)("MtlSeq")

>

>Â Â Â Â Â Â 'Delcare jobentry adapter

>Â Â Â Â Â Â Dim oTrans_JobAdapter As JobEntryAdapter

>

>Â Â Â Â Â Â 'Get the current jobentry adapter

>Â Â Â Â Â Â oTrans_JobAdapter =

> DirectCast(csm.TransAdaptersHT("oTrans_jobAdapter"), JobEntryAdapter)

>

>Â Â Â Â Â Â oTrans_JobAdapter.GetNewJobHead()

>

>Â Â Â Â Â Â edvJobHead.Notify(New EpiNotifyArgs(oTrans,

> edvJobHead.dataView.Count, edvJobHead.Column))

>

>

>Â Â Â Â dim txtJobNum as epiTextBox =

>

> CType(csm.GetNativeControlReference("46567b2e-6bc0-4967-be35-a0ec68438

> 38f"),

> epiTextBox)

>

>Â Â Â Â Â Â txtJobNum.text = jobNum & "-" & jobMtl

>

> ________________________________

> From: tkoch77 <tkoch77@...<mailto:tkoch77@...>>

> To: vantage@yahoogroups.com<mailto:vantage@yahoogroups.com>

> Sent: Monday, December 12, 2011 7:42 PM

> Subject: [Vantage] New Job with button click

>

>

> I am putting a button on JobDetail -> Materials -> Detail. When a user

> clicks this button I want it to call GetNewJobHead() and pre populate

> the Job Number textbox. So far when you click the button I get no

> errors, but it doesn't reset the tree view. It creates a new blank job

> record in the tree view and it has the sub asm, ops, and mtls

> underneath it from the job that was active on the form when the button

> was clicked. So it's not first clearing the form and then calling

> GetNewJobHead. Could someone take a look at what I have and tell me what I am missing?

>

> Thank you in advance,

>

> Ted

>

>Â Â Â Â Â Â Dim edvJobHead As EpiDataView =

> CType(oTrans.EpiDataViews("JobHead"), EpiDataView)

>Â Â Â Â Â Â Dim jobNum As String =

> edvJobHead.dataView(edvJobHead.Row)("JobNum")

>Â Â Â Â Â Â Dim edvJobMtl As EpiDataView =

> CType(oTrans.EpiDataViews("JobMtl"), EpiDataView)

>Â Â Â Â Â Â Dim jobMtl As Int32 =

> edvJobMtl.dataView(edvJobMtl.Row)("MtlSeq")

>

>Â Â Â Â Â Â 'Delcare jobentry adapter

>Â Â Â Â Â Â Dim oTrans_JobAdapter As JobEntryAdapter

>

>Â Â Â Â Â Â 'Get the current jobentry adapter

>Â Â Â Â Â Â oTrans_JobAdapter =

> DirectCast(csm.TransAdaptersHT("oTrans_jobAdapter"), JobEntryAdapter)

>

>Â Â Â Â Â Â oTrans_JobAdapter.GetNewJobHead()

>

>Â Â Â Â Â Â edvJobHead.Notify(New EpiNotifyArgs(oTrans,

> edvJobHead.dataView.Count, edvJobHead.Column))

>

>Â Â Â Â Â Â dim txtJobNum as epiTextBox =

> CType(csm.GetNativeControlReference("46567b2e-6bc0-4967-be35-a0ec68438

> 38f"),

> epiTextBox)

>

>Â Â Â Â Â Â txtJobNum.text = jobNum & "-" & jobMtl

>

> ------------------------------------

>

>

> 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/.

> (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]

>

>

>







--

*John Driggers*

*High End Dev, System Design, Profit Drinking

*

*:: 904.962.2887*

*:: waffqle@...*<mailto:waffqle@...*>

*:: NO FAXES*



*



*





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







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



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/.

(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



  http://groups.yahoo.com/group/vantage/



  Individual Email | Traditional



  http://groups.yahoo.com/group/vantage/join

  (Yahoo! ID required)



  vantage-digest@yahoogroups.com<mailto:vantage-digest@yahoogroups.com>

  vantage-fullfeatured@yahoogroups.com<mailto:vantage-fullfeatured@yahoogroups.com>



  vantage-unsubscribe@yahoogroups.com<mailto:vantage-unsubscribe@yahoogroups.com>



  http://docs.yahoo.com/info/terms/



________________________________
CONFIDENTIALITY NOTICE

The information contained in this communication, including attachments, is privileged and confidential. It is intended only for the exclusive use of the addressee. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us at (727) 578-6258 and immediately delete the communication.

"This (document/presentation) may contain technical data as defined in the International Traffic In Arms Regulations (ITAR) 22 CFR 120.10. Export of this material is restricted by the Arms Export Control Act (22 U.S.C. 2751 et seq.) and may not be exported to foreign persons without prior approval form the U.S. Department of State."


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



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

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]
John,

I just read your email more thoroughly. I am trying to create a brand new job from this button click, not bring in a job dataset. The create job button is on the Material Details tab. When I click the button I want it to clear the form completely and populate the job number with a new job number of 000002-11. 000002 is the job number and 11 is the material seq number that was active in the material details tab.



________________________________
From: Greg Payne <gpayne@...>
To: "vantage@yahoogroups.com" <vantage@yahoogroups.com>
Sent: Friday, December 16, 2011 7:40 AM
Subject: RE: [Vantage] New Job with button click

John:
Pretty good from memory.

GetDatasetForTree
This methods will return the dataset for Job Entry. The method will return the records related to the assembly
provided and the first child level assemblies related to the input inputted assembly.
Parameters
Name Type Description
ipJobNum String The Job Number to return data for.
ipStartAssemblySeq Int32 The Assembly Sequence to return data for.
ipCurrentAssemblySeq Int32 The Assembly Sequence to return data for.
Would you like to retun a complete dataset for this job
number?
ipCompleteTree Boolean
Job must be one of these types else it is an error.
ipJobTypeMode can be blank, no constraint
ipJobTypeMode String
Returns

Job Entry data set



-----Original Message-----
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of John Driggers
Sent: Thursday, December 15, 2011 10:32 PM
To: vantage@yahoogroups.com
Subject: Re: [Vantage] New Job with button click



I believe there is a function to reset the tree on the jobentry adapter.

"getTreeDataSet" or something like that, forgive me for not knowing the name, I don't have Epicor in front of me.



That failing, try running update.





On Thu, Dec 15, 2011 at 1:32 PM, Ted Koch <tkoch77@...<mailto:tkoch77@...>> wrote:



> **

>

>

> I posted this on Tuesday, wondering if anyone had a chance to take a look.

> Have been playing with this in my free time but still haven't got it yet.

>

>

> I am putting a button on JobDetail -> Materials -> Detail. When a user

> clicks this button I want it to call GetNewJobHead() and pre populate

> the Job Number textbox. So far when you click the button I get no

> errors, but it doesn't reset the tree view. It creates a new blank job

> record in the tree view and it has the sub asm, ops, and mtls

> underneath it from the job that was active on the form when the button

> was clicked. So it's not first clearing the form and then calling

> GetNewJobHead. Could someone take a look at what I have and tell me

> what I am missing?

>

> Thank you in advance,

>

> Ted

>

>Â Â Â Â Â Â Dim edvJobHead As EpiDataView =

> CType(oTrans.EpiDataViews("JobHead"), EpiDataView)

>Â Â Â Â Â Â Dim jobNum As String =

> edvJobHead.dataView(edvJobHead.Row)("JobNum")

>Â Â Â Â Â Â Dim edvJobMtl As EpiDataView =

> CType(oTrans.EpiDataViews("JobMtl"), EpiDataView)

>Â Â Â Â Â Â Dim jobMtl As Int32 =

> edvJobMtl.dataView(edvJobMtl.Row)("MtlSeq")

>

>Â Â Â Â Â Â 'Delcare jobentry adapter

>Â Â Â Â Â Â Dim oTrans_JobAdapter As JobEntryAdapter

>

>Â Â Â Â Â Â 'Get the current jobentry adapter

>Â Â Â Â Â Â oTrans_JobAdapter =

> DirectCast(csm.TransAdaptersHT("oTrans_jobAdapter"), JobEntryAdapter)

>

>Â Â Â Â Â Â oTrans_JobAdapter.GetNewJobHead()

>

>Â Â Â Â Â Â edvJobHead.Notify(New EpiNotifyArgs(oTrans,

> edvJobHead.dataView.Count, edvJobHead.Column))

>

>

>Â Â Â Â dim txtJobNum as epiTextBox =

>

> CType(csm.GetNativeControlReference("46567b2e-6bc0-4967-be35-a0ec68438

> 38f"),

> epiTextBox)

>

>Â Â Â Â Â Â txtJobNum.text = jobNum & "-" & jobMtl

>

> ________________________________

> From: tkoch77 <tkoch77@...<mailto:tkoch77@...>>

> To: vantage@yahoogroups.com<mailto:vantage@yahoogroups.com>

> Sent: Monday, December 12, 2011 7:42 PM

> Subject: [Vantage] New Job with button click

>

>

> I am putting a button on JobDetail -> Materials -> Detail. When a user

> clicks this button I want it to call GetNewJobHead() and pre populate

> the Job Number textbox. So far when you click the button I get no

> errors, but it doesn't reset the tree view. It creates a new blank job

> record in the tree view and it has the sub asm, ops, and mtls

> underneath it from the job that was active on the form when the button

> was clicked. So it's not first clearing the form and then calling

> GetNewJobHead. Could someone take a look at what I have and tell me what I am missing?

>

> Thank you in advance,

>

> Ted

>

>Â Â Â Â Â Â Dim edvJobHead As EpiDataView =

> CType(oTrans.EpiDataViews("JobHead"), EpiDataView)

>Â Â Â Â Â Â Dim jobNum As String =

> edvJobHead.dataView(edvJobHead.Row)("JobNum")

>Â Â Â Â Â Â Dim edvJobMtl As EpiDataView =

> CType(oTrans.EpiDataViews("JobMtl"), EpiDataView)

>Â Â Â Â Â Â Dim jobMtl As Int32 =

> edvJobMtl.dataView(edvJobMtl.Row)("MtlSeq")

>

>Â Â Â Â Â Â 'Delcare jobentry adapter

>Â Â Â Â Â Â Dim oTrans_JobAdapter As JobEntryAdapter

>

>Â Â Â Â Â Â 'Get the current jobentry adapter

>Â Â Â Â Â Â oTrans_JobAdapter =

> DirectCast(csm.TransAdaptersHT("oTrans_jobAdapter"), JobEntryAdapter)

>

>Â Â Â Â Â Â oTrans_JobAdapter.GetNewJobHead()

>

>Â Â Â Â Â Â edvJobHead.Notify(New EpiNotifyArgs(oTrans,

> edvJobHead.dataView.Count, edvJobHead.Column))

>

>Â Â Â Â Â Â dim txtJobNum as epiTextBox =

> CType(csm.GetNativeControlReference("46567b2e-6bc0-4967-be35-a0ec68438

> 38f"),

> epiTextBox)

>

>Â Â Â Â Â Â txtJobNum.text = jobNum & "-" & jobMtl

>

> ------------------------------------

>

>

> 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/.

> (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]

>

>

>







--

*John Driggers*

*High End Dev, System Design, Profit Drinking

*

*:: 904.962.2887*

*:: waffqle@...*<mailto:waffqle@...*>

*:: NO FAXES*



*



*





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







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



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/.

(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



  http://groups.yahoo.com/group/vantage/



  Individual Email | Traditional



  http://groups.yahoo.com/group/vantage/join

  (Yahoo! ID required)



  vantage-digest@yahoogroups.com<mailto:vantage-digest@yahoogroups.com>

  vantage-fullfeatured@yahoogroups.com<mailto:vantage-fullfeatured@yahoogroups.com>



  vantage-unsubscribe@yahoogroups.com<mailto:vantage-unsubscribe@yahoogroups.com>



  http://docs.yahoo.com/info/terms/



________________________________
CONFIDENTIALITY NOTICE

The information contained in this communication, including attachments, is privileged and confidential. It is intended only for the exclusive use of the addressee. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us at (727) 578-6258 and immediately delete the communication.

"This (document/presentation) may contain technical data as defined in the International Traffic In Arms Regulations (ITAR) 22 CFR 120.10. Export of this material is restricted by the Arms Export Control Act (22 U.S.C. 2751 et seq.) and may not be exported to foreign persons without prior approval form the U.S. Department of State."


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



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

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]
Sorry, meant to say Greg's description.



________________________________
From: Ted Koch <tkoch77@...>
To: "vantage@yahoogroups.com" <vantage@yahoogroups.com>
Sent: Friday, December 16, 2011 8:42 AM
Subject: Re: [Vantage] New Job with button click

John,

I just read your email more thoroughly. I am trying to create a brand new job from this button click, not bring in a job dataset. The create job button is on the Material Details tab. When I click the button I want it to clear the form completely and populate the job number with a new job number of 000002-11. 000002 is the job number and 11 is the material seq number that was active in the material details tab.



________________________________
From: Greg Payne <gpayne@...>
To: "vantage@yahoogroups.com" <vantage@yahoogroups.com>
Sent: Friday, December 16, 2011 7:40 AM
Subject: RE: [Vantage] New Job with button click

John:
Pretty good from memory.

GetDatasetForTree
This methods will return the dataset for Job Entry. The method will return the records related to the assembly
provided and the first child level assemblies related to the input inputted assembly.
Parameters
Name Type Description
ipJobNum String The Job Number to return data for.
ipStartAssemblySeq Int32 The Assembly Sequence to return data for.
ipCurrentAssemblySeq Int32 The Assembly Sequence to return data for.
Would you like to retun a complete dataset for this job
number?
ipCompleteTree Boolean
Job must be one of these types else it is an error.
ipJobTypeMode can be blank, no constraint
ipJobTypeMode String
Returns

Job Entry data set



-----Original Message-----
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of John Driggers
Sent: Thursday, December 15, 2011 10:32 PM
To: vantage@yahoogroups.com
Subject: Re: [Vantage] New Job with button click



I believe there is a function to reset the tree on the jobentry adapter.

"getTreeDataSet" or something like that, forgive me for not knowing the name, I don't have Epicor in front of me.



That failing, try running update.





On Thu, Dec 15, 2011 at 1:32 PM, Ted Koch <tkoch77@...<mailto:tkoch77@...>> wrote:



> **

>

>

> I posted this on Tuesday, wondering if anyone had a chance to take a look.

> Have been playing with this in my free time but still haven't got it yet.

>

>

> I am putting a button on JobDetail -> Materials -> Detail. When a user

> clicks this button I want it to call GetNewJobHead() and pre populate

> the Job Number textbox. So far when you click the button I get no

> errors, but it doesn't reset the tree view. It creates a new blank job

> record in the tree view and it has the sub asm, ops, and mtls

> underneath it from the job that was active on the form when the button

> was clicked. So it's not first clearing the form and then calling

> GetNewJobHead. Could someone take a look at what I have and tell me

> what I am missing?

>

> Thank you in advance,

>

> Ted

>

>Â Â Â Â Â Â Â Dim edvJobHead As EpiDataView =

> CType(oTrans.EpiDataViews("JobHead"), EpiDataView)

>Â Â Â Â Â Â Â Dim jobNum As String =

> edvJobHead.dataView(edvJobHead.Row)("JobNum")

>Â Â Â Â Â Â Â Dim edvJobMtl As EpiDataView =

> CType(oTrans.EpiDataViews("JobMtl"), EpiDataView)

>Â Â Â Â Â Â Â Dim jobMtl As Int32 =

> edvJobMtl.dataView(edvJobMtl.Row)("MtlSeq")

>

>Â Â Â Â Â Â Â 'Delcare jobentry adapter

>Â Â Â Â Â Â Â Dim oTrans_JobAdapter As JobEntryAdapter

>

>Â Â Â Â Â Â Â 'Get the current jobentry adapter

>Â Â Â Â Â Â Â oTrans_JobAdapter =

> DirectCast(csm.TransAdaptersHT("oTrans_jobAdapter"), JobEntryAdapter)

>

>Â Â Â Â Â Â Â oTrans_JobAdapter.GetNewJobHead()

>

>Â Â Â Â Â Â Â edvJobHead.Notify(New EpiNotifyArgs(oTrans,

> edvJobHead.dataView.Count, edvJobHead.Column))

>

>

>Â Â Â Â Â dim txtJobNum as epiTextBox =

>

> CType(csm.GetNativeControlReference("46567b2e-6bc0-4967-be35-a0ec68438

> 38f"),

> epiTextBox)

>

>Â Â Â Â Â Â Â txtJobNum.text = jobNum & "-" & jobMtl

>

> ________________________________

> From: tkoch77 <tkoch77@...<mailto:tkoch77@...>>

> To: vantage@yahoogroups.com<mailto:vantage@yahoogroups.com>

> Sent: Monday, December 12, 2011 7:42 PM

> Subject: [Vantage] New Job with button click

>

>

> I am putting a button on JobDetail -> Materials -> Detail. When a user

> clicks this button I want it to call GetNewJobHead() and pre populate

> the Job Number textbox. So far when you click the button I get no

> errors, but it doesn't reset the tree view. It creates a new blank job

> record in the tree view and it has the sub asm, ops, and mtls

> underneath it from the job that was active on the form when the button

> was clicked. So it's not first clearing the form and then calling

> GetNewJobHead. Could someone take a look at what I have and tell me what I am missing?

>

> Thank you in advance,

>

> Ted

>

>Â Â Â Â Â Â Â Dim edvJobHead As EpiDataView =

> CType(oTrans.EpiDataViews("JobHead"), EpiDataView)

>Â Â Â Â Â Â Â Dim jobNum As String =

> edvJobHead.dataView(edvJobHead.Row)("JobNum")

>Â Â Â Â Â Â Â Dim edvJobMtl As EpiDataView =

> CType(oTrans.EpiDataViews("JobMtl"), EpiDataView)

>Â Â Â Â Â Â Â Dim jobMtl As Int32 =

> edvJobMtl.dataView(edvJobMtl.Row)("MtlSeq")

>

>Â Â Â Â Â Â Â 'Delcare jobentry adapter

>Â Â Â Â Â Â Â Dim oTrans_JobAdapter As JobEntryAdapter

>

>Â Â Â Â Â Â Â 'Get the current jobentry adapter

>Â Â Â Â Â Â Â oTrans_JobAdapter =

> DirectCast(csm.TransAdaptersHT("oTrans_jobAdapter"), JobEntryAdapter)

>

>Â Â Â Â Â Â Â oTrans_JobAdapter.GetNewJobHead()

>

>Â Â Â Â Â Â Â edvJobHead.Notify(New EpiNotifyArgs(oTrans,

> edvJobHead.dataView.Count, edvJobHead.Column))

>

>Â Â Â Â Â Â Â dim txtJobNum as epiTextBox =

> CType(csm.GetNativeControlReference("46567b2e-6bc0-4967-be35-a0ec68438

> 38f"),

> epiTextBox)

>

>Â Â Â Â Â Â Â txtJobNum.text = jobNum & "-" & jobMtl

>

> ------------------------------------

>

>

> 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/.

> (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]

>

>

>







--

*John Driggers*

*High End Dev, System Design, Profit Drinking

*

*:: 904.962.2887*

*:: waffqle@...*<mailto:waffqle@...*>

*:: NO FAXES*



*



*





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







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



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/.

(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



  http://groups.yahoo.com/group/vantage/



  Individual Email | Traditional



  http://groups.yahoo.com/group/vantage/join

  (Yahoo! ID required)



  vantage-digest@yahoogroups.com<mailto:vantage-digest@yahoogroups.com>

  vantage-fullfeatured@yahoogroups.com<mailto:vantage-fullfeatured@yahoogroups.com>



  vantage-unsubscribe@yahoogroups.com<mailto:vantage-unsubscribe@yahoogroups.com>



  http://docs.yahoo.com/info/terms/



________________________________
CONFIDENTIALITY NOTICE

The information contained in this communication, including attachments, is privileged and confidential. It is intended only for the exclusive use of the addressee. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us at (727) 578-6258 and immediately delete the communication.

"This (document/presentation) may contain technical data as defined in the International Traffic In Arms Regulations (ITAR) 22 CFR 120.10. Export of this material is restricted by the Arms Export Control Act (22 U.S.C. 2751 et seq.) and may not be exported to foreign persons without prior approval form the U.S. Department of State."


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



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

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]



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

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]