Clarifications required in a Trigger???

Hi Everybody,
If i am providing "RETURN NO-APPLY" with in ANY-PRINTABLE trigger for the field then i am not able to enter any value to the same. Can anyone explain me briefly what exactly RETURN NO-APPLY does here?

Why is it happening so???

DEFINE VARIABLE field1 AS CHARACTER NO-UNDO.

DEFINE FRAME frame1
field1.

ON ANY-PRINTABLE OF field1 IN FRAME frame1
DO:
RETURN NO-APPLY.
END. /** ON ANY-PRINTABLE OF field1 **/

/** Start of Main **/
UPDATE field1 WITH FRAME frame1.
Please do the needful. Thanks in advance.
 
Simply put, it returns you where you (read the Progress Client) came from when the event fired - it was probably sitting somewhere in a wait-for or something - without actually applying the event (in this case a character that was entered) to the object. There are many uses for return no-apply since it not only works in any-printable events but can basically be used in any user-interface event (for instance on leave of an object, return no-apply will make the leave not happen).

So in case of your example, a return no-apply in an any-printable event causes the character you typed not to show in field1.
 
I don't get you exactly. U have mentioned like "SOMETHING", can u be bit clear on the information provided???

I have basic knowledge on what RETURN NO-APPLY does. But i am not clear wat it does in this particular scenario. Y is that the value not getting displayed on the text field???
 
The value does not get displayed because the character that was typed in is not applied to the field (no-apply).
 
Back
Top