Customization

From Vantage Help:



How do I set up a required field?

Purpose
You can indicate that a field is required, or mandatory, by using the
Rule Wizard
<file://vantage-db/epicor/mfgsys80/Help/enu/Vantage/User_Preferences/Cus\
tomWizardRule.htm> . You do this by first creating a mandatory rule and
then adding a mandatory rule action to it. Here's how:

1.
Within the Customization Tools Dialog, click on the Wizards tab and the
Rule Wizard tab.
2.
Click the New Row Rule button.
3.
For the Rule Description field, enter a description that indicates this
is a mandatory row rule. For example: MyMandatoryRule
4.
Now on the Select View list, choose the table, or dataView, that
contains the field you want to make mandatory. For example: ShipVia
5.
Set up the rule condition so the Select Field is always equal to itself.
To do this, select the same option for the Select Field and Rule Value
lists and then select Equals for the rule condition.




Example: You want the Web Description field to be mandatory on the Ship
Via Maintenance form. Because this is a character field, you choose
these options in the following fields:

-Select Field: Character01
-Rule Condition: Equals
-Rule Value: Character01

This makes the field mandatory, as the rule condition
Character01=Character01 will always evaluate to true.

1.
Click the Right Arrow button to add the rule to the Custom Row Rules
list.
2.
Now click the New Rule Action button.
3.
In the Select Field list, choose the field that you want to be
mandatory. For example: WebDesc
4.
Next, in the Setting Styles list, select the Mandatory option.
5.
Click the Right Arrow button to add this file to the Custom Rule Actions
list.
6.
Click the Update button.


Now when users try to save a record and the selected field is blank, an
Application Error message will appear. In the example below, the user
tried to save a Ship Via record without entering a Web Description.





--- In vantage@yahoogroups.com, "jpfinch1" <sway@...> wrote:
>
> --- In vantage@yahoogroups.com, "Mark Wonsil" mark_wonsil@ wrote:
> >
> > > I am trying to do a customization to make a the "Group" Entry in
> > > Customer Maintenance - Billing Tab a manadory field. I can not
find
> > > where to set it mandatory. Can anyone give a clue?
> >
> > Which version?
> >
> Sorry, I am on 8.00.809c
>




[Non-text portions of this message have been removed]
>
> From Vantage Help:
>
> How do I set up a required field?
>
> Purpose
> You can indicate that a field is required, or mandatory, by using the
> Rule Wizard
> <file://vantage-db/epicor/mfgsys80/Help/enu/Vantage/User_Preferences/Cus\
> tomWizardRule.htm <file://vantage-
> db/epicor/mfgsys80/Help/enu/Vantage/User_Preferences/CustomWizardRule.htm>
> > . You do this by first creating a mandatory rule and
> then adding a mandatory rule action to it. Here's how:
>
> 1.
> Within the Customization Tools Dialog, click on the Wizards tab and the
> Rule Wizard tab.
> 2.
> Click the New Row Rule button.
...

I believe this will only fire when adding new customers (rows), but what if
you wanted to check existing customers? Instead of using the "Rule Wizard",
you could run the "Form Event Wizard" (Next tab over). Here you can check
before the update of any customer whether or not the Group Code is set. In
this case, call the BeforeAdapterMethod for the Customer view like this:


Private Sub oTrans_customerAdapter_BeforeAdapterMethod(ByVal sender As object,
ByVal args As BeforeAdapterMethodArgs) Handles
oTrans_customerAdapter.BeforeAdapterMethod
'// ** Argument Properties and Uses **
'// args.MethodName, args.Cancel
'
'Add Event Handler Code
'

Select Case args.MethodName

Case "Update"

Dim edvCustomerView as EpiDataView =
CType(oTrans.EpiDataViews("Customer"), EpiDataView)
Dim strGroup as String
strGroup =
edvCustomerView.dataView(edvCustomerView.row)("GroupCode").ToString()
args.Cancel = False
if strGroup.Length = 0 Then
call messagebox.show("Group is mandatory on the Billing Tab")
' Cancel the update
args.Cancel = True
End If

Case Else

End Select

End Sub

This will not let them save the record until the Group Code is filled in. But
this only gets called when there is a change on the Customer and the user
tries to save it. If someone pulls up a customer without a Group Code but
doesn't change anything, the method isn't called and the user is unaware of
the missing group.

