Adding picture to a form

I sent you an offline on this with the document. There is also another
option using an embedded dashboard if you're interested.



Rob Bucek

Production Control Manager

PH: (715) 284-5376 ext 311

Mobile: (715)896-0590

FAX: (715)284-4084

<http://www.dsmfg.com/>

(Click the logo to view our site) <http://www.dsmfg.com/>





From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
Of Mike Tonoyan
Sent: Monday, June 27, 2011 5:50 PM
To: vantage@yahoogroups.com
Subject: RE: [Vantage] Adding picture to a form





Rob,

On the "Form Event Wizard" I am missing the "Available Control Events".
I am not sure if the instructions are not complete or we need the Epicor
SDK.

Mike Tonoyan / Natel Engr.

mtonoyan@... <mailto:mtonoyan%40natelengr.com>

From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
[mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> ] On
Behalf
Of Rob Bucek
Sent: Monday, June 27, 2011 2:04 PM
To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
Subject: RE: [Vantage] Adding picture to a form

This is copied right out of their advanced customization course thingy..

Add a New Sheet and a Picture Box

This workshop requires that at least one graphic file (.jpg, .gif, .bmp,
.png) is included within theattachments for a specific part. While any
part can be used to attach a graphic file, if using theeducation
database included with the manufacturing application, select a part like
4600-1 with nocurrent attachments.

Using the Sheet Wizard, create a new sheet choosing MainPanel1 as the
docking sheet.

Give the sheet a Name

The name should indicate it is used to display picture attachments.

Navigate to the newly created sheet.

Select the Toolbox from the Tools menu in the Customization Tools
Dialog.

Select the GroupBox button and click and drag the group box onto the new
sheet.

Change the text property to Part Picture.

Select the PictureBox button from the Toolbox.

Click and drag the new picture box so that it is centered on the new
group box.

Change the name property of the PictureBox to PicPartAttachment.

Set up the handler for the Picture Box

In this example, it is a good idea to include
two handlers to ensure the code will execute based on a varietyof
events. Specifically, you will use the EpiDataView notification as well
as the ListChanged event handlersto trigger the picture box display of
the contents within the attachments file for Part.

Select the Wizards tab and display the Form Event Wizard sheet.

For Event Type selectListChanged in the Control Type Filter drop-down
list.

Select AutoAttachPart in the View drop down.

Select Click in the Available Control Events drop-down field.

Click the blue right arrow button to add the event.

For Event Type select EpiViewNotification in the Control Type Filter
drop-down list.

Select AutoAttachPart in the View drop down.

Click the Updated Selected Event Code button and then Save the
customization.

Select Click in the Available Control Events drop-down list.

Click the blue right arrow button to add the event.

Author a routine

Add the code below as shown below the DestroyCustomCode area of the
script editor and directlybeneath the End Sub statement

The commented line is not necessary but is shown to indicate the
function of the routine.

Private Sub SetPictureBoxIconFromAttachMent()
'MessageBox.Show("SetPictureBoxIconFromAttachMent") '// ** Get reference
to Part Attachment View ** Dim edvPartAttach As EpiDataView =
CType(oTrans.EpiDataViews("AutoAttachPart") , EpiDataView) If
(Not(edvPartAttach Is Nothing) And (edvPartAttach.dataView.Count > 0))
Then Dim fileName As String = edvPartAttach.dataView(0)("FileName") If
(mFileName <> fileName) Then mFileName = fileName
picPartAttachment.Image = System.Drawing.Image.FromFile(fileName) End If
Else mFileName = String.Empty picPartAttachment.Image = Nothing End If
End Sub

Immediately below this area, look for the event handlers added in the
Form Event Wizard

For each event handler a method call will need to be added to reference
the routine that you havejust authored.

Locate the ListView event handler beginning with Private Sub
Part_DataView_ListChanged.

Under the commented lines below Add Event Handler here, enter the method
call:SetPictureBoxIconFromAttachMent()

The entire event handler should appear as below:

Private Sub Part_DataView_ListChanged(ByVal sender As Object, ByVal args
As ListChangedEventArgs) Handles Part_DataView.ListChanged '// **
Argument Properties and Uses ** '// Part_DataView(0)("[FieldName]") '//
args.ListChangedType, args.NewIndex, args.OldIndex '//
ListChangedType.ItemAdded, ListChangedType.ItemChanged,
ListChangedType.ItemDeleted, ListChangedType.ItemMoved,
ListChangedType.Reset ' 'Add Event Handler Code '
SetPictureBoxIconFromAttachMent() End Sub

Continuing with the second event handler for EpiDataView, add the method
call as shown below

Private Sub edvAutoAttachPart_EpiViewNotification(view As EpiDataView,
args As EpiNotifyArgs) Handles edvAutoAttachPart.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 If (args.NotifyType =
EpiTransaction.NotifyType.AddRow) Then If (args.Row > -1) Then
SetPictureBoxIconFromAttachMent() End If End If End Sub

