Page title bar

Hi, we have the requirement of have a bar where only display the title of the page that is actually showing in the portal, nothing more, not commands...
Anybody know the code to read the page title? With the layout tag library or framework tag library is not possible.
Another option could be modify the page toolbar standar but I have seen that is build with js and not have a jsp, the light page toolbar does not show the page title.
Thanks in advanced.
Regards.

Hi Optima,
<i>The concept to get the title of the page is in following code:</i>
import javax.naming.InitialContext;
some other import also.
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY, IPcdContext.PCD_INITIAL_CONTEXT_FACTORY);
env.put(Context.SECURITY_PRINCIPAL, request.getUser());
env.put(Constants.REQUESTED_ASPECT, PcmConstants.ASPECT_SEMANTICS);
InitialContext ctx = new InitialContext(env);
IPage pageResult = (IPage) iCtx.lookup(<b>pageID</b>);
Bean Vo = new Bean();
Vo.setTitle(pageResult.getAttribut("com.sap.portal.pcm.Title",request.getLocale());
<i>page result is a method in abstract public interface com.sap.portal.pcm.page.IPage
and the jar to refrence is  com.sap.portal.ivs.api_iview_api.jar.
To get the page id just search in PCD something like this</i>
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY, IPcdContext.PCD_INITIAL_CONTEXT_FACTORY);
env.put(Context.SECURITY_PRINCIPAL, request.getUser());
env.put(Constants.REQUESTED_ASPECT, PcmConstants.ASPECT_SEMANTICS);
InitialContext  ctx = new InitialContext(env);
dirCtx =(DirContext) ctx.lookup("pcd:portal_content/");
PcdSearchControls pcdSearchControls = new PcdSearchControls();
pcdSearchControls.setReturningObjFlag(false);
pcdSearchControls.setSearchScope(PcdSearchControls.SUBTREE_WITH_UNIT_ROOTS_SCOPE);
dirCtx.addToEnvironment(Constants.APPLY_ASPECT_TO_CONTEXTS,                         Constants.APPLY_ASPECT_TO_CONTEXTS);
NamingEnumeration ne =  dirCtx.search("","(com.sap.portal.pcd.gl.ObjectClass=com.sapportals.portal.page)",
pcdSearchControls);
pageList = new ArrayList();
int i = 0;
while (ne.hasMoreElements()) {
lookupbean = new PEILookupbean();
i++;
IPcdSearchResult searchResult =     (IPcdSearchResult) ne.nextElement();
String location = "pcd:portal_content/" + searchResult.getName();
lookbean.setLabel(location);
lookupbean.setHostName(serverName);
lookupbean.setComponentType(PEIConstants.COMPONENT_TYPE_P);
pageList.add(lookupbean);
<i>Try this, hope it worked.
PS: If helpful award points
--Deepak.</i>

Similar Messages

  • Need to add a link on Page title bar

    HI,
    Can i know how can i add a link on page title bar.
    When i click on that link, it should open  a page in a separate window.
    Regards,
    Raju

    Hi,
    i am talking about portal only.
    once you login, you can see history, back and forward links on top of page title bar.
    Now i need to add one more link just beside history.
    Can you please give me brief idea on customisation of page title bar.
    Regards,
    Raju

  • Disable Refresh menu option on Page Title Bar

    Hi,
    We have a TLN node that opens an iview in a new window. Therefore nothing is displayed in the portal page. However the Page Title Bar menu still has all the options (Open in New Window, Refresh, Details etc.) and if a user selects Refresh, it throws a portal runtime error (iView not found: .default). How can I disable the menu options for this iview? I have tried setting the Show Refresh etc. parameters to No but it didn't work - I assume because the iview isn't being opened in the portal page.
    Many thanks
    Jane

    hi
    the iview you need to explore is page title bar i view in default framework page available in  portal standard user  directory in portal content.In this context i would like to suggest a solution why don,t you creat a default framework page just copy it in your folder  and open it and disable all checkboxes associated to page title bar and save after that go on to create a deskttop in portal display in system configuration and add your framework page and theme from themes in portal content and then add a rule to the main rule in super administrators  folder which will for role of the user will display onle that desktop.i have illustrated the concept of branding if you want to avoid codeing or command groups which is long approach.hope this helps youplease do not forget to give points
    with regards
    subrato kundu

  • Page history in the page title bar

    Hi,
        I have customized default masthead and  tln.
        I created iView that contains both customized masthead and tln.
        now in the page title bar. only the current page  is maintained in the history of the titile bar.
        previous pages are not maintained in the history...
        how to make history containing all pages...
    Regards,
    Shanthakumar.

    Hi Shanthakumar,
    I am implementing a custom iView which should show me the History in the same way as the page Title Bar iView works with History set to ON.
    The code which i used in the JSP is as follows:
    <nav:iterateNavNodesInSelectedPath>
              <nav:ifNotNavNodeEqualsLaunchedNavNode>
                   <span style="color= #0000CC; text-decoration:none; font-family:Arial; font-size:12px">
                        <nav:navNodeAnchor navigationMethod="byEPCM" EPCMHistoryMode="0"/>
                   </span>     
                        <nav:ifHasMoreIterations>
                             <span style="text-decoration:none; color= #666666">|</span>
                        </nav:ifHasMoreIterations>
              </nav:ifNotNavNodeEqualsLaunchedNavNode>          
             <nav:ifNavNodeEqualsLaunchedNavNode>
                 <span style="color= #333333; text-decoration:none;font-family:Arial; font-size:12px">
                      <nav:navNodeTitle/>
             </span>
             </nav:ifNavNodeEqualsLaunchedNavNode>          
         </nav:iterateNavNodesInSelectedPath>
    I have used the line that you have posted.
    However i am not able to see the complete Page history. I can only see the path from the Role to the Page that is currently launched.
    Any help would be appreciated.
    Regards,
    Melwyn.

  • Need to hide the options menu in page title bar in sap portal 7.31

    Hi Experts,
    I am using a classic frame work page. In that I have the page title bar iview. Now I need to hide the Persoalize and Open in new window option from the page title bar. Can you please suggest how to do the same.
    I have already removed the Add to portal Favorites and Add to Browser Favorites. But could not remove the Open in New Window option and Personalize option.
    PFA the screenshot.

    There are a few ways to achieve your requirement with the Classic framework, see the response from Nico Luhr in remove details option in Tool area. By editing the properties of the Core Page you can hide the Personalize and Open in New Window options. See the attached screenshots.

  • Back, History link on Page Title Bar

    Hi guys,
    Is it possible to
    - move these links (Back, History, <Icons>) from the right side to the left side?
    - change their appearance from links into buttons?
    Thanks In Advance!

    Hi,
    as far as I know it is not possible to customize the page title bar the way you would like to. However, if you really have to realize your requirements you can modify the standard component. Therefore you have to download the PAR file which contains the page tile bar component, modify the PAR file, save it in your namespace and upload the PAR file again. Afterwards you can replace the standard page title bar with your modified page title bar.
    You will find a copy of the original PAR file (com.sap.portal.navigation.pagetoolbar.par.bak) in the following directory of your portal server:
    \usr\sap\<J2E>\<JC01>\j2ee\cluster\server0\apps\sap.com\irj\servlet_jsp\irj\root\WEB-INF\deployment
    Best regards,
    Martin

  • FF29: Page title bar MIA with minimize/maximize/close buttons gone! How do I get it back?

    FF29 on win7: the minimize/maximize/close buttons are MIA, as is the page title bar. I've restored 28 because Australis is driving me nuts!

    You should not have to restore the Firefox 28 release. There is a solution: Classic Theme Restorer. https://addons.mozilla.org/en-US/firefox/addon/classicthemerestorer/

  • Unpleasant Page Name in Page Title Bar

    Hi,
    I want to get rid of the page title displayed on the left side of the page title bar.
    I therefore looked after the settings of the default frameworkpage > page title bar and checked the properties of that page.
    Unfortunately I didn't find the right setting here.
    I expected to simply deactivate the option "show object name in tray" but that didn't help.
    We are on EP6 SPS 11
    Any hints?
    Stefan

    Hi Stefan,
    As far as I know, that's the only way. Another option is to not display the Page title bar itself, but with this, the options will also not be displayed (history, back, options...).
    Rajiv
    PS: Just out of curiosity, why don't you want to display the page name?

  • Page Title Bar location changed

    Hi,
    We have recently upgraded from EP6 SP14 to EP7 SP11. In doing that the Page Title Bar for the for the applications using the customized Themes has moved from the Top right corner to the bottom right corner of the page. Also just below the top level menu there is a blue line which is appearing in the new version.
    Can anybody provide any inputs on how this can be solved? Relevant answers will be rewarded.

    Michael Nicholls -
    Can u specify the corresponding property(Page title bar), i can find anywhere
    Bala -
    I have changed but it is not reflecting(that property is for tray, if we enabled the tray it ll show the title in tray)

  • Page Title Bar icons functionality

    Hi all,
            Can you please give me some details about the following icons on the Page Title bar (New Analysis, Open, Save As,.. Comments ) . How are these useful when we run the iViews in the Portal. I could not find any documentation on SAP Help.
    Thank you for your time,
    Ram.

    Hi Ram,
    Please refer to this link may give you some idea,
    http://help.sap.com/saphelp_nw70/helpdata/en/8b/c2ca3e76d34e64b3ee0f612755da61/frameset.htm
    Thanks
    Pankaj

  • NW2004s: Styles of Page Title bar

    Hello,
    we are in the progress of upgrading our portal to NW2004s (SPS08).
    The pagetitlebar (or pagetoolbar) now has a top border (dark blue in the default theme).
    We want to get rid of that border so I was looking for a style in the theme editor.
    According to <a href="https://www.sdn.sap.com/irj/sdn/thread?forumID=41&threadID=33223&messageID=318072">this forum thread</a> it is possible to change the background color.
    I've not found any style for the new top border.
    Any information on that one?
    Thanks & regards,
    Alex

    Hi Tatayya,
    Why don't you try to customize your portal theme? I guess you will find appropriate section for page title bar iView in the theme editor where you should be able to change the background color for it.
    Here you'll find more information about changing style parameters for the portal theme:
    [Working with Portal Themes|http://help.sap.com/saphelp_nw70/helpdata/EN/1a/d7c1617dd29e4d85064b467636fada/frameset.htm]
    Best Regards,
    Michal M.

  • Hiding iView Name in the page title bar.

    HEllo Experts,
         My requirement is to hide the Page name which is getting displayed in the page title bar. Please note that I want to display the tray and other options like history, back, forward etc. Would appreciate if anyone can help me in this regard a tyour earliest.Please....
    regards
    Kris

    Hi Kris,
    if u want to do it for a particula page..
    You can disable that by changing "Show object name in Tray" to "No" in the Property Editor for that page.
    If u want to do it for the portal as a whole go to default framework page under Standard user role folder.
    and uncheck the visible tab of the page title property......
    i hope it help u
    cheers,
    sithi

  • Iview Name on the page title bar

    Hi All,
    For our ESS/MSS iviews, text specified on the service (IMG Configuration) used to appear on the Page title bar. We have recently upgraded our Portal and backend system and now instead of the text speacied on the service, iview name appears on the page title bar.
    For example .. The iview name is Address and in the SPRO we created a service called "Address XYZ". On area page the service appears as "Address XYZ", but when we click on the link on the page title bar it shows "Address" instead of "Address XYZ"
    Please let me know how change this.
    Regards,
    Vaishali

    Hi All,
    Any suggestions??
    Regards,
    Vaishali

  • How to display message in Default Frame work Page (Page Title bar)

    Dear Guru,
                    I want to display message in Page Title Bar , and that message should move like(Marquee in html) . So please any one suggest how to do and that message should be display for certain time.
    Thanks and regards
    Kumar Rakesh.

    Kumar,
    create a bsp application and create an iview from it and put it in default framework page
    code for the same
      <%@extension name="htmlb" prefix="htmlb" %>
    <%@extension name="bsp" prefix="bsp" %>
    <htmlb:content design="design2003" >
      <htmlb:document>
        <htmlb:documentHead>
        <htmlb:headInclude />
        <style type="text/css">
        .urBdyStd { background-color: "#455F55"; }
        </style>
        </htmlb:documentHead>
        <htmlb:documentBody>
    <marquee scrollamount="3" >
    <%-- <htmlb:textView
    encode ="true"
    id="a"
    textColor = "white"
    text = "BI Reports are currently down" />--%>
    <b><font size="2" color="red"><%=wa_rep-s_message%></font></b>
    </marquee>
        </htmlb:documentBody>
      </htmlb:document>
    </htmlb:content>

  • "Page Title Bar" back/history design

    Hi,
    Does anyone know how to Bold the back/history commands , in the portal ?
    when I download the Par file of the "Page Title Bar" I cannot tell where are these commands located .
    Regards and thanks
    Hadar

    Hi Hadar,
    First of all wait for an answer on how to do it using theme.
    If you'll not find it, do it the 'hard' way:
    You need to download 'com.sap.portal.navigation.pagetoolbar.par.bak'.
    Inside you'll find a jar file named 'com.sap.portal.navigation.pagetoolbar_core.jar'
    Inside the jar you will the file 'PageToolbar.class'
    Decompile it with jad.
    Edit the following lines in the extracted java file:
    back = (new StringBuffer(200)).append("<a class="urLnkDsbl" id="back" href="javascript:pageTitleBar.Back();"><span class="urTxtStd" id=""><nobr>").append(StringUtils.escapeToJS(PageToolbarHelper.getNLSString("PAGE_TOOLBAR_BACK_LABEL", request))).append("</nobr></span></a>").toString();
    forward = (new StringBuffer(200)).append("<a class="urLnkDsbl" id="forward" href="javascript:pageTitleBar.Forward();"><span class="urTxtStd" id=""><nobr>").append(StringUtils.escapeToJS(PageToolbarHelper.getNLSString("PAGE_TOOLBAR_FORWARD_LABEL", request))).append("</nobr></span></a>").toString();
    Add
    <b>
    and
    </b>
    where needed...
    pack the jar into the par and deploy it...
    Omri

  • Navigation in page title bar

    Hello,
    I am importing roles from ECC into the portal.
    The transactions are getting displayed in the content area of the portal.
    However I would like to traverse forward and backward only for the content displayed in the content area.
    Likewise I would also like to display a save button in the masthead (or in the page title bar) so that the transactions displayed in the content area get saved using the button in the masthead , instead of using the regular F3 +CtrlS.
    I would also prefer to have forward and backward buttons for traversal of content viz; transactions in the content area.
    Can anyone suggest me the possible alternatives to implement the above functionalities.
    Thanks & Regards
    Pooja

    Hi Pooja,
    Can you be more specific? What have you already been done? Have you done any try? Have you checked some documentation?
    Regarding the backward button, be carefull specially on trasaction content . Make sure you mantain all the information you need on session, otherwise it will not works properly.
    Below some documentation that perhaps helps:
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/a03ead25-4288-2e10-57ae-c70b8c412629
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/a03ead25-4288-2e10-57ae-c70b8c412629
    Regards,
    Fabio

Maybe you are looking for

  • Resetting my MacBook Air to out of the box conditions

    Resetting my MacBook Air to out of the box conditions

  • Reevaluation indicator in Vendor master

    Hi MM Gurus,           Can anybody let me know about Re-Evaluation Allowed indicator in Purchasing View of Vendor Master. Pls revert back with example for better understanding Points would be rewarded. Regards, Girish.C.M.

  • Oracle standard edition vs. enterprise edition

    Hi all Due to cost constraints, we have had to downgrade our 8i Database Enterprise Edition installation to Standard Edition. My question is: do we have to re-create our database under Standard Edition, to make it a 'Standard Edition' database, or ca

  • A simple example of JList

    Dear All please send a simple example of JList using Event Handling. Thanks in advance.

  • Are images uploaded from desktop to iPhoto duplicated?

    I just used Migration Assistant to move data from Windows laptop to my new iMac...  The photos that were saved to my desktop were imported into iPhoto.  Does this duplicate the images?  Can I delete the desktop files? Relative Newbie to OS X so thank