Skip to Content
author's profile photo Former Member
Former Member

How to call "navigation panel collapse" event

Hi,

I need to create a link (in a jsp) to forced the navigation panel to collapse itself.

To do this in my jsp, I get back the script reference of the standard pageToolBar.par and I call the same javascript function as the one call by it.

So I have:

  • The reference script:

<script language='JavaScript' src='<%=componentRequest.getResource("com.sap.portal.layouts.framework", IResource.SCRIPT, "scripts/scenario/WAandNavPanel.js").getResourceInformation().getURL(componentRequest)%>'></script>

And the function called:

expNavPanel_onclick();

But it still does not work ...

Has somebody any idea ?

Thanks,

Fabien

PS: How can I forced other event as: call pageToolBar personnalize window ...?

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Sep 26, 2005 at 04:40 PM

    You are correct, this method is in the javascript file, however, as long as you are using the standard portal this Javascript file is already included in the output to the browser. Therefore you would probably need something like the following

    <script>

    innerPage= "pcd:portal_content/com.sap.pct/every_user/general/com.sap.portal.frameworkpage/com.sap.portal.innerpage";

    innerPageWindow = pageSupport.getIvuFrameWindow(innerPage);

    innerPageWindow.collapsePanel();

    </script>

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 26, 2005 at 04:24 PM

    Hi

    you can call the Javascript method collapsePanel() which should collapse the navpanel

    I hope this helps

    Darrell

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Darell,

      But do you need to import the javascript file reference in your application ?

      Because the declaration of this function is in the file

      WAandNavPanel.js which I refer to, as I explain in the previous message.

      But it still does not work ..

      Regards,

      Fabien

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.