Compile the code and test the functionality

Launch the maximized Script Editor into view.

Select Test Code from the Tools menu in the Customization Tools Dialog
window

A message displays at the lower portion of the screen indicating the
status of the compiled code.

If successful, Save the customization and close the Customization Tools
Dialog window.

Maybe that will work for you..

Rob Bucek

Production Control Manager

PH: (715) 284-5376 ext 311

Mobile: (715)896-0590

FAX: (715)284-4084

<http://www.dsmfg.com/>

(Click the logo to view our site) <http://www.dsmfg.com/>

From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
[mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com> ] On
Behalf
Of Mike Tonoyan
Sent: Monday, June 27, 2011 3:18 PM
To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
Subject: [Vantage] Adding picture to a form

We are about to implement Asset Management module in 9.04.507. We would
like to customize the "Asset Tracker" form to show pictures. Has anyone
done a customization like that? If so, how easy is it?

Mike Tonoyan / Natel Engr.

mtonoyan@... <mailto:mtonoyan%40natelengr.com>
<mailto:mtonoyan%40natelengr.com>
<mailto:mtonoyan%40natelengr.com>

__________________________________________________________
Notice: This email transmission may contain confidential information and
is intended only for the person(s) named. Any use, copying or disclosure
to/by any other person(s) is strictly prohibited. By accepting this
information, recipients confirm that they understand and will comply
with all applicable ITAR and EAR requirements.
__________________________________________________________

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

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

__________________________________________________________
Notice: This email transmission may contain confidential information and
is intended only for the person(s) named. Any use, copying or disclosure
to/by any other person(s) is strictly prohibited. By accepting this
information, recipients confirm that they understand and will comply
with all applicable ITAR and EAR requirements.
__________________________________________________________

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





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

We have one client where it is taking 15 seconds from double clicking the epicor
icon to the log on screen appearing.

This has only started happening today on one PC.

All other programs on the PC are instant.

Thanks.

[Non-text portions of this message have been removed]
Good Day Chris:

In Epicor 9.05, that 12-15 second delay has always been there.

How long after you enter your password does the screen come up.

What version are you on, and have you changed versions or installed
any hot fixes to the Client?
OS of PC is? Same as before? Anti-Virus software running?


Sun is on 9.05.601B SQL-Unidata (11/29/10)
Testing 9.05.604A as of 5/24/11
Sun was previously on M2K (Manage-2000) 7.0 SP 5 (Informix)



len.hartka@...

________________________________

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
Of Chris Thompson
Sent: Thursday, June 23, 2011 4:37 AM
To: vantage@yahoogroups.com
Subject: [Vantage] Epicor clients takes 15 seconds to get to log on
screen




Hi

We have one client where it is taking 15 seconds from double clicking
the epicor
icon to the log on screen appearing.

This has only started happening today on one PC.

All other programs on the PC are instant.

Thanks.

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






This e-mail and any attachments may contain proprietary and/or confidential information. If you are not the intended recipient, please notify the sender immediately by reply e-mail or at 410-472-2900 and then delete the message without using, disseminating, or copying this message or any portion thereof. With e-mail communications you are urged to protect against viruses.


[Non-text portions of this message have been removed]
Does that particular client happen to be on wireless? For us slower connectivity makes everything Epicor slower...

--- In vantage@yahoogroups.com, "Len Hartka" <len.hartka@...> wrote:
>
> Good Day Chris:
>
> In Epicor 9.05, that 12-15 second delay has always been there.
>
> How long after you enter your password does the screen come up.
>
> What version are you on, and have you changed versions or installed
> any hot fixes to the Client?
> OS of PC is? Same as before? Anti-Virus software running?
>
>
> Sun is on 9.05.601B SQL-Unidata (11/29/10)
> Testing 9.05.604A as of 5/24/11
> Sun was previously on M2K (Manage-2000) 7.0 SP 5 (Informix)
>
>
>
> len.hartka@...
>
> ________________________________
>
> From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
> Of Chris Thompson
> Sent: Thursday, June 23, 2011 4:37 AM
> To: vantage@yahoogroups.com
> Subject: [Vantage] Epicor clients takes 15 seconds to get to log on
> screen
>
>
>
>
> Hi
>
> We have one client where it is taking 15 seconds from double clicking
> the epicor
> icon to the log on screen appearing.
>
> This has only started happening today on one PC.
>
> All other programs on the PC are instant.
>
> Thanks.
>
> [Non-text portions of this message have been removed]
>
>
>
>
>
>
> This e-mail and any attachments may contain proprietary and/or confidential information. If you are not the intended recipient, please notify the sender immediately by reply e-mail or at 410-472-2900 and then delete the message without using, disseminating, or copying this message or any portion thereof. With e-mail communications you are urged to protect against viruses.
>
>
> [Non-text portions of this message have been removed]
>
There is little to no traffic between client and server from starting the Mfgsys.exe to the login screen.
Configuration file will point to deployment share and that gets verified – but all objects are loaded from local disk, so issue is 100% local to that client.
I would check network and DNS resolution as it needs to find the host and anything that is preventing mfgsys.exe to load

