Home
»
Microsoft Dynamics AX
»
Afsar's Microsoft Dynamics AX knowledge arena
»
Set focus on specific control when opening form
Set focus on specific control when opening form
About
About Afsar's Microsoft Dynamics AX knowledge arena
Badges
Options
RSS for posts
Related Posts
How to set focus when first time opening form
by
VolodymyrMy
on
6 Dec 2010
0
comments
Segmented Entry Control on Forms in Dynamics AX 2012 [Ledger Dimension/Ledger account lookup X++]
by
Mukesh Hirwani
on
14 Jun 2012
0
comments
How add financial dimension on forms inside Ax2012
by
Mukesh Hirwani
on
7 Sep 2012
0
comments
View More
Set focus on specific control when opening form
Muhammad Afsar Khan
17 Oct 2011 6:32 AM
Comments
0
To set the focus on specific control when form is open, you need to override the firstField() method of the form and set your desired control after super() call.
public void firstField(int _flags=1)
{
;
super(_flags);
desiredControlName.setFocus();
}
$core_v2_language.FormatString($core_v2_language.GetResource('Blog_PostQuestionAnswerView_CommentsCountFormatString'), $post.CommentCount)
Read the complete post at
mafsarkhan.blogspot.com/.../set-focus-on-specific-control-when.html