Hide the Global buttons

Hi all I'm trying to hide the buttons global House using the direct code OADevguide

Import oracle.apps.fnd.framework.webui.beans.nav.OAGlobalButtonBarBean;
Import oracle.apps.fnd.framework.webui.beans.nav.OAGlobalButtonBean;

OAPageLayoutBean page = pageContext.getPageLayoutBean ();

page.prepareForRendering (pageContext);

Buttons OAGlobalButtonBarBean = (OAGlobalButtonBarBean) page.getGlobalButtons ();

Button OAGlobalButtonBean = (OAGlobalButtonBarBean) buttons.findIndexedChildRecursive "FND_RETURN_TO_HOME");

button.setRendered (false);

button.setDisabled (true);

but getting error "incompatible types" during the compilation of the class for the line
Button OAGlobalButtonBean = (OAGlobalButtonBarBean) buttons.findIndexedChildRecursive "FND_RETURN_TO_HOME");


I tried with

Button OAGlobalButtonBean = (OAGlobalButtonBean) buttons.findIndexedChildRecursive "FND_RETURN_TO_HOME");

but it is throwing null pointer exception


Watch OADevguide

oracle.apps.fnd.framework.webui.beans.layout.OAGlobalButtonBarBean

oracle.apps.fnd.framework.webui.beans.layout.OAGlobalButtonBeans.


to import, but it is not there in importing in JDeveloper

This Code works for me:

OAPageLayoutBean page = pageContext.getPageLayoutBean ();
page.prepareForRendering (pageContext);
Buttons OAGlobalButtonBarBean = (OAGlobalButtonBarBean) page.getGlobalButtons ();
If the Global buttons is not null.
if(Buttons!=null)
{
for (int i = 0; i)< buttons.getindexedchildcount(pagecontext.getrenderingcontext());="">
{
OAGlobalButtonBean oaglobalbuttonbean = (OAGlobalButtonBean) buttons.getIndexedChild (pageContext.getRenderingContext (), i);
{if ("ICX_RETURN_TO_PORTAL". Equals (oaglobalbuttonbean. GetName())}
oaglobalbuttonbean.setAttributeValue (UIConstants.RENDERED_ATTR, Boolean.FALSE);
}
}
}

Tags: Oracle Applications

