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