Popup for view of the same component

Hi,
I want to display a view in a popup window, I know how to do it using interface view of an external component.
But Is it possible to open a view of the same component in a popup window?
Regards,
Mauricio

Hi,
Create a window in you component, say MyPopUpWindow.
In Runtime Repository, Attache the view of your component to this window.
Now create a Component Usage , Say CUXyzPopUp , for your component as used component and use MyPopUpWindow in there. Always use F4 for attaching views, windows and attaching window to Component Usage.
You are done !!
Now use the usual code for creation of popup using this Component Usage.
reuse_popup = comp_controller->window_manager->create_popup(
iv_interface_view_name = 'ZCOMP/MyPopupWindow'  "#EC NOTEXT
iv_usage_name = 'CUMyPopup'                      "#EC NOTEXT
iv_title = lv_title  ).
Hope this helps.
Thanks & Regards
Suchita

Similar Messages

  • Need to access a context_node in an another view of the same component

    Hi experts,
    I need to access a context_node which is not in my view but it exist in an another view of the same component.
    The component is ICCMP_BP_DETAIL.
    i need the context_node "CUSTOMER" from the view Bupadetail to view Bupacreate. so that i can make those context_node Attributes available in the configuration screen.
    regards,
    chella.

    Hi Chella,
    You can access the context node from other view using the custom controler or getting a context node from view that you are and use the method get_parent(to get predecessor objet) or get_related_entity(to get sucessor object).
    I think the second way is easier.
    Use transaction GENIL_MODEL_BROWSER and GENIL_BOL_BROWSER to know in wich object you are and where you have to go!
    Best regards,
    Caíque Escaler

  • Copying view to the same component is not working

    Hi Experts,
    I have a requirement to split the Installed Base Hierarchy view (IBHIER/TreeEnhanced) into two parts.
    Each of these parts will show a specific number of levels in the Installed base hierarchy.
    So I was trying to copy the standard IBHIER/TreeEnhanced view using the copy option by right clicking on the view name.
    I have already enhanced the component IBHIER.
    While copying the view, I am proving the following values.
    I get a message that the view is successfully copied into the z bsp application.
    I can see the view added to the z bsp application in SE80.
    But I do not see the view added in the view list in the component workbench(bsp_wd_cmpwb).
    Can you please let me know the correct process?
    Thanks,
    Samrat.

    Hi Samrat,
    i have tested in my system..
    you have copied that view right then go to run time repository go to treeoverview into that view area add ur view by bspcomponent is zibhier and view is ur copied view.
    go back and load the component again the you will see the view.
    have you seen this link this is similar to your requirement..
    How to copy standard view in same component.
    just go through this you may get some idea..
    Regards,
    Srinivas.

  • Is it possible use component controller  for to expose data of one view in another view within the same component?

    please give with an example if possible to use?
    Moderation: Thread Locked. Kindly do not post interview questions here

    I'm so sorry I don't have a solution for your problem but would you be able to show how you managed to call an external task-flow inside another application? I'm having some difficulties doing so.
    Thanks so much

  • Read Attributes between different views in the same Component

    Hello,
    I have a attribute-D1 declared in VIEW1 and i need to read it into attribute D2 declared in VIEW2.
    I am planning to read it in DO_PREPARE_OUTPUT method of VIEW2.
    Can you please tell me how can i achieve this without having to create another context node (similar type to VIEW1) in VIEW2 and Binding it.
    Can't I just access the View Controller Class of VIEW1 to read it in VIEW2?
    Quick replies would be great.
    Regards
    Dedeepya C

    Hello again,
    I think i was not very clear in my earlier post. So il explain a bit more clearly this time-
    My requirement is to display a SEARCH+RESULT popup (view) onclick of a link; and the popup display has the result list already fetched for the SEARCH Criteria(defaulted).
    Now what i had to do was have the RESULT LIST TITLE display the number of records fetched.
    So my approach was to -
    1) READ the RESULT Size in EH_ONSEARCH of SEARCH VIEW.
    2) Form the Result Title using method  cl_crm_uiu_gen_tools=>get_result_title into a Public Ins Attribute GV_TITLE.
    3) READ the GV_TITLE from SEARCHVIEW into a local attribute in SEARCHVIEWSET (SEARCH VIEW + RESULT VIEW) LV_TITLE.
    data : lv_result_title type string,
      lv_view_controller type ref to ZL_SEARCHVIEW_IMPL.
      lv_view_controller ?= controller->get_subcontroller_by_viewname( 'Ztest/SearchView' ). "#EC NOTEXT
      if lv_view_controller is bound.
      lv_result_title = lv_view_controller->gv_result_title.
      endif.
      <thtmlb:searchFrame showSearchFields = "TRUE"
                          resultListTitle  = "<%= lv_result_title %>" >
      </thtmlb:searchFrame>
    Now, i noticed during debug, when the SEARCH Popup is triggered the 1st time, the control goes to SEARCHCVIEWSET.HTM 1st (GV_TITLE is initial at this point) and then goes to DO_PREPARE_OUTPUT where the Event Handler for SEARCH is called and where the GV_TITLE is set. Due to this the Result Tab gets the default title RESULT LIST
    Whereas the next time, when i click on SEARCH event on popup, the control 1st goes to EVENT HANDLER (where GV_TITLE is set) and then to SEARCHVIEWSET.HTM, this then sets the correct title for RESULT list.
    I need some pointers on why the control goes to SEARCHVIEWSET 1st before even DO_PREPARE_OUTPUT is called.
    How do i set the RESULT Title in the 1st instance to display the correct no. of records fetched.
    Any help would be appreciable.
    Regards
    Dedeepya

  • Read value from a view in the same component

    Hi Experts,
      I have an issue. As I m new to CRM, I am unable to solve this. I am working on component SRQM_INCIDENT_H.
    There are two views in this  - IncidentHeader and IncidentOV. IncidentHeader has a context CUSTOMERH in which we have a field (attribute ) zzcomptyp. I need to check this field value to enable / disable a button . The button (followup) is in the view
    IncidentOV. So I need to read the field value in the method if_bsp_wd_toolbar_callback~get_buttons. but I dont know how I can read from a different view. Please let me know the syntax.
    Thank you,
    GSK

    Hi ,
    Try with the below code in if_bsp_wd_toolbar_callback~get_buttons
    data:                lr_btcust             TYPE REF TO    cl_crm_bol_entity.
    lr_cn = me->get_context_node( gc_cn_btadminh ).
    IF lr_cn IS BOUND.
        lr_entity ?  =  lr_cn->collection_wrapper->get_current( ).   
        lr_btcust ?  =  lr_entity->get_related_entity( iv_relation_name = 'BTHeaderCustExt' ).
        CALL METHOD  lr_btcust->if_bol_bo_property_access~get_property_as_string
            EXPORTING
              iv_attr_name = 'zzcomptyp'
            RECEIVING
              rv_result    = l_value.
    endif.
    endif.
    Regards,
    Gangadhar.S

  • Reading the Context Node in the same Component

    Dear Gurus,
    I have made enhancement to standard view and functionality is working fine.
    Now i need to read the different context node (Different view) from the same component.
    I try to do the way Webdynrpo read the context node  but here there is Wizard and i stucked :-(.
    Can you plz suggest or post small code to read context node.
    Regards.
    ****Poorna****

    Hi,
    If those two views are assinged to one viewset in runtime repositoty, you can read the secod view by following code:
    lv_viewname = me->get_viewarea_content( 'Upper' ).      " here(me =view1)                               
      IF lv_viewname IS NOT INITIAL.
        lr_viewctrl = me->get_subcontroller_by_viewname( lv_viewname ).
        IF lr_viewctrl IS BOUND.
    from here you can read the context nodes.
    Regards,
    S Reddy

  • More than one business component (views) in the same JSP page

    Hi, I am trying to have more than one business component (views) in the same JSP page as Input Form.
    For example:
    There are two BC4J:
    Person:
    Code.
    Name.
    Address:
         Person_code
         Street.
         City.
    There is a master detail relationship between them and there is a link between both views in the application module.
    I want to create a JSP page with an Input form for both views. When the user decides to create a Person, I need to insert in both tables.
    Insert code and name into Person table.
    Insert Person_code, Street and City into Address table.
    It is possible to do in Forms but I am not sure if I can be able to do this in JDeveloper 10G.
    Thanks

    Sorry I lost the tabs
    Person has two attributes Code and Name.
    Address has three attributes Person_coden Street, City.

  • After upgrading to ios6 my iphone will not open .xls files in emails with the default viewer. Is there a fix for this? The same emailed .xls files still open on my ipad using ios5 while viewing email like they did on my iphone prior to upgrading.

    After upgrading to ios6 my iphone will not open .xls files in emails with the default viewer. Is there a fix for this? The same emailed .xls files still open on my ipad using ios5 while viewing email like they did on my iphone prior to upgrading. I have no special software like numbers or anything else installed on either device. Just using the default viewer provided by apple for viewing email.

    The attachment is an .xls excel 97-2003 spreadsheet. I viewed the file in the email and did not edit it with any software. I can forward the file to anyone that is may want to check it out to see if they can help me. I was wondering if there was some way of forcing another ios6 install on my phone and maybe that would solve it.
    Is there anyone out there that is viewing .xls files in email using ios6 w/o any other software installed like numbers or any other add ons? I am not upgrading my ipad from ios5 to ios6 so I can still continue to view the emails on my ipad. Is there an email viewer .xls plug-in that will be availablle in the next ios6 update?

  • How to use the same component in different applications

    Hi All,
    I need to use the same component in different applications. i.e In opportunity, Quotation & Promotion.
    The Search help view in the component PRD01QR should be used in all these components but with different search criteria.
    With help of the DO_determine_configuration, different view configurations are possible but Different search criteria is not possible.
    for Eg. search parameter without DDLB, F4 options in another components.
    How can I control the behavior of the search view in different applications with restricting the field properties?
    Is it possible to find out where and in which component these search_help_search component is used?

    Hi Harry,
    Is it possible to find out where and in which component these search_help_search component is used?
    ans: I am giving an Example for your question go through that u might get clear about this.
    Ex: BT115IT_SLSO  sales order component
    below screen they component usage using for populate the product search component.
    please let me know any help required .
    Regards,
    vishwa.

  • When do I need to declare multiple usages of the same component

    I have a noddy WD4A component with a main view containing only ViewContainerUI elements. Each container has a sub-view embedded implementing some functionality I am playing with. One of these views implements a select option by using the WDR_SELECT_OPTIONS component. I have got this working. Then I decide to make a copy of the view in order to test some modifications. I embed this in a new ViewContainerUI element on the main view.
    So now I have 2 sub views implementing the same select option. When I run it, the 2nd select option appears in the first view as a duplicate. The only way I can fix this is by declaring a second usage (of WDR_SELECT_OPTIONS) in the component and using this in the copied view.
    So now I have 2 WDR_SELECT_OPTIONS component usages declared (with different names) so that my 2 views can coexist on the screen. Is this really necessary? Had it been the same view implementing both select options fair enough - but these are 2 different views.
    If the views were not displayed at the same time, could I have declared and used just 1 component usage?
    Peter

    I have still not succeeded in dynamically creating a 2nd select Option and getting it to display in a View Container (called VC_SOD). The code compiles and runs but the select option does not display. This is hopefully something I will never need to do in reality. Just an exercise.
    The code that is commented out is the original standard technique of using a select_option usage. There is probably more then 1 fundamental mistake in the code
    method WDDOMODIFYVIEW .
      DATA: LT_RANGE_TABLE TYPE REF TO DATA,
            RT_RANGE_TABLE TYPE REF TO DATA,
            READ_ONLY TYPE ABAP_BOOL,
            TYPENAME TYPE STRING.
      DATA: LR_COMPONENTCONTROLLER TYPE REF TO IG_COMPONENTCONTROLLER,
            L_REF_CMP_USAGE TYPE REF TO IF_WD_COMPONENT_USAGE.
    create the used component
      L_REF_CMP_USAGE = WD_THIS->WD_CPUSE_SELECT_OPTIONS( ).
    Here we copy the usage just for the hell of it.
      DATA lr_component_usage type ref to if_wd_component_usage.
      L_REF_CMP_USAGE = L_REF_CMP_USAGE->CREATE_COMP_USAGE_OF_SAME_TYPE( name = 'SELECT_OPTIONS2' ).
      IF L_REF_CMP_USAGE->HAS_ACTIVE_COMPONENT( ) IS INITIAL.
        L_REF_CMP_USAGE->CREATE_COMPONENT( ).
      ENDIF.
    *call the interface controller method init_selection_screen to get the helper class
    WD_THIS->M_WD_SOD = WD_THIS->WD_CPIFC_SELECT_OPTIONS( ).
      data L_INTF_CONTROLLER type ref to IWCI_WDR_SELECT_OPTIONS.
      L_INTF_CONTROLLER ?= L_REF_CMP_USAGE->GET_INTERFACE_CONTROLLER( ).
    data lo_view_controller type ref to if_wd_view_controller.
    data lo_view_usage TYPE REF TO if_wd_rr_view_usage.
    data lo_view_cnt_assignment TYPE REF TO if_wd_rr_view_cnt_assignment.
    data lo_view type ref to if_wd_view.
    lo_view_controller = wd_this->wd_get_api( ).
    lo_view_usage = view->get_view_usage( ).
    try and see what is going on
    data lo_view_container_assignments type WDRR_VCA_OBJECTS.
    lo_view_container_assignments = lo_view_usage->GET_VIEW_CNT_ASSIGNMENTS( ).
    lo_view_cnt_assignment = lo_view_usage->create_view_cnt_assignment( name = 'VC_SOD' assigned_container = 'VC_SOD' ).
    try and see what is going on
    lo_view_container_assignments = lo_view_usage->GET_VIEW_CNT_ASSIGNMENTS( ).
    init the select screen
    WD_THIS->M_HANDLER = WD_THIS->M_WD_SOD->INIT_SELECTION_SCREEN( ).
      WD_THIS->M_HANDLER = L_INTF_CONTROLLER->INIT_SELECTION_SCREEN( ).
      WD_THIS->M_HANDLER->SET_GLOBAL_OPTIONS(
                                  I_DISPLAY_BTN_CANCEL  = ABAP_FALSE
                                  I_DISPLAY_BTN_CHECK   = ABAP_FALSE
                                  I_DISPLAY_BTN_RESET   = ABAP_FALSE
                                  I_DISPLAY_BTN_EXECUTE = ABAP_FALSE ).
    create a range table that consists of this new data element
      LT_RANGE_TABLE = WD_THIS->M_HANDLER->CREATE_RANGE_TABLE( I_TYPENAME = 'S_CARR_ID' ).
    add a new field to the selection
      WD_THIS->M_HANDLER->ADD_SELECTION_FIELD( I_ID = 'S_CARR_ID' IT_RESULT = LT_RANGE_TABLE I_READ_ONLY = READ_ONLY ).
    endmethod.

  • Opening a view from another view of the same window in diff Browser.

    Hi Experts,
    My requirement is to open a view (say view 2) from another view (say view 1) with click of a button in a different browser, both the views are embedded into the same window, and also i have to pass some data from view1 to view2, based no the input data, i am displaying some information. Also both views belog to the same component.
    Some pointers on this would be of great help.
    Regards,
    Ashish.

    You would need to open another window.
    See if_wd_window and if_wd_window_manager.
    Call the GET_API to get a handle to window manager.
    The new window can show V2.
    The original Window with 2 views,
    must fire plug to navigate v2 to empty view to hide it from Window1.
    The to Views talk to one another via WDC Controller.
    View 2 calls WDC controller methods.  The WDC controller the fires Event.
    View 1 can listen to this event with a method of type event handler.
    View 1 can for example react to button on View 2 and close WINDOW 2.
    Good luck
    Phil.

  • Can Numbers Display Multiple Views of the Same Table

    Hi,
    Excel and Appleworks both have a pull down tab on the vertical bar allowing multiple views into the same spreadsheet (table). Can Numbers do this?
    I have a set of calculations at the top of a spreadsheet that are based on years and years worth of data under the calculations (same column). I add data for each new event (the rows) and watch the calculations at the top of the data. Easy to do in Excel or Appleworks, but, I can't figure out how to do this in Numbers.
    Example:
    Spot1 Spot2
    Total 15 36
    Avg 5 12
    Jan 09 5 10
    Feb 09 6 20
    Mar 09 4 6
    Apr 09
    So... does Numbers allow the view "split" or multiple views that Excel and Appleworks allow?
    Thanks!
    Tom

    Question asked and responded several times:
    feature unavailable.
    For multiple views of a table there is an easy workaround as we may build a table whose every cells grab their contents from the 'master' one.
    _Go to "Provide Numbers Feedback" in the "Numbers" menu_, describe what you wish.
    Then, cross your fingers, and wait _at least_ for iWork'10
    Yvan KOENIG (VALLAURIS, France) mardi 1 septembre 2009 21:56:42

  • Different view of the same query between users

    Hi at all,
    I strongly hope you can help me.
    The problem that i have is that:
    I have a different view of a query inserted in a workbook respect the view of the same query that have other users.
    In particular I watch in my query 4 fixed characteristic of the query ( Cost center, order type , controlling area, fiscal variant ), below the free characteristic block  and before data table.
    Instead other user watch only 3 fixed characteristics ( Cost center, order type , controlling area ).
    This is a problem because in the workbook there is a macro that reads the data from a fixed raw. So that this macro doesn't' t work in my workbook.
    I would specify that the workbooks is called from rules and not from fevorites.
    Thank you very much for your attention!
    Bye
    Fabio

    Hi Erwan,
    i have the SAPGUI version 3500.8.044 and the item you describes :
    Bex menu ( Business explorer -> Change Query -> Change variable values )
    let me to change the values of input variables.
    The new layout query, after the input of the new values, has the same rows of the fixed query value ( fyscal variant too).
    Thank you for your answer..
    bye
    Fabio

  • Difference in using the same component made in mxml or action-script

    Hi,
    I made a sample project to show a kind of bug in the SuperTabNavigator component of FlexLib
    In this sample you can see that using the same component (made in both mxml or action-script) can make a difference
    I'm just wondering why ?
    Thanks
    Here is what i've posted :
    What steps will reproduce the problem?
    1. Create a button to dynamically add new tab with icon on a SuperTabNavigator
    2. Click on this button to add new tabs
    What is the expected output?
    - The expected output is tabs added without abnormal behavior
    What do you see instead?
    - Every time a new tab is created the one who had the focus has its content
    (icon + label) moving from the top-left of the tab to its original position
    Please provide any additional information below.
    Configuration:
    - Flex Builder 3 in Eclipse
    - FlexLib 2.3
    Sample:
    (see attached file)
    There is two type of tab, one in action-script and one in mxml
    They both are equal
    - Adding a new action-script tab to SuperTabNavigator works fine
    - Adding the same tab but an mxml one doesn't
    - Adding a new action-script or mxml tab to TabNavigator works fine
    -> meanings that the issue comes with SuperTabNavigator
    - Adding a new mxml tab to both SuperTabNavigator and TabNavigator at the
    same time makes TabNavigator to get the same bad behavior
    Remarks:
    - Tried everything but i'm really stuck
    - Weirdly, removing the PopUpButton correct the issue
    - In the same way if you keep adding action-script tab it automatically scroll to the
    last tab. And if you do the same with mxml tab then it add the tab at the end and
    scroll to the first one.
    => what could be the difference between using action-script or mxml object ?

    Here is one possible solution:
    You can use the ExternalInterface (
    http://livedocs.macromedia.com/flex/2/langref/flash/external/ExternalInterface.html)
    class to communicate with JavaScript. JavaScript can then popup the
    media player very easily like this:
    http://www.webreference.com/programming/javascript/jf/column5/index.html
    The documentation on the ExternalInterface class has a nice
    example (in the bottom of the page) on how to communicate with
    JavaScript in a browser. Hope this helps,
    -george

Maybe you are looking for

  • I have an deskjet f4180 that won't print documents unless they are in pdf format.

    I am using windows xp service pack 3.  There has been no added programs or hardware.  The printer will copy with no problem.  I'm not getting any error messages, but the print jobs will sit in the que for a while sometimes.  I have run the troublesho

  • Mountain Lion destroyed my wifi abilities.

    I can no longer share the internet over wifi to other computers, bluray, or iphone after upgrading to moutain lion. I can't even connect iOS devices via wifi to my iMac to use apps like remote. Help? My devices can see the connection but after typing

  • Download and overwrite existing file with same name

    Is there a way to tell Safari to erase previous versions of downloads, ie not adding a '-1' or '-n' to the file name, but overwrite an already existing file?

  • Photo Syncing [iPhone 3GS iOS4]

    Can anybody please help me on my problem? Before I upgraded to iOS 4, my photos are sorted by file name.. (Actually, I like it this way) But now, since updating my iTunes/iPhone OS, it seems that my photos are sorted by "date taken"... (I dont like t

  • On the new 10.4.7 update

    I just installed the new 10.4.7 update; always happy to install a new update. After I booted back up I entered my login information and hit enter. The whole interface loaded so quickly I was astonished. Very little delay in loading up after login. Be