Similar Questions

  • How to hide the Submit button in the TEB?

    Using Cap 9, with the last update.

    I added a 'text area' group to a slide. After validation of the entry, I would like to hide the whole group. I call it a group because you get the field and the Send button.

    I can't hide the field because I can give it a name and then refer to it in my Advanced actions. But I can't see the button submit as well, so I can't hide it.

    Did I miss something? Is there a work around known for allowing me to hide the Send button and the text input field?

    No, it's an object built in, which means that you can not solve, because there is no correct ID. In addition, you can add States either. I tried that as well. Embedded objects are very limited.

    I have however a workaround. It depends a bit on the used theme, but the Send button is often a text button. This is my workflow

    1. Because you cannot change the style of a button text, I replaced it with a transparent button.
    2. I did this totally invisible to the user transparent button: fill opacity = 0%, line width = 0 and remove the button caption (label).
    3. I created a text caption or a shape with 'Submit' and dragged under the TEB in the timeline panel. It is not necessary for the output SWF, but it's for HTML output. This text container has an ID and will be visible because the TEB button is completely transparent.
    4. When the user clicks on the button submit, I trigger a successful action that will be:
      1. Hide the text container (Submit)
      2. Mask of the ETB

    If you do this several times in a project, you can create a shared action.

  • How to hide the Save button in the Panel of af: query to ADF

    Hello
    I've used ADF af:query component and to hide the Save button.
    Can someone help me please in the present.

    User, please tell us your jdev version!

    Af: query a saveQueryMode aproperty value that you defined in hidden.

    saveQueryMode="hidden"
    

    Timo

  • Hide the "submit" button when there is nothing to report

    Hello

    I have a simple command with a 'running total' good quantities ordered at the top of the form, (FormCalc) calculated as follows:

    the sum of $ = (Products.PRODUCT_GROUPS. DATA[*]. PRODUCTS. DATA[*]. Quantity)

    If this amount is zero (that is, nothing has been ordered) so I want to ban the form submitted by e-mail. I thought that the best way to achieve this would be to hide the submit button when this field is zero and show when > 0.

    I tried adding this code for the same event in this field to calculate:

    If ($ > 0) then

    Button1.presence = "visible".

    on the other

    Button1.presence = "hidden".

    endif

    but no go.

    Sorry if it's real simple, but I would appreciate the help!

    Thank you.

    When, in the code window, you will see that it says something about Ctrl + click for the SOM expression. So if in the event code for an item, you can press CTRL, then click on another point and it will insert the correct reference in your code. We must ensure that emphasis is placed in your code when you do and the mouse cursor will turn into a broad V.

    You can do a right click in the code window and select check the syntax of the Script to see if there are problems.

    When you view the form in preview, Ctrl + J opens the JavaScript debugger. It may need a config first in Acrobat. It has been a while since I put that up. Instead of making app.alert, you can do console.println and it will write in the JavaScript console. Occasionally, you may need to debug something dealing with the development and the app.alert itself affect the focus.

    Have you thought about putting your code preSubmit event and displaying a message that nothing has been entered? Also don't xfa.event.cancelAction = true

  • Hide the next button

    I know that people have posted answers to this question already, but I'm being really dim and do not understand them. I have a slide with 5 zones of reversal on this issue and I want users to have to ride on these before to move to the next slide so I want to hide the next button until what they looked at everything.   I had a look at the other threads and other sites on the net that explain this, but I've never used before advanced Actions and use only Captivate for about 6 weeks (this is the Captivate 5).  I tried to follow the instructions but I can't get it to work and to be honest I don't understand what I'm trying to do.

    Is anyone able to explain it really, really simply.  (Assume that I don't know, because I have probably not!)

    OK, so will try to give you a little help.

    • Create five text captions, label something as TC_1 TC_2, TC_3, TC_4, TC_5 and uncheck the visibility in the properties panel for the legends
    • Create five 'points' there are click on: either create you them as buttons (image buttons), or as boxes by clicking on an image, it is up to you. But do not forget to describe the interactive object (the click box or button) in the same way the legends of text. Example for click boxes: CB_1, CB_2, CB_3, CB_4, CB_5. This will make them easy to recognize who is related to what wording in advanced actions
    • Create the following button and uncheck its visibility in the properties panel. I would like to label it Bt_Next
    • Create a variable user v_counter; you can give an initial value of 0, but it is not really necessary, because it is the default

    Now the advanced actions, which is the most difficult part, because you need a conditional action proceeds by a standard action, which is a little confusing to reach. If you want more explanation, take a look at my article

    http://kb2.Adobe.com/community/publishing/862/cpsid_86254.html

    You need a tip for each area of click action, but you can duplicate and edit the first tip action I am describing now. I have it tagged the CB_1_ac to make it clear that it is triggered by some CB_1; this action will have 2 Decisions: first, she tagged ShowTC is a simulated standard measure that will display the text of the legend (or the image, I forgot to ask what you show), disables the present click box and increments the counter; the second, entitled CounterCheck is a real disease that checks the value of the counter and if it reaches 5 will show the next button; you use only the first page for each decision, not the ELSE part:

    This action must be repeated 4 times for stocks CB_2_ac... CB_5_ac. You need to change only the part of the Actions of the decision ShowTC to change TC_1 and CB_1 to TC_2... CB_2 etc.

    Then attach these actions to their click box, as success in the properties panel. Try it... I created this sample and it works very well.

    Lilybiri

  • AF:dialog - simpler to hide the Cancel button?

    Want to match some of what we have in a form application, and the dialog box is coming up closer than the panelWindow in terms of use, but I would like to be able to show just 1 button in the dialog for OK, rather than the 2 of them. I see the facet buttonBar on the component of the dialog box allows me to extend the buttons that are there, but I want to be able to hide the Cancel button. How this work normally/more-easily?

    Thank you.

    With the help of JDev 11.

    Button cancel any reasons to hide? What is the af:dialog type = "ok"? OR af:popup with a button?

  • Acrobat Reader DC: Hide the Browser buttons

    Hello

    I want to deploy Adobe Reader DC 400 work stations, but I want to hide or disable the left column, with the buttons of the browser. Someone knows how can I do it please? I tried to change the registry, but nothing works.

    Thanks for your help2016-04-13_11h17_40.png

    Hi davidg44164206,

    You can try referring to this thread: reader XI - how to hide the default Navigation pane?

    It is for reader XI, you can try the parameter given in the thread for reader DC registry.

    Also wishes to inform you take a backup of the registry beforw not change it by accessing the file > import.

    Let me know if it helps.

    Concerning

    Sarojini

  • Hide the list button dropdown object except when he put there at the point on the field?

    Is there a way to hide the object from the dropdown list of the button (only) when it does not focus on this field drop-down list? If the button is not visible until the user clicks this drop-down list is not visible when the user leaves this field drop-down list. As the functioning of the object date.

    If you set access for the field read-only by default, they can still enter the field to display the button if you put the above script if the entry...

    I hope I understand correctly, this method should work perfectly if your goal is to hide the button from the drop-down list

  • Hide the next button in the quiz until you click Submit

    How can I do this? I don't want the learner to be able to click Next until what they have clicked on submit the final quiz. For various reasons, I can't put the quiz affecting Answer All, the main reason being there are formative earlier in the draft questions they should be able to jump to our table of contents to work. So, I just need an action that hides or disables the next button until that question has been submitted.

    You don't need the button next in the Quiz, we mean that there is a "Skip" button. If you don't want to blow up, but you need it for later review, just under the Clear key.

    http://blog.lilybiri.com/question-question-slides-in-Captivate

    Lilybiri

  • Hide the list button dropdown object

    Is it possible to hide the button that works the object in the drop-down list? As the date object, you don't see the button until what you click in the field. Is this possible with the drop-down list button?

    Thank you

    N °

    the look of the drop-down list widget is outside the control of the designer.

  • Is there a way to hide the online button publish on the application toolbar?

    I prefer to use InDesign as part of the application, but since the day I constantly get on the new button "Publish online", triggering the big boring overlay that blocks the buttons I wanted to achieve:

    Bildschirmfoto 2016-01-29 um 18.38.58.png

    I do not use the online publication feature so I would like to get rid of him but I could not find a way to do it. Also I do not know why the overlay is triggered by a mouse on unlike the rest of the GUI that resembles a strange interface design decision.

    Preferences > Technology Previews > (uncheck) publish online (preview)

  • Hide the AS3 button "next".

    Hello apologies if this has been discussed before.

    I have a small microsite built using Flash 4. It contains 5 'pages' assigned to individual keyframes, each keyframe separated by 5 images (F5s). Each keyframe is labeled "page1" Thanks "page 5. I have a navigation bar for all of the site that includes the buttons NEXT and PREVIOUS. When the user reaches the LAST PAGE/image KEY I don't want the NEXT BUTTON to view it. I suspect it's something simple like nextbutton.visible = true - but I spent a day trying to work out how to do this, but without success.

    I use AS3 and the current encoding is shown below. Any help much appreciated.

    Thanks George

    nextbutton.addEventListener (MouseEvent.CLICK, nextPage);
    previousbutton.addEventListener (MouseEvent.CLICK, prevPage);

    function nextPage(event:MouseEvent):void {}

    var thisLabel:String = MovieClip .currentLabel (root);
    var thisLabelNum:String = thisLabel.replace ("page", "");
    var curNumber:Number = Number (thisLabelNum);
    If (curNumber < 5) {}

    var nextNum:Number = curNumber + 1;
    MovieClip (root) .gotoAndStop ("page" + nextNum);

    }
    }
    function prevPage(event:MouseEvent):void {}

    var thisLabel:String = MovieClip .currentLabel (root);
    var thisLabelNum:String = thisLabel.replace ("page", "");
    var curNumber:Number = Number (thisLabelNum);
    var prevNum:Number = curNumber - 1;
    MovieClip (root) .gotoAndStop ("page" + prevNum);

    }

    It was my suggestion, which I mentioned, you would need to make it visible again if you move backward.  Think what it through and you can solve this problem without additional assistance.  Click on the back button is the strengthening of back, so...

  • Add a new link in the global button bar

    Hello

    How can I add a link in the button bar world close to home, customize the page of links etc.

    Good to know,
    If the problem is resolved, could you please make the thread as answered, which will help others to verify your soln also.

    http://forums.Oracle.com/forums/Ann.jspa?annID=914

    Thank you.

    With respect,
    Kali.
    OSSi.

  • How to prevent the address\search-area of resizing and hide the other buttons of the same bar?

    I reduced my bars to 2 - on which there are all the buttons of addons, etc. - are more in the bar as well as the field address\search; on the other - the tabs.

    When it is resized due to some long URL or something - some end buttons until after the right - in a menu "more tools" - I have to click - then it takes place and I see these buttons.

    Or another way to prevent the buttons to darkened. Thank you.

    It seems have solved the problem by installing "Classic" theme restaurateur; which allows to combine the tabs and the address field of 1 bar (screenshot).

  • Hide the global error messages in Adf Faces

    Hello

    The feature I want to put in place requires that overall error due to validation messages on the client side should not be displayed (not yet online), but messages of its components should appear. How do I implement this.

    What I have done so far is:
    < af:messages id = "m1" globalOnly = "false" inline = "true" / >
    The overall message is displayed online. I don't want either the popup window is displayed or displayed inline. Only the individual messages should appear.

    Thank you
    KSN

    You can try this setting?

    Thank you
    Nini

Maybe you are looking for

  • Best way to integrate the Macbooks with Windows AD

    Hi guys,. I'm really new to the Mac platform! I'm a windows administrator and I have around 30-40 MacBooks in my organization. I want to join all the MacBook to windows active directory and all users need to connect with their AD accounts. I saw an o

  • Workflow using the iPad in the field?

    I am a wildlife photographer and usually bring my MBP and Thunder drive with me in Africa. I try to lighten my load and bring an ipad instead. But I need to keep 2 backups as well as cards. To my knowledge, I was not able to find any solutions from t

  • Do not see the option «Export all Flickr photos»

    I'm working on a Mac OS X (MacBook Air) and the use of Logic Pro X (that I started using a few weeks ago). When I try to find the option to export all tracks (which I said is "file > export > export all tracks as Audio files '), it does not appear. I

  • Each document is listed as an Office document and does not open

    Separated from this thread. I went looking for a document and when it came a pop-up appeared and said: I was not able to open with the current program and listed several and not being not high heat, I hit the office and when I did all of the programs

  • USB slot

    Dear all! I have a problem. I just got a hp g1n12ea and it has 3 USB port. And two of them do not work. I guess it's a software problem. Can someone help me?