Page 1 of 1

Changing "Out of Range" warning message

Posted: November 6th, 2018, 2:39 am
by Bhupender11
Can anybody tell me that how could i change warning message "Out of range! Please enter a valid value for Gender" to another message.

Re: Changing "Out of Range" warning message

Posted: November 6th, 2018, 1:56 pm
by aaronw
In your installation directory open "CSProRuntime.en.mgf." Search for the warning message "Out of range! Please enter a valid value for" and edit it. Rerun CSEntry, so the change takes effect.

Re: Changing "Out of Range" warning message

Posted: November 14th, 2018, 7:34 am
by Bhupender11
Thanks

Re: Changing "Out of Range" warning message

Posted: November 30th, 2018, 5:18 am
by Bhupender11
If any field is "out of range" then through coding can we change the message and move it to previous question.
How can we manage it, If anybody have the code then please share it.

Re: Changing "Out of Range" warning message

Posted: November 30th, 2018, 8:27 am
by Gregory Martin
The "out of range" check occurs before any logic is executed. If you want to do the checks yourself in logic, then you should not include a value set for the item or allow out of range values via logic, and then you can program your own checks. To allow out of range values, you can do this in logic with this: http://www.csprousers.org/help/CSPro/se ... ement.html

Re: Changing "Out of Range" warning message

Posted: December 1st, 2018, 4:08 am
by Bhupender11
I have attached application in which unique id is written and then village code is same as unique id.
Here if Village code matches with the unique id then its ok otherwise it shows "Out of Range" warning message and application get close.
I want here to check the valueset is same as unique id or not before closing the application.

Re: Changing "Out of Range" warning message

Posted: December 1st, 2018, 4:14 am
by Bhupender11
Forgot to attach application

Re: Changing "Out of Range" warning message

Posted: December 3rd, 2018, 6:07 am
by Gregory Martin
The problem is that you are protecting the field VILLAGE_NAME. If that field fails the validation checks, then CSEntry will close. So, for example, if you enter 10 for VILLAGE_CODE, then you won't have a problem. However, if you enter 50, then CSEntry will close because your logic assigns 50 to VILLAGE_NAME, and because that is not in the value set, CSEntry will show you the error and then close. Protected fields is an advanced feature and you may want to verify if your application requires the use of such a feature.