Place a new button

Dear Friends
It may be a very good thing with Floor Plan Manager but I have not understood the functioning properly yet.
Can someone please explain to me as simply as how to place new button in a specific area . Especially, I have not understood
how do I find out which section is the correct section where the change must be made especially if
the applications consists of many components and uilements.
How do I know exactly where I must make my changes
I thank you all for all your kindly efforts.
Friendly Regards
ertas ilhan

Hi Ertas,
try to follow these steps and do one exercise you will get an idea about FPM-OIF (OIF is one of the floor plan type in FPM, OIF Stands for object instance floor plan similarly we have GIF and QAF.)
Create a webdynpro component and implement the following interfaces.
IF_FPM_RESOURCE_MANAGER
IF_FPM_TRANSACTION
IF_FPM_UI_BUILDING_BLOCK
IF_FPM_WORK_PROTECTION
Intern required method from floor plan manager interface will be implemented in component controller.
Create a webdynpro application.
If it is OIF component use FPM_OIF_COMPONENT in case GIF you can use FPM_GAF_COMPONENT to create the webdynpro application.
Enter the configuration name and create.
Given the OIF configuration name and IDR configuration name.
Select the first row, go to component configuration.
Drill down the variant tree and go to the Main node, then give the required inputs.
ID Name etc..
In the sub view -> UIBB -> enter the wdc name and view: (window name).
Based on the main and subs view create the wdc and windows.
Drill down the variant node for further and visible the buttons accordingly In the tool bar and enter the fpm event id like create/modify etcu2026
Finnish the configuration and go back to the appln configuration.
Select the IDR_USAGE row.
Click on goto component configuration.
Provide the appln titile tool tip etc.. save and close
To trigger the button actions.
Place a break point in component controller of the main wdc in component controller process_event method.
Here IO_EVENT is the import parameter get the even it by using io_event->mo_event.
Which give the event id of the button click which once is clicked based on the event id perform the action.
Configure the IDR header of the application.
Create the assistance class.
Use the following get in process_before_ouput in component controller of the main wdc.
In comp.controller get the text element by goto->text symbols.
Keep the following example codeu2026
Assumption: create the context node in component controller: test->sflight.
  Update IDR
