This content has been marked as final. Show 2 replies
Put an additional VALIDATE(ITEM_SCOPE) in the button's code.1 person found this helpful
On your LOV button, in the when-button-pressed trigger, just do this:
If Form_Success then
I don't think you need anything on the key-next-item trigger. If the value of equip_code changes, the WVI trigger will run when focus (the cursor) leaves the field.
If you want to force validation immediately after the user chooses a value from the LOV, then you can change the List_Values; call above to Do_key('LIST_VALUES'); and then create a Key-ListVal trigger on the item. In its code, you would code: If Show_LOV('MY_LOV') then Validate(Item_Scope);
You should NOT put validation code in the key-next-item trigger, because it does not run if the user uses the mouse to click into a different field, or uses any number of other methods to leave the field.