cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

adding perspective chooser not working

Former Member
0 Likes
314

Hi All,

i've added perspective chooser "Commerce Search" in our custom backoffice config file in this way.

     <y:perspective-chooser xmlns:y="http://www.hybris.com/cockpitng/config/perspectiveChooser">
         <y:authority name="customersupportmanagerrole">
             <y:perspective id="CustomerSupport-Perspective"/>
              <y:perspective id="commerceSearch"/>
         </y:authority>
     </y:perspective-chooser>
 </context>

but it has not added, please help.

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member625836
Active Contributor
0 Likes

Hi ,

You are trying to filter perspectives by BackofficeRole while you should provide an authority there (see authorities attribute of BackofficeRole type).

Also you should rather switch to configuring Perspective Containerin this case rather then Perspective Chooser as this is a recommended approach since 6.5.

Cheers, Jacek

Former Member
0 Likes

Thanks Jacek for your reply. we are using Hybris 6.3

Former Member
0 Likes
     <y:perspective-chooser xmlns:y="http://www.hybris.com/cockpitng/config/perspectiveChooser">
         <y:authority name="customersupportmanagerrole">
             <y:perspective id="CustomerSupport-Perspective"/>
              <y:perspective id="commerceSearch"/>
         </y:authority>
     </y:perspective-chooser>
 </context>

this is full code

former_member625836
Active Contributor
0 Likes

Then you are fine - all you need to do is to change from role to authority.

former_member625836
Active Contributor
0 Likes

It is still based on role - please change it to authority. You can find some information here.

0 Likes

Hi

As attached in the pic, here the name of role is the same as authorities for that role assigned, but still changes do not reflect.

Could you let us know if this is correct. If not, what changes needs to be done here

Cheers, SM