if io_event->mv_event_id = if_fpm_constants=>gc_event-leave_initial_screen.
if io_event->mv_event_id = if_fpm_constants=>gc_event-start.
    data: lt_items   type if_fpm_idr=>t_items_ref,
          ls_item    type if_fpm_idr=>s_items_ref,
          lo_idr_api type ref to if_fpm_idr,
          lo_context type ref to if_wd_context.
    lo_idr_api ?= cl_fpm_service_manager=>get_service( iv_service_key = if_fpm_constants=>gc_service_key-idr ).
    lo_context = wd_context->get_context( ).
    ls_item-label_name = wd_assist->if_wd_component_assistance~get_text( '002' ).
   ls_item-value_path = `FLIGHT_DETAIL.EXPORTING_2.FLIGHT_DATA.AIRLINEID`.
   ls_item-value_path = `2222`.
  wd_this->set_sflight_data(
    ls_item-value_path = 'TEST.SFLIGHT.CARRID'.
    append ls_item to lt_items.
    ls_item-label_name = wd_assist->if_wd_component_assistance~get_text( '003' ).
   ls_item-value_path = `FLIGHT_DETAIL.EXPORTING_2.FLIGHT_DATA.AIRPORTFR`.
   ls_item-value_path = `3333`.
    ls_item-value_path = 'TEST.SFLIGHT.CONNID'.
    append ls_item to lt_items.
   ls_item-label_name = wd_assist->if_wd_component_assistance~get_text( '004' ).
   ls_item-value_path = `FLIGHT_DETAIL.EXPORTING_2.FLIGHT_DATA.AIRPORTTO`.
   append ls_item to lt_items.
   ls_item-label_name = wd_assist->if_wd_component_assistance~get_text( '005' ).
   ls_item-value_path = `FLIGHT_DETAIL.EXPORTING_2.FLIGHT_DATA.FLIGHTDATE`.
   append ls_item to lt_items.
   ls_item-label_name = wd_assist->if_wd_component_assistance~get_text( '006' ).
   ls_item-value_path = `FLIGHT_BOOKING.EXPORTING.BOOKING.PASSNAME`.
   append ls_item to lt_items.
   ls_item-label_name = wd_assist->if_wd_component_assistance~get_text( '007' ).
   ls_item-value_path = `FLIGHT_BOOKING.EXPORTING.BOOKING.ORDER_DATE`.
   append ls_item to lt_items.
    data: ticket_text_top    type string,
          ticket_text_bottom type string,
          exception          type ref to cx_fpm_idr.
    try .
        ticket_text_top    = wd_assist->if_wd_component_assistance~get_text( '001' ).
        ticket_text_bottom = 'bookid'.
        call method lo_idr_api->set_ticket(
          iv_top = ticket_text_top
          iv_bottom = ticket_text_bottom
          iv_top_tooltip = ''
          iv_bottom_tooltip = ''
        call method lo_idr_api->add_item_group_by_ref(
          io_root_node = lo_context
          it_items = lt_items
      catch cx_fpm_idr into exception.
        "Do nothing for the moment.
    endtry.
endif.
all the best....
Regards,
Mahesh.Gattu

Similar Messages

  • Placing a new button with WD configuration

    Hi experts,
    I'm trying to place a new button in Web Dynpro component /SAPSRM/WDC_UI_BEV_CA, with component configuration /SAPSRM/WDCC_FPM_UI_BEV_RFQ_CA.
    I've already placed a button on toolbar block and also added a new FPM event ID NEW_EVENT.
    When I debug the WD application FPM_OIF_COMPONENT, I'm able to detect that the new event is raised. But now I want to add some code for opening a new window. Where should I place this code? Please note that I need 1 parameter from the WD application (OBJECT_ID).
    Can you help me?
    Thanks in advance.
    André Sousa

    Hi,
    Thanks for your answer.
    I was not able to understand if I need to change the standard WD component FPM_OIF_COMPONENT.
    If not how does the developed WD know that should be started? Does this component need to instantiated somehow?
    Could you please give me more detail regarding what I need to do to implement this need?
    Example:
    Where to place the io_event and how to instantiate the developed WD?
    Thanks a lot!
    Cheers,
    André Sousa

  • [Feature Request] Better support for new buttons in JUNavigationBar

    In my project I use a home made sub-class of JUNavigationBar, which contains some new functionality apart from a new button as well. This button allows me to refresh the currently selected row.
    However, since I added this button though a simple this.add(), some of the functionality in JUNavigationBar may get confused.
    For example, when I have removed some of the standard buttons but left my own button in place (setHasXXX()), the component index (calculated in JToolBar) and the array index for the buttons in JUNavigationBar may not match. This occasionally causes an ArrayIndexOutOfBoundsException.
    In short, what I'm asking for, is a better way to manage buttons on JUNavigationBar. Even making the array of buttons and related methods and such protected in stead of private (so that my sub-class could handle it) would be a good start.

    Hi Arno,
    I had a similar issue with trying to create a Nav bar with dynamic content. My solution was to leave all the standard buttons in place and to use setVisible(x) to make them appear or not as required.
    BTW have you noticed that rollover behaviour isn't consistant ie works for FIRST/LAST etc but not for FIND/QUERY.
    Regards
    Andy

  • Disabling Menu Options on New Button in Form Library

    In InfoPath form libraries on SharePoint online, I've noticed a new menu that now pops up when clicking the "new" button.
    I do not see a setting in the library to disable this. Is there a setting some place I'm overlooking?
    Thanks!

     The only way to remove them is customization.

  • When clicking the new button

    I would like to know how I can get the value you had fields before clicking the new button and place it back on the field. The idea is that the field is not empty , but have the previous value.
    (excuse my English is not my primary language)

    HI Juan,
    I can hardly give precise troubleshooting according to your description above, could you provide more explanation about this issue?
    Best regards,
    Angie
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Bevel effect moves Featured News buttons down and right after update

    After I applied the update today, all of the Featured News buttons with the Bevel Effect have been moved down and right about 1/4" and I cannot seem to fix.  I used the Bevel feature for all buttons in the Rollover, Mouse Down, and Active states.  Before I applied the update, the bevel feature worked great, but now, as you can see from the image, the buttons have now moved down and to the right.  I've even tried deleting the entire widget and starting over, but no fix.
    The attached image shows the Featured News buttons.  The top button is in ACTIVE state with the Bevel effect activated.  The "Step 3" button shows the Rollover state with the Bevel effect activated.  All other buttons show the NORMAL state - NO BEVEL.  Before the update was applied, the buttons would appear in the same location as the NORMAL state, but now the buttons appear lower and to the right as you can see.

    I'm having similar problems - and now I cannot remove the bevel from my buttons and they are shifting all over the place!

  • 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

  • Creation of new button on same page after insert command

    Hello All,
    I have an application running on apex.oracle.com where my workspace name is shruti_work,username is [email protected] and password is buwigi. The application name inside this is "app2"
    I am trying to achieve one functionality there but unable to get it so felt like seeking an help from experts here. I have two forms there one page1 form which is simplly made on an html region with go button which is navigating the page 1 items value to page 2 but simply passing their address witout updting the database table.
    In Page 2 i created page on a table or view, which made some extra buttons which i dont want like applychanges ,delete button, cancel button. I created a create button even which is updating my database with insert sql command. What i am seeing is after my create button is pressed i got navigated to same page 2 which i want to but the applychange button, cancel and delete button got appeared. I dont get the idea why it is so. i have checked the buttons even i didnt found anything there.
    All i want is when i press create button in page 2, my database get update and at the same page (2) a new button get appears which i have to use for other things. Approaching to this solution i created a button with giving databse action update and condition to this button "value of item in expression 1 is not null" and in expression 1 i passed p2_id...... but my new button is not getting created.
    Any help on this?

    Hi Jeff,
    I dont want applychanges button and delete button in my page 2. But when i created form on a table or view this but got created and i cannot delete it even. When i am navigating my page from page 1 to page 2 and filling the fields in page 2 and clicking create button, at that time i want after updating my table and running my plsql process which i have created which you can see in page processing, my button at same page get generate which i will use to navigate to other form. This button which i want to generate after clicking my create button will be meaningful only if my record get inserted in table. so that is why i want it at that time.
    I dont want any report so i am not creating form on a table or view

  • New button in lightbox?

    I am trying to add a button inside Lightbox to link to a PDF i created  and the link name would have [PDF Version] so when the button is clciked it would open a new window that would have the PDF in it.
    What i am trying to do as an overall objective is to create a lighbox style menu for the Website i am creating so when the Breakfast link is clicked on it opens a Lightbox group of images. Now i have already gotten Lightbox up i just need to put a link or new button linking to a PDF of the same page but something people can download i would prefer to have a Icon style custome button in the lower center of the lightbox kind of like this
    http://i1114.photobucket.com/albums/k528/jeepsguy/WildBoar_Sample.jpg
    The website i am working on is
    http://creationsmh.com/
    that is an old version of it,  but when u hover over the menu button u see breakfast lunch and drink links when each is clicked on right now they open up a Lightbox gallery with the abover format.
    Please help?

    Hello Kevin
    Two ideas come into my mind:
    (1) You have not selected any node in your ALV tree yet the toolbar function expects at least (exactly?) one node to be selected (NOTE: You may have selected an ITEM but not the node)
    (2) Perhaps you have used NODE_SELECTION_MODE = ..._MULTIPLE in the CONSTRUCTOR method and the control expects NODE_SEL_MODE_SINGLE
    Regards
      Uwe

  • Adding new button to Standard Page and Launching CP when clicked

    Hi,
    I have a requirement to add a new button to a standard OAF page and when it is clicked, I need to launch a Concurrent Program. Can you please let me know any links/pointers/documents where I can get the details as how this can be accomplished.
    TIA.

    anyone?

  • Creating new buttons on different frame labels

    can someone tell me if im doing something wrong or assigning
    the as to the wrong frame?
    first off i have all my buttons on frame 2. im creating a
    real estate site and i have to have a couple links like HOME ABOUT
    BUYING SELLING CONTACT, the thing though is that in the BUYING and
    SELLING frames i want to add more sections and links but only on
    these 2 other parts of my site. when i code it and add new buttons
    to these sections though my movie plays over and over and over non
    stop. heres my coding...
    FRAME 1 preloader
    Frame 2 has a frame label of home and all the buttons on a
    diff layer, and AS3 on a different layer
    Frame 3 has a frame label for about section
    Frame 4 is my contact for example
    so if i create a new button in the about frame label and just
    add the code to the working as3 code on frame 2 my movie just plays
    over and over and over again, and all i want it do do is act like
    the other buttons and go to a different frame label down in the
    time line. the only way i get it to work is if i have ALL my
    buttons on frame 2.
    frame 1
    my preloader
    frame2
    home_btn.addEventListener(MouseEvent.CLICK, onHome)
    function onHome(event.MouseEvent):void
    gotoAndStop("home");
    about_btn.addEventListener(MouseEvent.CLICK, onAbout)
    function onAbout(event.MouseEvent):void
    gotoAndStop("about");
    etc....
    etc...
    i enter my btn code just like this and the buttons on frame 2
    work but any new buttons i try and creat and put into different
    frames othere then frame label "home" aka frame 2 wont work

    correct.
    there are lots of ways around it. but they all require the
    object to exist when the code executes.
    with as3 it's particularly easy to create objects, code for
    them and then add them to the display list later when
    needed.

  • How can we place a push button in ALV  report

    hi
    could anybody inform me
    how can we place a push button in ALV  report
    thanx
    regards
    kals.

    Hi kals.
    please have a look at demoprogram
    SALV_DEMO_TABLE_FUNCTIONS
    BCALV_GRID_05
    Regards
    Bernd

  • Standard New button for creation of bp is not appeared in ic agent bp role's main page.

    I have checked in.htm page of ICCMP_BP_MUL_S/BuPaSearchB2B which is getting called in web.
    in line no. 45 of .htm page there is condition to check whether new button should be displayed or not, when this condition is true no_bp_create is initial then only new button appears in ic agent.
    I have debugged so many times but unable to find out from where no_bp_create flag is populated and in conclusion new button is not appeared .
    I think there is some authorization which should be assigned to user for creation of bp so that above said flag (no_bp_create) is not getting populated.
    if i am on right track so please let me know which authorization is to be assigned to user so that user can see new button in ic_agent.

    Hi Sunny,
    The parameter no_bp_create is being set in the do_init_context method of the view controller class of same view but the value is being fetched using a badi.
    The authorization to create BP can be enabled by implementing the BADI BADI_CRM_BP_UIU_AUTHORITY (or enhancement spot CRM_UIU_BP_ENHANCEMENT).
    Users can be authorized to create/edit data for different UI components using this badi.
    In this badi put the condition for the application name may be as (based on your scenario or explore more)  cl_crm_ic_bp_constants=>gc_bp_create OR OR  cl_crm_ic_bp_constants=>gc_bp_edit and set the value of parameter cv_not_allowed = abap_false. Then you should be able to see the New button.
    Regards,
    Shobhit

  • How to add a new button in IC tool bar and handle the event for the button?

    Hi,
        I am working on CRM 2007 Interaction center. To add a new button to IC toolbar, customizing is available to define a new button and then assign in to the profile.
    In SPRO->CRM->IC webclient->Customer Specifc System Modifications->Define Toolbar Buttons, I defined one new button with ID ZSTART.
    Now in SPRO->CRM->IC webclient->Basic Functions->Communication Channels->Define Toolbar Profiles , I selected Default profileid and in Generic Layout Buttons Tab, I added the new button ZSTART in Position 3.
         So after completing the customizing when the user logs in using role IC_AGENT,  the button (with ID:ZSTART) gets displayed in the IC toolbar too.
          Now on click of this button, I need to create an object.
    To do so, I have to catch the event which is raised by this new button.
           Please let me how to implement the event handler for this new button. What will be the event name for this button click event and how I can subscribe for it ?
         Please let me know if anyone of you have already worked on similar requirements.
    Regards,
    Manas.
    Edited by: manas sahoo on Jul 22, 2008 7:49 PM

    Hello Manas,
    There are a couple of threads in the community that might help you out (if you haven't already found them):
    Re: IC Web Client Toolbar
    /message/3621917#3621917 [original link is broken]
    Regards,
    Renee Wilhelm
    Edited by: Renee Wilhelm on Nov 6, 2008 7:46 PM

  • 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.

Maybe you are looking for