Now if you REALLY want to be annoying, call the ViewNotification event for the
Customer View like this:

Private Sub edvCustomer_EpiViewNotification(view As EpiDataView, args As
EpiNotifyArgs) Handles edvCustomer.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.Initialize) Then
If (args.Row > -1) Then
Dim strGroup as String
strGroup = view.dataView(view.row)("GroupCode").ToString()
if strGroup.Length = 0 then
Call MessageBox.Show("Group is mandatory on the Billing Tab")
end if
End If
End If

End Sub

This event is called multiple times for new customers as well as existing
customers, so they'll really get the message and they'll probably want to
wring your neck the next time they see you...

Mark W.
I'm finally getting my feet wet with customization. I attended the
class several months ago but it's quite fuzzy at this time.

I would like to add the Ship Order Complete checkbox to the summary tab
on Sales Order Entry. It presently already exist on the header tab.

I have tried adding a user defined field and binding it to
OrderHed.ShipOrderComplete with no success. If I edit some other field
and then switch to the other tab, my changes show. With the checkbox I
have added, I'm finding that if I check it on one tab, the other is not
affected.

What am I doing wrong? Is there an easier way that allows creation of
a second reference to the same instance of field?

Thanks for any help.

John
When creating a BOM (Bill of Materials) there is a "Bubble" text box
that you can enter where that particular part is being used on
Engineering Workbench. I need more characters to put there but it only
supports 10 characters.

In Customization Tool Dialog, which area indicates the character cap?
How I might or able to solve this issue?
You will find this is a schema limitation i.e. not something you can
just change via customisation.



To get around your issue, use a new UD field like character01.

Note, that you will need to look into custom field mapping to ensure it
is copied in and out of the ECO tables

When you check in and out parts.



Regards,

Stephen



From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
Of empedole
Sent: 04 August 2008 16:23
To: vantage@yahoogroups.com
Subject: [Vantage] Customization



When creating a BOM (Bill of Materials) there is a "Bubble" text box
that you can enter where that particular part is being used on
Engineering Workbench. I need more characters to put there but it only
supports 10 characters.

In Customization Tool Dialog, which area indicates the character cap?
How I might or able to solve this issue?



[Non-text portions of this message have been removed]
Acording to the data dictionary, PartMtl.BubbleNum is a 10 max character field.

You can not change these predefined table field properties.

You could possibly use on of the PartMtl.Character## fields (1000 character max) or ShortChar## fields (50 character max) instead and customize the appropriate apps & reports to effectively have it become your 'bubble number'.



--- On Mon, 8/4/08, empedole <empedole@...> wrote:

From: empedole <empedole@...>
Subject: [Vantage] Customization
To: vantage@yahoogroups.com
Date: Monday, August 4, 2008, 11:22 AM






When creating a BOM (Bill of Materials) there is a "Bubble" text box
that you can enter where that particular part is being used on
Engineering Workbench. I need more characters to put there but it only
supports 10 characters.

In Customization Tool Dialog, which area indicates the character cap?
How I might or able to solve this issue?
It was like this before:

Data Source: ECOMtl
Data Field: BubbleNum

Changed it to

Data Source: ECOMtl
Data Field: Character01

But it doesn't work. It is still 10 characters.





----- Original Message ----
From: Robert Brown <robertb_versa@...>
To: vantage@yahoogroups.com
Sent: Monday, August 4, 2008 11:22:00 AM
Subject: Re: [Vantage] Customization


Acording to the data dictionary, PartMtl.BubbleNum is a 10 max character field.

You can not change these predefined table field properties.

You could possibly use on of the PartMtl.Character# # fields (1000 character max) or ShortChar## fields (50 character max) instead and customize the appropriate apps & reports to effectively have it become your 'bubble number'.

--- On Mon, 8/4/08, empedole <empedole@yahoo. com> wrote:

From: empedole <empedole@yahoo. com>
Subject: [Vantage] Customization
To: vantage@yahoogroups .com
Date: Monday, August 4, 2008, 11:22 AM

When creating a BOM (Bill of Materials) there is a "Bubble" text box
that you can enter where that particular part is being used on
Engineering Workbench. I need more characters to put there but it only
supports 10 characters.

In Customization Tool Dialog, which area indicates the character cap?
How I might or able to solve this issue?






