How to clear epicombos on change of order #

Thank you. I tried a few different notify events and I think it will work that way

 

 

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com]
Sent: Thursday, May 19, 2016 6:48 PM
To: Vantage <vantage@yahoogroups.com>
Subject: Re: [Vantage] Re: how to clear epicombos on change of order #

 

 

Run on it on a Notify Event and do the clear there



Jose C Gomez

Software Engineer


T: 904.469.1524 mobile


Quis custodiet ipsos custodes?

 

On Thu, May 19, 2016 at 8:23 PM, jckinneman@... [vantage] <vantage@yahoogroups.com> wrote:

 

Are they EpiBind to a field?  If so they should clear automatically upon a new record.  If they are not bound to a field you will need to clear them programmatically.  Field Change doesn't fire when a record is loaded, only when the field on an existing record changes.

 

Jim Kinneman

Encompass Solutions, Inc

 

 

I added 2 dynamic epicombos to sales order entry but when I create a new order or change to another order the previous values from the data combos stay around. I can clear them with a button but I would like for them to clear when the order number changes or a new order is created. I’ve tried adding an event before and after OrderNum changes but they are not clearing.  I’m not able to show a messagebox either so maybe the AfterFieldChange on OrderNum is not the right place to do it or there’s a better way?

 

 

 

private void OrderHed_AfterFieldChange(object sender, DataColumnChangeEventArgs args)

                {

                                // ** Argument Properties and Uses **

                                // args.Row["FieldName"]

                                // args.Column, args.ProposedValue, args.Row

                                // Add Event Handler Code

                               

                                switch (args.Column.ColumnName)

                                {

                                                case "OrderNum":

                                                MessageBox.Show("Test");

                                                clearcmb();

Are they EpiBind to a field?  If so they should clear automatically upon a new record.  If they are not bound to a field you will need to clear them programmatically.  Field Change doesn't fire when a record is loaded, only when the field on an existing record changes.

Jim Kinneman
Encompass Solutions, Inc
#ygrps-yiv-519522015 #ygrps-yiv-519522015ygrps-yiv-2051744898 filtered #ygrps-yiv-519522015ygrps-yiv-2051744898 {font-family:"Cambria Math";panose-1:2 4 5 3 5 4 6 3 2 4;} #ygrps-yiv-519522015 filtered #ygrps-yiv-519522015ygrps-yiv-2051744898 {font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;} #ygrps-yiv-519522015 #ygrps-yiv-519522015ygrps-yiv-2051744898 #ygrps-yiv-519522015ygrps-yiv-2051744898 p.ygrps-yiv-519522015ygrps-yiv-2051744898MsoNormal, #ygrps-yiv-519522015 #ygrps-yiv-519522015ygrps-yiv-2051744898 li.ygrps-yiv-519522015ygrps-yiv-2051744898MsoNormal, #ygrps-yiv-519522015 #ygrps-yiv-519522015ygrps-yiv-2051744898 div.ygrps-yiv-519522015ygrps-yiv-2051744898MsoNormal {margin:0in;margin-bottom:.0001pt;font-size:11.0pt;font-family:"Calibri", sans-serif;} #ygrps-yiv-519522015 #ygrps-yiv-519522015ygrps-yiv-2051744898 a:link, #ygrps-yiv-519522015 #ygrps-yiv-519522015ygrps-yiv-2051744898 span.ygrps-yiv-519522015ygrps-yiv-2051744898MsoHyperlink {color:#0563C1;text-decoration:underline;} #ygrps-yiv-519522015 #ygrps-yiv-519522015ygrps-yiv-2051744898 a:visited, #ygrps-yiv-519522015 #ygrps-yiv-519522015ygrps-yiv-2051744898 span.ygrps-yiv-519522015ygrps-yiv-2051744898MsoHyperlinkFollowed {color:#954F72;text-decoration:underline;} #ygrps-yiv-519522015 #ygrps-yiv-519522015ygrps-yiv-2051744898 span.ygrps-yiv-519522015ygrps-yiv-2051744898EmailStyle17 {font-family:"Calibri", sans-serif;color:windowtext;} #ygrps-yiv-519522015 #ygrps-yiv-519522015ygrps-yiv-2051744898 .ygrps-yiv-519522015ygrps-yiv-2051744898MsoChpDefault {font-family:"Calibri", sans-serif;} #ygrps-yiv-519522015 filtered #ygrps-yiv-519522015ygrps-yiv-2051744898 {margin:1.0in 1.0in 1.0in 1.0in;} #ygrps-yiv-519522015 #ygrps-yiv-519522015ygrps-yiv-2051744898 div.ygrps-yiv-519522015ygrps-yiv-2051744898WordSection1 {}
No they are not bound to any fields. Is there an event type that does trigger on a new record?

On May 19, 2016, at 5:23 PM, jckinneman@...<mailto:jckinneman@...> [vantage] <vantage@yahoogroups.com<mailto:vantage@yahoogroups.com>> wrote:



Are they EpiBind to a field? If so they should clear automatically upon a new record. If they are not bound to a field you will need to clear them programmatically. Field Change doesn't fire when a record is loaded, only when the field on an existing record changes.

Jim Kinneman
Encompass Solutions, Inc
Run on it on a Notify Event and do the clear there


Jose C Gomez
Software Engineer


T: 904.469.1524 mobile

Quis custodiet ipsos custodes?

On Thu, May 19, 2016 at 8:23 PM, jckinneman@... [vantage] <vantage@yahoogroups.com> wrote:

Â
<div>
  
  
  <p>Are they EpiBind to a field?  If so they should clear automatically upon a new record.  If they are not bound to a field you will need to clear them programmatically.  Field Change doesn&#39;t fire when a record is loaded, only when the field on an existing record changes.</p><div><br></div><div>Jim Kinneman</div><div>Encompass Solutions, Inc</div><p></p>

</div>
 


<div style="color:#fff;min-height:0;"></div>