Jump to field code?

I had an issue where user wanted a specific tab order in the sales
order entry form. I dutifully went through and set the tab order to
every entry control on the tab in customization. When saved and
opened, the fields tabbed through just like original un customised
form....

I concur, that sometimes in some forms, regardles of what *YOU* set
the properties to be, the undelying code for the form makes them
useless.

In desperation, I took a brute force approach. I mirrored every
control that got tabbed to, and set the tab stop property to false in
code. Even that got reset, so I made an event handler for each
control and set the tab stop to false if tab stop changed and was
true.

Finally it works the way *WE* want it to...

You should be able to mirror (set a reference to the base form field)
and then use the focus() method to position the cursor there in your
button click event.....

Good Luck

--- In vantage@yahoogroups.com, Robert Brown <robertb_versa@...>
wrote:
>
> I misunderstood your original email entirely.
>
> I thought you simply wanted to set the sequence that TABbing
would cycle you through all visible objects on the form. That is done
by clicking on an object in customization mode and looking at its
properties panel. One editable property that can be saved via
customization (and perhaps personalization as well) is the tab
sequence number property.
>
> Now I get it. You have a custom button and a Subroutine that
fires off when some event like MouseClick(), Enter(), GotFocus()
happens to the your button.
>
> The subroutine does some processing based upon you code - and
then you want to ChangeFocus() from the button to some other specific
field on screen as the last step in the sub.
>
> This would be a 3 second exercise with an MS-VbScript enabled
product as it intended to automatically do repetitive key board &
mouse activities upon being triggered.
>
> VB is event driven and it seems this (Infragistics?) flavor is
tough to get to behave like VbScript. It's like they went out of
there to drop support of common (to MS-VB & MS-VbScript) objects and
functions that would make your task a snap:
>
> In VbScript is would be a simple Select.[your_field_object_name]
with perhaps an additional Activate.[your_field_object_name]. (You
might also try putting .Activate or .Select after, instead of before,
your control object name.)
>
> Since all these languages seem to be merging into one similar
glob of keywords, try anything that sounds like it might do what you
want: myobject.GetFocus, etc.,
>
> Mess with the syntax if your first guess doesn't work:
myobject.GetFocus(), etc.,
>
> Search technet for code examples, etc.,.. The MS VB programming
reference (on line) is free and might help you out.
>
> Rob Brown
>
>
>
>
> Ken Williams <ken@...> wrote:
> Are you saying something like setting txtfield.TabSeq=1?
Basically what it is, I have a button. When this button is pushed and
does it's code, I'd like for it to jump to a specific field on the
screen. Or perhaps I'm making it overly complicated and I just need
to set the button to tabseq 1 and the field to tabseq 2, but I
believe it doesn't appear to tab anywhere after I push the button.
>
> I'll play with this tomorrow and report back.
>
> ________________________________
>
> From: vantage@yahoogroups.com on behalf of Robert Brown
> Sent: Thu 2/7/2008 4:32 PM
> To: vantage@yahoogroups.com
> Subject: Re: [Vantage] Jump to field code?
>
> Theoretically, you can set a form's tab sequence for each field.
Reality: It doesn't always seem to be enforced. Seems very dependent
upon the form.
>
> I just tried to make the "OK" button tab seq 1 on the Job
Entry, "Get Details" rev selection/submittal form. (Failed to impact
the behavior.
>
> I did the same to Job Scheduling and it worked like a charm.
>
> Only way to be sure is to try it.
>
> Rob Brown
>
> Ken Williams <ken@... <mailto:ken%40intermountainelectronics.com> >
wrote:
> Is there any way of moving the cursor to a specific field following
some
> custom code?
>
> Ken
>
> [Non-text portions of this message have been removed]
>
> ---------------------------------
> Be a better friend, newshound, and know-it-all with Yahoo! Mobile.
Try it now.
>
> [Non-text portions of this message have been removed]
>
> [Non-text portions of this message have been removed]
>
>
>
>
>
>
> ---------------------------------
> Looking for last minute shopping deals? Find them fast with Yahoo!
Search.
>
> [Non-text portions of this message have been removed]
>
Is there any way of moving the cursor to a specific field following some
custom code?

Ken


[Non-text portions of this message have been removed]
Theoretically, you can set a form's tab sequence for each field. Reality: It doesn't always seem to be enforced. Seems very dependent upon the form.

I just tried to make the "OK" button tab seq 1 on the Job Entry, "Get Details" rev selection/submittal form. (Failed to impact the behavior.

I did the same to Job Scheduling and it worked like a charm.

Only way to be sure is to try it.

Rob Brown

Ken Williams <ken@...> wrote:
Is there any way of moving the cursor to a specific field following some
custom code?

Ken

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






---------------------------------
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.

[Non-text portions of this message have been removed]
Are you saying something like setting txtfield.TabSeq=1? Basically what it is, I have a button. When this button is pushed and does it's code, I'd like for it to jump to a specific field on the screen. Or perhaps I'm making it overly complicated and I just need to set the button to tabseq 1 and the field to tabseq 2, but I believe it doesn't appear to tab anywhere after I push the button.

I'll play with this tomorrow and report back.

________________________________

From: vantage@yahoogroups.com on behalf of Robert Brown
Sent: Thu 2/7/2008 4:32 PM
To: vantage@yahoogroups.com
Subject: Re: [Vantage] Jump to field code?



Theoretically, you can set a form's tab sequence for each field. Reality: It doesn't always seem to be enforced. Seems very dependent upon the form.

I just tried to make the "OK" button tab seq 1 on the Job Entry, "Get Details" rev selection/submittal form. (Failed to impact the behavior.

I did the same to Job Scheduling and it worked like a charm.

Only way to be sure is to try it.

Rob Brown

Ken Williams <ken@... <mailto:ken%40intermountainelectronics.com> > wrote:
Is there any way of moving the cursor to a specific field following some
custom code?

Ken

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

---------------------------------
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.

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






[Non-text portions of this message have been removed]
I misunderstood your original email entirely.

I thought you simply wanted to set the sequence that TABbing would cycle you through all visible objects on the form. That is done by clicking on an object in customization mode and looking at its properties panel. One editable property that can be saved via customization (and perhaps personalization as well) is the tab sequence number property.

Now I get it. You have a custom button and a Subroutine that fires off when some event like MouseClick(), Enter(), GotFocus() happens to the your button.

The subroutine does some processing based upon you code - and then you want to ChangeFocus() from the button to some other specific field on screen as the last step in the sub.

This would be a 3 second exercise with an MS-VbScript enabled product as it intended to automatically do repetitive key board & mouse activities upon being triggered.

VB is event driven and it seems this (Infragistics?) flavor is tough to get to behave like VbScript. It's like they went out of there to drop support of common (to MS-VB & MS-VbScript) objects and functions that would make your task a snap:

In VbScript is would be a simple Select.[your_field_object_name] with perhaps an additional Activate.[your_field_object_name]. (You might also try putting .Activate or .Select after, instead of before, your control object name.)

Since all these languages seem to be merging into one similar glob of keywords, try anything that sounds like it might do what you want: myobject.GetFocus, etc.,

Mess with the syntax if your first guess doesn't work: myobject.GetFocus(), etc.,

Search technet for code examples, etc.,.. The MS VB programming reference (on line) is free and might help you out.

Rob Brown




Ken Williams <ken@...> wrote:
Are you saying something like setting txtfield.TabSeq=1? Basically what it is, I have a button. When this button is pushed and does it's code, I'd like for it to jump to a specific field on the screen. Or perhaps I'm making it overly complicated and I just need to set the button to tabseq 1 and the field to tabseq 2, but I believe it doesn't appear to tab anywhere after I push the button.

I'll play with this tomorrow and report back.

________________________________

From: vantage@yahoogroups.com on behalf of Robert Brown
Sent: Thu 2/7/2008 4:32 PM
To: vantage@yahoogroups.com
Subject: Re: [Vantage] Jump to field code?

Theoretically, you can set a form's tab sequence for each field. Reality: It doesn't always seem to be enforced. Seems very dependent upon the form.

I just tried to make the "OK" button tab seq 1 on the Job Entry, "Get Details" rev selection/submittal form. (Failed to impact the behavior.

I did the same to Job Scheduling and it worked like a charm.

Only way to be sure is to try it.

Rob Brown

Ken Williams <ken@... <mailto:ken%40intermountainelectronics.com> > wrote:
Is there any way of moving the cursor to a specific field following some
custom code?

Ken

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

---------------------------------
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.

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

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






---------------------------------
Looking for last minute shopping deals? Find them fast with Yahoo! Search.

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