cancel
Showing results for 
Search instead for 
Did you mean: 

Web Shop : My Account Default Left Menu Item

jibin_joy
Contributor
0 Kudos

Hi ,

Is it possible to set default Left menu Item . For Example in below screen , when I navigate to my Account (Has been Renamed to Home ) by default Personal Data has to be selected !!!

Please let me know if any Information Required !!!

Regards,

Jibin Joy

Accepted Solutions (1)

Accepted Solutions (1)

steffen_mueller3
Participant
0 Kudos

Hi Jibin,

in the WCEM standard, that feature does unfortunately not exist. I recommend that you create your own TreeVCHandlerJSF.java that replaces the default one.

Start with a debug session for TreeVCHandlerJSF to see how it works. Set breakpoints in validateBeforeRendering(), navigateToNodeOutcome(). Check the TreeModel about selected views, check/ modify member selectedMyAccountNodeID.

After having understood how the view handler works, you should be able to implement the requested functionality.

Best regards,

   Steffen

jibin_joy
Contributor
0 Kudos

Hi Steffen ,

We will try as mentioned if succeed we will share the Solution !!!

Regards,

Jibin Joy

jibin_joy
Contributor
0 Kudos

Hi Steffen,

I am trying override View Component Handler

<ViewComponent name="tree"

componentHandlerClassName="com.customer.wec.app.comm.module.myaccounts.ui.impl.TreeVCHandler" />

in my extended module of myaccounts in ui-repository.xml

TreeVCHandler.java

package com.customer.wec.app.comm.module.myaccounts.ui.impl;

import com.sap.wec.app.comm.module.myaccounts.ui.beans.runtime.TreeVCHandlerJSF;

public class TreeVCHandler extends TreeVCHandlerJSF{

  @Override

  public String validateBeforeRendering() {

  this.setSelectedMyAccountNodeId("I2");

  return super.validateBeforeRendering();

  }

}

added following dependency

but getting error after webshop login

Please help us to resolve this issue !!!

Regards,

Jibin Joy

steffen_mueller3
Participant
0 Kudos

Hi Jibin,

please have a look at the WCEM Dev & Ext Guide, chapter 9. There, you find guidance how to extend the SAP WCEM standard.

Please do not modify any WCEM SAP standard classes! Implement extensions in your own namespace. I suppose that some dependencies between the modules is not correctly maintained.

Best regards,

   Steffen

jibin_joy
Contributor
0 Kudos

Hi Steffen ,

I referred same document for extending  the SAP WCEM standard and I have extended myaccount. module . No Std class has been changed


Regards,

Jibin Joy

steffen_mueller3
Participant
0 Kudos

Hi Jibin,

fine. No standard changed. 🙂

The error message says that the standard WCEM can't be found. It is probably not deployed. Please check the assembly files. Are the modules built without errors?

Steffen

jibin_joy
Contributor
0 Kudos

Hi Steffen ,

- While Building extended version of myaccounts there was no error .

- Can I know which assembly files I have verify

- In Server ,  DC's looks good

 

Regards,

Jibin Joy

steffen_mueller3
Participant
0 Kudos

Hi Jibin,

what have you deployed? if all dependencies are fine, you should deploy only the custom wcb main application: all other modules are taken into account automatically.

Best regards,

   Steffen

Answers (0)