Global button problem

Hi,
I have created a function companyname_help of type jsp with some x.jsp .I have used .In my page controller i have written fllwoing code.
XClassFile obj=new X classfile();
obj.setHelpGloablbutton(pageContext);
<BR><BR><BR>
in class file which extends OAControllerImpl{
<br>
public static void setHelpGlobalButton(OAPageContext pageContext){
          OAPageLayoutBean pageLayoutBean = pageContext.getPageLayoutBean();
          pageLayoutBean.prepareForRendering(pageContext);
          OAGlobalButtonBarBean buttons = (OAGlobalButtonBarBean)pageLayoutBean.getGlobalButtons();
          OAGlobalButtonBean button = (OAGlobalButtonBean)buttons.findIndexedChildRecursive("companyname_help");<br>
String url="javascript:openWindow(top, '/OA_HTML/y.jsp');<br>
if(button != null)<br>
          button.setDestination(url);
This code is calling fine only but when i click on that help global link , it is calling x.jsp and not y.jsp which iam settin gin controller.
Can anyone tell me what is the mistake iam doing here ?
Thanks
Soujanya

Hi,
This issue is fixed.The reason for error is there is one line of code in the methos i gave above
<br>pageLayoutBean.prepareForRendering(pageContext);<br>
The same line of code is again in my controller.Because this is in 2 places it was not working
when i remove in controller it worked.
Thanks
Soujanya

Similar Messages

  • Adding a new link in global button bar

    Hi,
    How can i add a custom link in the global button bar near home, personalize page etc links.

    hi Kali,
    I have not seen in any responsibility where global links are different. The requirement was to show the custom global link only on my custom pages which are accessed via custom responsibility. That's why i asked that question of showing global link for the responsibilty. I should have asked how to display custom global link only on a custom page and not on seeded pages. I went thorugh the dev guide and found that we can assign the property global menu of the page layout to display custom global links only for that particular page. I created a new global menu with one function. I assigned the global menu to all my custom pages. So now i am able to see the custom global link on all the pages accessible through my custom responsibility. My problem is solved now. Thanks for replying.

  • Change the prompt of Global button or links

    Hi guys,
    How to change the prompt of global button or link like Home,Logout,Help,Preferences for all oaf pages in R12 application?
    plz guide me ......ASAP
    Thanks,

    I've got the problem fixed. For any of you that would like to know the solution is this. I added the following javascript at the end of an unstructured UI template where I have the form:
    <script language="JavaScript1.1">
    var inURL = false;
    for (i = 0; i < document.all.length; i++) {
         if (document.all.name != null) {
         if (document.all[i].name.indexOf("BACK_URL") > 0) {
                   if (document.all[i].value != '') {
                        inURL = true;
              else {
                   if (inURL) {
                        if (document.all[i].name != null) {
                             if (document.all[i].name.indexOf(".UPDATE") > 0 || document.all[i].name.indexOf(".SAVE") > 0) {
                                  var doc = document.all[i];
                                  doc.value = "Save & Back to Report";
    </script>
    The script works in IE 6+, I don't know if it works in any other browser, I haven't test it and I don't think I will.
    I hope this could help somebody

  • Global Buttons

    Hi,
    I trying to include a shortDesc property in a GlobalButton tag. However, the message does not appear.
    GlobalButton tag does not suport shortDesc?
    Thanks.

    Hi there
    This is a known problem, see the following link
    Re: UIX: How to get tooltip help on tabs and global buttons?
    Cheers
    Ian

  • How to handle the global buttons in PFR

    Dear friends,
    i want to handle the global buttons in Process From Request
    the requirement is in standard page , we have created one custom link as global button
    when we click that link we are calling to previous page..now we want handle this global link in PFR
    how to go ahead?? please it is very urgent
    Thanks
    krish.

    Hi,
    We can get handle to global buttons using this:
    OAPageLayoutBean page = pageContext.getPageLayoutBean();
    page.prepareForRendering(pageContext);
    OAGlobalButtonBarBean buttons = (OAGlobalButtonBarBean)page.getGlobalButtons();
    //OAF automatically assigns global buttons to their corresponding function name
    OAGlobalButtonBean button = (OAGlobalButtonBarBean)buttons.findIndexedChildRecursive("<FUNCTION_NAME>");
    You can catch event for your global button in PFR and write the logic there.
    --Sushant                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Caller screen Buttons problem Z10STL100-1

    I have Z10STL100-1 after official update Z10STL100-1/10.3.1.1565 having caller screen Buttons problem these are little above not like it's on 10.2 very below position. I security wipe and restart many times still same position of buttons? See pic attached

    Hello,
    Did you check if there are no objects on that index slide that have a fading transition? You should set the transition for every object to 'No transition'. The transition can be found in the Properties dialog, tab Options.
    Lilybiri

  • UIX: How to get tooltip help on tabs and global buttons?

    Our users love tooltip help (the yellow pop-up help text that is displayed when you hold the mouse above an image or hyperlink). The shortDesc attribute sets the tooltip help on most elements. But it doesn't seem to work for (level 1) tabs (i.e. a link element within a tabBar within tabs) and global buttons (i.e. a globalButton element). Is this just not implemented by the UIX renderers or am i missing something?

    Adam,
    We are NOT using UIX JSP. We have written our
    own controller and our render actions take the UIX file
    and call the UIX API's to render the page.
    In UIX we have the following definition of a global button:
    <globalButton icon="images/uitloggen.gif" destination="javascript:go1('global_uitloggen')" shortDesc="uitloggen"/>
    It generates (renders as):
    <img src="images/uitloggen.gif" border="0">
    Note that there is no "alt" attribute in the "img" element.
    In UIX we have the following definition of a link within a tabs and tabBar element:
    <link text="bestelling" destination="javascript:go1('global_bestellen')"
    data:rendered="CLU_BESTELLEN@cqj2ee:USERPRIVS" shortDesc="Hier kunt u ..."/>
    It generates (renders as):
    <area shape="poly" coords="107,21,118,0,194,0,202,8,202,21" alt="Selecteer deze optie om te gaan naar bestelling." href="javascript:go1('global_bestellen')">
    Note that the "alt" attribute has a generated text and doesn't use the value of the shortDesc attribute
    in the link element in UIX.

  • Can I make a global button?

    Hi !
    I have some menu buttons in my main timeline. The buttons are
    really button symbols inside movie clips, then the "mc" is placed
    in the main timeline, so when I roll over them a movie plays. What
    I want is that when I press one button, it makes another play its
    own "mc" but I can't get the button symbols to talk to each other.
    can I make global buttons. If I can how do I do this?

    LadySamG,
    > What I want is that when I press one button, it makes
    > another play its own "mc" but I can't get the button
    > symbols to talk to each other.
    Actually, these objects do "talk to each other"; they just
    have to know
    each other's names and where the others live. By that, I mean
    you'll need
    to give each of these objects an instance name in the
    Property inspector.
    Once they have instance names, you can talk to them with
    ActionScript and
    manipulate each object in the ways determined by its class.
    (What are
    classes? Classes define objects by providing for their
    properties
    [characteristics], methods [things they can do], and events
    [things they can
    react to]. Button symbols are defined by the Button class,
    movie clip
    symbols are defined by the MovieClip class.)
    > can I make global buttons. If I can how do I do this?
    Even though you explained it, I'm not sure I understand what
    you mean by
    "global" in this context. If you have three movie clips,
    instance-named
    clipA, clipB, and clipC -- and if each of those movie clips
    has the same
    button symbol inside it -- you can address each button
    separately like this:
    clipA.myButton
    // assuming the button's instance
    // name is myButton
    clipB.myButton
    ... and so on. Want to adjust the Button._x property (that
    is, the
    horizontal placement) of clipC's nested button?
    clipC.myButton._x = 5;
    Or is there maybe a movie clip within clipB? If so, what's
    that movie
    clip's instance name? Assuming myClip, then ...
    clipB.myClip.gotoAndPlay(2);
    Make sense?
    In this approach to "speaking to" objects, you put the code
    into a
    keyframe, rather than attached to the object itself.
    David Stiller
    Adobe Community Expert
    Dev blog,
    http://www.quip.net/blog/
    "Luck is the residue of good design."

  • Apart from the lock button problem in iphone 5 the display brightness suddenly goes blank and becomes normal after locking and unlocking the iphone. The Apple service centre in India is denying to service the iphone as it was purchase in USA even thoug it

    Apart from the lock button problem in iphone 5 the display brightness suddenly goes blank and becomes normal after locking and unlocking the iphone. The Apple service centre in India is denying to service the iphone as it was purchase in USA even though the iphone is in warranty.

    iPhones do not have an international warranty.  Warranty is valid only for the country of purchase.  This is most likely because different countries require different iPhone models.  Not reasonable to expect all countries to maintain stock for all models.

  • Global button icons

    I want to have a global button which allows the user to print any page. The event handler for the button will use the <showFacet> event handler element. I'd like to have a 'printer' icon but couldn't find one in the icon repository on the BLAF website. Is there one available? If not what 'rules' does one have to conform to so that Tecate renders correctly? If I'm talking gibberish then please forgive me as I'm pretty new to icons!
    Cheers
    Ian

    Ian,
    I'm not sure why there is no printable page icon in the BLAF repository -- I'll ask the BLAF people.
    To prototype until then, I'd suggest taking the image of one of the other global buttons and either use that or change it a bit in a paint program.
    -brian
    UIX Team

  • **URGENT** Scene button problem!

    Why my 'maps' and 'video' buttons do not play the movie? I use this code:
    on(release){gotoAndPlay("play");}
    I have labelled "play" in other scene, but it does not play the movie!
    I have tried this code:
    on(release){gotoAndPlay("Scene 36", "play");}
    Still, it does not work as well! I got deadline this week, so I need your help ASAP!
    I got other button problems on every scene! It's frustrating!
    Please download my flash file to look at my flash product!
    http://www.4shared.com/file/24177440...6d/Maps_1.html

    Nope it doesn't work , I got my deadline this week and if you got a spare time, would you please download my flash and check and repair it please! Only two buttons need refitting and nothing else! I asked my teachers, they tried their best and couldn't find what the problem is. I looked through other forum website, I tried the solutions and it doesn't work! I am really behind as there are many failure in my project! This is my first flash creation.

  • Naming Buttons - Problem with using Captivate 7 Buttons to Open URL or File

    After spending too much time troubleshooting a button problem, I discovered the importance of naming each item in a Captivate project.
    For some reason I have yet to figure out, publishing to SWF from Captivate causes buttons to function arbitrarily. In my case, I had eight buttons pointing to external URLs, three that worked and five that didn't. All of the buttons pointed to the same external website, only to different PDFs hosted on that site. Each button was named with the default "Button_X" convention as set by Captivate. After trying lots of different settings adjustments, On Enter and On Exit actions, and Play/Pause timings, I did what I should've done from the beginning; changed the names of the buttons.
    Why this worked? I don't know. I've seen hints on other discussions as to SWFs not working well when there are a lot of unnamed or default-named items. If there's some logic to this I would be happy to know it, but for a default setting to cause such a bizarre problem is beyond my comprehension. I could understand if I had named the buttons incorrectly, but I didn't do anything to them; I left them with the names created by default.
    Hopefully this helps someone else resolve a similar issue and, if anything, encourages everyone to follow best practices and use a clear file naming conventions for all projects.

    Hi there
    Perhaps the link below will help?
    Click here to view
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • K button problems

    K button problems on keyboard. Has to be pressed harder than all the other butons on the keyboard. Ive tried going on  command prompt and pressing it, and its the same. I am running windows 7 pro.

    you probably need to get a new keyboard if you have a model number i can send you a link on what you need thanks 

  • HT1688 iPhone 4 home button problem

    Good afternoon,
    I have an iPhone 4 and it still in good condition but sometimes, the Home button doesn't respond quickly or doesn't respond at all. What to do?

    I seem to have fixed my iPhone 4 home button problems.
    1. Sync phone and back up.
    2. Go back and resync phone but uncheck all the apps you have purchased/downloaded so that your iphone will have no additional apps on it.
    3. Now reset your phone as a NEW PHONE.
    4. When reset as NEW, unplug it and try home button functions. I'll bet they work just fine, like mine did.
    5. Now that you are satisfied you can resync your apps, but be choosey. Re-install only a couple at a time, and test your home button each time. You'll soon find out which of your apps is causing the problem. It's time consuming and irritating, but it certainly works.
    So far - no problems with my selected re-installed apps. My home button works fine.
    However, I recently purchased several photography apps and an emoticon app and that was when the problems appeared to have started.
    So I've been very selective in putting only the apps I want back on ... for now.
    Hope this helps.
    I will report back to tell you if this complicated but effective solution has worked for me.

  • Home button problem in iphone 3g 3.0

    After upgrading my iphone 3g to 3.0 software, the home button has become so unresponsive, i have to click it 6-10 times sometimes to awake it. I mean what is it, dont you check the update before making it available to public, i mean its annoying, my 2 other friends have same problem as mine, they are on iphone 3g too. even 3.0.1 behaves the same way. comeon folks, become professional, kindly fix this thing in next firmware release.

    I had exactly the same problem - I bought my iphone 3gs last week, upgraded it and had the 'home button' problem. I tried all the fixes - restarting, resetting to factory settings, reloading update, etc. Then, a few days later, it all sorted itself out - no idea what happened, but since then my home button has been working perfectly! I have a feeling the factory reset and reload of update might have been the one that eventually did the trick...but since then, touch wood, it has been working perfectly. I would suggest trying the factory reset and see if that helps...make sure you back up first though!

Maybe you are looking for

  • How can I play songs alphabetically and not shuffled?

    My new Ipod Nano only plays songs in shuffle mode, even when I turn the "shake to shuffle" option to "off" I just want to play them alphabetically, any suggestions?

  • Trackpad erratic on Virgin America flight

    I just bought a new 15" MBP, and encountered a weird problem with it when flying on Virgin America. When I plugged into the in-seat power outlet, my trackpad stopped working properly: when I tried to move the mouse around the cursor was jumpy, and mu

  • Getting absolute path of a file running in remote machine

    Hi, I want to get the absolute path of a file that will be created in the remote server. Inside a directory XYZ in remote machine, the file will be created and the remote machine's address is xxx.xx.x.x. I have used the following snippet File f=new F

  • Endless start-up loop?

    Hi, our 14" ibook w/ recently repaired logic bd from Apple is now stuck in endless start-up. Powers up ok goes to blue "home" screen, dock appears at the bottom, macintosh hd icon visible, then starts again. I can click on any icon and it seems as if

  • SimController - Touch and gesture not working

    I'm running the "demo_mobile" Starling 1.2 sample in the trial version of flash CS6 on Windows 7. When I crtl-enter to run it in the IDE, or go via Debug > Debug Movie > in Air Debug Launcher, I see the SimController appear. I navigate to the Touch a