That would be fine as long as I was assured the data retrieval would happen each time a tab is clicked. I will investigate to see if that would work.
--- In vantage@yahoogroups.com, "bw2868bond" <bwalker@...> wrote:
>
> I don't know what dataviews are in that form, but why can't you filter the data after it is retrieved regardless of the tab clicked?
>
> --- In vantage@yahoogroups.com, "Tim Vonderhaar" <tvonderhaar@> wrote:
> >
> > My ultimate goal is to programatically apply a filter that selects and sorts the grid data for the logged in user for each tab (panel) current, available and expected. This can be done manually, but a pain to do for the shop people. We have a single resource group that all of our machinists are in so we want to make it easy for them to see what work is theirs. My idea was to run the filter and sort logic every time a panel is clicked. I figured I would struggle with the filter and sort code, but not the event detection!
> >
> > --- In vantage@yahoogroups.com, Jose Gomez <jose@> wrote:
> > >
> > > Hey Man,
> > > In MES The Tabs are just individual panels, so there is no real "Tab
> > > Control"
> > > What exactly is what you are trying to do? Detect clicks so that xxxx?
> > > There may be a better way.
> > >
> > > *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 Thu, Jun 28, 2012 at 4:28 PM, Tim Vonderhaar <
> > > tvonderhaar@> wrote:
> > >
> > > > **
> > > >
> > > >
> > > > OK, now I'm really confused. Such a simple concept, but I'm struggling
> > > > with making the connection. The only GUID I see available is for the panel,
> > > > not a tab control. I now have:
> > > >
> > > > private Epicor.Mfg.UI.App.WorkQueueEntry.Panels.CurrentWorkPanel
> > > > currentWorkPanel;
> > > >
> > > > public void InitializeCustomCode()
> > > > {
> > > > currentWorkPanel =
> > > > (Epicor.Mfg.UI.App.WorkQueueEntry.Panels.CurrentWorkPanel)csm.GetNativeControlReference("7b24b2c5-96a9-4591-b3b0-49b0bbd68113");
> > > > currentWorkPanel.???? += new
> > > > Infragistics.Win.UltraWinTabControl.SelectedTabChangedEventHandler(this.currentTabControl_SelectedTabChanged);
> > > > }
> > > >
> > > > So, I have a connection to the panel and I'm trying to connect the tab
> > > > control event handler to it, but I have no idea how to find the structure
> > > > of currentWorkPanel to know if that's even possible.
> > > >
> > > > Side note, I sure wish Epicor has IntelliSense with their objects!
> > > >
> > > > I'm probably making this more difficult than it needs to be, but a little
> > > > nugget would be greatly appreciated.
> > > >
> > > > Tim
> > > >
> > > > --- In vantage@yahoogroups.com, John Driggers <waffqle@> wrote:
> > > > >
> > > > > You need to attach your eventhandler to an actual tab control.
> > > > > What you are doing now is just creating a new instance of the control and
> > > > > wiring up to that as opposed to the one on the form.
> > > > >
> > > > > The reason that you are actually getting the error is just that the
> > > > > tabcontrol is declared but not initialized. You could alleviate the error
> > > > > by initializing the object you created, but it wouldn't solve you actual
> > > > > problem.
> > > > >
> > > > > What you need to do is get a reference to the tabControl on the form.
> > > > Find
> > > > > the guid in customization mode and get a handle on it using
> > > > > csm.GetNativeControlReference(guid);
> > > > >
> > > > >
> > > > >
> > > > > *John Driggers*
> > > > > **
> > > > > *Chief Data Wrangler*
> > > > > *
> > > > > *
> > > > > *I have an Epicor blog <http://usdoingstuff.com/>. How useful is that?*
> > > > > *
> > > > > *:: 904.404.9233
> > > > > :: waffqle@
> > > >
> > > > > :: http://www.usdoingstuff.com <http://www.usdoingstuff.com/>
> > > > >
> > > > > *
> > > > >
> > > > > *
> > > > >
> > > > >
> > > > >
> > > > > On Wed, Jun 27, 2012 at 4:01 PM, Tim Vonderhaar <
> > > > > tvonderhaar@> wrote:
> > > > >
> > > > > > **
> > > > > >
> > > > > >
> > > > > > I am trying to detect tab clicks on our MES WorkQueue form. I have
> > > > found
> > > > > > the Infragistics2.Win.UltraWinTabControl assembly reference which I
> > > > have
> > > > > > added along with the following code.
> > > > > >
> > > > > > public class Script
> > > > > > {
> > > > > > private Infragistics.Win.UltraWinTabControl.UltraTabControl
> > > > baseTabControl;
> > > > > >
> > > > > > public void InitializeCustomCode()
> > > > > > {
> > > > > > this.baseTabControl.SelectedTabChanged += new
> > > > > >
> > > > Infragistics.Win.UltraWinTabControl.SelectedTabChangedEventHandler(this.baseTabControl_SelectedTabChanged);
> > > > > > }
> > > > > >
> > > > > > public void DestroyCustomCode()
> > > > > > {
> > > > > > this.baseTabControl.SelectedTabChanged -= new
> > > > > >
> > > > Infragistics.Win.UltraWinTabControl.SelectedTabChangedEventHandler(this.baseTabControl_SelectedTabChanged);
> > > > > > }
> > > > > >
> > > > > > private void baseTabControl_SelectedTabChanged(object sender,
> > > > > > Infragistics.Win.UltraWinTabControl.SelectedTabChangedEventArgs args)
> > > > > > {
> > > > > > MessageBox.Show("You have selected tab " + args.Tab.Text.ToString());
> > > > > > }
> > > > > > }
> > > > > >
> > > > > > Sooo, the code compiles but I get a "Exception has been thrown by the
> > > > > > target of an invocation", "Object reference not set to an instance of
> > > > an
> > > > > > object" which tells me the InitializeCustomCode() call is wrong, but I
> > > > > > don't see why.
> > > > > >
> > > > > > Any ideas?
> > > > > > Tim
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > > > [Non-text portions of this message have been removed]
> > > > >
> > > >
> > > >
> > > >
> > >
> > >
> > > [Non-text portions of this message have been removed]
> > >
> >
>