[Non-text portions of this message have been removed]
Create a new control don't just change the binding on the existing
bubble number.



Regards,

Stephen

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
Of erdal oylupnar
Sent: 04 August 2008 18:06
To: vantage@yahoogroups.com
Subject: Re: [Vantage] Customization



It was like this before:

Data Source: ECOMtl
Data Field: BubbleNum

Changed it to

Data Source: ECOMtl
Data Field: Character01

But it doesn't work. It is still 10 characters.

----- Original Message ----
From: Robert Brown <robertb_versa@...
<mailto:robertb_versa%40yahoo.com> >
To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
Sent: Monday, August 4, 2008 11:22:00 AM
Subject: Re: [Vantage] Customization

Acording to the data dictionary, PartMtl.BubbleNum is a 10 max character
field.

You can not change these predefined table field properties.

You could possibly use on of the PartMtl.Character# # fields (1000
character max) or ShortChar## fields (50 character max) instead and
customize the appropriate apps & reports to effectively have it become
your 'bubble number'.

--- On Mon, 8/4/08, empedole <empedole@yahoo. com> wrote:

From: empedole <empedole@yahoo. com>
Subject: [Vantage] Customization
To: vantage@yahoogroups .com
Date: Monday, August 4, 2008, 11:22 AM

When creating a BOM (Bill of Materials) there is a "Bubble" text box
that you can enter where that particular part is being used on
Engineering Workbench. I need more characters to put there but it only
supports 10 characters.

In Customization Tool Dialog, which area indicates the character cap?
How I might or able to solve this issue?

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





[Non-text portions of this message have been removed]
I created new control.

Data Source: ECOMtl
Data Field: Character01

It seems ok. It keeps the data for parts reference on BOM. One more
thing: How can I save that customization so that others could
see/make changes when applicable with their user information?



--- In vantage@yahoogroups.com, "Stephen Edginton" <stephene@...> wrote:
>
> Create a new control don't just change the binding on the existing
> bubble number.
>
>
>
> Regards,
>
> Stephen
>
> From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
> Of erdal oylupnar
> Sent: 04 August 2008 18:06
> To: vantage@yahoogroups.com
> Subject: Re: [Vantage] Customization
>
>
>
> It was like this before:
>
> Data Source: ECOMtl
> Data Field: BubbleNum
>
> Changed it to
>
> Data Source: ECOMtl
> Data Field: Character01
>
> But it doesn't work. It is still 10 characters.
>
> ----- Original Message ----
> From: Robert Brown <robertb_versa@...
> <mailto:robertb_versa%40yahoo.com> >
> To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
> Sent: Monday, August 4, 2008 11:22:00 AM
> Subject: Re: [Vantage] Customization
>
> Acording to the data dictionary, PartMtl.BubbleNum is a 10 max character
> field.
>
> You can not change these predefined table field properties.
>
> You could possibly use on of the PartMtl.Character# # fields (1000
> character max) or ShortChar## fields (50 character max) instead and
> customize the appropriate apps & reports to effectively have it become
> your 'bubble number'.
>
> --- On Mon, 8/4/08, empedole <empedole@yahoo. com> wrote:
>
> From: empedole <empedole@yahoo. com>
> Subject: [Vantage] Customization
> To: vantage@yahoogroups .com
> Date: Monday, August 4, 2008, 11:22 AM
>
> When creating a BOM (Bill of Materials) there is a "Bubble" text box
> that you can enter where that particular part is being used on
> Engineering Workbench. I need more characters to put there but it only
> supports 10 characters.
>
> In Customization Tool Dialog, which area indicates the character cap?
> How I might or able to solve this issue?
>
> [Non-text portions of this message have been removed]
>
>
>
>
>
> [Non-text portions of this message have been removed]
>
Well I was able to save it. To make Customizations available for
everyone go System Management>Utilities>Menu Maintenance. Collapse the
application window and select the application that you want you
Customization make it enabled for everyone. In my case it is
Engineering Workbench.

Quote from Help:

"What to Do
From the main interface, navigate to this program. To find it, open
the System folder and the Utilities folder. Double-click on the Menu
Maintenance icon.


1-Using the Tree View, navigate to the program that has a
customization you want to use. Do this by clicking the + icon on the
menu nodes.