Motty

--- In vantage@yahoogroups.com, "cubcrafters_it" <jason.navarrete@...> wrote:
>
> Does that particular client happen to be on wireless? For us slower connectivity makes everything Epicor slower...
>
> --- In vantage@yahoogroups.com, "Len Hartka" <len.hartka@> wrote:
> >
> > Good Day Chris:
> >
> > In Epicor 9.05, that 12-15 second delay has always been there.
> >
> > How long after you enter your password does the screen come up.
> >
> > What version are you on, and have you changed versions or installed
> > any hot fixes to the Client?
> > OS of PC is? Same as before? Anti-Virus software running?
> >
> >
> > Sun is on 9.05.601B SQL-Unidata (11/29/10)
> > Testing 9.05.604A as of 5/24/11
> > Sun was previously on M2K (Manage-2000) 7.0 SP 5 (Informix)
> >
> >
> >
> > len.hartka@
> >
> > ________________________________
> >
> > From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
> > Of Chris Thompson
> > Sent: Thursday, June 23, 2011 4:37 AM
> > To: vantage@yahoogroups.com
> > Subject: [Vantage] Epicor clients takes 15 seconds to get to log on
> > screen
> >
> >
> >
> >
> > Hi
> >
> > We have one client where it is taking 15 seconds from double clicking
> > the epicor
> > icon to the log on screen appearing.
> >
> > This has only started happening today on one PC.
> >
> > All other programs on the PC are instant.
> >
> > Thanks.
> >
> > [Non-text portions of this message have been removed]
> >
> >
> >
> >
> >
> >
> > This e-mail and any attachments may contain proprietary and/or confidential information. If you are not the intended recipient, please notify the sender immediately by reply e-mail or at 410-472-2900 and then delete the message without using, disseminating, or copying this message or any portion thereof. With e-mail communications you are urged to protect against viruses.
> >
> >
> > [Non-text portions of this message have been removed]
> >
>
Hi

As far as we can see, nothing has changed.

On Wednesday the client popped up almost instantly (as it does for everyone),
but on Thursday it took 12-15 seconds.

We are on version 9.04.505c.

The pc in question is Windows 7.

I can't understand how opening an exe on a local machine takes so long.

I've just times mine there and it took about 2-3 seconds to bring the log on
screen up (XP and Vista).

After entering the password it usually takes 3-5 seconds to fully load the
screen.




________________________________
From: Len Hartka <len.hartka@...>
To: vantage@yahoogroups.com
Sent: Thu, 23 June, 2011 13:29:11
Subject: RE: [Vantage] Epicor clients takes 15 seconds to get to log on screen

Â
Good Day Chris:

In Epicor 9.05, that 12-15 second delay has always been there.

How long after you enter your password does the screen come up.

What version are you on, and have you changed versions or installed
any hot fixes to the Client?
OS of PC is? Same as before? Anti-Virus software running?


Sun is on 9.05.601B SQL-Unidata (11/29/10)
Testing 9.05.604A as of 5/24/11
Sun was previously on M2K (Manage-2000) 7.0 SP 5 (Informix)



len.hartka@...

________________________________

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
Of Chris Thompson
Sent: Thursday, June 23, 2011 4:37 AM
To: vantage@yahoogroups.com
Subject: [Vantage] Epicor clients takes 15 seconds to get to log on
screen

Hi

We have one client where it is taking 15 seconds from double clicking
the epicor
icon to the log on screen appearing.

This has only started happening today on one PC.

All other programs on the PC are instant.

Thanks.

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

This e-mail and any attachments may contain proprietary and/or confidential
information. If you are not the intended recipient, please notify the sender
immediately by reply e-mail or at 410-472-2900 and then delete the message
without using, disseminating, or copying this message or any portion thereof.
With e-mail communications you are urged to protect against viruses.

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




[Non-text portions of this message have been removed]
No, it is hard wired and it has only just started happening.




________________________________
From: cubcrafters_it <jason.navarrete@...>
To: vantage@yahoogroups.com
Sent: Thu, 23 June, 2011 16:08:30
Subject: [Vantage] Re: Epicor clients takes 15 seconds to get to log on screen

Â
Does that particular client happen to be on wireless? For us slower connectivity
makes everything Epicor slower...

