EpiCombo select value form customization problem

That did the trick! I had to use the TerritoryTerritoryDesc along with the TerritoryID to get the territory combo to work. I also had to use the SalesRepName along with the SalesRepCode to get salesperson combo to work. Funny how the epicor build in combos work differently than the custom ShortChar04 I added.

Thanks Brian and Jose for all your help!

Tim

--- In vantage@yahoogroups.com, "Brian Roberts" <broberts@...> wrote:
>
> A suggestion... when I did a BPM on Customer.GetNewShipTo, I had to set
> both ttShipTo.TerritoryID (to the real data) and
> ttShipTo.TerritoryTerritoryDesc (for display only). Is it possible the
> Customer dataset has an additional field used for territory display that
> you also need to set? Unusual, but the CRM related bits in Epicor have
> a different flavour to them.
>
>
>
> Brian.
>
>
>
> From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
> Of Tim Vonderhaar
> Sent: Tuesday, August 07, 2012 4:45 PM
> To: vantage@yahoogroups.com
> Subject: [Vantage] Re: EpiCombo select value form customization problem
>
>
>
>
>
> Thanks for all the help Jose, but I guess it's time to call Epicor. I
> believe I'm doing everything as you indicate. The code is very straight
> forward.
>
> Strange that the two combos I'm having trouble with,
> Customer.TerritoryID and Customer.SalesRepCode, are standard combos
> where the only one that works is the one I added myself
> (Customer.ShortChar04).
>
> --- In vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> , Jose
> Gomez <jose@> wrote:
> >
> > OK...
> >
> > Your combo Box should be bound to something like Customer.Character01
> > (correct?)
> >
> > If that's the case then set
> >
> > edvCustomer.dataView[edvCustomer.Row]["Character01"]="YOUR NEW VALUE"
> > edvCustomer.Notify(new
> > EpiNotifyArgs(oTrans,edvCustomer.Row,edvCustomer.Column));
> >
> > This will refresh your UJI,.
> >
> > *Jose C Gomez*
> > *Software Engineer*
> > *
> > *
> > *
> > *T: 904.469.1524 mobile
> > E: jose@
> > http://www.josecgomez.com
> > <http://www.linkedin.com/in/josecgomez> <
> http://www.facebook.com/josegomez>
> > <http://www.google.com/profiles/jose.gomez> <
> http://www.twitter.com/joc85>
> > <http://www.josecgomez.com/professional-resume/>
> > <http://www.josecgomez.com/feed/>
> > <http://www.usdoingstuff.com>
> >
> > *Quis custodiet ipsos custodes?*
> >
> >
> >
> > On Tue, Aug 7, 2012 at 4:22 PM, Tim Vonderhaar <tvonderhaar@
> > > wrote:
> >
> > > **
> > >
> > >
> > > I was off base, the Notify does not work for me. I have to perform
> an
> > > Update before it will display the data correctly which is not what I
> want.
> > > I just want to change the data, not save it at this point.
> > >
> > >
> > > --- In vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> ,
> Jose Gomez <jose@> wrote:
> > > >
> > > > Your combobox is already bound to the data view in the properties.
> > > >
> > > > *Jose C Gomez*
> > > > *Software Engineer*
> > > > *
> > > > *
> > > > *
> > > > *T: 904.469.1524 mobile
> > > > E: jose@
> > > > http://www.josecgomez.com
> > > > <http://www.linkedin.com/in/josecgomez> <
> > > http://www.facebook.com/josegomez>
> > > > <http://www.google.com/profiles/jose.gomez> <
> > > http://www.twitter.com/joc85>
> > > > <http://www.josecgomez.com/professional-resume/>
> > > > <http://www.josecgomez.com/feed/>
> > > > <http://www.usdoingstuff.com>
> > > >
> > > > *Quis custodiet ipsos custodes?*
> > > >
> > > >
> > > >
> > > > On Tue, Aug 7, 2012 at 11:29 AM, Tim Vonderhaar <
> > > > tvonderhaar@> wrote:
> > > >
> > > > > **
> > >
> > > > >
> > > > >
> > > > > I'm still a bit confused. If I only need to interact with the
> dataview,
> > > > > including following up with a Notify, not sure why / how to bind
> the
> > > combos
> > > > > to the dataviews. In my initial code, the control binding is
> completely
> > > > > separate from the dataview. After a bit of testing using the
> Notify,
> > > this
> > > > > code seems to work with no association to the combo.
> > > > >
> > > > >
> > > > > EpiDataView custview =
> (EpiDataView)oTrans.EpiDataViews["Customer"];
> > > > > custview.dataView[custview.Row]["ShortChar04"] = "CONSAL";
> > > > > custview.dataView[custview.Row]["TerritoryID"] = "90";
> > > > > custview.dataView[custview.Row]["SalesRepCode"] = "STONR";
> > > > > custview.Notify();
> > > > >
> > > > >
> > > > > --- In vantage@yahoogroups.com
> <mailto:vantage%40yahoogroups.com> , Jose Gomez <jose@> wrote:
> > > > > >
> > > > > > Do not set the value on the combo, only set the data view, if
> you
> > > have
> > > > > > those dataviews bound to the combo's then the UI will update
> once you
> > > > > call
> > > > > > a dataview notify
> > > > > >
> > > > > > *Jose C Gomez*
> > > > > > *Software Engineer*
> > > > > > *
> > > > > > *
> > > > > > *
> > > > > > *T: 904.469.1524 mobile
> > > > > > E: jose@
> > > > > > http://www.josecgomez.com
> > > > > > <http://www.linkedin.com/in/josecgomez> <
> > > > > http://www.facebook.com/josegomez>
> > > > > > <http://www.google.com/profiles/jose.gomez> <
> > > > > http://www.twitter.com/joc85>
> > > > > > <http://www.josecgomez.com/professional-resume/>
> > > > > > <http://www.josecgomez.com/feed/>
> > > > > > <http://www.usdoingstuff.com>
> > > > > >
> > > > > > *Quis custodiet ipsos custodes?*
> > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > On Tue, Aug 7, 2012 at 10:38 AM, Tim Vonderhaar <
> > > > > > tvonderhaar@> wrote:
> > > > > >
> > > > > > > **
> > > > >
> > > > > > >
> > > > > > >
> > > > > > > I am writing a simple form customization that is intended to
> > > determine
> > > > > the
> > > > > > > territory, salesperson and a custom epicombo field called
> rep
> > > based on
> > > > > the
> > > > > > > address of the customer. I chose a form customization over a
> BPM
> > > > > because I
> > > > > > > want the fields to update in real time and not only on a
> save. I
> > > have
> > > > > > > events setup such that when either the state, zip or country
> > > changes,
> > > > > it
> > > > > > > calls a method to perform the calculation. I am struggling
> to
> > > > > understand
> > > > > > > how to programmatically select and display the corresponding
> > > values in
> > > > > > > these three epicombos. I know I have to gain control of the
> > > epicombos,
> > > > > set
> > > > > > > their .value attributes and I guess I also have to set the
> > > dataview.
> > > > > Seems
> > > > > > > to work for my custom rep epicombo, but the territory and
> > > salesperson
> > > > > > > combos do not display the change. If I save the form, they
> will
> > > show
> > > > > > > correctly. Here is a subset of the code:
> > > > > > >
> > > > > > > EpiCombo cboTerritory =
> > > > > > >
> > > > >
> > >
> (EpiCombo)csm.GetNativeControlReference("552deb8e-2b5e-4100-8e27-1cb3f6c
> e70db");
> > > > > > > EpiCombo cboRep =
> > > > > > >
> > > > >
> > >
> (EpiCombo)csm.GetNativeControlReference("d6080a59-6042-40cb-895b-952d8f3
> 9686f");
> > > > > > > EpiCombo cboSalesman =
> > > > > > >
> > > > >
> > >
> (EpiCombo)csm.GetNativeControlReference("2bf05081-01f1-42b9-a5d8-6e79370
> 5d9e3");
> > > > > > > EpiDataView custview =
> > > (EpiDataView)oTrans.EpiDataViews["Customer"];
> > > > > > >
> > > > > > > // Displays properly without save
> > > > > > > cboRep.Value = "CONSAL";
> > > > > > > custview.dataView[custview.Row]["ShortChar04"] = "CONSAL";
> > > > > > >
> > > > > > > // Does not update display until save
> > > > > > > cboTerritory.Value = "90";
> > > > > > > custview.dataView[custview.Row]["TerritoryID"] = "90";
> > > > > > > cboSalesman.Value = "STONR";
> > > > > > > custview.dataView[custview.Row]["SalesRepCode"] = "STONR";
> > > > > > >
> > > > > > > Thanks,
> > > > > > > Tim
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > > > [Non-text portions of this message have been removed]
> > > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > > > [Non-text portions of this message have been removed]
> > > >
> > >
> > >
> > >
> >
> >
> > [Non-text portions of this message have been removed]
> >
>
>
>
>
>
> [Non-text portions of this message have been removed]
>
I am writing a simple form customization that is intended to determine the territory, salesperson and a custom epicombo field called rep based on the address of the customer. I chose a form customization over a BPM because I want the fields to update in real time and not only on a save. I have events setup such that when either the state, zip or country changes, it calls a method to perform the calculation. I am struggling to understand how to programmatically select and display the corresponding values in these three epicombos. I know I have to gain control of the epicombos, set their .value attributes and I guess I also have to set the dataview. Seems to work for my custom rep epicombo, but the territory and salesperson combos do not display the change. If I save the form, they will show correctly. Here is a subset of the code:

EpiCombo cboTerritory = (EpiCombo)csm.GetNativeControlReference("552deb8e-2b5e-4100-8e27-1cb3f6ce70db");
EpiCombo cboRep = (EpiCombo)csm.GetNativeControlReference("d6080a59-6042-40cb-895b-952d8f39686f");
EpiCombo cboSalesman = (EpiCombo)csm.GetNativeControlReference("2bf05081-01f1-42b9-a5d8-6e793705d9e3");
EpiDataView custview = (EpiDataView)oTrans.EpiDataViews["Customer"];

// Displays properly without save
cboRep.Value = "CONSAL";
custview.dataView[custview.Row]["ShortChar04"] = "CONSAL";

// Does not update display until save
cboTerritory.Value = "90";
custview.dataView[custview.Row]["TerritoryID"] = "90";
cboSalesman.Value = "STONR";
custview.dataView[custview.Row]["SalesRepCode"] = "STONR";

Thanks,
Tim
Do not set the value on the combo, only set the data view, if you have
those dataviews bound to the combo's then the UI will update once you call
a dataview notify

*Jose C Gomez*
*Software Engineer*
*
*
*
*T: 904.469.1524 mobile
E: jose@...
http://www.josecgomez.com
<http://www.linkedin.com/in/josecgomez> <http://www.facebook.com/josegomez>
<http://www.google.com/profiles/jose.gomez> <http://www.twitter.com/joc85>
<http://www.josecgomez.com/professional-resume/>
<http://www.josecgomez.com/feed/>
<http://www.usdoingstuff.com>

*Quis custodiet ipsos custodes?*



On Tue, Aug 7, 2012 at 10:38 AM, Tim Vonderhaar <
tvonderhaar@...> wrote:

> **
>
>
> I am writing a simple form customization that is intended to determine the
> territory, salesperson and a custom epicombo field called rep based on the
> address of the customer. I chose a form customization over a BPM because I
> want the fields to update in real time and not only on a save. I have
> events setup such that when either the state, zip or country changes, it
> calls a method to perform the calculation. I am struggling to understand
> how to programmatically select and display the corresponding values in
> these three epicombos. I know I have to gain control of the epicombos, set
> their .value attributes and I guess I also have to set the dataview. Seems
> to work for my custom rep epicombo, but the territory and salesperson
> combos do not display the change. If I save the form, they will show
> correctly. Here is a subset of the code:
>
> EpiCombo cboTerritory =
> (EpiCombo)csm.GetNativeControlReference("552deb8e-2b5e-4100-8e27-1cb3f6ce70db");
> EpiCombo cboRep =
> (EpiCombo)csm.GetNativeControlReference("d6080a59-6042-40cb-895b-952d8f39686f");
> EpiCombo cboSalesman =
> (EpiCombo)csm.GetNativeControlReference("2bf05081-01f1-42b9-a5d8-6e793705d9e3");
> EpiDataView custview = (EpiDataView)oTrans.EpiDataViews["Customer"];
>
> // Displays properly without save
> cboRep.Value = "CONSAL";
> custview.dataView[custview.Row]["ShortChar04"] = "CONSAL";
>
> // Does not update display until save
> cboTerritory.Value = "90";
> custview.dataView[custview.Row]["TerritoryID"] = "90";
> cboSalesman.Value = "STONR";
> custview.dataView[custview.Row]["SalesRepCode"] = "STONR";
>
> Thanks,
> Tim
>
>
>


[Non-text portions of this message have been removed]
I'm still a bit confused. If I only need to interact with the dataview, including following up with a Notify, not sure why / how to bind the combos to the dataviews. In my initial code, the control binding is completely separate from the dataview. After a bit of testing using the Notify, this code seems to work with no association to the combo.

EpiDataView custview = (EpiDataView)oTrans.EpiDataViews["Customer"];
custview.dataView[custview.Row]["ShortChar04"] = "CONSAL";
custview.dataView[custview.Row]["TerritoryID"] = "90";
custview.dataView[custview.Row]["SalesRepCode"] = "STONR";
custview.Notify();

--- In vantage@yahoogroups.com, Jose Gomez <jose@...> wrote:
>
> Do not set the value on the combo, only set the data view, if you have
> those dataviews bound to the combo's then the UI will update once you call
> a dataview notify
>
> *Jose C Gomez*
> *Software Engineer*
> *
> *
> *
> *T: 904.469.1524 mobile
> E: jose@...
> http://www.josecgomez.com
> <http://www.linkedin.com/in/josecgomez> <http://www.facebook.com/josegomez>
> <http://www.google.com/profiles/jose.gomez> <http://www.twitter.com/joc85>
> <http://www.josecgomez.com/professional-resume/>
> <http://www.josecgomez.com/feed/>
> <http://www.usdoingstuff.com>
>
> *Quis custodiet ipsos custodes?*
>
>
>
> On Tue, Aug 7, 2012 at 10:38 AM, Tim Vonderhaar <
> tvonderhaar@...> wrote:
>
> > **
> >
> >
> > I am writing a simple form customization that is intended to determine the
> > territory, salesperson and a custom epicombo field called rep based on the
> > address of the customer. I chose a form customization over a BPM because I
> > want the fields to update in real time and not only on a save. I have
> > events setup such that when either the state, zip or country changes, it
> > calls a method to perform the calculation. I am struggling to understand
> > how to programmatically select and display the corresponding values in
> > these three epicombos. I know I have to gain control of the epicombos, set
> > their .value attributes and I guess I also have to set the dataview. Seems
> > to work for my custom rep epicombo, but the territory and salesperson
> > combos do not display the change. If I save the form, they will show
> > correctly. Here is a subset of the code:
> >
> > EpiCombo cboTerritory =
> > (EpiCombo)csm.GetNativeControlReference("552deb8e-2b5e-4100-8e27-1cb3f6ce70db");
> > EpiCombo cboRep =
> > (EpiCombo)csm.GetNativeControlReference("d6080a59-6042-40cb-895b-952d8f39686f");
> > EpiCombo cboSalesman =
> > (EpiCombo)csm.GetNativeControlReference("2bf05081-01f1-42b9-a5d8-6e793705d9e3");
> > EpiDataView custview = (EpiDataView)oTrans.EpiDataViews["Customer"];
> >
> > // Displays properly without save
> > cboRep.Value = "CONSAL";
> > custview.dataView[custview.Row]["ShortChar04"] = "CONSAL";
> >
> > // Does not update display until save
> > cboTerritory.Value = "90";
> > custview.dataView[custview.Row]["TerritoryID"] = "90";
> > cboSalesman.Value = "STONR";
> > custview.dataView[custview.Row]["SalesRepCode"] = "STONR";
> >
> > Thanks,
> > Tim
> >
> >
> >
>
>
> [Non-text portions of this message have been removed]
>
Your combobox is already bound to the data view in the properties.

*Jose C Gomez*
*Software Engineer*
*
*
*
*T: 904.469.1524 mobile
E: jose@...
http://www.josecgomez.com
<http://www.linkedin.com/in/josecgomez> <http://www.facebook.com/josegomez>
<http://www.google.com/profiles/jose.gomez> <http://www.twitter.com/joc85>
<http://www.josecgomez.com/professional-resume/>
<http://www.josecgomez.com/feed/>
<http://www.usdoingstuff.com>

*Quis custodiet ipsos custodes?*



On Tue, Aug 7, 2012 at 11:29 AM, Tim Vonderhaar <
tvonderhaar@...> wrote:

> **
>
>
> I'm still a bit confused. If I only need to interact with the dataview,
> including following up with a Notify, not sure why / how to bind the combos
> to the dataviews. In my initial code, the control binding is completely
> separate from the dataview. After a bit of testing using the Notify, this
> code seems to work with no association to the combo.
>
>
> EpiDataView custview = (EpiDataView)oTrans.EpiDataViews["Customer"];
> custview.dataView[custview.Row]["ShortChar04"] = "CONSAL";
> custview.dataView[custview.Row]["TerritoryID"] = "90";
> custview.dataView[custview.Row]["SalesRepCode"] = "STONR";
> custview.Notify();
>
>
> --- In vantage@yahoogroups.com, Jose Gomez <jose@...> wrote:
> >
> > Do not set the value on the combo, only set the data view, if you have
> > those dataviews bound to the combo's then the UI will update once you
> call
> > a dataview notify
> >
> > *Jose C Gomez*
> > *Software Engineer*
> > *
> > *
> > *
> > *T: 904.469.1524 mobile
> > E: jose@...
> > http://www.josecgomez.com
> > <http://www.linkedin.com/in/josecgomez> <
> http://www.facebook.com/josegomez>
> > <http://www.google.com/profiles/jose.gomez> <
> http://www.twitter.com/joc85>
> > <http://www.josecgomez.com/professional-resume/>
> > <http://www.josecgomez.com/feed/>
> > <http://www.usdoingstuff.com>
> >
> > *Quis custodiet ipsos custodes?*
>
> >
> >
> >
> > On Tue, Aug 7, 2012 at 10:38 AM, Tim Vonderhaar <
> > tvonderhaar@...> wrote:
> >
> > > **
>
> > >
> > >
> > > I am writing a simple form customization that is intended to determine
> the
> > > territory, salesperson and a custom epicombo field called rep based on
> the
> > > address of the customer. I chose a form customization over a BPM
> because I
> > > want the fields to update in real time and not only on a save. I have
> > > events setup such that when either the state, zip or country changes,
> it
> > > calls a method to perform the calculation. I am struggling to
> understand
> > > how to programmatically select and display the corresponding values in
> > > these three epicombos. I know I have to gain control of the epicombos,
> set
> > > their .value attributes and I guess I also have to set the dataview.
> Seems
> > > to work for my custom rep epicombo, but the territory and salesperson
> > > combos do not display the change. If I save the form, they will show
> > > correctly. Here is a subset of the code:
> > >
> > > EpiCombo cboTerritory =
> > >
> (EpiCombo)csm.GetNativeControlReference("552deb8e-2b5e-4100-8e27-1cb3f6ce70db");
> > > EpiCombo cboRep =
> > >
> (EpiCombo)csm.GetNativeControlReference("d6080a59-6042-40cb-895b-952d8f39686f");
> > > EpiCombo cboSalesman =
> > >
> (EpiCombo)csm.GetNativeControlReference("2bf05081-01f1-42b9-a5d8-6e793705d9e3");
> > > EpiDataView custview = (EpiDataView)oTrans.EpiDataViews["Customer"];
> > >
> > > // Displays properly without save
> > > cboRep.Value = "CONSAL";
> > > custview.dataView[custview.Row]["ShortChar04"] = "CONSAL";
> > >
> > > // Does not update display until save
> > > cboTerritory.Value = "90";
> > > custview.dataView[custview.Row]["TerritoryID"] = "90";
> > > cboSalesman.Value = "STONR";
> > > custview.dataView[custview.Row]["SalesRepCode"] = "STONR";
> > >
> > > Thanks,
> > > Tim
> > >
> > >
> > >
> >
> >
> > [Non-text portions of this message have been removed]
> >
>
>
>


[Non-text portions of this message have been removed]
I was off base, the Notify does not work for me. I have to perform an Update before it will display the data correctly which is not what I want. I just want to change the data, not save it at this point.

--- In vantage@yahoogroups.com, Jose Gomez <jose@...> wrote:
>
> Your combobox is already bound to the data view in the properties.
>
> *Jose C Gomez*
> *Software Engineer*
> *
> *
> *
> *T: 904.469.1524 mobile
> E: jose@...
> http://www.josecgomez.com
> <http://www.linkedin.com/in/josecgomez> <http://www.facebook.com/josegomez>
> <http://www.google.com/profiles/jose.gomez> <http://www.twitter.com/joc85>
> <http://www.josecgomez.com/professional-resume/>
> <http://www.josecgomez.com/feed/>
> <http://www.usdoingstuff.com>
>
> *Quis custodiet ipsos custodes?*
>
>
>
> On Tue, Aug 7, 2012 at 11:29 AM, Tim Vonderhaar <
> tvonderhaar@...> wrote:
>
> > **
> >
> >
> > I'm still a bit confused. If I only need to interact with the dataview,
> > including following up with a Notify, not sure why / how to bind the combos
> > to the dataviews. In my initial code, the control binding is completely
> > separate from the dataview. After a bit of testing using the Notify, this
> > code seems to work with no association to the combo.
> >
> >
> > EpiDataView custview = (EpiDataView)oTrans.EpiDataViews["Customer"];
> > custview.dataView[custview.Row]["ShortChar04"] = "CONSAL";
> > custview.dataView[custview.Row]["TerritoryID"] = "90";
> > custview.dataView[custview.Row]["SalesRepCode"] = "STONR";
> > custview.Notify();
> >
> >
> > --- In vantage@yahoogroups.com, Jose Gomez <jose@> wrote:
> > >
> > > Do not set the value on the combo, only set the data view, if you have
> > > those dataviews bound to the combo's then the UI will update once you
> > call
> > > a dataview notify
> > >
> > > *Jose C Gomez*
> > > *Software Engineer*
> > > *
> > > *
> > > *
> > > *T: 904.469.1524 mobile
> > > E: jose@
> > > http://www.josecgomez.com
> > > <http://www.linkedin.com/in/josecgomez> <
> > http://www.facebook.com/josegomez>
> > > <http://www.google.com/profiles/jose.gomez> <
> > http://www.twitter.com/joc85>
> > > <http://www.josecgomez.com/professional-resume/>
> > > <http://www.josecgomez.com/feed/>
> > > <http://www.usdoingstuff.com>
> > >
> > > *Quis custodiet ipsos custodes?*
> >
> > >
> > >
> > >
> > > On Tue, Aug 7, 2012 at 10:38 AM, Tim Vonderhaar <
> > > tvonderhaar@> wrote:
> > >
> > > > **
> >
> > > >
> > > >
> > > > I am writing a simple form customization that is intended to determine
> > the
> > > > territory, salesperson and a custom epicombo field called rep based on
> > the
> > > > address of the customer. I chose a form customization over a BPM
> > because I
> > > > want the fields to update in real time and not only on a save. I have
> > > > events setup such that when either the state, zip or country changes,
> > it
> > > > calls a method to perform the calculation. I am struggling to
> > understand
> > > > how to programmatically select and display the corresponding values in
> > > > these three epicombos. I know I have to gain control of the epicombos,
> > set
> > > > their .value attributes and I guess I also have to set the dataview.
> > Seems
> > > > to work for my custom rep epicombo, but the territory and salesperson
> > > > combos do not display the change. If I save the form, they will show
> > > > correctly. Here is a subset of the code:
> > > >
> > > > EpiCombo cboTerritory =
> > > >
> > (EpiCombo)csm.GetNativeControlReference("552deb8e-2b5e-4100-8e27-1cb3f6ce70db");
> > > > EpiCombo cboRep =
> > > >
> > (EpiCombo)csm.GetNativeControlReference("d6080a59-6042-40cb-895b-952d8f39686f");
> > > > EpiCombo cboSalesman =
> > > >
> > (EpiCombo)csm.GetNativeControlReference("2bf05081-01f1-42b9-a5d8-6e793705d9e3");
> > > > EpiDataView custview = (EpiDataView)oTrans.EpiDataViews["Customer"];
> > > >
> > > > // Displays properly without save
> > > > cboRep.Value = "CONSAL";
> > > > custview.dataView[custview.Row]["ShortChar04"] = "CONSAL";
> > > >
> > > > // Does not update display until save
> > > > cboTerritory.Value = "90";
> > > > custview.dataView[custview.Row]["TerritoryID"] = "90";
> > > > cboSalesman.Value = "STONR";
> > > > custview.dataView[custview.Row]["SalesRepCode"] = "STONR";
> > > >
> > > > Thanks,
> > > > Tim
> > > >
> > > >
> > > >
> > >
> > >
> > > [Non-text portions of this message have been removed]
> > >
> >
> >
> >
>
>
> [Non-text portions of this message have been removed]
>
OK...

Your combo Box should be bound to something like Customer.Character01
(correct?)

If that's the case then set

edvCustomer.dataView[edvCustomer.Row]["Character01"]="YOUR NEW VALUE"
edvCustomer.Notify(new
EpiNotifyArgs(oTrans,edvCustomer.Row,edvCustomer.Column));

This will refresh your UJI,.

*Jose C Gomez*
*Software Engineer*
*
*
*
*T: 904.469.1524 mobile
E: jose@...
http://www.josecgomez.com
<http://www.linkedin.com/in/josecgomez> <http://www.facebook.com/josegomez>
<http://www.google.com/profiles/jose.gomez> <http://www.twitter.com/joc85>
<http://www.josecgomez.com/professional-resume/>
<http://www.josecgomez.com/feed/>
<http://www.usdoingstuff.com>

*Quis custodiet ipsos custodes?*



On Tue, Aug 7, 2012 at 4:22 PM, Tim Vonderhaar <tvonderhaar@...
> wrote:

> **
>
>
> I was off base, the Notify does not work for me. I have to perform an
> Update before it will display the data correctly which is not what I want.
> I just want to change the data, not save it at this point.
>
>
> --- In vantage@yahoogroups.com, Jose Gomez <jose@...> wrote:
> >
> > Your combobox is already bound to the data view in the properties.
> >
> > *Jose C Gomez*
> > *Software Engineer*
> > *
> > *
> > *
> > *T: 904.469.1524 mobile
> > E: jose@...
> > http://www.josecgomez.com
> > <http://www.linkedin.com/in/josecgomez> <
> http://www.facebook.com/josegomez>
> > <http://www.google.com/profiles/jose.gomez> <
> http://www.twitter.com/joc85>
> > <http://www.josecgomez.com/professional-resume/>
> > <http://www.josecgomez.com/feed/>
> > <http://www.usdoingstuff.com>
> >
> > *Quis custodiet ipsos custodes?*
> >
> >
> >
> > On Tue, Aug 7, 2012 at 11:29 AM, Tim Vonderhaar <
> > tvonderhaar@...> wrote:
> >
> > > **
>
> > >
> > >
> > > I'm still a bit confused. If I only need to interact with the dataview,
> > > including following up with a Notify, not sure why / how to bind the
> combos
> > > to the dataviews. In my initial code, the control binding is completely
> > > separate from the dataview. After a bit of testing using the Notify,
> this
> > > code seems to work with no association to the combo.
> > >
> > >
> > > EpiDataView custview = (EpiDataView)oTrans.EpiDataViews["Customer"];
> > > custview.dataView[custview.Row]["ShortChar04"] = "CONSAL";
> > > custview.dataView[custview.Row]["TerritoryID"] = "90";
> > > custview.dataView[custview.Row]["SalesRepCode"] = "STONR";
> > > custview.Notify();
> > >
> > >
> > > --- In vantage@yahoogroups.com, Jose Gomez <jose@> wrote:
> > > >
> > > > Do not set the value on the combo, only set the data view, if you
> have
> > > > those dataviews bound to the combo's then the UI will update once you
> > > call
> > > > a dataview notify
> > > >
> > > > *Jose C Gomez*
> > > > *Software Engineer*
> > > > *
> > > > *
> > > > *
> > > > *T: 904.469.1524 mobile
> > > > E: jose@
> > > > http://www.josecgomez.com
> > > > <http://www.linkedin.com/in/josecgomez> <
> > > http://www.facebook.com/josegomez>
> > > > <http://www.google.com/profiles/jose.gomez> <
> > > http://www.twitter.com/joc85>
> > > > <http://www.josecgomez.com/professional-resume/>
> > > > <http://www.josecgomez.com/feed/>
> > > > <http://www.usdoingstuff.com>
> > > >
> > > > *Quis custodiet ipsos custodes?*
> > >
> > > >
> > > >
> > > >
> > > > On Tue, Aug 7, 2012 at 10:38 AM, Tim Vonderhaar <
> > > > tvonderhaar@> wrote:
> > > >
> > > > > **
> > >
> > > > >
> > > > >
> > > > > I am writing a simple form customization that is intended to
> determine
> > > the
> > > > > territory, salesperson and a custom epicombo field called rep
> based on
> > > the
> > > > > address of the customer. I chose a form customization over a BPM
> > > because I
> > > > > want the fields to update in real time and not only on a save. I
> have
> > > > > events setup such that when either the state, zip or country
> changes,
> > > it
> > > > > calls a method to perform the calculation. I am struggling to
> > > understand
> > > > > how to programmatically select and display the corresponding
> values in
> > > > > these three epicombos. I know I have to gain control of the
> epicombos,
> > > set
> > > > > their .value attributes and I guess I also have to set the
> dataview.
> > > Seems
> > > > > to work for my custom rep epicombo, but the territory and
> salesperson
> > > > > combos do not display the change. If I save the form, they will
> show
> > > > > correctly. Here is a subset of the code:
> > > > >
> > > > > EpiCombo cboTerritory =
> > > > >
> > >
> (EpiCombo)csm.GetNativeControlReference("552deb8e-2b5e-4100-8e27-1cb3f6ce70db");
> > > > > EpiCombo cboRep =
> > > > >
> > >
> (EpiCombo)csm.GetNativeControlReference("d6080a59-6042-40cb-895b-952d8f39686f");
> > > > > EpiCombo cboSalesman =
> > > > >
> > >
> (EpiCombo)csm.GetNativeControlReference("2bf05081-01f1-42b9-a5d8-6e793705d9e3");
> > > > > EpiDataView custview =
> (EpiDataView)oTrans.EpiDataViews["Customer"];
> > > > >
> > > > > // Displays properly without save
> > > > > cboRep.Value = "CONSAL";
> > > > > custview.dataView[custview.Row]["ShortChar04"] = "CONSAL";
> > > > >
> > > > > // Does not update display until save
> > > > > cboTerritory.Value = "90";
> > > > > custview.dataView[custview.Row]["TerritoryID"] = "90";
> > > > > cboSalesman.Value = "STONR";
> > > > > custview.dataView[custview.Row]["SalesRepCode"] = "STONR";
> > > > >
> > > > > Thanks,
> > > > > Tim
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > > > [Non-text portions of this message have been removed]
> > > >
> > >
> > >
> > >
> >
> >
> > [Non-text portions of this message have been removed]
> >
>
>
>


[Non-text portions of this message have been removed]
Thanks for all the help Jose, but I guess it's time to call Epicor. I believe I'm doing everything as you indicate. The code is very straight forward.

Strange that the two combos I'm having trouble with, Customer.TerritoryID and Customer.SalesRepCode, are standard combos where the only one that works is the one I added myself (Customer.ShortChar04).


--- In vantage@yahoogroups.com, Jose Gomez <jose@...> wrote:
>
> OK...
>
> Your combo Box should be bound to something like Customer.Character01
> (correct?)
>
> If that's the case then set
>
> edvCustomer.dataView[edvCustomer.Row]["Character01"]="YOUR NEW VALUE"
> edvCustomer.Notify(new
> EpiNotifyArgs(oTrans,edvCustomer.Row,edvCustomer.Column));
>
> This will refresh your UJI,.
>
> *Jose C Gomez*
> *Software Engineer*
> *
> *
> *
> *T: 904.469.1524 mobile
> E: jose@...
> http://www.josecgomez.com
> <http://www.linkedin.com/in/josecgomez> <http://www.facebook.com/josegomez>
> <http://www.google.com/profiles/jose.gomez> <http://www.twitter.com/joc85>
> <http://www.josecgomez.com/professional-resume/>
> <http://www.josecgomez.com/feed/>
> <http://www.usdoingstuff.com>
>
> *Quis custodiet ipsos custodes?*
>
>
>
> On Tue, Aug 7, 2012 at 4:22 PM, Tim Vonderhaar <tvonderhaar@...
> > wrote:
>
> > **
> >
> >
> > I was off base, the Notify does not work for me. I have to perform an
> > Update before it will display the data correctly which is not what I want.
> > I just want to change the data, not save it at this point.
> >
> >
> > --- In vantage@yahoogroups.com, Jose Gomez <jose@> wrote:
> > >
> > > Your combobox is already bound to the data view in the properties.
> > >
> > > *Jose C Gomez*
> > > *Software Engineer*
> > > *
> > > *
> > > *
> > > *T: 904.469.1524 mobile
> > > E: jose@
> > > http://www.josecgomez.com
> > > <http://www.linkedin.com/in/josecgomez> <
> > http://www.facebook.com/josegomez>
> > > <http://www.google.com/profiles/jose.gomez> <
> > http://www.twitter.com/joc85>
> > > <http://www.josecgomez.com/professional-resume/>
> > > <http://www.josecgomez.com/feed/>
> > > <http://www.usdoingstuff.com>
> > >
> > > *Quis custodiet ipsos custodes?*
> > >
> > >
> > >
> > > On Tue, Aug 7, 2012 at 11:29 AM, Tim Vonderhaar <
> > > tvonderhaar@> wrote:
> > >
> > > > **
> >
> > > >
> > > >
> > > > I'm still a bit confused. If I only need to interact with the dataview,
> > > > including following up with a Notify, not sure why / how to bind the
> > combos
> > > > to the dataviews. In my initial code, the control binding is completely
> > > > separate from the dataview. After a bit of testing using the Notify,
> > this
> > > > code seems to work with no association to the combo.
> > > >
> > > >
> > > > EpiDataView custview = (EpiDataView)oTrans.EpiDataViews["Customer"];
> > > > custview.dataView[custview.Row]["ShortChar04"] = "CONSAL";
> > > > custview.dataView[custview.Row]["TerritoryID"] = "90";
> > > > custview.dataView[custview.Row]["SalesRepCode"] = "STONR";
> > > > custview.Notify();
> > > >
> > > >
> > > > --- In vantage@yahoogroups.com, Jose Gomez <jose@> wrote:
> > > > >
> > > > > Do not set the value on the combo, only set the data view, if you
> > have
> > > > > those dataviews bound to the combo's then the UI will update once you
> > > > call
> > > > > a dataview notify
> > > > >
> > > > > *Jose C Gomez*
> > > > > *Software Engineer*
> > > > > *
> > > > > *
> > > > > *
> > > > > *T: 904.469.1524 mobile
> > > > > E: jose@
> > > > > http://www.josecgomez.com
> > > > > <http://www.linkedin.com/in/josecgomez> <
> > > > http://www.facebook.com/josegomez>
> > > > > <http://www.google.com/profiles/jose.gomez> <
> > > > http://www.twitter.com/joc85>
> > > > > <http://www.josecgomez.com/professional-resume/>
> > > > > <http://www.josecgomez.com/feed/>
> > > > > <http://www.usdoingstuff.com>
> > > > >
> > > > > *Quis custodiet ipsos custodes?*
> > > >
> > > > >
> > > > >
> > > > >
> > > > > On Tue, Aug 7, 2012 at 10:38 AM, Tim Vonderhaar <
> > > > > tvonderhaar@> wrote:
> > > > >
> > > > > > **
> > > >
> > > > > >
> > > > > >
> > > > > > I am writing a simple form customization that is intended to
> > determine
> > > > the
> > > > > > territory, salesperson and a custom epicombo field called rep
> > based on
> > > > the
> > > > > > address of the customer. I chose a form customization over a BPM
> > > > because I
> > > > > > want the fields to update in real time and not only on a save. I
> > have
> > > > > > events setup such that when either the state, zip or country
> > changes,
> > > > it
> > > > > > calls a method to perform the calculation. I am struggling to
> > > > understand
> > > > > > how to programmatically select and display the corresponding
> > values in
> > > > > > these three epicombos. I know I have to gain control of the
> > epicombos,
> > > > set
> > > > > > their .value attributes and I guess I also have to set the
> > dataview.
> > > > Seems
> > > > > > to work for my custom rep epicombo, but the territory and
> > salesperson
> > > > > > combos do not display the change. If I save the form, they will
> > show
> > > > > > correctly. Here is a subset of the code:
> > > > > >
> > > > > > EpiCombo cboTerritory =
> > > > > >
> > > >
> > (EpiCombo)csm.GetNativeControlReference("552deb8e-2b5e-4100-8e27-1cb3f6ce70db");
> > > > > > EpiCombo cboRep =
> > > > > >
> > > >
> > (EpiCombo)csm.GetNativeControlReference("d6080a59-6042-40cb-895b-952d8f39686f");
> > > > > > EpiCombo cboSalesman =
> > > > > >
> > > >
> > (EpiCombo)csm.GetNativeControlReference("2bf05081-01f1-42b9-a5d8-6e793705d9e3");
> > > > > > EpiDataView custview =
> > (EpiDataView)oTrans.EpiDataViews["Customer"];
> > > > > >
> > > > > > // Displays properly without save
> > > > > > cboRep.Value = "CONSAL";
> > > > > > custview.dataView[custview.Row]["ShortChar04"] = "CONSAL";
> > > > > >
> > > > > > // Does not update display until save
> > > > > > cboTerritory.Value = "90";
> > > > > > custview.dataView[custview.Row]["TerritoryID"] = "90";
> > > > > > cboSalesman.Value = "STONR";
> > > > > > custview.dataView[custview.Row]["SalesRepCode"] = "STONR";
> > > > > >
> > > > > > Thanks,
> > > > > > Tim
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > > > [Non-text portions of this message have been removed]
> > > > >
> > > >
> > > >
> > > >
> > >
> > >
> > > [Non-text portions of this message have been removed]
> > >
> >
> >
> >
>
>
> [Non-text portions of this message have been removed]
>
Are you getting an error?

Soround it with a Try Catch and Display the exception, you may be getting
an error. Can you past all your code? Epicor won't really help you with
this kind of issues.

*Jose C Gomez*
*Software Engineer*
*
*
*
*T: 904.469.1524 mobile
E: jose@...
http://www.josecgomez.com
<http://www.linkedin.com/in/josecgomez> <http://www.facebook.com/josegomez>
<http://www.google.com/profiles/jose.gomez> <http://www.twitter.com/joc85>
<http://www.josecgomez.com/professional-resume/>
<http://www.josecgomez.com/feed/>
<http://www.usdoingstuff.com>

*Quis custodiet ipsos custodes?*



On Tue, Aug 7, 2012 at 4:45 PM, Tim Vonderhaar <tvonderhaar@...
> wrote:

> **
>
>
> Thanks for all the help Jose, but I guess it's time to call Epicor. I
> believe I'm doing everything as you indicate. The code is very straight
> forward.
>
> Strange that the two combos I'm having trouble with, Customer.TerritoryID
> and Customer.SalesRepCode, are standard combos where the only one that
> works is the one I added myself (Customer.ShortChar04).
>
>
> --- In vantage@yahoogroups.com, Jose Gomez <jose@...> wrote:
> >
> > OK...
> >
> > Your combo Box should be bound to something like Customer.Character01
> > (correct?)
> >
> > If that's the case then set
> >
> > edvCustomer.dataView[edvCustomer.Row]["Character01"]="YOUR NEW VALUE"
> > edvCustomer.Notify(new
> > EpiNotifyArgs(oTrans,edvCustomer.Row,edvCustomer.Column));
> >
> > This will refresh your UJI,.
> >
> > *Jose C Gomez*
> > *Software Engineer*
> > *
> > *
> > *
> > *T: 904.469.1524 mobile
> > E: jose@...
> > http://www.josecgomez.com
> > <http://www.linkedin.com/in/josecgomez> <
> http://www.facebook.com/josegomez>
> > <http://www.google.com/profiles/jose.gomez> <
> http://www.twitter.com/joc85>
> > <http://www.josecgomez.com/professional-resume/>
> > <http://www.josecgomez.com/feed/>
> > <http://www.usdoingstuff.com>
> >
> > *Quis custodiet ipsos custodes?*
> >
> >
> >
> > On Tue, Aug 7, 2012 at 4:22 PM, Tim Vonderhaar <tvonderhaar@...
> > > wrote:
> >
> > > **
>
> > >
> > >
> > > I was off base, the Notify does not work for me. I have to perform an
> > > Update before it will display the data correctly which is not what I
> want.
> > > I just want to change the data, not save it at this point.
> > >
> > >
> > > --- In vantage@yahoogroups.com, Jose Gomez <jose@> wrote:
> > > >
> > > > Your combobox is already bound to the data view in the properties.
> > > >
> > > > *Jose C Gomez*
> > > > *Software Engineer*
> > > > *
> > > > *
> > > > *
> > > > *T: 904.469.1524 mobile
> > > > E: jose@
> > > > http://www.josecgomez.com
> > > > <http://www.linkedin.com/in/josecgomez> <
> > > http://www.facebook.com/josegomez>
> > > > <http://www.google.com/profiles/jose.gomez> <
> > > http://www.twitter.com/joc85>
> > > > <http://www.josecgomez.com/professional-resume/>
> > > > <http://www.josecgomez.com/feed/>
> > > > <http://www.usdoingstuff.com>
> > > >
> > > > *Quis custodiet ipsos custodes?*
> > > >
> > > >
> > > >
> > > > On Tue, Aug 7, 2012 at 11:29 AM, Tim Vonderhaar <
> > > > tvonderhaar@> wrote:
> > > >
> > > > > **
> > >
> > > > >
> > > > >
> > > > > I'm still a bit confused. If I only need to interact with the
> dataview,
> > > > > including following up with a Notify, not sure why / how to bind
> the
> > > combos
> > > > > to the dataviews. In my initial code, the control binding is
> completely
> > > > > separate from the dataview. After a bit of testing using the
> Notify,
> > > this
> > > > > code seems to work with no association to the combo.
> > > > >
> > > > >
> > > > > EpiDataView custview =
> (EpiDataView)oTrans.EpiDataViews["Customer"];
> > > > > custview.dataView[custview.Row]["ShortChar04"] = "CONSAL";
> > > > > custview.dataView[custview.Row]["TerritoryID"] = "90";
> > > > > custview.dataView[custview.Row]["SalesRepCode"] = "STONR";
> > > > > custview.Notify();
> > > > >
> > > > >
> > > > > --- In vantage@yahoogroups.com, Jose Gomez <jose@> wrote:
> > > > > >
> > > > > > Do not set the value on the combo, only set the data view, if you
> > > have
> > > > > > those dataviews bound to the combo's then the UI will update
> once you
> > > > > call
> > > > > > a dataview notify
> > > > > >
> > > > > > *Jose C Gomez*
> > > > > > *Software Engineer*
> > > > > > *
> > > > > > *
> > > > > > *
> > > > > > *T: 904.469.1524 mobile
> > > > > > E: jose@
> > > > > > http://www.josecgomez.com
> > > > > > <http://www.linkedin.com/in/josecgomez> <
> > > > > http://www.facebook.com/josegomez>
> > > > > > <http://www.google.com/profiles/jose.gomez> <
> > > > > http://www.twitter.com/joc85>
> > > > > > <http://www.josecgomez.com/professional-resume/>
> > > > > > <http://www.josecgomez.com/feed/>
> > > > > > <http://www.usdoingstuff.com>
> > > > > >
> > > > > > *Quis custodiet ipsos custodes?*
> > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > On Tue, Aug 7, 2012 at 10:38 AM, Tim Vonderhaar <
> > > > > > tvonderhaar@> wrote:
> > > > > >
> > > > > > > **
> > > > >
> > > > > > >
> > > > > > >
> > > > > > > I am writing a simple form customization that is intended to
> > > determine
> > > > > the
> > > > > > > territory, salesperson and a custom epicombo field called rep
> > > based on
> > > > > the
> > > > > > > address of the customer. I chose a form customization over a
> BPM
> > > > > because I
> > > > > > > want the fields to update in real time and not only on a save.
> I
> > > have
> > > > > > > events setup such that when either the state, zip or country
> > > changes,
> > > > > it
> > > > > > > calls a method to perform the calculation. I am struggling to
> > > > > understand
> > > > > > > how to programmatically select and display the corresponding
> > > values in
> > > > > > > these three epicombos. I know I have to gain control of the
> > > epicombos,
> > > > > set
> > > > > > > their .value attributes and I guess I also have to set the
> > > dataview.
> > > > > Seems
> > > > > > > to work for my custom rep epicombo, but the territory and
> > > salesperson
> > > > > > > combos do not display the change. If I save the form, they will
> > > show
> > > > > > > correctly. Here is a subset of the code:
> > > > > > >
> > > > > > > EpiCombo cboTerritory =
> > > > > > >
> > > > >
> > >
> (EpiCombo)csm.GetNativeControlReference("552deb8e-2b5e-4100-8e27-1cb3f6ce70db");
> > > > > > > EpiCombo cboRep =
> > > > > > >
> > > > >
> > >
> (EpiCombo)csm.GetNativeControlReference("d6080a59-6042-40cb-895b-952d8f39686f");
> > > > > > > EpiCombo cboSalesman =
> > > > > > >
> > > > >
> > >
> (EpiCombo)csm.GetNativeControlReference("2bf05081-01f1-42b9-a5d8-6e793705d9e3");
> > > > > > > EpiDataView custview =
> > > (EpiDataView)oTrans.EpiDataViews["Customer"];
> > > > > > >
> > > > > > > // Displays properly without save
> > > > > > > cboRep.Value = "CONSAL";
> > > > > > > custview.dataView[custview.Row]["ShortChar04"] = "CONSAL";
> > > > > > >
> > > > > > > // Does not update display until save
> > > > > > > cboTerritory.Value = "90";
> > > > > > > custview.dataView[custview.Row]["TerritoryID"] = "90";
> > > > > > > cboSalesman.Value = "STONR";
> > > > > > > custview.dataView[custview.Row]["SalesRepCode"] = "STONR";
> > > > > > >
> > > > > > > Thanks,
> > > > > > > Tim
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > > > [Non-text portions of this message have been removed]
> > > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > > > [Non-text portions of this message have been removed]
> > > >
> > >
> > >
> > >
> >
> >
> > [Non-text portions of this message have been removed]
> >
>
>
>


[Non-text portions of this message have been removed]
A suggestion... when I did a BPM on Customer.GetNewShipTo, I had to set
both ttShipTo.TerritoryID (to the real data) and
ttShipTo.TerritoryTerritoryDesc (for display only). Is it possible the
Customer dataset has an additional field used for territory display that
you also need to set? Unusual, but the CRM related bits in Epicor have
a different flavour to them.



Brian.



From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
Of Tim Vonderhaar
Sent: Tuesday, August 07, 2012 4:45 PM
To: vantage@yahoogroups.com
Subject: [Vantage] Re: EpiCombo select value form customization problem





Thanks for all the help Jose, but I guess it's time to call Epicor. I
believe I'm doing everything as you indicate. The code is very straight
forward.

Strange that the two combos I'm having trouble with,
Customer.TerritoryID and Customer.SalesRepCode, are standard combos
where the only one that works is the one I added myself
(Customer.ShortChar04).

--- In vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> , Jose
Gomez <jose@...> wrote:
>
> OK...
>
> Your combo Box should be bound to something like Customer.Character01
> (correct?)
>
> If that's the case then set
>
> edvCustomer.dataView[edvCustomer.Row]["Character01"]="YOUR NEW VALUE"
> edvCustomer.Notify(new
> EpiNotifyArgs(oTrans,edvCustomer.Row,edvCustomer.Column));
>
> This will refresh your UJI,.
>
> *Jose C Gomez*
> *Software Engineer*
> *
> *
> *
> *T: 904.469.1524 mobile
> E: jose@...
> http://www.josecgomez.com
> <http://www.linkedin.com/in/josecgomez> <
http://www.facebook.com/josegomez>
> <http://www.google.com/profiles/jose.gomez> <
http://www.twitter.com/joc85>
> <http://www.josecgomez.com/professional-resume/>
> <http://www.josecgomez.com/feed/>
> <http://www.usdoingstuff.com>
>
> *Quis custodiet ipsos custodes?*
>
>
>
> On Tue, Aug 7, 2012 at 4:22 PM, Tim Vonderhaar <tvonderhaar@...
> > wrote:
>
> > **
> >
> >
> > I was off base, the Notify does not work for me. I have to perform
an
> > Update before it will display the data correctly which is not what I
want.
> > I just want to change the data, not save it at this point.
> >
> >
> > --- In vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> ,
Jose Gomez <jose@> wrote:
> > >
> > > Your combobox is already bound to the data view in the properties.
> > >
> > > *Jose C Gomez*
> > > *Software Engineer*
> > > *
> > > *
> > > *
> > > *T: 904.469.1524 mobile
> > > E: jose@
> > > http://www.josecgomez.com
> > > <http://www.linkedin.com/in/josecgomez> <
> > http://www.facebook.com/josegomez>
> > > <http://www.google.com/profiles/jose.gomez> <
> > http://www.twitter.com/joc85>
> > > <http://www.josecgomez.com/professional-resume/>
> > > <http://www.josecgomez.com/feed/>
> > > <http://www.usdoingstuff.com>
> > >
> > > *Quis custodiet ipsos custodes?*
> > >
> > >
> > >
> > > On Tue, Aug 7, 2012 at 11:29 AM, Tim Vonderhaar <
> > > tvonderhaar@> wrote:
> > >
> > > > **
> >
> > > >
> > > >
> > > > I'm still a bit confused. If I only need to interact with the
dataview,
> > > > including following up with a Notify, not sure why / how to bind
the
> > combos
> > > > to the dataviews. In my initial code, the control binding is
completely
> > > > separate from the dataview. After a bit of testing using the
Notify,
> > this
> > > > code seems to work with no association to the combo.
> > > >
> > > >
> > > > EpiDataView custview =
(EpiDataView)oTrans.EpiDataViews["Customer"];
> > > > custview.dataView[custview.Row]["ShortChar04"] = "CONSAL";
> > > > custview.dataView[custview.Row]["TerritoryID"] = "90";
> > > > custview.dataView[custview.Row]["SalesRepCode"] = "STONR";
> > > > custview.Notify();
> > > >
> > > >
> > > > --- In vantage@yahoogroups.com
<mailto:vantage%40yahoogroups.com> , Jose Gomez <jose@> wrote:
> > > > >
> > > > > Do not set the value on the combo, only set the data view, if
you
> > have
> > > > > those dataviews bound to the combo's then the UI will update
once you
> > > > call
> > > > > a dataview notify
> > > > >
> > > > > *Jose C Gomez*
> > > > > *Software Engineer*
> > > > > *
> > > > > *
> > > > > *
> > > > > *T: 904.469.1524 mobile
> > > > > E: jose@
> > > > > http://www.josecgomez.com
> > > > > <http://www.linkedin.com/in/josecgomez> <
> > > > http://www.facebook.com/josegomez>
> > > > > <http://www.google.com/profiles/jose.gomez> <
> > > > http://www.twitter.com/joc85>
> > > > > <http://www.josecgomez.com/professional-resume/>
> > > > > <http://www.josecgomez.com/feed/>
> > > > > <http://www.usdoingstuff.com>
> > > > >
> > > > > *Quis custodiet ipsos custodes?*
> > > >
> > > > >
> > > > >
> > > > >
> > > > > On Tue, Aug 7, 2012 at 10:38 AM, Tim Vonderhaar <
> > > > > tvonderhaar@> wrote:
> > > > >
> > > > > > **
> > > >
> > > > > >
> > > > > >
> > > > > > I am writing a simple form customization that is intended to
> > determine
> > > > the
> > > > > > territory, salesperson and a custom epicombo field called
rep
> > based on
> > > > the
> > > > > > address of the customer. I chose a form customization over a
BPM
> > > > because I
> > > > > > want the fields to update in real time and not only on a
save. I
> > have
> > > > > > events setup such that when either the state, zip or country
> > changes,
> > > > it
> > > > > > calls a method to perform the calculation. I am struggling
to
> > > > understand
> > > > > > how to programmatically select and display the corresponding
> > values in
> > > > > > these three epicombos. I know I have to gain control of the
> > epicombos,
> > > > set
> > > > > > their .value attributes and I guess I also have to set the
> > dataview.
> > > > Seems
> > > > > > to work for my custom rep epicombo, but the territory and
> > salesperson
> > > > > > combos do not display the change. If I save the form, they
will
> > show
> > > > > > correctly. Here is a subset of the code:
> > > > > >
> > > > > > EpiCombo cboTerritory =
> > > > > >
> > > >
> >
(EpiCombo)csm.GetNativeControlReference("552deb8e-2b5e-4100-8e27-1cb3f6c
e70db");
> > > > > > EpiCombo cboRep =
> > > > > >
> > > >
> >
(EpiCombo)csm.GetNativeControlReference("d6080a59-6042-40cb-895b-952d8f3
9686f");
> > > > > > EpiCombo cboSalesman =
> > > > > >
> > > >
> >
(EpiCombo)csm.GetNativeControlReference("2bf05081-01f1-42b9-a5d8-6e79370
5d9e3");
> > > > > > EpiDataView custview =
> > (EpiDataView)oTrans.EpiDataViews["Customer"];
> > > > > >
> > > > > > // Displays properly without save
> > > > > > cboRep.Value = "CONSAL";
> > > > > > custview.dataView[custview.Row]["ShortChar04"] = "CONSAL";
> > > > > >
> > > > > > // Does not update display until save
> > > > > > cboTerritory.Value = "90";
> > > > > > custview.dataView[custview.Row]["TerritoryID"] = "90";
> > > > > > cboSalesman.Value = "STONR";
> > > > > > custview.dataView[custview.Row]["SalesRepCode"] = "STONR";
> > > > > >
> > > > > > Thanks,
> > > > > > Tim
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > > > [Non-text portions of this message have been removed]
> > > > >
> > > >
> > > >
> > > >
> > >
> > >
> > > [Non-text portions of this message have been removed]
> > >
> >
> >
> >
>
>
> [Non-text portions of this message have been removed]
>





[Non-text portions of this message have been removed]
No Errors. I added the try/catch and got nothing. I have reduced the code to almost nothing and it still only works for the single custom ShortChar04 combo. Here is the code in full:

// **************************************************
// Custom code for CustomerEntryForm
// Created: 8/3/2012 2:05:01 PM
// **************************************************
using System;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Windows.Forms;
using Epicor.Mfg.BO;
using Epicor.Mfg.UI;
using Epicor.Mfg.UI.Adapters;
using Epicor.Mfg.UI.Customization;
using Epicor.Mfg.UI.ExtendedProps;
using Epicor.Mfg.UI.FormFunctions;
using Epicor.Mfg.UI.FrameWork;
using Epicor.Mfg.UI.Searches;

public static class 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 **

public static void InitializeCustomCode()
{
// ** Wizard Insert Location - Do not delete 'Begin/End Wizard Added Variable Initialization' lines **
// Begin Wizard Added Variable Initialization

Script.Customer_Column.ColumnChanged += new DataColumnChangeEventHandler(Script.Customer_AfterFieldChange);
// End Wizard Added Variable Initialization

// Begin Wizard Added Custom Method Calls

// End Wizard Added Custom Method Calls
}

public static void DestroyCustomCode()
{
// ** Wizard Insert Location - Do not delete 'Begin/End Wizard Added Object Disposal' lines **
// Begin Wizard Added Object Disposal

Script.Customer_Column.ColumnChanged -= new DataColumnChangeEventHandler(Script.Customer_AfterFieldChange);
// End Wizard Added Object Disposal

// Begin Custom Code Disposal

// End Custom Code Disposal
}

private static void Customer_AfterFieldChange(object sender, DataColumnChangeEventArgs args)
{
try
{
// ** Argument Properties and Uses **
// args.Row["FieldName"]
// args.Column, args.ProposedValue, args.Row
// Add Event Handler Code
switch (args.Column.ColumnName)
{
case "State":
case "Zip":
case "CountryNum":

EpiDataView custview = (EpiDataView)oTrans.EpiDataViews["Customer"];
custview.dataView[custview.Row]["TerritoryID"] = "90";
custview.dataView[custview.Row]["SalesRepCode"] = "STONR";
custview.dataView[custview.Row]["ShortChar04"] = "CONSAL";
custview.Notify(new EpiNotifyArgs(oTrans,custview.Row,custview.Column));
break;
}
}
catch (Exception ex)
{
MessageBox.Show("Error");
}
}
}


--- In vantage@yahoogroups.com, Jose Gomez <jose@...> wrote:
>
> Are you getting an error?
>
> Soround it with a Try Catch and Display the exception, you may be getting
> an error. Can you past all your code? Epicor won't really help you with
> this kind of issues.
>
> *Jose C Gomez*
> *Software Engineer*
> *
> *
> *
> *T: 904.469.1524 mobile
> E: jose@...
> http://www.josecgomez.com
> <http://www.linkedin.com/in/josecgomez> <http://www.facebook.com/josegomez>
> <http://www.google.com/profiles/jose.gomez> <http://www.twitter.com/joc85>
> <http://www.josecgomez.com/professional-resume/>
> <http://www.josecgomez.com/feed/>
> <http://www.usdoingstuff.com>
>
> *Quis custodiet ipsos custodes?*
>
>
>
> On Tue, Aug 7, 2012 at 4:45 PM, Tim Vonderhaar <tvonderhaar@...
> > wrote:
>
> > **
> >
> >
> > Thanks for all the help Jose, but I guess it's time to call Epicor. I
> > believe I'm doing everything as you indicate. The code is very straight
> > forward.
> >
> > Strange that the two combos I'm having trouble with, Customer.TerritoryID
> > and Customer.SalesRepCode, are standard combos where the only one that
> > works is the one I added myself (Customer.ShortChar04).
> >
> >
> > --- In vantage@yahoogroups.com, Jose Gomez <jose@> wrote:
> > >
> > > OK...
> > >
> > > Your combo Box should be bound to something like Customer.Character01
> > > (correct?)
> > >
> > > If that's the case then set
> > >
> > > edvCustomer.dataView[edvCustomer.Row]["Character01"]="YOUR NEW VALUE"
> > > edvCustomer.Notify(new
> > > EpiNotifyArgs(oTrans,edvCustomer.Row,edvCustomer.Column));
> > >
> > > This will refresh your UJI,.
> > >
> > > *Jose C Gomez*
> > > *Software Engineer*
> > > *
> > > *
> > > *
> > > *T: 904.469.1524 mobile
> > > E: jose@
> > > http://www.josecgomez.com
> > > <http://www.linkedin.com/in/josecgomez> <
> > http://www.facebook.com/josegomez>
> > > <http://www.google.com/profiles/jose.gomez> <
> > http://www.twitter.com/joc85>
> > > <http://www.josecgomez.com/professional-resume/>
> > > <http://www.josecgomez.com/feed/>
> > > <http://www.usdoingstuff.com>
> > >
> > > *Quis custodiet ipsos custodes?*
> > >
> > >
> > >
> > > On Tue, Aug 7, 2012 at 4:22 PM, Tim Vonderhaar <tvonderhaar@
> > > > wrote:
> > >
> > > > **
> >
> > > >
> > > >
> > > > I was off base, the Notify does not work for me. I have to perform an
> > > > Update before it will display the data correctly which is not what I
> > want.
> > > > I just want to change the data, not save it at this point.
> > > >
> > > >
> > > > --- In vantage@yahoogroups.com, Jose Gomez <jose@> wrote:
> > > > >
> > > > > Your combobox is already bound to the data view in the properties.
> > > > >
> > > > > *Jose C Gomez*
> > > > > *Software Engineer*
> > > > > *
> > > > > *
> > > > > *
> > > > > *T: 904.469.1524 mobile
> > > > > E: jose@
> > > > > http://www.josecgomez.com
> > > > > <http://www.linkedin.com/in/josecgomez> <
> > > > http://www.facebook.com/josegomez>
> > > > > <http://www.google.com/profiles/jose.gomez> <
> > > > http://www.twitter.com/joc85>
> > > > > <http://www.josecgomez.com/professional-resume/>
> > > > > <http://www.josecgomez.com/feed/>
> > > > > <http://www.usdoingstuff.com>
> > > > >
> > > > > *Quis custodiet ipsos custodes?*
> > > > >
> > > > >
> > > > >
> > > > > On Tue, Aug 7, 2012 at 11:29 AM, Tim Vonderhaar <
> > > > > tvonderhaar@> wrote:
> > > > >
> > > > > > **
> > > >
> > > > > >
> > > > > >
> > > > > > I'm still a bit confused. If I only need to interact with the
> > dataview,
> > > > > > including following up with a Notify, not sure why / how to bind
> > the
> > > > combos
> > > > > > to the dataviews. In my initial code, the control binding is
> > completely
> > > > > > separate from the dataview. After a bit of testing using the
> > Notify,
> > > > this
> > > > > > code seems to work with no association to the combo.
> > > > > >
> > > > > >
> > > > > > EpiDataView custview =
> > (EpiDataView)oTrans.EpiDataViews["Customer"];
> > > > > > custview.dataView[custview.Row]["ShortChar04"] = "CONSAL";
> > > > > > custview.dataView[custview.Row]["TerritoryID"] = "90";
> > > > > > custview.dataView[custview.Row]["SalesRepCode"] = "STONR";
> > > > > > custview.Notify();
> > > > > >
> > > > > >
> > > > > > --- In vantage@yahoogroups.com, Jose Gomez <jose@> wrote:
> > > > > > >
> > > > > > > Do not set the value on the combo, only set the data view, if you
> > > > have
> > > > > > > those dataviews bound to the combo's then the UI will update
> > once you
> > > > > > call
> > > > > > > a dataview notify
> > > > > > >
> > > > > > > *Jose C Gomez*
> > > > > > > *Software Engineer*
> > > > > > > *
> > > > > > > *
> > > > > > > *
> > > > > > > *T: 904.469.1524 mobile
> > > > > > > E: jose@
> > > > > > > http://www.josecgomez.com
> > > > > > > <http://www.linkedin.com/in/josecgomez> <
> > > > > > http://www.facebook.com/josegomez>
> > > > > > > <http://www.google.com/profiles/jose.gomez> <
> > > > > > http://www.twitter.com/joc85>
> > > > > > > <http://www.josecgomez.com/professional-resume/>
> > > > > > > <http://www.josecgomez.com/feed/>
> > > > > > > <http://www.usdoingstuff.com>
> > > > > > >
> > > > > > > *Quis custodiet ipsos custodes?*
> > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > On Tue, Aug 7, 2012 at 10:38 AM, Tim Vonderhaar <
> > > > > > > tvonderhaar@> wrote:
> > > > > > >
> > > > > > > > **
> > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > I am writing a simple form customization that is intended to
> > > > determine
> > > > > > the
> > > > > > > > territory, salesperson and a custom epicombo field called rep
> > > > based on
> > > > > > the
> > > > > > > > address of the customer. I chose a form customization over a
> > BPM
> > > > > > because I
> > > > > > > > want the fields to update in real time and not only on a save.
> > I
> > > > have
> > > > > > > > events setup such that when either the state, zip or country
> > > > changes,
> > > > > > it
> > > > > > > > calls a method to perform the calculation. I am struggling to
> > > > > > understand
> > > > > > > > how to programmatically select and display the corresponding
> > > > values in
> > > > > > > > these three epicombos. I know I have to gain control of the
> > > > epicombos,
> > > > > > set
> > > > > > > > their .value attributes and I guess I also have to set the
> > > > dataview.
> > > > > > Seems
> > > > > > > > to work for my custom rep epicombo, but the territory and
> > > > salesperson
> > > > > > > > combos do not display the change. If I save the form, they will
> > > > show
> > > > > > > > correctly. Here is a subset of the code:
> > > > > > > >
> > > > > > > > EpiCombo cboTerritory =
> > > > > > > >
> > > > > >
> > > >
> > (EpiCombo)csm.GetNativeControlReference("552deb8e-2b5e-4100-8e27-1cb3f6ce70db");
> > > > > > > > EpiCombo cboRep =
> > > > > > > >
> > > > > >
> > > >
> > (EpiCombo)csm.GetNativeControlReference("d6080a59-6042-40cb-895b-952d8f39686f");
> > > > > > > > EpiCombo cboSalesman =
> > > > > > > >
> > > > > >
> > > >
> > (EpiCombo)csm.GetNativeControlReference("2bf05081-01f1-42b9-a5d8-6e793705d9e3");
> > > > > > > > EpiDataView custview =
> > > > (EpiDataView)oTrans.EpiDataViews["Customer"];
> > > > > > > >
> > > > > > > > // Displays properly without save
> > > > > > > > cboRep.Value = "CONSAL";
> > > > > > > > custview.dataView[custview.Row]["ShortChar04"] = "CONSAL";
> > > > > > > >
> > > > > > > > // Does not update display until save
> > > > > > > > cboTerritory.Value = "90";
> > > > > > > > custview.dataView[custview.Row]["TerritoryID"] = "90";
> > > > > > > > cboSalesman.Value = "STONR";
> > > > > > > > custview.dataView[custview.Row]["SalesRepCode"] = "STONR";
> > > > > > > >
> > > > > > > > Thanks,
> > > > > > > > Tim
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > [Non-text portions of this message have been removed]
> > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > > > [Non-text portions of this message have been removed]
> > > > >
> > > >
> > > >
> > > >
> > >
> > >
> > > [Non-text portions of this message have been removed]
> > >
> >
> >
> >
>
>
> [Non-text portions of this message have been removed]
>
Brian may be right, you might ahve to set the Description fields, give that
a shot!

*Jose C Gomez*
*Software Engineer*
*
*
*
*T: 904.469.1524 mobile
E: jose@...
http://www.josecgomez.com
<http://www.linkedin.com/in/josecgomez> <http://www.facebook.com/josegomez>
<http://www.google.com/profiles/jose.gomez> <http://www.twitter.com/joc85>
<http://www.josecgomez.com/professional-resume/>
<http://www.josecgomez.com/feed/>
<http://www.usdoingstuff.com>

*Quis custodiet ipsos custodes?*



On Tue, Aug 7, 2012 at 5:03 PM, Tim Vonderhaar <tvonderhaar@...
> wrote:

> **
>
>
> No Errors. I added the try/catch and got nothing. I have reduced the code
> to almost nothing and it still only works for the single custom ShortChar04
> combo. Here is the code in full:
>
> // **************************************************
> // Custom code for CustomerEntryForm
> // Created: 8/3/2012 2:05:01 PM
> // **************************************************
> using System;
> using System.ComponentModel;
> using System.Data;
> using System.Diagnostics;
> using System.Windows.Forms;
> using Epicor.Mfg.BO;
> using Epicor.Mfg.UI;
> using Epicor.Mfg.UI.Adapters;
> using Epicor.Mfg.UI.Customization;
> using Epicor.Mfg.UI.ExtendedProps;
> using Epicor.Mfg.UI.FormFunctions;
> using Epicor.Mfg.UI.FrameWork;
> using Epicor.Mfg.UI.Searches;
>
> public static class 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 **
>
> public static void InitializeCustomCode()
> {
> // ** Wizard Insert Location - Do not delete 'Begin/End Wizard Added
> Variable Initialization' lines **
> // Begin Wizard Added Variable Initialization
>
> Script.Customer_Column.ColumnChanged += new
> DataColumnChangeEventHandler(Script.Customer_AfterFieldChange);
> // End Wizard Added Variable Initialization
>
> // Begin Wizard Added Custom Method Calls
>
> // End Wizard Added Custom Method Calls
> }
>
> public static void DestroyCustomCode()
> {
> // ** Wizard Insert Location - Do not delete 'Begin/End Wizard Added
> Object Disposal' lines **
> // Begin Wizard Added Object Disposal
>
> Script.Customer_Column.ColumnChanged -= new
> DataColumnChangeEventHandler(Script.Customer_AfterFieldChange);
> // End Wizard Added Object Disposal
>
> // Begin Custom Code Disposal
>
> // End Custom Code Disposal
> }
>
> private static void Customer_AfterFieldChange(object sender,
> DataColumnChangeEventArgs args)
> {
> try
> {
> // ** Argument Properties and Uses **
> // args.Row["FieldName"]
> // args.Column, args.ProposedValue, args.Row
> // Add Event Handler Code
> switch (args.Column.ColumnName)
> {
> case "State":
> case "Zip":
> case "CountryNum":
>
>
> EpiDataView custview = (EpiDataView)oTrans.EpiDataViews["Customer"];
> custview.dataView[custview.Row]["TerritoryID"] = "90";
> custview.dataView[custview.Row]["SalesRepCode"] = "STONR";
> custview.dataView[custview.Row]["ShortChar04"] = "CONSAL";
> custview.Notify(new EpiNotifyArgs(oTrans,custview.Row,custview.Column));
> break;
> }
> }
> catch (Exception ex)
> {
> MessageBox.Show("Error");
>
> }
> }
> }
>
> --- In vantage@yahoogroups.com, Jose Gomez <jose@...> wrote:
> >
> > Are you getting an error?
> >
> > Soround it with a Try Catch and Display the exception, you may be getting
> > an error. Can you past all your code? Epicor won't really help you with
> > this kind of issues.
> >
> > *Jose C Gomez*
> > *Software Engineer*
> > *
> > *
> > *
> > *T: 904.469.1524 mobile
> > E: jose@...
> > http://www.josecgomez.com
> > <http://www.linkedin.com/in/josecgomez> <
> http://www.facebook.com/josegomez>
> > <http://www.google.com/profiles/jose.gomez> <
> http://www.twitter.com/joc85>
> > <http://www.josecgomez.com/professional-resume/>
> > <http://www.josecgomez.com/feed/>
> > <http://www.usdoingstuff.com>
> >
> > *Quis custodiet ipsos custodes?*
> >
> >
> >
> > On Tue, Aug 7, 2012 at 4:45 PM, Tim Vonderhaar <tvonderhaar@...
> > > wrote:
> >
> > > **
> > >
> > >
>
> > > Thanks for all the help Jose, but I guess it's time to call Epicor. I
> > > believe I'm doing everything as you indicate. The code is very straight
> > > forward.
> > >
> > > Strange that the two combos I'm having trouble with,
> Customer.TerritoryID
> > > and Customer.SalesRepCode, are standard combos where the only one that
> > > works is the one I added myself (Customer.ShortChar04).
> > >
> > >
> > > --- In vantage@yahoogroups.com, Jose Gomez <jose@> wrote:
> > > >
> > > > OK...
> > > >
> > > > Your combo Box should be bound to something like Customer.Character01
> > > > (correct?)
> > > >
> > > > If that's the case then set
> > > >
> > > > edvCustomer.dataView[edvCustomer.Row]["Character01"]="YOUR NEW VALUE"
> > > > edvCustomer.Notify(new
> > > > EpiNotifyArgs(oTrans,edvCustomer.Row,edvCustomer.Column));
> > > >
> > > > This will refresh your UJI,.
> > > >
> > > > *Jose C Gomez*
> > > > *Software Engineer*
> > > > *
> > > > *
> > > > *
> > > > *T: 904.469.1524 mobile
> > > > E: jose@
> > > > http://www.josecgomez.com
> > > > <http://www.linkedin.com/in/josecgomez> <
> > > http://www.facebook.com/josegomez>
> > > > <http://www.google.com/profiles/jose.gomez> <
> > > http://www.twitter.com/joc85>
> > > > <http://www.josecgomez.com/professional-resume/>
> > > > <http://www.josecgomez.com/feed/>
> > > > <http://www.usdoingstuff.com>
> > > >
> > > > *Quis custodiet ipsos custodes?*
> > > >
> > > >
> > > >
> > > > On Tue, Aug 7, 2012 at 4:22 PM, Tim Vonderhaar <tvonderhaar@
> > > > > wrote:
> > > >
> > > > > **
> > >
> > > > >
> > > > >
> > > > > I was off base, the Notify does not work for me. I have to perform
> an
> > > > > Update before it will display the data correctly which is not what
> I
> > > want.
> > > > > I just want to change the data, not save it at this point.
> > > > >
> > > > >
> > > > > --- In vantage@yahoogroups.com, Jose Gomez <jose@> wrote:
> > > > > >
> > > > > > Your combobox is already bound to the data view in the
> properties.
> > > > > >
> > > > > > *Jose C Gomez*
> > > > > > *Software Engineer*
> > > > > > *
> > > > > > *
> > > > > > *
> > > > > > *T: 904.469.1524 mobile
> > > > > > E: jose@
> > > > > > http://www.josecgomez.com
> > > > > > <http://www.linkedin.com/in/josecgomez> <
> > > > > http://www.facebook.com/josegomez>
> > > > > > <http://www.google.com/profiles/jose.gomez> <
> > > > > http://www.twitter.com/joc85>
> > > > > > <http://www.josecgomez.com/professional-resume/>
> > > > > > <http://www.josecgomez.com/feed/>
> > > > > > <http://www.usdoingstuff.com>
> > > > > >
> > > > > > *Quis custodiet ipsos custodes?*
> > > > > >
> > > > > >
> > > > > >
> > > > > > On Tue, Aug 7, 2012 at 11:29 AM, Tim Vonderhaar <
> > > > > > tvonderhaar@> wrote:
> > > > > >
> > > > > > > **
> > > > >
> > > > > > >
> > > > > > >
> > > > > > > I'm still a bit confused. If I only need to interact with the
> > > dataview,
> > > > > > > including following up with a Notify, not sure why / how to
> bind
> > > the
> > > > > combos
> > > > > > > to the dataviews. In my initial code, the control binding is
> > > completely
> > > > > > > separate from the dataview. After a bit of testing using the
> > > Notify,
> > > > > this
> > > > > > > code seems to work with no association to the combo.
> > > > > > >
> > > > > > >
> > > > > > > EpiDataView custview =
> > > (EpiDataView)oTrans.EpiDataViews["Customer"];
> > > > > > > custview.dataView[custview.Row]["ShortChar04"] = "CONSAL";
> > > > > > > custview.dataView[custview.Row]["TerritoryID"] = "90";
> > > > > > > custview.dataView[custview.Row]["SalesRepCode"] = "STONR";
> > > > > > > custview.Notify();
> > > > > > >
> > > > > > >
> > > > > > > --- In vantage@yahoogroups.com, Jose Gomez <jose@> wrote:
> > > > > > > >
> > > > > > > > Do not set the value on the combo, only set the data view,
> if you
> > > > > have
> > > > > > > > those dataviews bound to the combo's then the UI will update
> > > once you
> > > > > > > call
> > > > > > > > a dataview notify
> > > > > > > >
> > > > > > > > *Jose C Gomez*
> > > > > > > > *Software Engineer*
> > > > > > > > *
> > > > > > > > *
> > > > > > > > *
> > > > > > > > *T: 904.469.1524 mobile
> > > > > > > > E: jose@
> > > > > > > > http://www.josecgomez.com
> > > > > > > > <http://www.linkedin.com/in/josecgomez> <
> > > > > > > http://www.facebook.com/josegomez>
> > > > > > > > <http://www.google.com/profiles/jose.gomez> <
> > > > > > > http://www.twitter.com/joc85>
> > > > > > > > <http://www.josecgomez.com/professional-resume/>
> > > > > > > > <http://www.josecgomez.com/feed/>
> > > > > > > > <http://www.usdoingstuff.com>
> > > > > > > >
> > > > > > > > *Quis custodiet ipsos custodes?*
> > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > On Tue, Aug 7, 2012 at 10:38 AM, Tim Vonderhaar <
> > > > > > > > tvonderhaar@> wrote:
> > > > > > > >
> > > > > > > > > **
> > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > I am writing a simple form customization that is intended
> to
> > > > > determine
> > > > > > > the
> > > > > > > > > territory, salesperson and a custom epicombo field called
> rep
> > > > > based on
> > > > > > > the
> > > > > > > > > address of the customer. I chose a form customization over
> a
> > > BPM
> > > > > > > because I
> > > > > > > > > want the fields to update in real time and not only on a
> save.
> > > I
> > > > > have
> > > > > > > > > events setup such that when either the state, zip or
> country
> > > > > changes,
> > > > > > > it
> > > > > > > > > calls a method to perform the calculation. I am struggling
> to
> > > > > > > understand
> > > > > > > > > how to programmatically select and display the
> corresponding
> > > > > values in
> > > > > > > > > these three epicombos. I know I have to gain control of the
> > > > > epicombos,
> > > > > > > set
> > > > > > > > > their .value attributes and I guess I also have to set the
> > > > > dataview.
> > > > > > > Seems
> > > > > > > > > to work for my custom rep epicombo, but the territory and
> > > > > salesperson
> > > > > > > > > combos do not display the change. If I save the form, they
> will
> > > > > show
> > > > > > > > > correctly. Here is a subset of the code:
> > > > > > > > >
> > > > > > > > > EpiCombo cboTerritory =
> > > > > > > > >
> > > > > > >
> > > > >
> > >
> (EpiCombo)csm.GetNativeControlReference("552deb8e-2b5e-4100-8e27-1cb3f6ce70db");
> > > > > > > > > EpiCombo cboRep =
> > > > > > > > >
> > > > > > >
> > > > >
> > >
> (EpiCombo)csm.GetNativeControlReference("d6080a59-6042-40cb-895b-952d8f39686f");
> > > > > > > > > EpiCombo cboSalesman =
> > > > > > > > >
> > > > > > >
> > > > >
> > >
> (EpiCombo)csm.GetNativeControlReference("2bf05081-01f1-42b9-a5d8-6e793705d9e3");
> > > > > > > > > EpiDataView custview =
> > > > > (EpiDataView)oTrans.EpiDataViews["Customer"];
> > > > > > > > >
> > > > > > > > > // Displays properly without save
> > > > > > > > > cboRep.Value = "CONSAL";
> > > > > > > > > custview.dataView[custview.Row]["ShortChar04"] = "CONSAL";
> > > > > > > > >
> > > > > > > > > // Does not update display until save
> > > > > > > > > cboTerritory.Value = "90";
> > > > > > > > > custview.dataView[custview.Row]["TerritoryID"] = "90";
> > > > > > > > > cboSalesman.Value = "STONR";
> > > > > > > > > custview.dataView[custview.Row]["SalesRepCode"] = "STONR";
> > > > > > > > >
> > > > > > > > > Thanks,
> > > > > > > > > Tim
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > [Non-text portions of this message have been removed]
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > > > [Non-text portions of this message have been removed]
> > > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > > > [Non-text portions of this message have been removed]
> > > >
> > >
> > >
> > >
> >
> >
> > [Non-text portions of this message have been removed]
> >
>
>
>


[Non-text portions of this message have been removed]
That sounds reasonable. I will give that a shot and report back.

Thanks!

--- In vantage@yahoogroups.com, "Brian Roberts" <broberts@...> wrote:
>
> A suggestion... when I did a BPM on Customer.GetNewShipTo, I had to set
> both ttShipTo.TerritoryID (to the real data) and
> ttShipTo.TerritoryTerritoryDesc (for display only). Is it possible the
> Customer dataset has an additional field used for territory display that
> you also need to set? Unusual, but the CRM related bits in Epicor have
> a different flavour to them.
>
>
>
> Brian.
>
>
>
> From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
> Of Tim Vonderhaar
> Sent: Tuesday, August 07, 2012 4:45 PM
> To: vantage@yahoogroups.com
> Subject: [Vantage] Re: EpiCombo select value form customization problem
>
>
>
>
>
> Thanks for all the help Jose, but I guess it's time to call Epicor. I
> believe I'm doing everything as you indicate. The code is very straight
> forward.
>
> Strange that the two combos I'm having trouble with,
> Customer.TerritoryID and Customer.SalesRepCode, are standard combos
> where the only one that works is the one I added myself
> (Customer.ShortChar04).
>
> --- In vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> , Jose
> Gomez <jose@> wrote:
> >
> > OK...
> >
> > Your combo Box should be bound to something like Customer.Character01
> > (correct?)
> >
> > If that's the case then set
> >
> > edvCustomer.dataView[edvCustomer.Row]["Character01"]="YOUR NEW VALUE"
> > edvCustomer.Notify(new
> > EpiNotifyArgs(oTrans,edvCustomer.Row,edvCustomer.Column));
> >
> > This will refresh your UJI,.
> >
> > *Jose C Gomez*
> > *Software Engineer*
> > *
> > *
> > *
> > *T: 904.469.1524 mobile
> > E: jose@
> > http://www.josecgomez.com
> > <http://www.linkedin.com/in/josecgomez> <
> http://www.facebook.com/josegomez>
> > <http://www.google.com/profiles/jose.gomez> <
> http://www.twitter.com/joc85>
> > <http://www.josecgomez.com/professional-resume/>
> > <http://www.josecgomez.com/feed/>
> > <http://www.usdoingstuff.com>
> >
> > *Quis custodiet ipsos custodes?*
> >
> >
> >
> > On Tue, Aug 7, 2012 at 4:22 PM, Tim Vonderhaar <tvonderhaar@
> > > wrote:
> >
> > > **
> > >
> > >
> > > I was off base, the Notify does not work for me. I have to perform
> an
> > > Update before it will display the data correctly which is not what I
> want.
> > > I just want to change the data, not save it at this point.
> > >
> > >
> > > --- In vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> ,
> Jose Gomez <jose@> wrote:
> > > >
> > > > Your combobox is already bound to the data view in the properties.
> > > >
> > > > *Jose C Gomez*
> > > > *Software Engineer*
> > > > *
> > > > *
> > > > *
> > > > *T: 904.469.1524 mobile
> > > > E: jose@
> > > > http://www.josecgomez.com
> > > > <http://www.linkedin.com/in/josecgomez> <
> > > http://www.facebook.com/josegomez>
> > > > <http://www.google.com/profiles/jose.gomez> <
> > > http://www.twitter.com/joc85>
> > > > <http://www.josecgomez.com/professional-resume/>
> > > > <http://www.josecgomez.com/feed/>
> > > > <http://www.usdoingstuff.com>
> > > >
> > > > *Quis custodiet ipsos custodes?*
> > > >
> > > >
> > > >
> > > > On Tue, Aug 7, 2012 at 11:29 AM, Tim Vonderhaar <
> > > > tvonderhaar@> wrote:
> > > >
> > > > > **
> > >
> > > > >
> > > > >
> > > > > I'm still a bit confused. If I only need to interact with the
> dataview,
> > > > > including following up with a Notify, not sure why / how to bind
> the
> > > combos
> > > > > to the dataviews. In my initial code, the control binding is
> completely
> > > > > separate from the dataview. After a bit of testing using the
> Notify,
> > > this
> > > > > code seems to work with no association to the combo.
> > > > >
> > > > >
> > > > > EpiDataView custview =
> (EpiDataView)oTrans.EpiDataViews["Customer"];
> > > > > custview.dataView[custview.Row]["ShortChar04"] = "CONSAL";
> > > > > custview.dataView[custview.Row]["TerritoryID"] = "90";
> > > > > custview.dataView[custview.Row]["SalesRepCode"] = "STONR";
> > > > > custview.Notify();
> > > > >
> > > > >
> > > > > --- In vantage@yahoogroups.com
> <mailto:vantage%40yahoogroups.com> , Jose Gomez <jose@> wrote:
> > > > > >
> > > > > > Do not set the value on the combo, only set the data view, if
> you
> > > have
> > > > > > those dataviews bound to the combo's then the UI will update
> once you
> > > > > call
> > > > > > a dataview notify
> > > > > >
> > > > > > *Jose C Gomez*
> > > > > > *Software Engineer*
> > > > > > *
> > > > > > *
> > > > > > *
> > > > > > *T: 904.469.1524 mobile
> > > > > > E: jose@
> > > > > > http://www.josecgomez.com
> > > > > > <http://www.linkedin.com/in/josecgomez> <
> > > > > http://www.facebook.com/josegomez>
> > > > > > <http://www.google.com/profiles/jose.gomez> <
> > > > > http://www.twitter.com/joc85>
> > > > > > <http://www.josecgomez.com/professional-resume/>
> > > > > > <http://www.josecgomez.com/feed/>
> > > > > > <http://www.usdoingstuff.com>
> > > > > >
> > > > > > *Quis custodiet ipsos custodes?*
> > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > On Tue, Aug 7, 2012 at 10:38 AM, Tim Vonderhaar <
> > > > > > tvonderhaar@> wrote:
> > > > > >
> > > > > > > **
> > > > >
> > > > > > >
> > > > > > >
> > > > > > > I am writing a simple form customization that is intended to
> > > determine
> > > > > the
> > > > > > > territory, salesperson and a custom epicombo field called
> rep
> > > based on
> > > > > the
> > > > > > > address of the customer. I chose a form customization over a
> BPM
> > > > > because I
> > > > > > > want the fields to update in real time and not only on a
> save. I
> > > have
> > > > > > > events setup such that when either the state, zip or country
> > > changes,
> > > > > it
> > > > > > > calls a method to perform the calculation. I am struggling
> to
> > > > > understand
> > > > > > > how to programmatically select and display the corresponding
> > > values in
> > > > > > > these three epicombos. I know I have to gain control of the
> > > epicombos,
> > > > > set
> > > > > > > their .value attributes and I guess I also have to set the
> > > dataview.
> > > > > Seems
> > > > > > > to work for my custom rep epicombo, but the territory and
> > > salesperson
> > > > > > > combos do not display the change. If I save the form, they
> will
> > > show
> > > > > > > correctly. Here is a subset of the code:
> > > > > > >
> > > > > > > EpiCombo cboTerritory =
> > > > > > >
> > > > >
> > >
> (EpiCombo)csm.GetNativeControlReference("552deb8e-2b5e-4100-8e27-1cb3f6c
> e70db");
> > > > > > > EpiCombo cboRep =
> > > > > > >
> > > > >
> > >
> (EpiCombo)csm.GetNativeControlReference("d6080a59-6042-40cb-895b-952d8f3
> 9686f");
> > > > > > > EpiCombo cboSalesman =
> > > > > > >
> > > > >
> > >
> (EpiCombo)csm.GetNativeControlReference("2bf05081-01f1-42b9-a5d8-6e79370
> 5d9e3");
> > > > > > > EpiDataView custview =
> > > (EpiDataView)oTrans.EpiDataViews["Customer"];
> > > > > > >
> > > > > > > // Displays properly without save
> > > > > > > cboRep.Value = "CONSAL";
> > > > > > > custview.dataView[custview.Row]["ShortChar04"] = "CONSAL";
> > > > > > >
> > > > > > > // Does not update display until save
> > > > > > > cboTerritory.Value = "90";
> > > > > > > custview.dataView[custview.Row]["TerritoryID"] = "90";
> > > > > > > cboSalesman.Value = "STONR";
> > > > > > > custview.dataView[custview.Row]["SalesRepCode"] = "STONR";
> > > > > > >
> > > > > > > Thanks,
> > > > > > > Tim
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > > > [Non-text portions of this message have been removed]
> > > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > > > [Non-text portions of this message have been removed]
> > > >
> > >
> > >
> > >
> >
> >
> > [Non-text portions of this message have been removed]
> >
>
>
>
>
>
> [Non-text portions of this message have been removed]
>