cancel
Showing results for 
Search instead for 
Did you mean: 

node modification in cs-explorer-tree

09-26-2019 4:28 PM
766 views 4 comments
0 Likes
SAP Managed Tags
Subscribe

Hi!

I need to hidden a node from explorer tree on customer support backoffice. I'd created a custome backoffice extension and I've tried to do:

        <context component="cs-explorer-tree" module="customersupportbackoffice" principal="customersupportagentrole" merge-by="module">
          <n:explorer-tree title="customer_support">
             <n:type-node  code="Customer" id="customersupport_backoffice_explorerTree_customers" />
             <n:type-node id="customersupportbackoffice.typenode.order.all" />
          </n:explorer-tree>
       </context>

I've logged in backoffice with the CustomerSupportAgent user and all nodes still appear.

0 Likes

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Likes

It still doesn't work. I may have written something wrong. I've tried two forms:

1º

<context component="cs-explorer-tree" module="customersupportbackoffice" principal="customersupportadministratorrole,customersupportmanagerrole,customersupportagentrole">
      <n:explorer-tree xmlns:n="http://www.hybris.com/cockpitng/config/explorertree">
          <n:type-node code="CsTicket" id="customersupport_backoffice_explorerTree_tickets" merge-mode="remove"/>
          <n:type-node code="CustomerReview" id="customersupport_backoffice_explorerTree_reviews" merge-mode="remove"/>
          <n:type-node code="CustomerVendorReview" id="customersupport_backoffice_explorerTree_vendorReviews" merge-mode="remove"/>
          <n:type-node code="Customer" id="customersupport_backoffice_explorerTree_customers"/>
          <n:type-node code="AuditReportData" id="customersupport_backoffice_explorerTree_personaldatareport" merge-mode="remove"/>
          <n:type-node id="customersupportbackoffice.typenode.order.all" />
          <n:type-node id="customersupportbackoffice.typenode.all.returns" merge-mode="remove" />
      </n:explorer-tree>
  </context> 

2º

<context component="cs-explorer-tree" module="customersupportbackoffice" principal="customersupportadministratorrole,customersupportmanagerrole,customersupportagentrole" merge-by="principal" merge-mode="remove" >
   <n:explorer-tree xmlns:n="http://www.hybris.com/cockpitng/config/explorertree">
      <n:type-node code="Customer" id="customersupport_backoffice_explorerTree_customers" />
   </n:explorer-tree>
</context>
arvind-kumar_avinash
Active Contributor
0 Likes

Hi María Pilar Casas - in both forms, I can see n:navigation-node missing (please look for it in my answer). Please include it and try again.

arvind-kumar_avinash
Active Contributor
0 Likes

Hi María Pilar Casas - you need to use merge-mode="remove" with the node that you want to hide e.g.

<context component="cs-explorer-tree" module="customersupportbackoffice" principal="customersupportagentrole" merge-by="principal">
	<n:explorer-tree xmlns:n="http://www.hybris.com/cockpitng/config/explorertree">
		<n:navigation-node id="xxxxxxxxxxxx">
			<n:type-node  code="Customer" id="customersupport_backoffice_explorerTree_customers" merge-mode="REMOVE"/>
		</n:navigation-node>
	</n:explorer-tree>
</context><br>

Please check https://help.sap.com/viewer/5c9ea0c629214e42b727bf08800d8dfa/1905/en-US/8bd51bcd8669101486cec32d579b... for reference.

hkasimkhan
Discoverer
0 Likes

Not working. There is navigation node defined for CS backoffice nodes