Applying focus after a clear screen

Version 9.05.605

I used this code:

private static void baseToolbarsManager_ToolClick(object sender, Infragistics.Win.UltraWinToolbars.ToolClickEventArgs args)
{
if (args.Tool.Key == "ClearTool")
{
EpiTextBox txtOrderNum = (EpiTextBox)csm.GetNativeControlReference("8e8baac3-68d9-424c-8b27-e3e3c08e6bf5");
txtOrderNum.Focus();
}
}

and when I run it through the debugger, it works initially but the screen is still populated with data so when Epicor clears the screen, it puts the focus back on the first field (which isn't the field I want to have focus).

--- In vantage@yahoogroups.com, Jose Gomez <jose@...> wrote:
>
> What version?
> If 9> you should have a ToolClick Wizard you can use for the "ClearTool"
>
> *Jose C Gomez*
> *Software Engineer*
> *
> *
> *checkout my new blog <http://www.usdoingstuff.com> *
> *
> *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 Fri, Apr 20, 2012 at 1:40 PM, altyrocks <alty_rocks@...> wrote:
>
> > **
> >
> >
> > Is there a way to force focus into a field after you hit the eraser to
> > clear the screen? When I do the tracing after a clear, the log file is
> > empty. I am able to force focus into a field when the screen launches by
> > using the beforeAdapter method but can't seem to get it to work after I hit
> > the clear button.
> >
> >
> >
>
>
> [Non-text portions of this message have been removed]
>
Is there a way to force focus into a field after you hit the eraser to clear the screen? When I do the tracing after a clear, the log file is empty. I am able to force focus into a field when the screen launches by using the beforeAdapter method but can't seem to get it to work after I hit the clear button.
What version?
If 9> you should have a ToolClick Wizard you can use for the "ClearTool"

*Jose C Gomez*
*Software Engineer*
*
*
*checkout my new blog <http://www.usdoingstuff.com> *
*
*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 Fri, Apr 20, 2012 at 1:40 PM, altyrocks <alty_rocks@...> wrote:

> **
>
>
> Is there a way to force focus into a field after you hit the eraser to
> clear the screen? When I do the tracing after a clear, the log file is
> empty. I am able to force focus into a field when the screen launches by
> using the beforeAdapter method but can't seem to get it to work after I hit
> the clear button.
>
>
>


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