Show function in preproc of protected field
Posted: March 30th, 2014, 7:05 am
Hi there
I have a protected field as the first field on a multiple-occurring record. At the preproc of the field I use the show function to give a list of names, from which the value of the protected field is chosen. This works fine when the tick of the show function is clicked, but if the red cross or the escape button are used, I get a message saying that the value for the field is out of range, which leads to a "clean-up" and the data entry application shutting down. I've got around this a bit by adding some logic saying that if the value of the show function is 0, I should return to the previous field. My problem is that that starting a new occurrence - and therefore coming to this protected field - can be triggered by a number of fields in the previous occurrence. So my question is - is there a way of not triggering the error messages when the value returned by the show function is 0; or is there a way of saying in logic "if show=0, return to the previous field (ie most recently left field) in the previous occurrence", without having to specify the name of the previous field?
Many thanks in advance for your help.
All the best
Keith
I have a protected field as the first field on a multiple-occurring record. At the preproc of the field I use the show function to give a list of names, from which the value of the protected field is chosen. This works fine when the tick of the show function is clicked, but if the red cross or the escape button are used, I get a message saying that the value for the field is out of range, which leads to a "clean-up" and the data entry application shutting down. I've got around this a bit by adding some logic saying that if the value of the show function is 0, I should return to the previous field. My problem is that that starting a new occurrence - and therefore coming to this protected field - can be triggered by a number of fields in the previous occurrence. So my question is - is there a way of not triggering the error messages when the value returned by the show function is 0; or is there a way of saying in logic "if show=0, return to the previous field (ie most recently left field) in the previous occurrence", without having to specify the name of the previous field?
Many thanks in advance for your help.
All the best
Keith