EpiViewNotification - Works on Customer but Not Part Form

From PartEntry, the 'main' dataview is just called Part.
You can use the Object Explorer (tools> object explorer) to browse the
available datasets and see the tables/fields available within them. It will
even give you the code to access the dataview and the desired field. The
code is in VB but it's simple enough to that you should be able to convert
it to C# pretty easily.

On Mon, Jul 18, 2011 at 4:02 PM, Anton <anton.ochss@...> wrote:

> **
>
>
> Waffqle,
>
> I'll try that. What would be the main table (dataview) when entereing a new
> part? partRev?
>
> Is anyone able to reproduce this behavior? I tried on a couple of other
> forms and they all drop into the "AddRow" code block except the Parts
> screen. Any ideas?
>
> I was able to get around the issue by doing a row rule and checking the
> RowMod column, but it would be nice to see the EpiNotify work the correct
> way.
>
> Anton
>
> --- In vantage@yahoogroups.com, Waffqle <waffqle@...> wrote:
> >
> > More likely than not you're using subscribing to the wrong dataView.
> >
> > On Fri, Jul 15, 2011 at 2:41 PM, Anton <anton.ochss@...> wrote:
> >
> > > **
> > >
> > >
> > > I am trying to use the NotifyType in the Parts form to enable/disable
> > > certain user defined fields (Character01, Character02) fields if the
> > > NofityType == AddRow.
> > >
> > > I did a new customization on BOTH the customer and part forms by doing
> a
> > > EpiViewNotification on Customer and also the Part tables. The only code
> > > added to the code created by the wizard was the inclusion of message
> boxes
> > > as seen below:
> > >
> > > private static void edvPart_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.AddRow)
> > > {
> > > MessageBox.Show("Here");
> > >
> > > if (args.Row > -1)
> > > {
> > > MessageBox.Show("Here");
> > > }
> > > }
> > >
> > > }
> > >
> > > I get both message boxes when doing a "New Customer" from the "new
> Icon" in
> > > customer, but not in parts. Is the parts form wired different or do I
> have
> > > to do the Epinotification on a different table.
> > >
> > > I tried clearing the cache and restarting just in case something was
> being
> > > held onto.
> > >
> > > Any ideas?
> > >
> > > Thanks As Usual
> > >
> > > Anton
> > >
> > >
> > >
> >
> >
> >
> > --
> > *Waffqle Driggers*
>
> > *High End Dev, System Design, Profit Drinking
> > *
> > *:: 904.962.2887*
> > *:: waffqle@...*
> > *:: NO FAXES*
> >
> > *
> >
> > *
> >
> >
> > [Non-text portions of this message have been removed]
> >
>
>
>



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

*

*


[Non-text portions of this message have been removed]
I am trying to use the NotifyType in the Parts form to enable/disable certain user defined fields (Character01, Character02) fields if the NofityType == AddRow.

I did a new customization on BOTH the customer and part forms by doing a EpiViewNotification on Customer and also the Part tables. The only code added to the code created by the wizard was the inclusion of message boxes as seen below:

private static void edvPart_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.AddRow)
{
MessageBox.Show("Here");

if (args.Row > -1)
{
MessageBox.Show("Here");
}
}

}

I get both message boxes when doing a "New Customer" from the "new Icon" in customer, but not in parts. Is the parts form wired different or do I have to do the Epinotification on a different table.

I tried clearing the cache and restarting just in case something was being held onto.

Any ideas?

Thanks As Usual

Anton
More likely than not you're using subscribing to the wrong dataView.

On Fri, Jul 15, 2011 at 2:41 PM, Anton <anton.ochss@...> wrote:

> **
>
>
> I am trying to use the NotifyType in the Parts form to enable/disable
> certain user defined fields (Character01, Character02) fields if the
> NofityType == AddRow.
>
> I did a new customization on BOTH the customer and part forms by doing a
> EpiViewNotification on Customer and also the Part tables. The only code
> added to the code created by the wizard was the inclusion of message boxes
> as seen below:
>
> private static void edvPart_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.AddRow)
> {
> MessageBox.Show("Here");
>
> if (args.Row > -1)
> {
> MessageBox.Show("Here");
> }
> }
>
> }
>
> I get both message boxes when doing a "New Customer" from the "new Icon" in
> customer, but not in parts. Is the parts form wired different or do I have
> to do the Epinotification on a different table.
>
> I tried clearing the cache and restarting just in case something was being
> held onto.
>
> Any ideas?
>
> Thanks As Usual
>
> Anton
>
>
>



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

*

*


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

I'll try that. What would be the main table (dataview) when entereing a new part? partRev?


Is anyone able to reproduce this behavior? I tried on a couple of other forms and they all drop into the "AddRow" code block except the Parts screen. Any ideas?

I was able to get around the issue by doing a row rule and checking the RowMod column, but it would be nice to see the EpiNotify work the correct way.

Anton

--- In vantage@yahoogroups.com, Waffqle <waffqle@...> wrote:
>
> More likely than not you're using subscribing to the wrong dataView.
>
> On Fri, Jul 15, 2011 at 2:41 PM, Anton <anton.ochss@...> wrote:
>
> > **
> >
> >
> > I am trying to use the NotifyType in the Parts form to enable/disable
> > certain user defined fields (Character01, Character02) fields if the
> > NofityType == AddRow.
> >
> > I did a new customization on BOTH the customer and part forms by doing a
> > EpiViewNotification on Customer and also the Part tables. The only code
> > added to the code created by the wizard was the inclusion of message boxes
> > as seen below:
> >
> > private static void edvPart_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.AddRow)
> > {
> > MessageBox.Show("Here");
> >
> > if (args.Row > -1)
> > {
> > MessageBox.Show("Here");
> > }
> > }
> >
> > }
> >
> > I get both message boxes when doing a "New Customer" from the "new Icon" in
> > customer, but not in parts. Is the parts form wired different or do I have
> > to do the Epinotification on a different table.
> >
> > I tried clearing the cache and restarting just in case something was being
> > held onto.
> >
> > Any ideas?
> >
> > Thanks As Usual
> >
> > Anton
> >
> >
> >
>
>
>
> --
> *Waffqle Driggers*
> *High End Dev, System Design, Profit Drinking
> *
> *:: 904.962.2887*
> *:: waffqle@...*
> *:: NO FAXES*
>
> *
>
> *
>
>
> [Non-text portions of this message have been removed]
>