Display text in navigation bar when user is logged in

Hi all,
I'm (still ) on Apex 4.2.6.
Currently, I have in my page templates, the following snippet:
      <div class="logoBar">
          <img src="#IMAGE_PREFIX#themes/theme_125/images/logo_.png" />
          <h1><a href="#HOME_LINK#" id="uLogo">#LOGO#</a></h1>
        <div class="userBlock">
          <span>Username: &APP_USER.</span>
          #NAVIGATION_BAR#
        </div>
      </div>
I have the requirement to display both the username (APP_USER) and the company the user works for (Application item AI_COMPANY), only when the user is logged in. When the user isn't logged in; instead of those items, I have to show a login link. Well, I know how to only show a link to the login page, when the user isn't authenticated, using the navigation bar. Currently, when a user isn't authenticated; the page shows: Username: nobody. That's because it is in my page template. How can I only show the username when the user is logged in? And show the company name only then?
My first thought was to add an item in the navigation bar. But those items shows up as links. Is there a way to add a navigation bar item, and let it display as text? Sure, I could write a dynamic action on page 0 to remove the link, but I'm searching for a nicer/better sollution.
I apreciate your help!

Hi tomvdduin,
you can show company name which is already in your Application item(AI_COMPANY)  by modifying the page template mentioned above.
<div class="logoBar">
  <img src="#IMAGE_PREFIX#themes/theme_125/images/logo_.png" />
    <h1><a href="#HOME_LINK#" id="uLogo">#LOGO#</a></h1>
  <div class="userBlock">
    <span>Username: &APP_USER.(&AI_COMPANY.)</span>
    #NAVIGATION_BAR#
  </div>
</div>
I have included company inside ( ), you can change how you want to show.
for example
<span>Username: &APP_USER.</span><span>Company: &APP_COMPANY.</span>
Hope this helps you,
Regards,
Jitendra

