Set Custom Checkbox as True on Load

Try inserting this after the page load event

checkboxname.checked = true



________________________________
From: vacortes21 <vcortes@...>
To: vantage@yahoogroups.com
Sent: Friday, August 12, 2011 2:28 PM
Subject: [Vantage] Re: Set Custom Checkbox as True on Load

I need to do something similar with a checkbox from the Part table (Track Lots Checkbox) can anyone helpe me? I have tried the methods posted in this thread but cant quite get it working.

Thanks in advance,

Victor

--- In vantage@yahoogroups.com, "nustepvantage" <dpfiester@...> wrote:
>
> I think you could also write a post process BPM using the NewOrderHed method to have the checkbox automatically checked when a new order is created.
>
> David Pfiester
> Systems Accountant
> NuStep, Inc.
> Ann Arbor, MI
> 734-769-3939 x150
>
>
> --- In vantage@yahoogroups.com, "pbriscoe10" <pbriscoe10@> wrote:
> >
> > Hello,
> >
> > I have created a custom checkbox on the Order Entry screen. I would like this checkbox to automatically be checked ("true") when the form is loaded.
> >
> > I have gone to the Form Event Wizard and added a Load event. It generates the code below. However, I'm not sure what code needs to be added to get the checkbox checked. The checkbox is OrderHed.Checkbox03
> >
> > If anyone could fill in the blank, it would be greatly appreciated. Thank you.
> >
> >
> > Private Sub SalesOrderForm_Load(ByVal sender As object, ByVal args As EventArgs) Handles SalesOrderForm.Load
> > Â Â Â '//
> > Â Â Â '// Add Event Handler Code
> > Â Â Â '//
> > End Sub
> >
>




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

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

I have created a custom checkbox on the Order Entry screen. I would like this checkbox to automatically be checked ("true") when the form is loaded.

I have gone to the Form Event Wizard and added a Load event. It generates the code below. However, I'm not sure what code needs to be added to get the checkbox checked. The checkbox is OrderHed.Checkbox03

If anyone could fill in the blank, it would be greatly appreciated. Thank you.


Private Sub SalesOrderForm_Load(ByVal sender As object, ByVal args As EventArgs) Handles SalesOrderForm.Load
'//
'// Add Event Handler Code
'//
End Sub
You should be able to do this in a BPM.

However, if you want to do it in customization then you don't want to do
it in the load event as there isn't a dataset available.

You want to do it in an Epi_Notification AddNew event.

Go into wizards, then Form Event Wizard, select event type
"EpiViewNotification" then choose the view that you want to trigger off
of.

It will display a template that is set up to fire on "AddRow". You
should be able to put your code in the "If-Then" block just below it.

Careful, though. I've noticed that this isn't always consistent which is
why I would tend to go with a BPM for this.



From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
Of pbriscoe10
Sent: Friday, August 13, 2010 11:50 AM
To: vantage@yahoogroups.com
Subject: [Vantage] Set Custom Checkbox as True on Load





Hello,

I have created a custom checkbox on the Order Entry screen. I would like
this checkbox to automatically be checked ("true") when the form is
loaded.

I have gone to the Form Event Wizard and added a Load event. It
generates the code below. However, I'm not sure what code needs to be
added to get the checkbox checked. The checkbox is OrderHed.Checkbox03

If anyone could fill in the blank, it would be greatly appreciated.
Thank you.

Private Sub SalesOrderForm_Load(ByVal sender As object, ByVal args As
EventArgs) Handles SalesOrderForm.Load
'//
'// Add Event Handler Code
'//
End Sub





[Non-text portions of this message have been removed]
This is the code in C# u can translate to VB using
http://www.developerfusion.com/tools/convert/csharp-to-vb/



private static void edvOrderHed_EpiViewNotification(EpiDataView view,
EpiNotifyArgs args)
{
// ** 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)
{
if (args.Row > -1)
{

EpiDataView edv =(EpiDataView)oTrans.EpiDataViews["OrderHed"];

edv.dataViews[edv.Row]["CheckBox03"]=true;

edv.Notify(new EpiNotifyArgs("SalesOrderForm", edv.Row, edv.Column));


}
}
}



Also you don't want it on form-load you probably want it when the Data gets
loaded in the Sales Order


Sincerely
Jose C Gomez

http://www.josecgomez.com


On Fri, Aug 13, 2010 at 11:49 AM, pbriscoe10 <pbriscoe10@...> wrote:

>
>
> Hello,
>
> I have created a custom checkbox on the Order Entry screen. I would like
> this checkbox to automatically be checked ("true") when the form is loaded.
>
> I have gone to the Form Event Wizard and added a Load event. It generates
> the code below. However, I'm not sure what code needs to be added to get the
> checkbox checked. The checkbox is OrderHed.Checkbox03
>
> If anyone could fill in the blank, it would be greatly appreciated. Thank
> you.
>
> Private Sub SalesOrderForm_Load(ByVal sender As object, ByVal args As
> EventArgs) Handles SalesOrderForm.Load
> '//
> '// Add Event Handler Code
> '//
> End Sub
>
>
>


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

1. Log in to Epicor with Developer Mode turned on
2. Tools -> Customization -> Wizards -> FOrm Event Wizard
3. In the form Event Wizard Select Load as Event Type & send it to the Select Bew/Existing Event Handler & clcik on Update All Event Code
4. Now go to the Tab Script Editor -> Under the Code
FOrm_Load
{
}
Â
Write the code as
Â
OrderHed.Checkbox03.Checked=True
Â
5. Save the Customization & Exit,
Â
Now this would be defaultly checked upon the Opening of the Order Entry Screen.
Â
Thanks,
Doma Reddy
Â
Â
Â