2-Highlight the program that contains the customization.

3-Select the customization you want from the Customization list.

4-To run this customization like a regular program, select the Menu
radio button. To run this customization as a secondary application
within the program, select the Sub-Menu check box.

Click OK."

Exit Vantage and log in again.

Thanks for the previous replies. They helped a lot.

Regards




--- In vantage@yahoogroups.com, "empedole" <empedole@...> wrote:
>
> I created new control.
>
> Data Source: ECOMtl
> Data Field: Character01
>
> It seems ok. It keeps the data for parts reference on BOM. One more
> thing: How can I save that customization so that others could
> see/make changes when applicable with their user information?
>
>
>
> --- In vantage@yahoogroups.com, "Stephen Edginton" <stephene@> wrote:
> >
> > Create a new control don't just change the binding on the existing
> > bubble number.
> >
> >
> >
> > Regards,
> >
> > Stephen
> >
> > From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On
Behalf
> > Of erdal oylupnar
> > Sent: 04 August 2008 18:06
> > To: vantage@yahoogroups.com
> > Subject: Re: [Vantage] Customization
> >
> >
> >
> > It was like this before:
> >
> > Data Source: ECOMtl
> > Data Field: BubbleNum
> >
> > Changed it to
> >
> > Data Source: ECOMtl
> > Data Field: Character01
> >
> > But it doesn't work. It is still 10 characters.
> >
> > ----- Original Message ----
> > From: Robert Brown <robertb_versa@
> > <mailto:robertb_versa%40yahoo.com> >
> > To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
> > Sent: Monday, August 4, 2008 11:22:00 AM
> > Subject: Re: [Vantage] Customization
> >
> > Acording to the data dictionary, PartMtl.BubbleNum is a 10 max
character
> > field.
> >
> > You can not change these predefined table field properties.
> >
> > You could possibly use on of the PartMtl.Character# # fields (1000
> > character max) or ShortChar## fields (50 character max) instead and
> > customize the appropriate apps & reports to effectively have it become
> > your 'bubble number'.
> >
> > --- On Mon, 8/4/08, empedole <empedole@yahoo. com> wrote:
> >
> > From: empedole <empedole@yahoo. com>
> > Subject: [Vantage] Customization
> > To: vantage@yahoogroups .com
> > Date: Monday, August 4, 2008, 11:22 AM
> >
> > When creating a BOM (Bill of Materials) there is a "Bubble" text box
> > that you can enter where that particular part is being used on
> > Engineering Workbench. I need more characters to put there but it only
> > supports 10 characters.
> >
> > In Customization Tool Dialog, which area indicates the character cap?
> > How I might or able to solve this issue?
> >
> > [Non-text portions of this message have been removed]
> >
> >
> >
> >
> >
> > [Non-text portions of this message have been removed]
> >
>
In my Sales order entry, I will need to add a calculated field. For
example, when in the field unit of mesure the data is : pk, I will need
just a calculated field for convert the pk by feet. But, I don't know
why to process ?

thanks !
You will need to add a numeric-editor control from the toolbox and
attach Visual Basic code to it to perform the calculation.

Is the relationship between pk and feet always going to be a constant?

And do you need to permanently store the number of feet in the
Orderdtl table for use later on hardcopy documents? Or do you simply
need to view it on the sales order entry maintenance screen?

And if the unit of measure is not equal to pk, then you do not want
any calculation performed; is that correct?

Lynn


--- In vantage@yahoogroups.com, "vantageuser13" <vantageuser13@...>
wrote:
>
> In my Sales order entry, I will need to add a calculated field.
For
> example, when in the field unit of mesure the data is : pk, I will
need
> just a calculated field for convert the pk by feet. But, I don't
know
> why to process ?
>
> thanks !
>
Why even do this?

Just as there is a supplier (purchase) and inventory receipt/stocking/issue U/M conversion capability - the same is true on the sell side.

What am I missing?

--- On Mon, 12/15/08, Lynn <lynn.khalife@...> wrote:
From: Lynn <lynn.khalife@...>
Subject: [Vantage] Re: Customization
To: vantage@yahoogroups.com
Date: Monday, December 15, 2008, 2:42 PM











You will need to add a numeric-editor control from the toolbox and

attach Visual Basic code to it to perform the calculation.



Is the relationship between pk and feet always going to be a constant?



