How to add new button in Customized page....

Dear All,
I need to add new button to the page button bar in the UI page.I tried like this in the controller but still i can not get output:
OAPageButtonBarBean oapbb = (OAPageButtonBarBean)oawebbean.findIndexedChildRecursive("OrderPageButtons");
OAButtonBean cancelButton = (OAButtonBean)createWebBean(oapagecontext, OAWebBeanConstants.BUTTON_BEAN,
null, "cancelButton");
cancelButton.setText("Cancel");
oapbb.addIndexedChild(cancelButton);
Is there anything i missedout?
TIA

what you are doing incorrectly is
trying to get the handle to the OAPageButtonBarBean.
This is a named child of the parent bean(OAPageLayoutBean), and what you are trying to do is find it as a indexed child, this should give you a nullpointer excp in this line oapbb.addIndexedChild(cancelButton);
since the handle should be null.
to get the handle to OAPageButtonBarBean, use some like this
pageContext.getPageLayoutBean().getPageButtons();
and then add buttons to it.
Thanks
Tapash.

Similar Messages

  • How to add a button on detail page

    Hey
    I know it is not standard function to add a button on detail page, but I would like to know if we can use javascripts to add a button on the detail page. for instances add it behind "Edit" button?
    Thanks for your input.

    Hi,
    Yes you can add a custom button through JavaScript. Below is the link of the document for adding or deleting a button.
    http://www.box.net/shared/3brq569ybg
    Thanks & Regards
    Sablok

  • How to add new links to a page

    Hello Community
    In Sharepoint 2013 Server can you create:
    A Link in the left navigtion bar  or Quick Launch
     when clicked it can open a new page  and on that page there is an “Add New” type of 
    button. 
    Then on that page you can add as many links as the page will allow, each 
    of those links can contain a url
        Thank you
        Shabeaut

    Hi,
    To add a new link on the left nav:
    You can go to site settings> navigation> add a link under "current navigation".
    For the second requirement:
    You can create a "links" list and add it to that second page. This way you can have that "Add Links" option and add links.
    Thanks,
    norasampang

  • How to add a BUTTON on a page

    Hello,
    1) I need to add BUTTON on a page, so that
    whenever a user clicks, it will display a report and also prints it.
    2) Are there any triggers associated to a page, like when page click etc. I have requirement, like whenever a user clicks the tab, a report has to be open in a new window !!!
    3) Finally, I need to display name,age,job etc on page, what is the best way !!!
    Any Suggestions !!!
    A.Kishore

    hai....
    edit that page,(ie)
    click CUSTOMIZE link and click the editdefault link in the blue banner
    then give the image u want,if any url
    then specify it..
    try this........
    null

  • In table view, how to add one button for selecting page?

    Hi Experts,
    In the OBIEE 11.1.1.6, we have one uncommon requirement that customers want to randomly select actual page to view expected data in table view.
    For example:
    We make use of some columns to create one report in table view, and set 'Rows per Page' equal to '5',
    if this report contains 60 rows, it will have 12 pages, so customers want to select sepcial page number to view the some data. Is it possible to implement this requirement? Maybe we should write JS code.
    Note: Below table view, it has four buttons: First Row, Previous Row, Next Row and Display (500) rows in per page. So we want to add one button to select per page.
    We look at orgnial codes in WebBrowse, but do not know the following codes derive from which JS file.
    Could you please tell me how to find this file?
    <td class="TapeDeckCell"><img class="TapeDeckImage" onclick="" onkeypress="" src="res/s_blafp/viewui/pivot/first_dis.png" title="" alt="" ><img class="TapeDeckImage" onclick="" onkeypress="" src="res/s_blafp/viewui/pivot/previous_dis.png" title="" alt="" ><img class="TapeDeckImageEna" onclick="PTRowScroll('saw_5083_b','5','5', event)" onkeypress="PTRowScroll('saw_5083_b','5','5', event)" src="res/s_blafp/viewui/pivot/next_ena.png" tabIndex="0" onmouseover="PTTD(event, 'res/s_blafp/viewui/pivot/next_ovr.png');" onmouseout="PTTDO(event)" onmousedown="PTTD(event, 'res/s_blafp/viewui/pivot/next_dwn.png');" title="Next 5 Rows" alt="Next 5 Rows" ><img class="TapeDeckImageEna" onclick="*PTRowScroll*('saw_5083_b','-1)', event)" onkeypress="PTRowScroll('saw_5083_b','-1)', event)" src="res/s_blafp/viewui/pivot/showallrows_ena.png" tabIndex="0" onmouseover="PTTD(event, 'res/s_blafp/viewui/pivot/showallrows_ovr.png');" onmouseout="PTTDO(event)" onmousedown="PTTD(event, 'res/s_blafp/viewui/pivot/showallrows_dwn.png');" title="Display maximum (500) rows per page" alt="Display maximum (500) rows per page" > <Span class="TapeDeckRecords">Rows 1 - 5</Span></td>

    Hi Kobe,
    Thanks for listening me.
    I agree 11g have some issues unlike 10g. I've tried the same by creating a measure rcount(1) and name it as Page in RPD. I just pulled column Page in pivot table section 'Pivot Table Prompts' it is working but this may not answer your requirements.
    I would suggest to use the column in Prompt and go by between operator to allow user to select the rows between.
    In the report make Page as prompted.
    If you are okay with this can look forward to tweak it further, like values in the prompt multiple of 5 or 10s some thing like that.
    let me know updates on the same.

  • How to add new button on Add content box in DVT

    Hello All,
    Currently we are using Dynamic Visitor Tool in weblogic portal 10.3.2 and want to add one new button e.g. "Favorite Portlets" along with portlet list when user clicks on Add Content menu option. Could any one explain what is the exact procedure to do it what are places/files we need to modify.
    Thanks in advance.
    Alka

    Hi,
    You will have to use the mixin mechanism provided in dvt. Here are the mixin classes you will need to add and methods to override within them.
    Original class - com.bea.wlp.dvt.uikit.wlp.menus.MenuBuilder
    Mixin class - com.bea.wlp.dvt.uikit.wlp.menus.MenuBuilderMixin
    Your mixin class will look like -
    wlp_dvt_dojo.setObject("com.bea.wlp.dvt.uikit.wlp.menus.MenuBuilderMixin", {
    buildNavigableMenu: function(scope, allowRemovePlaceables)
         var menuWidget = null;
              var menuWidgets = scope.getDescendants();
                   for(var widgetIndex=0;widgetIndex < menuWidgets.length;widgetIndex++)
                        var tempMenuWidget = menuWidgets[widgetIndex];
                        if(tempMenuWidget instanceof dijit.Menu)
                             menuWidget = tempMenuWidget;
                             break;
                   if(menuWidget)
                        try
                   if(wlp_dvt_WlpResourceDelegateInstance().isResourceUpdateable(scope.model.id))
                        //Change Appearance menu item
                             menuItemArgs = {label:scope.messages.changeAppearance,
                                       iconClass:"com_bea_wlp_dvt_uikit_menu_icon_laf",
                                       onClick:dojo.hitch(null, scope._onChangeAppearance, scope)};
                             mi = new com.bea.wlp.dvt.uikit.wlp.menus.NavigableMenuItem(menuItemArgs);
                             menuWidget.addChild(mi);
                        //Change Layout menu item
                             menuItemArgs = {label:scope.messages.changeLayout,
                                       iconClass:"com_bea_wlp_dvt_uikit_menu_icon_layout",
                                       onClick:dojo.hitch(null, scope._onChangeLayout, scope)};
                             mi = new com.bea.wlp.dvt.uikit.wlp.menus.NavigableMenuItem(menuItemArgs);
                             menuWidget.addChild(mi);
                        //Add Books menu item
                             menuItemArgs = {label:scope.messages.addBook,
                                       iconClass:"com_bea_wlp_dvt_uikit_menu_icon_book",
                                       onClick:dojo.hitch(null, scope._onAddBooks, scope)};
                             mi = new com.bea.wlp.dvt.uikit.wlp.menus.NavigableMenuItem(menuItemArgs);
                             menuWidget.addChild(mi);
                             //Add a menu separator
                             menuWidget.addChild(new dijit.MenuSeparator());
                        //Add Content menu item
                             var menuItemArgs = {label:scope.messages.addContent,
                                       iconClass:"com_bea_wlp_dvt_uikit_menu_icon_portlet",
                                       onClick:dojo.hitch(null, scope._onAddPortlets, scope)};
                             var mi = new com.bea.wlp.dvt.uikit.wlp.menus.NavigableMenuItem(menuItemArgs);
                             menuWidget.addChild(mi);
                             //Set As Default menu item
                             menuItemArgs = {label:scope.messages.setDefault,
                                       iconClass:"com_bea_wlp_dvt_uikit_menu_icon_setAsDefault",
                                       onClick:dojo.hitch(null, scope._onSetAsDefault, scope)};
                             mi = new com.bea.wlp.dvt.uikit.wlp.menus.NavigableMenuItem(menuItemArgs);
                             menuWidget.addChild(mi);
                   if(allowRemovePlaceables && wlp_dvt_WlpResourceDelegateInstance().isResourceRemoveable(scope.model.id))
                        if(wlp_dvt_WlpResourceDelegateInstance().isResourceUpdateable(scope.model.id))
                             //Add a menu separator, but only if we have something to separate it from
                             menuWidget.addChild(new dijit.MenuSeparator());
                        //Remove Book menu item
                             var menuItemArgs = {label:scope.messages.remove,
                                       iconClass:"com_bea_wlp_dvt_uikit_menu_icon_delete",
                                       onClick:dojo.hitch(null, scope._onRemove, scope)};
                             var mi = new com.bea.wlp.dvt.uikit.wlp.menus.NavigableMenuItem(menuItemArgs);
                             menuWidget.addChild(mi);
                   //If no menu items were added to the main menu, don't render it
                             if(menuWidget.getChildren().length < 1)
                                  scope.destroy();
                        catch(e)
                             //handle no DISC or no authentication.
    In the abve code, follow the pattern to add a new menuitem in the place where you need it to show up. The method that gets called when the menuitem is clicked will go in the following mixin class -
    wlp_dvt_dojo.setObject("com.bea.wlp.dvt.uikit.wlp.menus.NavigableMenuMixin", {
    // add the method that gets called when your new menuitem is clicked
    Note I haven't run the code above so please check for syntactical correctness before you run it. Also note that, unfortunately, the granularity of the buildNavigableMenu method above is very coarse in that you cannot add new menuitems as small snippets all by themselves. So you will have to include the base menu building code along with your new menu item building code snippet.
    Thanks

  • How to add New fields to Customer Master Record Screen

    Hi All,
    As per our business requirment we need to add some new fields the BP screen.
    Could you suggest me how can I customize the new fields in BP creation screen.
    I change the screen sequence with the help of VCT, but I need to add some more new fields. Your suggestions will be highly appreciated.
    Thank you and Best regards

    Venkat,
    Your best bet is to read the documentation at:
    http://help.sap.com/saphelp_crm40/helpdata/en/20/a4ffee7e0fcc4ebb7e5466d3903d38/frameset.htm
    This gives you an overview of the Easy Enhancement workbench.
    Your steps to use it will be the following setup the customizing in transaction EEWC.  You can search this forum for help on how to setup this customizing.
    Then create the new extension using transaction EEWB, and follow the steps in the help documentation above, also read note: 484597.
    After you have read the doucmenation, and if you get stuck, then let me know and I will try to answer those questions.  The EEWB is very simple, so I don't think you will have too many problems using it.
    Good luck,
    Stephen

  • How add new currency symbol in pages 5.1?

    i couldnt find a way to custom add new currency symbol to pages or numbers. If anyone knows how to do, let me know. Thanks.

    Are you talking about in Tables?
    The list seems to be the list.
    In Pages '09 there is more flexibility you can have a Custom format and add your own prefix.
    Peter

  • 11.5.9/OAF 5.7 : how to add new fields in iProc "search results" page

    We need to add new fields into iProc "search results" page - "Personalize Self-Service Defn" is et, we can enter the personalization screens (from both the "master" link at top/right page level or from the link above the region) - anyway cannot find how to add new fields. Do we have to go to AK developer and/or XML files or is it feasable from OAF (as it is with 11510) ? TIA.

    It depends on what fields you want to add.
    1. If Oracle has included the fields, just render them via personalizations
    2. If they are brand new fields:
    a) you will need to extend the VO (I do not know the exact name).
    b) change the query to get your extra db columns if necesary
    c) add transient attributes to the VO and map them to b).
    d) Then you need to add the items via personalization and map them to the attributes you created in c)
    Check on metalink for the lates version of OAF Dev Guide and Personalization guide.
    Thanks
    Sandeep

  • How to add new tab page to equiment ?

    Dear Guru's
    i created the new equipement category K by coping the standard S.when i am creating the equipment while using equipment category S i am getting tab pages General,Location,organization,structure,Sales and Distribution.
    But while using the equipment category K for creating the new equipment i am getting the tab pages General,Location,organization,structure 4 only.
    why the 5 one Sales and Distribution is not coming ?
    how to add new tab page like Partners ?In that fields like sold to party,ship to party ?
    Could anybody help me in this regards
    Thank you
    suribabu

    In Equipment category creation config in IMG, check for the View Profile for both the equipment category S & K.
    For adding new tab, follow the IMG path.
    PM & CS => Master data => Technical Objects => General Data => Set view profiles for Technical objects
    Select the View profile which has been assigned to your equipment category & click Activity & layouts of views. In that screen, under seq.no, select the Partners.
    Do the same for other requried tabs based on your requirement.
    If there are same profile assigned to both equipment category, go to equipment creation creation => Edit => view selection. There you will find the required tabs.

  • How to add new custom tab to WZR1/2/3 at line item level

    Hi,
    Please explain how I can add new tab with custom fields at item level in SAP transactions WZR1/2/3. I am trying to use BADI WLF_ENHANCE_SCREEN_EX but somehow its not working. Please explain how this can be done ?
    Thanks
    Ullas

    Hi,
    We are trying to copy a work flow objects from ECC6.0 to 4.6C...where we found the following Select statement.
    *Determine Top WorkItem Instance
      if im_top_wi_id is initial.
       select wi_id top_wi_id wi_rh_task into lw_top_id from sww_wi2obj
         up to 1 rows
         where wi_rh_task = im_wftask and
               catid      = 'BO'      and
               instid     = l_instid  and
               typeid     = 'FIPP'.
       endselect.
       endif
    As table sww_wi2obj can't be found in 4.6C, can any one help how to replace or implement the same logic as above statements.
    Thank you....

  • I am using strobe media playback but i want to add new button for subtitle in control bar,Can anybody tell me how can i do it.

    I am using strobe media playback but i am not able to add new button for subtitle in control bar.
    I have imported assets.fla file in Flash professional but i do not understand how add new button in this fla and then link with action script method to show subtitle.If anybody know about it please tell me.

    Hi,
    Yes you can add video subtitle and I can give you the details how to do
    that. Can you please advise which type of files you have for video
    subtitile and how many language you want to add. i.e. text files or xml
    files.
    Best regards,
    Sunil Kumar
    On Thu, Jan 15, 2015 at 5:22 PM, Add Subtitles to OSMF and <

  • How to add new attribute in product catalog?

    Hi All,
    Can anyone tell me how to add new field/attribute in product catalog?
    The requirement is to display product's new attribute on product catalog screen.
    Do I need to create any custom java class?
    Need suggestion!!
    Thanks.
    Regards,
    Rupali

    Hello Rupali,
    I am assuming a CRM E-Commerce scenario for my help here.
    Can anyone tell me how to add new field/attribute in product catalog?
    You must start from defining the new Attribute in an exisiting or new Set Type. Use transaction code COMM_ATTRSET. Once you have the attribute / attribute set defined, you can assign this to your catalog - in the header data as the Basic characteristic List.
    to display product's new attribute on product catalog screen
    See catalog/ProductDetailISA.jsp for tips - search for catalog.isa.attribute. The catalog item WebCatItem has all the details available already.
    com.sapmarkets.isa.catalog.webcatalog.WebCatItem currentItem = webCatItem;
    If you want to show the details of attributes in the catalog page - say - catalog/ProductsISA.jsp, the instance of WebCatItem is already available. In this page look for
      <isa:iterate id="item"
                   name="itemPage"
                   type="com.sapmarkets.isa.catalog.webcatalog.WebCatItem">
    You can see that item is an instance of the WebCatItem and follow the code in the <isa:iterate> loop. Using the following code
    Iterator itemAttribute = item.getCatalogItemAttributes();
    will give you the attribute list. You can iterate over the list of attributes and do what you want.
    Easwar Ram
    http://www.parxlns.com

  • How to add new item in more options dialog box

    Hi all,
    Can anyone tell me how to add new item in more options dialog box(site actions -> more options). I want to add new item there to the new page layout which I created but I didn't find any way to do it. can anyone assist me for this.

    Good point, in order to add a Page into that area, you will need to define a Custom Action. You can learn more about creating Custom Actions here:
    http://msdn.microsoft.com/en-us/library/hh500259(v=office.14).aspx
    As an example, Microsoft uses the following Custom Action to add the "Publishing Page" to that Create Silverlight control when enabling the Publishing features:
    <CustomAction
    Id="CreatePublishingPage"
    GroupId="WebPages"
    Location="Microsoft.SharePoint.Create"
    Sequence="100"
    Title="$Resources:cmscore,Create_WebPages_PublishedPage;"
    Description="$Resources:cmscore,Create_WebPages_PublishedPage_Description;"
    ImageUrl="/_layouts/images/ltpp.png">
    <UrlAction Url="_Layouts/CreatePage.aspx" />
    </CustomAction>
    Dimitri Ayrapetov (MCSE: SharePoint)

  • UmLogonPage.jsp - Add new Button

    Hi Portal experts,
    I am customizing the Logon Page, umLogonPage.jsp . My requirement to add new button in umLogonPage.jsp and on action it should redirect  BSP iview.
    Can you help me to implement this. I have downloaded the Par file and imported in NWDS .
    Please provide help if possible.

    Hi Rashi
    Go through  Modifying The Logon Par(or customising the Logon Screen)
    Just search for custom login page in portal and you will get various link on this.For adding new button add the button code in  umLogonPage.jsp.You can copy the Submit button code already available and change the source link.
    Regards
    Shankar

