Lock combo box in update mode only
John O'Brien
Hi all,My Lock Field Optimizer Rule does not seem to be working correctly.
I have a lock field rule that locks the 'Set GL Method' field on the item master (Form 150) and that one is working correctly.
This rule fires for all form modes.
Now I want to block the 'Copy To' button on the Stock Transfer Request form when the form is in update mode only.
After adding this rule and changing the form mode in the rule, the field is always available and can always be clicked.
So the rule is not functioning.
Can someone please let me know what I am doing wrong, or if there is an issue with this functionality?
Thanks,
John
[attachment=299:LockField.JPG]
[attachment=300:LockField1.JPG]
John O'Brien
Hi guys,Anyone got any ideas on this one?
It's a simple lock field rule. Doesn't seem to work for update mode.
Thanks,
John
Lorenz Stierlin
Hi JohnThe lock functionality is not designed for other modes.
But you can easily implement the rule like this:
- Form: 1250000940
- Item: 1250000073
- Event: ComboSelect
- Before: Yes
- Mode: Update
Code:
SwissAddonFramework.Messaging.StatusBar.WriteError("Field is locked in Update Mode.");
return false;
I hope this will help you.
Kind Regards,
Lorenz
John O'Brien
Excellent Lorenz. That worked. Only had to change the event to click as that item is not actually a combo!Thanks a lot for your help.
John
0
Please sign in to leave a comment.
Comments
0 comments