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

Similar Messages

  • 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

  • HT3819 How do I share music between different users on the same computer?

    I understand Home Sharing helps me share music across different computers.  How do I share between different users on the same computer?  We have a few instances of iTunes on a single computer and have to download from the same CD each time.  I must be doing something wrong - seems crazy to have several copies of the same song on one hard-drive when Home Share allows for sharing across computers - how do I share within the same computer?  Please outline specific steps.  THANKS.

    Hello Whigged-out,
    It sounds like you would like to share one library between two different users on your iMac.  I found an article with steps you can take to accomplish this:
    iTunes: How to share music between different accounts on a single computer
    http://support.apple.com/kb/ht1203
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • Is there a way to be able to Edit pictures between different accounts on the same Mac?

    Is there a way to be able to Edit pictures between different accounts on the same Mac?

    What does 'edit pictures between different accounts' mean?
    You can edit photos in each account. You can share the Library so the same library is available in all accounts. But I'm not sure what you're asking for.

  • 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

  • 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

  • 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

  • Navto a different view in the same page

    Is it possible to use the navto command to jump to a different view in a page or poiting to a position in a scrollable frame?

    Yes, use decimals in your navto page number. For example, navto://myarticle#2.3 jumps to a place between page 3 and 4 in a smooth scrolling article.
    For examples, see DPS Tips > Advanced Overlays > Scrollable Frame Links.

  • How do i move photos between differant users on the same mac

    I am trying to copy some photos from iphoto and move them to another user on the same mac. Can anyone help please?

    Hello Whigged-out,
    It sounds like you would like to share one library between two different users on your iMac.  I found an article with steps you can take to accomplish this:
    iTunes: How to share music between different accounts on a single computer
    http://support.apple.com/kb/ht1203
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • How can I sync/import/export bookmarks between different users on the same computer

    To save time, I want to sync/import bookmarks between/from another user on the same computer.

    Many thanks twalker for your prompt and simplified explanation for resolving my problem which is much appreciated by this tarnished silver surfer. I will now arrange to download FX4 and follow your instructions.

  • Sharing typedefs and VIs between different targets in the same project

    Hi,
    I'm writing a distributed application that runs on a PC and a CompactRIO. There are some data structures and convenience functions (typedefs and VIs) that I'd like to share between them. What's the recommended way of doing so? Is an LVLIB suitable for this purpose?
    I currently just host the shared items on the "My Computer" target. However, when I'm editing my code, I sometimes have to click "synchronize with other application instances". Also, the shared items show up on the dependencies list of my cRIO target. I'd rather not have these happen; is it possible to avoid these?
    Thanks!
    Solved!
    Go to Solution.

    Hi JKSH,
    JKSH wrote:
     I'd rather not have these happen; is it possible to avoid these?
    Why do you want this not to happen? When you assign a VI to one target, but still use that VI on the other target, LabVIEW has to recompile for that other target (read: No, you can't avoid that!).
    I do the same for many VIs (a lot of them in my user.lib) but still have no problems with it. And using the same typedef for all targets in a project really helps minimizing errors!
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • How to transfer data between different nodes of the same context.

    Hi experts,
       I am working on an application in ABAP webdynpro in which i want to copy data from one node to another node in the same context of a view and both the nodes are mapped with different nodes of context of component controller. How to code this. Please help.
    Thanks and Regards.
    Vaibhav Tiwari.

    Hi Vaibhav,
    you are in the wrong forum.
    BTW: Copying value of nodes is done automaticcally if you connect the nodes.
    Regards Mario

  • Can I share iTunes library between different users on the same pc

    I want to know if and how I can share an iTunes library with other user accounts on the same laptop? Can anyone help please.

    Jim, sorry, I should have mentioned that permissions issue.
    I have a similar setup on a Mac mini. I have the entire iTunes library in the shared folder and on each user account, I point it to that iTunes library file. That way there isn't a permissions problem when multiple accounts are connected to it.
    The only problem with that is that each user account connected to that iTunes library can make changes to the library file (ratings, playlists, etc.)

  • How can I sync/import/export bookmarks between different users on the same computer and both using the Firefox browser?

    All help instructions are for importing or exporting bookmarks/favourites between different brands of browsers.

    Many thanks twalker for your prompt and simplified explanation for resolving my problem which is much appreciated by this tarnished silver surfer. I will now arrange to download FX4 and follow your instructions.

  • How can i share tones between different iPhones on the same account

    I have two iPhones registered on the same iTunes account - one for work and one personal. I have bought a couple of ringtones through iTunes but find that I cannot see them in the iTunes library so cannot load a ringtone from one of my iPhones to the other. Any suggestion on how I can do this ?
    Regards
    Kev

    You will have to transfer the ringtones from the phone that has them to your iTunes library.
    File>Transfer Purchases.
    Then you can sync them to the other phone.

Maybe you are looking for