Maybe you are looking for

  • Cannot open itunes in windows 7, tried everything, hav 64 bit , new pc

    Cannot open itunes in windows 7, hav new pc with window 7 64 bit but have not been able to open itunes after downloading in numerous times and ways. Consulted various but still won't open , icon appears but nothing esle. Need help,been tryin for mont

  • Can I install Oracle10g AS R2 in WIndows XP Pro?

    Hi, Just to confirm is it really true that we cannot install Oracle10g AS R2 in Windows XP Pro? The things I need from application server are: - plsql support for web application - oracle discoverer - oracle reports server Please advise. Thank you.

  • Exporting report to Excel messes up the graphs

    Hi All I am facing an issue and wanted to know if anyone has dealt with it before. I have data in tabular format as well as graphs (bar charts, pie charts etc). When I export the report and save it as PDF everything is excellent but when I export the

  • I want full study material of Product costing

    HI gurus plz send me P.Costing full study material. Thank you

  • Error from ejbc: The JNDI name of bean

    hi~ i have a problem . to deploy , i did test bean like this.. java -classpath %CLASSPATH% -Dweblogic.home=%WL_HOME% weblogic.ejbc -compiler javac old.jar new.jar ERROR: Error from ejbc: The JNDI name of bean c was not set ERROR: ejbc found errors th