--- In vantage@yahoogroups.com, "Len Hartka" <len.hartka@...> wrote:
>
> Good Day Chris:
>
> In Epicor 9.05, that 12-15 second delay has always been there.
>
> How long after you enter your password does the screen come up.
>
> What version are you on, and have you changed versions or installed
> any hot fixes to the Client?
> OS of PC is? Same as before? Anti-Virus software running?
>
>
> Sun is on 9.05.601B SQL-Unidata (11/29/10)
> Testing 9.05.604A as of 5/24/11
> Sun was previously on M2K (Manage-2000) 7.0 SP 5 (Informix)
>
>
>
> len.hartka@...
>
> ________________________________
>
> From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
> Of Chris Thompson
> Sent: Thursday, June 23, 2011 4:37 AM
> To: vantage@yahoogroups.com
> Subject: [Vantage] Epicor clients takes 15 seconds to get to log on
> screen
>
>
>
>
> Hi
>
> We have one client where it is taking 15 seconds from double clicking
> the epicor
> icon to the log on screen appearing.
>
> This has only started happening today on one PC.
>
> All other programs on the PC are instant.
>
> Thanks.
>
> [Non-text portions of this message have been removed]
>
>
>
>
>
>
> This e-mail and any attachments may contain proprietary and/or confidential
>information. If you are not the intended recipient, please notify the sender
>immediately by reply e-mail or at 410-472-2900 and then delete the message
>without using, disseminating, or copying this message or any portion thereof.
>With e-mail communications you are urged to protect against viruses.
>
>
> [Non-text portions of this message have been removed]
>




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



I created a BAQ to show the last time the sales order was put on HOLD or taken off of HOLD. For that I am using ChgLog table / LogText field MATCHES “*Hold Order*”. The problem arises when there are more than one hold order change on the same date. The entry for just one day looks like the following:

============================================

user 11:13:35

Doc Total Charges: 1107506.2 -> 1177880

SysRevID: 110140008 -> 110180000

Total Charges: 1107506.2 -> 1177880



user 11:14:10

Hold Order: yes -> no

SysRevID: 110180000 -> 110180001



user 11:19:06

Doc Total Charges: 1177880 -> 1064184

SysRevID: 110180001 -> 110180002

Total Charges: 1177880 -> 1064184



user 11:19:07

Doc Total Charges: 1064184 -> 950488

SysRevID: 110180002 -> 110180003

Total Charges: 1064184 -> 950488



user 11:19:07

Doc Total Charges: 950488 -> 1064184

SysRevID: 110180003 -> 110180004

Total Charges: 950488 -> 1064184



user 11:23:23

Hold Order: no -> yes

SysRevID: 110180004 -> 110180005

============================================

I need to pick up the last Hold Order entry. I tried “Lookup”, “Entry”, “Substring” functions without any luck. Any ideas?



Mike Tonoyan / Natel Engr.

mtonoyan@...


______________________________________________________________________
Notice: This email transmission may contain confidential information and is intended only for the person(s) named. Any use, copying or disclosure to/by any other person(s) is strictly prohibited. By accepting this information, recipients confirm that they understand and will comply with all applicable ITAR and EAR requirements.
______________________________________________________________________


[Non-text portions of this message have been removed]
Check file permissions.

C:\ProgramData\Epicor

I would delete everything inside that folder and make sure that all users
have complete control over that folder and anything inside it.

Then run the program, it will take longer the first time. Then close it and
see how it reacts the second time you try to run the program.

Normally the first time the program runs after an update it will take longer
before it starts, each subsequent start should take a lot less time.



-----Original Message-----
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of
Chris Thompson
Sent: Thursday, June 23, 2011 4:37 AM
To: vantage@yahoogroups.com
Subject: [Vantage] Epicor clients takes 15 seconds to get to log on screen

Hi

We have one client where it is taking 15 seconds from double clicking the
epicor icon to the log on screen appearing.

This has only started happening today on one PC.

All other programs on the PC are instant.

Thanks.