And do you need to permanently store the number of feet in the

Orderdtl table for use later on hardcopy documents? Or do you simply

need to view it on the sales order entry maintenance screen?



And if the unit of measure is not equal to pk, then you do not want

any calculation performed; is that correct?



Lynn



--- In vantage@yahoogroups .com, "vantageuser13" <vantageuser13@ ...>

wrote:

>

> In my Sales order entry, I will need to add a calculated field.

For

> example, when in the field unit of mesure the data is : pk, I will

need

> just a calculated field for convert the pk by feet. But, I don't

know

> why to process ?

>

> thanks !

>
I create a customization. I add a button, and When I click on this, I
will need to appear a BAQ search. But I don't know how to call ?

Thanks


Vantage 8.03.305
I will need to add a customization for the module Order Entry. I will need to put the partnum in red, not on the detail but on the list. If possible ?

Thanks !

Vantage 8.03.305
We're looking to set the "Sort By" and "Report Style" programatically after a form loads. I can't find the right event to call my code in. I created a button and added the following code to the Script Editor:

Private Sub btnEpiCustom1_Click(ByVal Sender As Object, ByVal Args As System.EventArgs) Handles btnEpiCustom1.Click
dim dd as Epicor.Mfg.UI.FrameWork.EpiUltraCombo
dd = CType(csm.GetNativeControlReference("135850df-39e3-4022-93a3-edeff913a646"), Epicor.Mfg.UI.FrameWork.EpiUltraCombo)
dd.ActiveRow = dd.Rows(dd.Rows.Count-1)
end sub

When I click on the button, everything runs fine and the ActiveRow changes how I want it. The problem is I don't want this to happen when I hit the button, I want it to happen after the form loads. I tried putting my code in the following sub routine:

Private Sub StockStatusReportForm_Load(ByVal sender As object, ByVal args As EventArgs) Handles StockStatusReportForm.Load
dim dd as Epicor.Mfg.UI.FrameWork.EpiUltraCombo
dd = CType(csm.GetNativeControlReference("135850df-39e3-4022-93a3-edeff913a646"), Epicor.Mfg.UI.FrameWork.EpiUltraCombo)
dd.ActiveRow = dd.Rows(dd.Rows.Count-1)
end sub

The ActiveRow change is not reflected in the UI. What event should I be placing my code in? I'm familiar with .NET programming, mainly in c#, but I'm relatively knew to the customization stuff.

Any help would be greatly appreciated.

-Scott
Can't you set what you want to be the default and then save the default settings from the action menu?

--- In vantage@yahoogroups.com, "scottkreel" <skreel@...> wrote:
>
> We're looking to set the "Sort By" and "Report Style" programatically after a form loads. I can't find the right event to call my code in. I created a button and added the following code to the Script Editor:
>
> Private Sub btnEpiCustom1_Click(ByVal Sender As Object, ByVal Args As System.EventArgs) Handles btnEpiCustom1.Click
> dim dd as Epicor.Mfg.UI.FrameWork.EpiUltraCombo
> dd = CType(csm.GetNativeControlReference("135850df-39e3-4022-93a3-edeff913a646"), Epicor.Mfg.UI.FrameWork.EpiUltraCombo)
> dd.ActiveRow = dd.Rows(dd.Rows.Count-1)
> end sub
>
> When I click on the button, everything runs fine and the ActiveRow changes how I want it. The problem is I don't want this to happen when I hit the button, I want it to happen after the form loads. I tried putting my code in the following sub routine:
>
> Private Sub StockStatusReportForm_Load(ByVal sender As object, ByVal args As EventArgs) Handles StockStatusReportForm.Load
> dim dd as Epicor.Mfg.UI.FrameWork.EpiUltraCombo
> dd = CType(csm.GetNativeControlReference("135850df-39e3-4022-93a3-edeff913a646"), Epicor.Mfg.UI.FrameWork.EpiUltraCombo)
> dd.ActiveRow = dd.Rows(dd.Rows.Count-1)
> end sub
>
> The ActiveRow change is not reflected in the UI. What event should I be placing my code in? I'm familiar with .NET programming, mainly in c#, but I'm relatively knew to the customization stuff.
>
> Any help would be greatly appreciated.
>
> -Scott
>
We created another menu item. So we have two menu items for the same report. We want one to have certain defaults and we want the other to have different defaults. The problem is, when I set the defaults in one, it changes the defaults in the other. If there is a way where I can have separate defaults for each menu item, that would work too.