--- On Fri, 8/13/10, pbriscoe10 <pbriscoe10@...> wrote:


From: pbriscoe10 <pbriscoe10@...>
Subject: [Vantage] Set Custom Checkbox as True on Load
To: vantage@yahoogroups.com
Date: Friday, August 13, 2010, 10:49 AM


Â



Hello,

I have created a custom checkbox on the Order Entry screen. I would like this checkbox to automatically be checked ("true") when the form is loaded.

I have gone to the Form Event Wizard and added a Load event. It generates the code below. However, I'm not sure what code needs to be added to get the checkbox checked. The checkbox is OrderHed.Checkbox03

If anyone could fill in the blank, it would be greatly appreciated. Thank you.

Private Sub SalesOrderForm_Load(ByVal sender As object, ByVal args As EventArgs) Handles SalesOrderForm.Load
'//
'// Add Event Handler Code
'//
End Sub











[Non-text portions of this message have been removed]
You can’t do this on form load. At that point in time there isn’t any dataset loaded.

You need to do this either on a BPM or through the EpiViewNotification event



From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of Doma Reddy
Sent: Friday, August 13, 2010 5:54 PM
To: vantage@yahoogroups.com
Subject: Re: [Vantage] Set Custom Checkbox as True on Load





Hi to do this

1. Log in to Epicor with Developer Mode turned on
2. Tools -> Customization -> Wizards -> FOrm Event Wizard
3. In the form Event Wizard Select Load as Event Type & send it to the Select Bew/Existing Event Handler & clcik on Update All Event Code
4. Now go to the Tab Script Editor -> Under the Code
FOrm_Load
{
}

Write the code as

OrderHed.Checkbox03.Checked=True

5. Save the Customization & Exit,

Now this would be defaultly checked upon the Opening of the Order Entry Screen.

Thanks,
Doma Reddy




--- On Fri, 8/13/10, pbriscoe10 <pbriscoe10@... <mailto:pbriscoe10%40yahoo.com> > wrote:

From: pbriscoe10 <pbriscoe10@... <mailto:pbriscoe10%40yahoo.com> >
Subject: [Vantage] Set Custom Checkbox as True on Load
To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
Date: Friday, August 13, 2010, 10:49 AM



Hello,

I have created a custom checkbox on the Order Entry screen. I would like this checkbox to automatically be checked ("true") when the form is loaded.

I have gone to the Form Event Wizard and added a Load event. It generates the code below. However, I'm not sure what code needs to be added to get the checkbox checked. The checkbox is OrderHed.Checkbox03

If anyone could fill in the blank, it would be greatly appreciated. Thank you.

Private Sub SalesOrderForm_Load(ByVal sender As object, ByVal args As EventArgs) Handles SalesOrderForm.Load
'//
'// Add Event Handler Code
'//
End Sub

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





[Non-text portions of this message have been removed]
I think you could also write a post process BPM using the NewOrderHed method to have the checkbox automatically checked when a new order is created.

David Pfiester
Systems Accountant
NuStep, Inc.
Ann Arbor, MI
734-769-3939 x150


--- In vantage@yahoogroups.com, "pbriscoe10" <pbriscoe10@...> wrote:
>
> Hello,
>
> I have created a custom checkbox on the Order Entry screen. I would like this checkbox to automatically be checked ("true") when the form is loaded.
>
> I have gone to the Form Event Wizard and added a Load event. It generates the code below. However, I'm not sure what code needs to be added to get the checkbox checked. The checkbox is OrderHed.Checkbox03
>
> If anyone could fill in the blank, it would be greatly appreciated. Thank you.
>
>
> Private Sub SalesOrderForm_Load(ByVal sender As object, ByVal args As EventArgs) Handles SalesOrderForm.Load
> '//
> '// Add Event Handler Code
> '//
> End Sub
>
I need to do something similar with a checkbox from the Part table (Track Lots Checkbox) can anyone helpe me? I have tried the methods posted in this thread but cant quite get it working.

Thanks in advance,

Victor

--- In vantage@yahoogroups.com, "nustepvantage" <dpfiester@...> wrote:
>
> I think you could also write a post process BPM using the NewOrderHed method to have the checkbox automatically checked when a new order is created.
>
> David Pfiester
> Systems Accountant
> NuStep, Inc.
> Ann Arbor, MI
> 734-769-3939 x150
>
>
> --- In vantage@yahoogroups.com, "pbriscoe10" <pbriscoe10@> wrote:
> >
> > Hello,
> >
> > I have created a custom checkbox on the Order Entry screen. I would like this checkbox to automatically be checked ("true") when the form is loaded.
> >
> > I have gone to the Form Event Wizard and added a Load event. It generates the code below. However, I'm not sure what code needs to be added to get the checkbox checked. The checkbox is OrderHed.Checkbox03
> >
> > If anyone could fill in the blank, it would be greatly appreciated. Thank you.
> >
> >
> > Private Sub SalesOrderForm_Load(ByVal sender As object, ByVal args As EventArgs) Handles SalesOrderForm.Load
> > '//
> > '// Add Event Handler Code
> > '//
> > End Sub
> >
>