Showing results for 
Search instead for 
Do you mean 
Community Home Request Access Read Blogs Share Your Ideas Search Community View My Settings
Reply
Copper Super Contributor
Posts: 104
Registered: ‎06-29-2009

Focus on control

Hello,

 

Simple question :

I have a new field : VATNumber

I check if this vat number is correct. (OnChange Action)

But if it's not correct I would like to go to this control.

How can I do that ?

 

Ben

 

Silver Contributor
Posts: 1,262
Registered: ‎04-08-2009

Re: Focus on control

Hi,

 

I assume you are in the lan client.

If so just do something like

yourcontrol.setfocus

 

Hope this helps!

Alexander

Copper Super Contributor
Posts: 104
Registered: ‎06-29-2009

Re: Focus on control

No this is in SalesLogix Web 7.5.1...

 

Highlighted
Nickel Contributor
Posts: 92
Registered: ‎03-30-2009

Re: Focus on control

Similar thing Ben.

 

MyControl.Focus();

 

I added this to the LoadAction of the account details form and it worked as expected.

I talked with one of the developers and he mentioned that you should be cautious of dialogues etc since there is a lot of "stuff" going on when these load.

 

Perhaps some details forms will also try and do something that will mess with focus, but it should work on most - it did for me as expected!

 

I will post the video in the developer subscription (training.crm@sage.com if you do not have it).

Ben - email me directly if you need it quickly. The requestor always get the video direct Smiley Happy