--- In vantage@yahoogroups.com, "bw2868bond" <bwalker@...> wrote:
>
> Can't you set what you want to be the default and then save the default settings from the action menu?
>
> --- In vantage@yahoogroups.com, "scottkreel" <skreel@> wrote:
> >
> > We're looking to set the "Sort By" and "Report Style" programatically after a form loads. I can't find the right event to call my code in. I created a button and added the following code to the Script Editor:
> >
> > Private Sub btnEpiCustom1_Click(ByVal Sender As Object, ByVal Args As System.EventArgs) Handles btnEpiCustom1.Click
> > dim dd as Epicor.Mfg.UI.FrameWork.EpiUltraCombo
> > dd = CType(csm.GetNativeControlReference("135850df-39e3-4022-93a3-edeff913a646"), Epicor.Mfg.UI.FrameWork.EpiUltraCombo)
> > dd.ActiveRow = dd.Rows(dd.Rows.Count-1)
> > end sub
> >
> > When I click on the button, everything runs fine and the ActiveRow changes how I want it. The problem is I don't want this to happen when I hit the button, I want it to happen after the form loads. I tried putting my code in the following sub routine:
> >
> > Private Sub StockStatusReportForm_Load(ByVal sender As object, ByVal args As EventArgs) Handles StockStatusReportForm.Load
> > dim dd as Epicor.Mfg.UI.FrameWork.EpiUltraCombo
> > dd = CType(csm.GetNativeControlReference("135850df-39e3-4022-93a3-edeff913a646"), Epicor.Mfg.UI.FrameWork.EpiUltraCombo)
> > dd.ActiveRow = dd.Rows(dd.Rows.Count-1)
> > end sub
> >
> > The ActiveRow change is not reflected in the UI. What event should I be placing my code in? I'm familiar with .NET programming, mainly in c#, but I'm relatively knew to the customization stuff.
> >
> > Any help would be greatly appreciated.
> >
> > -Scott
> >
>
Try this

'//**************************************************
'// Custom VB.NET code for StockStatusReportForm
'// Created: 3/26/2009 8:06:05 PM
'//**************************************************
Imports System
Imports System.Data
Imports System.Diagnostics
Imports System.Windows.Forms
Imports System.ComponentModel
Imports Microsoft.VisualBasic
Imports Epicor.Mfg.UI
Imports Epicor.Mfg.UI.FrameWork
Imports Epicor.Mfg.UI.ExtendedProps
Imports Epicor.Mfg.UI.FormFunctions
Imports Epicor.Mfg.UI.Customization
Imports Epicor.Mfg.UI.Adapters
Imports Epicor.Mfg.UI.Searches


Module Script


'// ** Wizard Insert Location - Do Not Remove 'Begin/End Wizard Added Module Level Variables' Comments! **
'// Begin Wizard Added Module Level Variables **

'// End Wizard Added Module Level Variables **


'// Add Custom Module Level Variables Here **
Private WithEvents cboSortBy As EpiUltraCombo


Sub InitializeCustomCode()


'// ** Wizard Insert Location - Do not delete 'Begin/End Wizard Added Variable Intialization' lines **
'// Begin Wizard Added Variable Intialization

'// End Wizard Added Variable Intialization
'// Begin Custom Method Calls

'// End Custom Method Calls
End Sub



Sub DestroyCustomCode()


'// ** Wizard Insert Location - Do not delete 'Begin/End Wizard Added Object Disposal' lines **
'// Begin Wizard Added Object Disposal

'// End Wizard Added Object Disposal
'// Begin Custom Code Disposal

'// End Custom Code Disposal
End Sub


Private Sub StockStatusReportForm_Load(ByVal sender As object, ByVal args As EventArgs) Handles StockStatusReportForm.Load
'//
'// Add Event Handler Code
'//
cboSortBy = CType(csm.GetNativeControlReference("066cedf0-4e3b-4dfa-873f-747cd2e2e3ed"), Epicor.Mfg.UI.FrameWork.EpiUltraCombo)
End Sub


