Initially i have written coding part in close method of specific form.Form contains two tabs namely overview and contact info.
when I close the form I should get navigated to email field in contact info tab.Can anyone suggest me how to resolve this issue?
I have used set focus method but it didn’t work.
emailfield.setfocus();
This doesn’t make sense to me. Why do you want to set focus on specific field, if you want to close the form.
Please elaborate.
I just want to validate that field without using mandatory and if the particular field is empty an yesno dialog button opens and if we click yes then it should focus on that field .
Please suggest me a possible solution?
For that purpose you don’t need to set focus on that field. Just validate that field value and throw error.
Hello,
as Kranthi wrote you can directly use validate field value to achieve it, but if you still want to go with your way you can use setFocus() on your ‘YES’ button clicked.
desiredControlName.setFocus();
Thanks for the reply.
I have found out the solution…
thanks for the reply.
Formdatasource.findrecord(Mybuffer);
controlname.setfocus();
finally this solution worked for me…