Lock ComboBox
Tom Verkerk
Hello everyone,Can someone help met to change the script below for locking a ComboBox.
//locks fields in the list
string[] itemsToLock = new string[]{ "20" };
LockFields(pVal.Form, itemsToLock);
return true;
Thanks in advance,
Tom Verkerk
Michael Egloff
Hi Tom,"LockFields" is a function in the global code. Have a look there. And if you need more help, post the code from this function here to this thread.
Regards, Michael
Tom Verkerk
Hello Michael,I generated the code above with the Wizard, but this doesn't function with a ComboBox so I want to know how to edit this code.
Kind Regards
Tom
Tom Verkerk
Hello Michael,I have tried to Lock a ComboBox with the Wizard in the Business Partner Form and also in the Item Master Data Form, this is no problem, this works fine.
When I want to Lock a Field in Stock Management -> Stock Transactions -> Stock Transfer the Customize Message Bar said "Item successfully marked as unchangeable: itemUID: 18 formType: 940" but it doesn't Lock the field. I have also tried other fields in this formType 940 but I also cannot locked them.
I hope you can solve this problem for me.
Best Regards
Tom
0
Please sign in to leave a comment.
Comments
0 comments