Private Sub cboSortBy_Paint(ByVal Sender As Object, ByVal Args As System.Windows.Forms.PaintEventArgs) Handles cboSortBy.Paint
'// ** Place Event Handling Code Here **
cboSortBy.ActiveRow = cboSortBy.Rows(cboSortBy.Rows.Count-1)
End Sub


End Module


--- In vantage@yahoogroups.com, "scottkreel" <skreel@...> wrote:
>
> We created another menu item. So we have two menu items for the same report. We want one to have certain defaults and we want the other to have different defaults. The problem is, when I set the defaults in one, it changes the defaults in the other. If there is a way where I can have separate defaults for each menu item, that would work too.
Hooking into the paint event seems to partially work. It allowed me to change the sortby and style drop down boxes, but it's not quite working yet. Although the drop down boxes change, it would appear that the values of these drop down boxes that are passed to the crystal report do not change. The style and sortby of the report that is generated is that of the defaults, not of the changes made in the paint event.

I tried using the SelectedRow property of the EpiUltraCombo control instead of the ActiveRow, but that didn't seem to work either.

I'm more of a c#/asp.net person, so 'm not as up to date on how binding and everything works in a windows form app.

Any suggestions would be greatly appreciated. I'll post the outcomes whether successful or not.


--- In vantage@yahoogroups.com, "bw2868bond" <bwalker@...> wrote:
>
> Try this
>
> '//**************************************************
> '// Custom VB.NET code for StockStatusReportForm
> '// Created: 3/26/2009 8:06:05 PM
> '//**************************************************
> Imports System
> Imports System.Data
> Imports System.Diagnostics
> Imports System.Windows.Forms
> Imports System.ComponentModel
> Imports Microsoft.VisualBasic
> Imports Epicor.Mfg.UI
> Imports Epicor.Mfg.UI.FrameWork
> Imports Epicor.Mfg.UI.ExtendedProps
> Imports Epicor.Mfg.UI.FormFunctions
> Imports Epicor.Mfg.UI.Customization
> Imports Epicor.Mfg.UI.Adapters
> Imports Epicor.Mfg.UI.Searches
>
>
> Module Script
>
>
> '// ** Wizard Insert Location - Do Not Remove 'Begin/End Wizard Added Module Level Variables' Comments! **
> '// Begin Wizard Added Module Level Variables **
>
> '// End Wizard Added Module Level Variables **
>
>
> '// Add Custom Module Level Variables Here **
> Private WithEvents cboSortBy As EpiUltraCombo
>
>
> Sub InitializeCustomCode()
>
>
> '// ** Wizard Insert Location - Do not delete 'Begin/End Wizard Added Variable Intialization' lines **
> '// Begin Wizard Added Variable Intialization
>
> '// End Wizard Added Variable Intialization
> '// Begin Custom Method Calls
>
> '// End Custom Method Calls
> End Sub
>
>
>
> Sub DestroyCustomCode()
>
>
> '// ** Wizard Insert Location - Do not delete 'Begin/End Wizard Added Object Disposal' lines **
> '// Begin Wizard Added Object Disposal
>
> '// End Wizard Added Object Disposal
> '// Begin Custom Code Disposal
>
> '// End Custom Code Disposal
> End Sub
>
>
> Private Sub StockStatusReportForm_Load(ByVal sender As object, ByVal args As EventArgs) Handles StockStatusReportForm.Load
> '//
> '// Add Event Handler Code
> '//
> cboSortBy = CType(csm.GetNativeControlReference("066cedf0-4e3b-4dfa-873f-747cd2e2e3ed"), Epicor.Mfg.UI.FrameWork.EpiUltraCombo)
> End Sub
>
>
> Private Sub cboSortBy_Paint(ByVal Sender As Object, ByVal Args As System.Windows.Forms.PaintEventArgs) Handles cboSortBy.Paint
> '// ** Place Event Handling Code Here **
> cboSortBy.ActiveRow = cboSortBy.Rows(cboSortBy.Rows.Count-1)
> End Sub
>
>
> End Module
>
>
> --- In vantage@yahoogroups.com, "scottkreel" <skreel@> wrote:
> >
> > We created another menu item. So we have two menu items for the same report. We want one to have certain defaults and we want the other to have different defaults. The problem is, when I set the defaults in one, it changes the defaults in the other. If there is a way where I can have separate defaults for each menu item, that would work too.
>