on ‎2018 Dec 21 5:24 AM
Hi experts,
How to set feature attributes as readonly in backoffice based on type of attribute?
is there any service through which we can set this as readonly?
Note : i need this through java and not impex
Request clarification before answering.
By importing the following ImpEx, you can set Product.approvalStatus as readonly for boprodmgr
$passwordEncoding=md5
$defaultPassword=1234
$setPassword=@encodedPassword[translator=de.hybris.platform.impex.jalo.translators.ConvertPlaintextToEncodedUserPasswordTranslator][default='$passwordEncoding:$defaultPassword']
INSERT_UPDATE UserGroup;UID[unique=true];groups(uid)[mode=append]
;boproductmanagergroup;backofficeproductmanagergroup
INSERT_UPDATE Employee;UID[unique=true]
;boprodmgr
UPDATE Employee;UID[unique=true];$setPassword;groups(uid);sessionLanguage(isocode);sessionCurrency(isocode)
;boprodmgr;;boproductmanagergroup;en;EUR
$START_USERRIGHTS
Type;UID;MemberOfGroups;Password;Target;read;change;create;delete;change_perm
UserGroup;boproductmanagergroup
;;;;Product.approvalStatus;;-;;;
$END_USERRIGHTS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
My suggestions will not be through java, but you may find these also helpful.
Firstly, we can set the attribute modifier as readonly="true" in *backoffice-config.xml to make our attributes not editable in backoffice.
Secondly, we can use the Access Rights for a usergroup to specify that it has only read access to the attribute. This change will work for all tools. More information https://wiki.hybris.com/display/release5/Access+Rights
I hope these will be a solution for you.
Best Regards,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.