0

I cant reset protection to one field.

Hello,

screenControl is a class, which makes sense in connection with a screen. setProtection is a method of the ScreenControl class. The setProtection method expects the corresponding editor instance, i.e. the field providers, as well as the field to be protected as either the field as a string or type-safe as a TypedField instance. The last parameter of the setProtection method is a value of the type boolean that determines whether the field protection should be activated or deactivated.

import de.abas.erp.axi.screen.ScreenControl;

With this code I protect all fields:

screenControl.setProtection(head, true);

**After that I want to reset protection of one field. I use this code, but it doesn`t work. **

screenControl.setProtection(head, field, false);

2
  • What is screenControl? You need to add more information to your question and ideally some more code including your imports, class and methods Commented Mar 19, 2024 at 2:28
  • ScreenControl is a classs, which makes sense in connection with a screen. Commented Mar 20, 2024 at 11:08

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.