cancel
Showing results for 
Search instead for 
Did you mean: 

ESS working time record review exit button

Former Member
0 Kudos

Hello,

I'm currently modifying the ESS record entry cats aplication, and I've been told to hide the exit button that appears at the review and save screen,

but I can't seem to find in which view is this exit button appearing.

Can anybody help me by showing me where can a I modify this?

Thank you very much!

Cheers,

Chris Noguera.

Accepted Solutions (1)

Accepted Solutions (1)

pramod_gopisetty1
Active Contributor
0 Kudos

Hi Christopher,

One way of doing it is :

Go to Content Administrator - Navigate to Employee Self-Service Role and Open it in Content Area - navigate to Record Working Time and click on Preview - Now do Personalization to hide the exit button on the Review and Save screen.

Make sure you clear the Navigation Cache to make the change visible to everyone.

Hope this helps.

Cheers-

Pramod

Former Member
0 Kudos

Hello Pramod,

Thank you very much for your reply,

I'll try it tomorrow and tell you how it goes.

Cheers.

Former Member
0 Kudos

So I tried it, but it didn't work,

Because the screen doesn't generate the button  when you execute the aplication from the content manager, but it helped me to find out witch component to modify.

I had to go and create a webdynpro development project for pcui_gp/xssutils development component. Inside I modifyied VcGenericButtons wd component view, at the modify view I wrote the code so it it doesn't show the exit button.

Thank you.

pramod_gopisetty1
Active Contributor
0 Kudos

Hi Christopher,

Good to hear the issue is fixed.

Can you share the coding as well for reference.

Cheers-
Pramod

Former Member
0 Kudos

Certainly,

This is the path at The WebDynpro explorer where you'll find  the view to modify,

And this is the code at the view wich I modified.

  public static void wdDoModifyView(IPrivateVcGenericButtonView wdThis, IPrivateVcGenericButtonView.IContextNode wdContext, com.sap.tc.webdynpro.progmodel.api.IWDView view, boolean firstTime)

  {

    //@@begin wdDoModifyView

        wdThis.wdGetVcGenericButtonController().updateButtons();

        IWDTransparentContainer tc =

            (IWDTransparentContainer) view.getElement("TC1");

        tc.removeAllChildren();

        for (int i = 0; i < wdContext.nodeButtons().size(); i++) {

            wdContext.nodeButtons().setLeadSelection(i);

            if (!wdContext.currentButtonsElement().getIsExitButton()) {  //NEW LINE OF CODE

           

                String btnID =

                    wdContext.currentButtonsElement().getId()

                        + "_"

                        + wdContext.currentButtonsElement().getViewid();

                tc.addChild(getButton(wdThis, wdContext, view));

            } // NEW LINE OF CODE

   

        }

    //@@end

  }

Fortunately the getIsExitButton method allready exists, so it made the job very easy.

Cheers,

Thanks again.

Answers (0)