Page 1 of 1

statements

Posted: September 13th, 2018, 2:27 am
by abettizzo1
hello, i seem to have some confusion on the following statements:
1. onfocus
2. killfocus
please can you tell me how i can use these 2 statements

waiting your help

Re: statements

Posted: September 13th, 2018, 10:17 am
by Gregory Martin
Have you read the helps on these statements?

http://www.csprousers.org/help/CSPro/on ... ement.html
http://www.csprousers.org/help/CSPro/ki ... ement.html

Almost no application will ever use killfocus. Onfocus is useful though for CAPI applications. It is triggered when moving both forwards and backwards into a field, unlike preproc which is only triggered when moving forwards.

Generally you will use onfocus when constructing a dynamic value set on a roster. Because you may move backwards into a previous row, you will want the value set to be recreated every time that you get to the the field.