Similar Messages

  • How to display table range navigation bar at the bottom of the tr table i

    Hello,
    While I am using trinidad, I have to face a critical issue. Can I display table range navigation bar at the bottom of the <tr table> in Trinidad? and remove the range dropdown list, only show the "previous" and "next" link? The project is critical on the UI, this problem is very small but has to be fixed? Does anyone have any ideas&#65311;

    Difficult to do?  No.
    <ul id="bottom-nav"><li><a hef="whatever.php">whatever</a></li><li class="last"><a hef="whatever2.php">whatever2</a></li></ul>
    With this CSS -
    ul#bottom-nav {
         list-style-type:none;
         overflow:hidden;
         width:70%;
         margin:0 auto;
    ul#bottom-nav li {
         float:left;
         padding-right:10px;
         border-right:1px solid #FFF;
    ul#bottom-nav li.last {
         border:none;
    ul#bottom-nav a {
         /* your styles here */

  • Enforce AnyConnect client to do machine authentication when user is logged on

    Hi All,
    I want to use AnyConnect as a supplicant to our corporate WLAN and also use Machine Authentication feature on ACS 5.3.
    Is there a way how to enforce AnyConnect client to do machine authentication when user is logged on? Sometimes can happen, when user just hybernate the computer and do not log off and log on. If they don't do this in some period, then they are not allowed to use WLAN.
    Thanks for your help.
    Regards
    Karel

    The problem appears to be if a user hibernate or ACS is reloaded and machine authentication  timer expired and user need to logout and wait or reboot the machine. After that it authenticates and then user can login again.  Anyconnect 3.1 will allow eap chainging and should be able to address that problem.

  • Windows network shares disappearing when users are logged on to Mac

    We are having some problems with windows network shares disappearing when users are logged on to Mac computers.
    We have a number of Mac labs that users can logon to using their AD login credentials. Their network shares are saved on a windows file server. The ad plug has been configured on each client Mac as has the LDAP plug-in. It is configured to connect to the Xserve which is running as an OD master. The system preferences for the client Macs are being managed from the Xserve.
    The problem for the users is that they can log into the Mac no problem and they can see their network share appearing on the desktop and in the dock, but for some reason on random Macs and with random users the network share disappears. If they log off and log back in again the network share is still missing. As it happens randomly I can not put my finger on what the problem is.
    Most labs either have Intel iMacs running 10.4.11 or Intel iMacs running 10.5.5
    Any help will be appreciated
    Noel Patterson
    Southern Regional College
    Northern Ireland

    Mike,
    We need to know some basic scoping information to provide any further input.
    1)     
    Is the user prompted that the server will be shutting down?
    2)     
    Does Task Scheduler show that the task ran at the scheduled time?
    3)     
    Are there any errors in %windir%\tasks\schedlgu.txt?
    4)     
    Does the problem still occur if the machine is in its own OU with blocked inheritance?
    Does the problem still occur in a clean boot configuration with MSConfig
    Steps to clean boot machine:
    ================
    Start > Run > Msconfig > Select Services > click "check box", "Hide all microsoft services" > Disable all
    Start > Run > Msconfig > Select startup>  Disable all
    Reboot
    Thanks,
    ankit

  • Payroll locks when user is logged into the portal

    When users are logged into the portal, and HCM runs payroll
    they call and ask the user to log out, because payroll can't run and gets hung-up.
    Seems very odd,  anyone else hear of this?
    Thanks
    Edited by: Gareth Nicholas on Jul 17, 2008 10:20 PM

    hi
    strange behaviour
    did u open oss note to sap ?
    dont forget to revert back here with the solution
    regards,
    vijay.

  • Invisible text in navigation bar

    When I type something in the navigation bar, I get a list of related pages that I have visited before. The problem is that in Nightly 18, I can see the pages' icons but not the text. All I get is a gray rectangle. If I use the keyboard or the mouse to select one of the invisible results, I got directed correctly to the page. This happens both in Arch linux and in Ubuntu 12.04

    That usually indicates a problem with the font that is used and isn't working or missing.
    Try to use the DOM Inspector to see which font is used in that section.
    *DOM Inspector: https://addons.mozilla.org/firefox/addon/dom-inspector-6622/
    * https://developer.mozilla.org/En/DOM_Inspector
    * https://developer.mozilla.org/en/Introduction_to_DOM_Inspector
    The DOM Inspector (DOMi) has a menu item (Search > Select Element By Click) and a button to "Find a node to inspect by clicking on it" (left icon on the toolbar).
    * open the browser window in the DOMi (File > Inspect <b>Chrome</b> Document) and choose the first from the list.
    * click the "Find a node to inspect by clicking on it" button and use the keyboard (Alt Tab) or the Task bar to go back to the browser window (do not click in the browser window other than the title bar).
    * click that element with the mouse and keep the button pressed until you see a red border to indicate the the DOMi has located that element in the DOM tree.
    You need to use the keyboard to get access to the location bar of the Firefox window (Ctrl+L) and type something or press the Down key to open the drop down list.<br />
    Once the list is open then you can click an entry and you should see the red focus ring.
    Then you can check in the right pane in the DOM Inspector which font is used:
    * click the icon with the drop marker in the header and choose "Used Font Faces"

  • Justify Hyperlink Text in Navigation Bar

    Hello,
    I am trying to justify the text of my navigation bar (which are all hyperlinks).  I would like to use css.  I have tried a variety of things but none seem to work.  I have attached the text.  If anyone could write the code I need it would be greatly appreciated!  Thanks!  I have attached the file as well.
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Shupaca Handmade Alpaca Clothing</title>
    <link href="Shupaca.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    <!--
    a:link {
        text-align:justify;
        color: #666;
        font-family: Arial;
        font-size: 20px;
        text-decoration: none;
        font-style: normal;
        text-transform: uppercase;
        word-spacing: 100%;
        height: auto;
    a:visited {
        color: #666;
        font-family: Arial;
        font-size: 20px;
        text-decoration: none;
        font-style: normal;
        text-transform: uppercase;
        word-spacing: 100%;
    a:hover {
        color: #84cbe1;
        font-family: Arial;
        font-size: 20px;
        text-decoration: none;
        font-style: normal;
        text-transform: uppercase;
    a:active {
        color: #84cbe1;
        font-family: Arial;
        font-size: 20px;
        text-decoration: none;
        font-style: normal;
        text-transform: uppercase;
    -->
    </style>
    <script type="text/javascript">
    <!--
    //-->
    </script>
    </head>
    <body onload="MM_preloadImages('Images/Home Page Links/scarf.jpg')">
    <div class="MarginControl">
      <div id="NavigationBar">
        <a href="index.html" target="_self">Home </a><a href="scarves.html" target="_self">products </a><a href="construction.html" target="_self">who we are </a> <a href="construction.html" target="_self">why alpaca? </a><a href="construction.html" target="_self">FAQ's </a><a href="mailto:[email protected]">contact</a><a href="construction.html" target="_self"></a></p>
      </div>
    </div>
    </body>
    </html>

    As you will see though, by making the menu text so large, the interval between menu items looks all off.  Eithr dramatically red
    uce the text size, or you can set the width of each individual li by giving some an id and specifying width:
    <div id="NavigationBar">
      <ul>
        <li><a href="index.html">Home</a></li>
        <li id="prod"><a href="scarves.html">products</a></li>
        <li id="who"><a href="construction.html">who we are</a></li>
        <li id="why"><a href="construction.html">why alpaca</a></li>
        <li><a href="construction.html">FAQ's</a></li>
        <li><a href="construction.html">contact</a></li>
      </ul>
    </div>
    wtih this css - the changes in orange
    #NavigationBar a {
        color: #666;
        font-family: Arial verdana sans-serif;
        font-size: 20px;
        text-decoration: none;
        text-transform: uppercase;
        display: block;
    #NavigationBar a:hover, #NavigationBar a:active, #NavigationBar a:focus {
        color: #84cbe1;
    #NavigationBar ul {
        list-style: none;
        width: 850px;
    #NavigationBar li {
        text-align: center;
        padding: 0px;
        float: left;
        width: 118px;
    #NavigationBar li#who, #NavigationBar li#why {
        width: 180px;
    #NavigationBar li#prod {
        width: 136px;
    Hope that helps.
    E. Michael Brandt
    www.divahtml.com
    www.divahtml.com/products/scripts_dreamweaver_extensions.php
    Standards-compliant scripts and Dreamweaver Extensions
    www.valleywebdesigns.com/vwd_Vdw.asp
    JustSo PictureWindow
    JustSo PhotoAlbum, et alia

  • Nudging text in navigation bars

    Hi
    I’m building a vertical navigation panel, and have aligned the text right
    But the text sits right on the border of the box, so when the box highlights on rollover, it doesn’t look good
    Ideally I need to nudge this text slightly left, so there is space between the letters and the edge of the box, is there a way I can nudge this text?
    I know how to nudge text in normal text boxes, but I want to nudge text that has been right aligned in my navigation bar
    Any help much appreciated
    Thanks Musers
    Ben

    You can apply right padding from the Text Panel or the Spacing Panel.
    Abhishek

  • PDF forms have problems displaying text and only appears when the field is selected

    Hello,
    I created some pdf forms to distribute to the company clients. But we are having some people complaining about the text visibility. When they have work in team, the pdf that they receive from a third person often appears unfill or without text, the text is only visible when the field is selected. I need to find a solution for this because our company products are base on this forms.
    If there is any addition information that I should add to understand what is happening and how to fix it, I'll be happy to write it.
    In the company, we all have mac and the forms where created innitially in Adobe acrobat 9 pro, but we have now Adobe acropabt XI pro.
    The users have both Mac and Windows systems.
    Thank you,

    This is usually caused by the form being filled-in and saved by a Mac user who is using the Preview application to view the PDF. More information is here: http://kb2.adobe.com/community/publishing/885/cpsid_88564.html
    It is a good idea to inform your users that Adobe Reader (or Acrobat) should be used to work with the forms.

  • No navigation bar when publish to FTP

    Hi there, when I publish my website via FTP, the navigation bar disappears so I am only able to view and navigate to the root URL or home page. Check out what I mean at: jaimejacobsenmedia.com (Under "Jaime Jacobsen Media", it should say "HOME ABOUT FILMS RADIO PHOTOS CONTACT)
    Any ideas on how to fix this so all pages are published and show up in the navigation bar up top?
    Thanks!

    Normally, when this happens, it means that not all your files have been uploaded to your server.
    You actually need to be able to see what has been uploaded to your server and what has not and you can't do this if you use iWeb ftp. From iWeb, publish your site to a local folder and download a copy of Cyberduck for free and if you connect to your server using this, then you can see exactly what files are on your server and what are not.
    Also check that your image is not covering your navigation menu, which it can easily do and it is close. It only takes a tiny little overlap of the boxes on the page and either your navigation menu will not show up or will not work.
    Check both of these. If it is your graphic that is covering then you will have to move it.

  • Display Error:Flash Navigation Bar

    Hey guys. I've just started using Dreamweaver to create a website. I included a navigation bar that i created from scratch in Adobe Flash CS5.5. I have imported the file to my website in dreamweaver but when i try to preview the file in a browser like chrome i get this output:
    http://www.freeimagehosting.net/61928
    Any idea what is causing this problem? The .swf file runs fine when i preview it in dreamweaver itself( The Play option).

    Actually no. Im guessing there are quite a lot.
    There are only a few, but they could be deal breakers:
    1.  Some people do not have Flash players installed (for whatever reason)
    2.  Screen readers do not 'read' Flash, so your pages will be inaccessible to those using screen assistive devices
    3.  Search engine spiders may or may not be able to find your links within the Flash, with the potential downside that your site will appear to only have a single page in it.
    Should I go on?
    So i guess i should just scrap this and move onto a Javascript version then.
    Your words, not mine!   Just make sure that the javascript is only used cosmetically - there are javascript menus out there that embed the links in the javascript, and that will give you the same results as a Flash menu....
    DW's built-in Spry menus do not do that, so check them out.

  • Reduce logo in navigation bar when scroll down

    Hi, I wanted to have my logo on the navigation bar to reduce in size when I scroll down. How can this be achieved in Muse?

    Not sure, but you can always set it to disappear (Scroll effects or Opacity) and have a smaller version appear.

  • CryptAcquireContext failing with ERROR_FILE_NOT_FOUND (2L) when user not logged on Windows 8.1

    I am having a hard time migrating a C++ CryptoAPI-based application that currently runs on Windows Server 2008 to Windows 8.1. The scenario is:
    This application is eventually triggered by WatchDog.exe, which in its turn is triggered when the computer is started by Windows' Task Scheduler.
    Task Scheduler uses the following rules to start the WatchDog.exe:
    A Administrator User Account;
    Run Whether user is logged on or not;
    UNCHECKED: Do not store password. The task will only have access to local resources;
    Run with Highest Privileges;
    Configure for Win 8.1;
    Triggered at system startup.
    The server sits there, nobody logged, until in a given scenario WatchDog.exe starts the application. Application log confirms that the owner of the process (GetUserName)
    is the very same user Task Scheduler used to trigger WatchDog.exe.
    It turns out that this application works fine in Windows Server 2008, but in windows 8.1 a call to CryptAcquireContext fails
    with return code ERROR_FILE_NOT_FOUND (2L). The odd thing is that the application will NOT fail if, when started, the user is physically logged
    on the machine, although it was not the user who started the application manually.
    I took a look at the documentation and
    found:
    "The profile of the user is not loaded and cannot be found. This happens when the application impersonates a user, for example, the IUSR_ComputerName account."
    I had never heard of impersonification, so I made a research and found the APIs LogonUser,ImpersonateLoggedOnUser and RevertToSelf.
    I then updated the application in this way:
    HANDLE hToken;
    if (! LogonUser(L"admin", L".", L"XXXXXXXX", LOGON32_LOGON_BATCH, LOGON32_PROVIDER_DEFAULT, &hToken))
    logger->log (_T("Error logging on."));
    else
    logger->log (PMLOG_LEVEL_TRACE, _T("Logged on."));
    if (! ImpersonateLoggedOnUser(hToken))
    logger->log (_T("Error impersonating."));
    else
    logger->log (_T("Impersonated."));
    err = XXXXXXXXX(); // calls function which will execute CryptAcquireContext
    if (! RevertToSelf())
    logger->log (_T("Error reverting."));
    else
    logger->log (_T("Reverted."));
    Excerpt with the call to CryptAcquireContext:
    // Get the handle to the default provider.
    if(! CryptAcquireContext(&hCryptProv, cryptContainerName, MS_ENHANCED_PROV, PROV_RSA_FULL, 0))
    DWORD e = GetLastError();
    _stprintf_s (logMsg, 1000, _T("Error %ld acquiring cryptographic provider."), e);
    cRSALogger->log (logMsg);
    return ERR_CCRYPT_NO_KEY_CONTAINER;
    cRSALogger->log (_T("Cryptographic provider acquired."));
    As the result, I got the log:
    [2015/01/08 20:53:25-TRACE] Logged on.
    [2015/01/08 20:53:25-TRACE] Impersonated.
    [2015/01/08 20:53:26-ERROR] Error 2 acquiring cryptographic provider.
    [2015/01/08 20:53:26-TRACE] Reverted.
    That seems to show that impersonation is working properly, but still I get Error 2 (ERROR_FILE_NOT_FOUND) on CryptAcquireContext.
    Summary:
    On Windows Server 2008, the very same application runs properly even without the calls to LogonUser/Impersonate/Revert.
    On Windows 8.1, the application, with or without the calls to LogonUser/Impersonate/Revert, will only work properly if the user is logged on (which
    is not acceptable).
    Any thoughts where I can run to in order to get this working on windows 8.1?
    Thank in advance,
    Dan

    There are a couple of issues.
    Based on the parameters being used in CryptAcquireContext().  A profile needs to be loaded and your app has to be running as the same user who created the keyset. (which is why it works when a user is logged on Windows 8.1) Also, impersonation
    does not load your user profile, you need to call LoadUserProfile().  It seems like you should be using a machine keyset for your scenario if you want to do this when nobody is logged on.
    Take a look at the following KB article for more information.
    https://support.microsoft.com/kb/238187?wa=wsignin1.0
    thanks
    Frank K [MSFT]

  • MacBook Display - Text Glows or Fades When Scrolling with Two Fingers

    I am currently using an early 2008 MacBook Black, OS X 10.5.5, 2.4GHz Penryn, 4GB RAM (CAS 4), 250 GB HDD. I recently came into an Apple Store for a Genius Bar appointment because of a problem with the screen. When I use two finger scrolling and view text on a white background, the text appears to glow (especially blue text) or fade (black fades to an almost imperceptible gray. This behavior appears in Apple's Safari, Pages, Numbers; as well as, Safari. I have not tested beyond this yet.
    The Genius at the store had no answer for this behavior and the other early 2008 MacBooks in the Apple Store (Walden Galleria, Buffalo, NY 14225) also exhibit this behavior. The Genius admitted this was annoying when viewing text and it appears to be a driver or OS problem because this behavior is also exhibited on the late 2008 MacBooks and MacBook Pros.
    Suggestions?

    It's a characteristic of LCD response time. There is nothing to be done about it except maybe experiment with different colors of text or backgrounds. That's not always practical, I know. Basically, we all have to live with it.

  • Text in navigation bar and footer appears with time lag

    When I preview my muse website on business catalyst sometimes - not always - the text in the naviagation bar and some of the text in footer area is invisible. After mouse over the text appears.
    The same effects happens after uploading my final website to my hosting provider. This effect could be very confusing for my website visitors.
    What can I do to avoid this effect.
    Kind regards
    Marco

    Are you using web fonts and testing on Chrome browser? If yes, please refer to the following thread - http://forums.adobe.com/message/6238025.
    If the above is not the case, a site URL would help in identifying the issue.
    Thanks,
    Vinayak

Maybe you are looking for

  • Join is not working in webi report

    I have let's say three tables; one fact and two dimensions; I manually joined each dimension table with the fact with 1 to many cardinality... Now I'm trying to run a test report using few fields from each dimension and it doesn't seem to join; in th

  • FM ARCHIVE_SCHEDULE_JOB giving dump as background job?

    Hello Everyone,                    I am scheduling a report in SM37 which consists of FM ARCHIVE_SCHEDULE_JOB.                    And based on the output of FM, some Ztables are updated and some jobs are created in sm37. Now, when i debugged the back

  • Changing character encoding in ps xml pub. from utf-8 to iso-8859-1

    I am using xml publisher to generate a report in a pdf format, now my problem is user has entered a comment which is not supported by utf but in iso-8559-1 its working fine, I tried to change the encoding in people code, xml doc file ,schema and xlif

  • Can I retrieve single documents (keynote) to my iPad once they have been backed up to the iCloud?

    I am using an iPad 2 to create presentations on keynote.  I know have over 150 presentations and they are slowing the iPad down.  I have backed them up to the iCloud and was then going to delete them from the iPad.  However, I was not sure how to ret

  • Satellite 1135 won't start/power on

    Hello Everybody, I have an old satellite 1135, it was working, then suddenly one day when I pressed the power button nothing happened, only the leds in the front flashed like this: 1.-With the battery only, the Power, Battery, and CD LEDs light up fo