[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
We are about to implement Asset Management module in 9.04.507. We would
like to customize the "Asset Tracker" form to show pictures. Has anyone
done a customization like that? If so, how easy is it?



Mike Tonoyan / Natel Engr.

mtonoyan@...




______________________________________________________________________
Notice: This email transmission may contain confidential information and is intended only for the person(s) named. Any use, copying or disclosure to/by any other person(s) is strictly prohibited. By accepting this information, recipients confirm that they understand and will comply with all applicable ITAR and EAR requirements.
______________________________________________________________________

[Non-text portions of this message have been removed]
This is copied right out of their advanced customization course thingy..





Add a New Sheet and a Picture Box



This workshop requires that at least one graphic file (.jpg, .gif, .bmp,
.png) is included within theattachments for a specific part. While any
part can be used to attach a graphic file, if using theeducation
database included with the manufacturing application, select a part like
4600-1 with nocurrent attachments.







Using the Sheet Wizard, create a new sheet choosing MainPanel1 as the
docking sheet.



Give the sheet a Name



The name should indicate it is used to display picture attachments.



Navigate to the newly created sheet.



Select the Toolbox from the Tools menu in the Customization Tools
Dialog.



Select the GroupBox button and click and drag the group box onto the new
sheet.



Change the text property to Part Picture.



Select the PictureBox button from the Toolbox.



Click and drag the new picture box so that it is centered on the new
group box.



Change the name property of the PictureBox to PicPartAttachment.









Set up the handler for the Picture Box



In this example, it is a good idea to include
two handlers to ensure the code will execute based on a varietyof
events. Specifically, you will use the EpiDataView notification as well
as the ListChanged event handlersto trigger the picture box display of
the contents within the attachments file for Part.

Select the Wizards tab and display the Form Event Wizard sheet.



For Event Type selectListChanged in the Control Type Filter drop-down
list.







Select AutoAttachPart in the View drop down.



Select Click in the Available Control Events drop-down field.



Click the blue right arrow button to add the event.



For Event Type select EpiViewNotification in the Control Type Filter
drop-down list.



Select AutoAttachPart in the View drop down.



Click the Updated Selected Event Code button and then Save the
customization.



Select Click in the Available Control Events drop-down list.



Click the blue right arrow button to add the event.







Author a routine



Add the code below as shown below the DestroyCustomCode area of the
script editor and directlybeneath the End Sub statement



The commented line is not necessary but is shown to indicate the
function of the routine.

Private Sub SetPictureBoxIconFromAttachMent()
'MessageBox.Show("SetPictureBoxIconFromAttachMent") '// ** Get reference
to Part Attachment View ** Dim edvPartAttach As EpiDataView =
CType(oTrans.EpiDataViews("AutoAttachPart") , EpiDataView) If
(Not(edvPartAttach Is Nothing) And (edvPartAttach.dataView.Count > 0))
Then Dim fileName As String = edvPartAttach.dataView(0)("FileName") If
(mFileName <> fileName) Then mFileName = fileName
picPartAttachment.Image = System.Drawing.Image.FromFile(fileName) End If
Else mFileName = String.Empty picPartAttachment.Image = Nothing End If
End Sub







Immediately below this area, look for the event handlers added in the
Form Event Wizard



For each event handler a method call will need to be added to reference
the routine that you havejust authored.



Locate the ListView event handler beginning with Private Sub
Part_DataView_ListChanged.



Under the commented lines below Add Event Handler here, enter the method
call:SetPictureBoxIconFromAttachMent()



The entire event handler should appear as below:









Private Sub Part_DataView_ListChanged(ByVal sender As Object, ByVal args
As ListChangedEventArgs) Handles Part_DataView.ListChanged '// **
Argument Properties and Uses ** '// Part_DataView(0)("[FieldName]") '//
args.ListChangedType, args.NewIndex, args.OldIndex '//
ListChangedType.ItemAdded, ListChangedType.ItemChanged,
ListChangedType.ItemDeleted, ListChangedType.ItemMoved,
ListChangedType.Reset ' 'Add Event Handler Code '
SetPictureBoxIconFromAttachMent() End Sub



Continuing with the second event handler for EpiDataView, add the method
call as shown below



Private Sub edvAutoAttachPart_EpiViewNotification(view As EpiDataView,
args As EpiNotifyArgs) Handles edvAutoAttachPart.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 If (args.NotifyType =
EpiTransaction.NotifyType.AddRow) Then If (args.Row > -1) Then
SetPictureBoxIconFromAttachMent() End If End If End Sub







Compile the code and test the functionality



Launch the maximized Script Editor into view.



Select Test Code from the Tools menu in the Customization Tools Dialog
window



A message displays at the lower portion of the screen indicating the
status of the compiled code.



If successful, Save the customization and close the Customization Tools
Dialog window.



Maybe that will work for you..



Rob Bucek

Production Control Manager

PH: (715) 284-5376 ext 311

Mobile: (715)896-0590

FAX: (715)284-4084

<http://www.dsmfg.com/>

(Click the logo to view our site) <http://www.dsmfg.com/>





From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
Of Mike Tonoyan
Sent: Monday, June 27, 2011 3:18 PM
To: vantage@yahoogroups.com
Subject: [Vantage] Adding picture to a form





We are about to implement Asset Management module in 9.04.507. We would
like to customize the "Asset Tracker" form to show pictures. Has anyone
done a customization like that? If so, how easy is it?

Mike Tonoyan / Natel Engr.

mtonoyan@... <mailto:mtonoyan%40natelengr.com>

__________________________________________________________
Notice: This email transmission may contain confidential information and
is intended only for the person(s) named. Any use, copying or disclosure
to/by any other person(s) is strictly prohibited. By accepting this
information, recipients confirm that they understand and will comply
with all applicable ITAR and EAR requirements.
__________________________________________________________

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





[Non-text portions of this message have been removed]
The Epicor Tool Box has an EpiPictureBox, I haven't had occasion to use it but should be fairly simple to use.

Jim Kinneman
Encompass Solutions
Senior Consultant

--- In vantage@yahoogroups.com, "Mike Tonoyan" <mtonoyan@...> wrote:
>
> We are about to implement Asset Management module in 9.04.507. We would
> like to customize the "Asset Tracker" form to show pictures. Has anyone
> done a customization like that? If so, how easy is it?
>
>
>
> Mike Tonoyan / Natel Engr.
>
> mtonoyan@...
>
>
>
>
> ______________________________________________________________________
> Notice: This email transmission may contain confidential information and is intended only for the person(s) named. Any use, copying or disclosure to/by any other person(s) is strictly prohibited. By accepting this information, recipients confirm that they understand and will comply with all applicable ITAR and EAR requirements.
> ______________________________________________________________________
>
> [Non-text portions of this message have been removed]
>
Rob,



Thank you, it looks promising.



Mike Tonoyan / Natel Engr.

mtonoyan@...



From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
Of Rob Bucek
Sent: Monday, June 27, 2011 2:04 PM
To: vantage@yahoogroups.com
Subject: RE: [Vantage] Adding picture to a form





This is copied right out of their advanced customization course thingy..

Add a New Sheet and a Picture Box

This workshop requires that at least one graphic file (.jpg, .gif, .bmp,
.png) is included within theattachments for a specific part. While any
part can be used to attach a graphic file, if using theeducation
database included with the manufacturing application, select a part like
4600-1 with nocurrent attachments.

Using the Sheet Wizard, create a new sheet choosing MainPanel1 as the
docking sheet.

Give the sheet a Name

The name should indicate it is used to display picture attachments.

Navigate to the newly created sheet.

Select the Toolbox from the Tools menu in the Customization Tools
Dialog.

Select the GroupBox button and click and drag the group box onto the new
sheet.

Change the text property to Part Picture.

Select the PictureBox button from the Toolbox.

Click and drag the new picture box so that it is centered on the new
group box.

Change the name property of the PictureBox to PicPartAttachment.

Set up the handler for the Picture Box

In this example, it is a good idea to include
two handlers to ensure the code will execute based on a varietyof
events. Specifically, you will use the EpiDataView notification as well
as the ListChanged event handlersto trigger the picture box display of
the contents within the attachments file for Part.

Select the Wizards tab and display the Form Event Wizard sheet.

For Event Type selectListChanged in the Control Type Filter drop-down
list.

Select AutoAttachPart in the View drop down.

Select Click in the Available Control Events drop-down field.

Click the blue right arrow button to add the event.

For Event Type select EpiViewNotification in the Control Type Filter
drop-down list.

Select AutoAttachPart in the View drop down.

Click the Updated Selected Event Code button and then Save the
customization.

Select Click in the Available Control Events drop-down list.

Click the blue right arrow button to add the event.

Author a routine

Add the code below as shown below the DestroyCustomCode area of the
script editor and directlybeneath the End Sub statement

The commented line is not necessary but is shown to indicate the
function of the routine.

Private Sub SetPictureBoxIconFromAttachMent()
'MessageBox.Show("SetPictureBoxIconFromAttachMent") '// ** Get reference
to Part Attachment View ** Dim edvPartAttach As EpiDataView =
CType(oTrans.EpiDataViews("AutoAttachPart") , EpiDataView) If
(Not(edvPartAttach Is Nothing) And (edvPartAttach.dataView.Count > 0))
Then Dim fileName As String = edvPartAttach.dataView(0)("FileName") If
(mFileName <> fileName) Then mFileName = fileName
picPartAttachment.Image = System.Drawing.Image.FromFile(fileName) End If
Else mFileName = String.Empty picPartAttachment.Image = Nothing End If
End Sub

Immediately below this area, look for the event handlers added in the
Form Event Wizard

For each event handler a method call will need to be added to reference
the routine that you havejust authored.

Locate the ListView event handler beginning with Private Sub
Part_DataView_ListChanged.

Under the commented lines below Add Event Handler here, enter the method
call:SetPictureBoxIconFromAttachMent()

The entire event handler should appear as below:

Private Sub Part_DataView_ListChanged(ByVal sender As Object, ByVal args
As ListChangedEventArgs) Handles Part_DataView.ListChanged '// **
Argument Properties and Uses ** '// Part_DataView(0)("[FieldName]") '//
args.ListChangedType, args.NewIndex, args.OldIndex '//
ListChangedType.ItemAdded, ListChangedType.ItemChanged,
ListChangedType.ItemDeleted, ListChangedType.ItemMoved,
ListChangedType.Reset ' 'Add Event Handler Code '
SetPictureBoxIconFromAttachMent() End Sub

Continuing with the second event handler for EpiDataView, add the method
call as shown below

Private Sub edvAutoAttachPart_EpiViewNotification(view As EpiDataView,
args As EpiNotifyArgs) Handles edvAutoAttachPart.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 If (args.NotifyType =
EpiTransaction.NotifyType.AddRow) Then If (args.Row > -1) Then
SetPictureBoxIconFromAttachMent() End If End If End Sub

Compile the code and test the functionality

Launch the maximized Script Editor into view.

Select Test Code from the Tools menu in the Customization Tools Dialog
window

A message displays at the lower portion of the screen indicating the
status of the compiled code.

If successful, Save the customization and close the Customization Tools
Dialog window.

Maybe that will work for you..

Rob Bucek

Production Control Manager

PH: (715) 284-5376 ext 311

Mobile: (715)896-0590

FAX: (715)284-4084

<http://www.dsmfg.com/>

(Click the logo to view our site) <http://www.dsmfg.com/>

From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
[mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> ] On
Behalf
Of Mike Tonoyan
Sent: Monday, June 27, 2011 3:18 PM
To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
Subject: [Vantage] Adding picture to a form

We are about to implement Asset Management module in 9.04.507. We would
like to customize the "Asset Tracker" form to show pictures. Has anyone
done a customization like that? If so, how easy is it?

Mike Tonoyan / Natel Engr.

mtonoyan@... <mailto:mtonoyan%40natelengr.com>
<mailto:mtonoyan%40natelengr.com>

__________________________________________________________
Notice: This email transmission may contain confidential information and
is intended only for the person(s) named. Any use, copying or disclosure
to/by any other person(s) is strictly prohibited. By accepting this
information, recipients confirm that they understand and will comply
with all applicable ITAR and EAR requirements.
__________________________________________________________

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

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




______________________________________________________________________
Notice: This email transmission may contain confidential information and is intended only for the person(s) named. Any use, copying or disclosure to/by any other person(s) is strictly prohibited. By accepting this information, recipients confirm that they understand and will comply with all applicable ITAR and EAR requirements.
______________________________________________________________________

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



It's easy to do if you want to show just one static picture, but if you
want the picture change with every record then it gets complicated.



Mike Tonoyan / Natel Engr.

mtonoyan@...



From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
Of jckinneman
Sent: Monday, June 27, 2011 2:07 PM
To: vantage@yahoogroups.com
Subject: [Vantage] Re: Adding picture to a form





The Epicor Tool Box has an EpiPictureBox, I haven't had occasion to use
it but should be fairly simple to use.

Jim Kinneman
Encompass Solutions
Senior Consultant

--- In vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> ,
"Mike Tonoyan" <mtonoyan@...> wrote:
>
> We are about to implement Asset Management module in 9.04.507. We
would
> like to customize the "Asset Tracker" form to show pictures. Has
anyone
> done a customization like that? If so, how easy is it?
>
>
>
> Mike Tonoyan / Natel Engr.
>
> mtonoyan@...
>
>
>
>
> __________________________________________________________
> Notice: This email transmission may contain confidential information
and is intended only for the person(s) named. Any use, copying or
disclosure to/by any other person(s) is strictly prohibited. By
accepting this information, recipients confirm that they understand and
will comply with all applicable ITAR and EAR requirements.
> __________________________________________________________
>
> [Non-text portions of this message have been removed]
>




______________________________________________________________________
Notice: This email transmission may contain confidential information and is intended only for the person(s) named. Any use, copying or disclosure to/by any other person(s) is strictly prohibited. By accepting this information, recipients confirm that they understand and will comply with all applicable ITAR and EAR requirements.
______________________________________________________________________

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



On the "Form Event Wizard" I am missing the "Available Control Events".
I am not sure if the instructions are not complete or we need the Epicor
SDK.



Mike Tonoyan / Natel Engr.

mtonoyan@...



From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
Of Rob Bucek
Sent: Monday, June 27, 2011 2:04 PM
To: vantage@yahoogroups.com
Subject: RE: [Vantage] Adding picture to a form





This is copied right out of their advanced customization course thingy..

Add a New Sheet and a Picture Box

This workshop requires that at least one graphic file (.jpg, .gif, .bmp,
.png) is included within theattachments for a specific part. While any
part can be used to attach a graphic file, if using theeducation
database included with the manufacturing application, select a part like
4600-1 with nocurrent attachments.

Using the Sheet Wizard, create a new sheet choosing MainPanel1 as the
docking sheet.

Give the sheet a Name

The name should indicate it is used to display picture attachments.

Navigate to the newly created sheet.

Select the Toolbox from the Tools menu in the Customization Tools
Dialog.

Select the GroupBox button and click and drag the group box onto the new
sheet.

Change the text property to Part Picture.

Select the PictureBox button from the Toolbox.

Click and drag the new picture box so that it is centered on the new
group box.

Change the name property of the PictureBox to PicPartAttachment.

Set up the handler for the Picture Box

In this example, it is a good idea to include
two handlers to ensure the code will execute based on a varietyof
events. Specifically, you will use the EpiDataView notification as well
as the ListChanged event handlersto trigger the picture box display of
the contents within the attachments file for Part.

Select the Wizards tab and display the Form Event Wizard sheet.

For Event Type selectListChanged in the Control Type Filter drop-down
list.

Select AutoAttachPart in the View drop down.

Select Click in the Available Control Events drop-down field.

Click the blue right arrow button to add the event.

For Event Type select EpiViewNotification in the Control Type Filter
drop-down list.

Select AutoAttachPart in the View drop down.

Click the Updated Selected Event Code button and then Save the
customization.

Select Click in the Available Control Events drop-down list.

Click the blue right arrow button to add the event.

Author a routine

Add the code below as shown below the DestroyCustomCode area of the
script editor and directlybeneath the End Sub statement

The commented line is not necessary but is shown to indicate the
function of the routine.

Private Sub SetPictureBoxIconFromAttachMent()
'MessageBox.Show("SetPictureBoxIconFromAttachMent") '// ** Get reference
to Part Attachment View ** Dim edvPartAttach As EpiDataView =
CType(oTrans.EpiDataViews("AutoAttachPart") , EpiDataView) If
(Not(edvPartAttach Is Nothing) And (edvPartAttach.dataView.Count > 0))
Then Dim fileName As String = edvPartAttach.dataView(0)("FileName") If
(mFileName <> fileName) Then mFileName = fileName
picPartAttachment.Image = System.Drawing.Image.FromFile(fileName) End If
Else mFileName = String.Empty picPartAttachment.Image = Nothing End If
End Sub

Immediately below this area, look for the event handlers added in the
Form Event Wizard

For each event handler a method call will need to be added to reference
the routine that you havejust authored.

Locate the ListView event handler beginning with Private Sub
Part_DataView_ListChanged.

Under the commented lines below Add Event Handler here, enter the method
call:SetPictureBoxIconFromAttachMent()

The entire event handler should appear as below:

Private Sub Part_DataView_ListChanged(ByVal sender As Object, ByVal args
As ListChangedEventArgs) Handles Part_DataView.ListChanged '// **
Argument Properties and Uses ** '// Part_DataView(0)("[FieldName]") '//
args.ListChangedType, args.NewIndex, args.OldIndex '//
ListChangedType.ItemAdded, ListChangedType.ItemChanged,
ListChangedType.ItemDeleted, ListChangedType.ItemMoved,
ListChangedType.Reset ' 'Add Event Handler Code '
SetPictureBoxIconFromAttachMent() End Sub

Continuing with the second event handler for EpiDataView, add the method
call as shown below

Private Sub edvAutoAttachPart_EpiViewNotification(view As EpiDataView,
args As EpiNotifyArgs) Handles edvAutoAttachPart.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 If (args.NotifyType =
EpiTransaction.NotifyType.AddRow) Then If (args.Row > -1) Then
SetPictureBoxIconFromAttachMent() End If End If End Sub

Compile the code and test the functionality

Launch the maximized Script Editor into view.

Select Test Code from the Tools menu in the Customization Tools Dialog
window

A message displays at the lower portion of the screen indicating the
status of the compiled code.

If successful, Save the customization and close the Customization Tools
Dialog window.

Maybe that will work for you..

Rob Bucek

Production Control Manager

PH: (715) 284-5376 ext 311

Mobile: (715)896-0590

FAX: (715)284-4084

<http://www.dsmfg.com/>

(Click the logo to view our site) <http://www.dsmfg.com/>

From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
[mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> ] On
Behalf
Of Mike Tonoyan
Sent: Monday, June 27, 2011 3:18 PM
To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
Subject: [Vantage] Adding picture to a form

We are about to implement Asset Management module in 9.04.507. We would
like to customize the "Asset Tracker" form to show pictures. Has anyone
done a customization like that? If so, how easy is it?

Mike Tonoyan / Natel Engr.

mtonoyan@... <mailto:mtonoyan%40natelengr.com>
<mailto:mtonoyan%40natelengr.com>

__________________________________________________________
Notice: This email transmission may contain confidential information and
is intended only for the person(s) named. Any use, copying or disclosure
to/by any other person(s) is strictly prohibited. By accepting this
information, recipients confirm that they understand and will comply
with all applicable ITAR and EAR requirements.
__________________________________________________________

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

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




______________________________________________________________________
Notice: This email transmission may contain confidential information and is intended only for the person(s) named. Any use, copying or disclosure to/by any other person(s) is strictly prohibited. By accepting this information, recipients confirm that they understand and will comply with all applicable ITAR and EAR requirements.
______________________________________________________________________

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