Referenced and Referencing Component Usages Must Address the Same Component

Hi,
I have a main component MC and it has two used componenents - IBLC and IVAC (interfaces for model and visual compoenents).
I get the actual model component name from a table and I instantiate it as follows:
instantiate model component
DATA: l_ref_model_usage TYPE REF TO if_wd_component_usage,
l_my_initial_usage type ref to IF_WD_COMPONENT_USAGE.
L_MY_INITIAL_USAGE = wd_this->wd_cpuse_iblc( ).
l_ref_model_usage = L_MY_INITIAL_USAGE->CREATE_COMP_USAGE_OF_SAME_TYPE(
NAME = Item_Modelcomp ).
Components VC1 and VC2 etc implement IVAC.
Since I want to use the same instance of Item_Modelcomp in VC1 and VC2, I use the set_model(and from that I call method enter_referencing_mode) method as follows in MC.
l_ref_interfacecontroller->set_model( model_usage = l_ref_model_usage ).
Now in set_model method in VC1, I am using Item_Modelcomp as used component and not IBLC because I want to use the Item_Modelcomp context, but it expects IBLC as the used component(even though Item_Modelcomp implements IBLC) and hence gives the error "Referenced and Referencing Component Usages Must Address the Same Component".
Any solution for this issue?
Thanks and Regards,
Srini.

Hi Srinivasa,
>I thought model compoenents are the ideal way to share
>context across different visual components.
Yeah, we though the same in the beginning. Later on we learned that:
  - it's not worth having the overhead of another WD component in most cases since you need to call the business logic nonetheless
  - declaring nodes as public is like having public attributes at a class - which can be really bad thing
  - there are lots of side effects regarding one component affecting the other one indirectly by having both mapped to the same model component
In general, using model components should be avoided. There might be rare cases, where it makes sense to use them, but mostly it's not worth the effort.
Best regards,
Thomas

Similar Messages

  • Why is apple releasing the ipad4 witha new and inproved wifi attena without addressing the wifi issue in the ipad3

    Why is apple releasing the ipad4 witha new and inproved wifi attena without addressing the wifi issue in the ipad3

    Jim Level 5 person ....I am very happy for you that your usage will not be affected, please accept my  congratulations.
    Now I have to point out that going ballistic has certain connotations but posting on an internet forum is not one of them.
    I appear to be one of thousands who are all expressing their outrage in a rational and intelligent manner which cannot be said for your lebvel 4 + collegues on this forum.
    Finally there has been an ongoing issue wiith the iPad 3 Wifi on certain wifi only models , I have not encountered it and it seems clear neither have you. That of course does not discount the fact that many others have experienced this issue , an issue which may reveal itself to you or I in the future particularly as I have only been using mine for a fortnight.
    The following is a relevant link for your information :
    http://9to5mac.com/2012/04/04/apple-investigating-new-ipad-wifi-issues-tells-app lecare-to-replace-affected-units/

  • I have changed settings on my email account with my provider, but in order to activate the address they instructed me to delete my account and add a new account with the same email address. Will this delete my all my email history? Any advise please?

    I have an OS X 10.6.8 and have had problems with my mail. I have changed my account settings with my mail provider, but they suggest I now delete my account and add a new account with the same email address. Will this delete my email history? Can anyone please advise?

    I have the same problem as the emails go to my iCloud account that I cannot access!!! I cannot answer the security questions as someone else must have set up my iCloud account. Nothing seems to work. It would be great if someone has some ideas as what can be done to recover the situation?

  • Greetings: I have multiple iPads and iPhones. I want all to be able to be able to stream to our Apple TV. All of the docs I see say you must have the same Apple ID for all the devices, but we each have our own Apple ID. Is this just a doc short coming?

    Greetings: I have multiple iPads and iPhones. I want all to be able to be able to stream to our Apple TV. All of the docs I see say you must have the same Apple ID for all the devices, but we each have our own Apple ID. Is this just a doc short coming?

    You can each have your own ID for your own iTunes accounts, but in order for a device to stream via AirPlay to the same Apple TV, everything must use the same homesharing ID. This is not the same as your iTunes account ID (although it can be for one of the devices)

  • I need to get photos off a water damaged iPhone 3GS. Can I take out the component that has the photos (is this the main board?) and put it into another of the same phone to retrieve the photos? Please help

    I need to get photos off a water damaged iPhone 3GS. It spent time underwater, saltwater. I let it dry for a week, turned it on, the apple symbol came on, then it died. I need to retrieve my photos off it. Can I take out the component that has the photos (is this the main board?) and put it into another of the same phone to retrieve the photos? Please help

    You're talking about the logic board. The two most likely things to get toasted, with water damage, are the battery(it shorts out), & the logic board. The worst water damage would be salt water. I'm afraid your logic board is toast.

  • When i try and open a tab that is the same as the page im currently on i closes it self. not when i type the full address, but when i use the arrow keys to select the url and press enter

    when I try and open a tab that is the same as the page I'm currently on it closes it self. Not when I type the full address, but when I use the arrow keys to select the url and press enter. I just don't like typing in the same address 5 times, when the older Firefox worked.

    Hi
    AutoPunch enabled? Command click in the bottom half of the Bar Ruler to turn it off
    CCT

  • Must have the same type and the same length

    hi experts,
    DELIVERY_PLANT  data type STRING    //from proxy class, can't be changed
          BEGIN OF ty_citem,
              article type matnr,
              werks   type werks,
           END OF ty_citem,
    LOOP AT it_items INTO lv_item.
        lv_citem-article = lv_item-article.
        lv_citem-werks = lv_item-DELIVERY_PLANT.
        APPEND lv_citem TO GT_citem.
        clear lv_citem.
      ENDLOOP.
    SELECT matnr werks
           from marc
           into table GT_marc
           for all entries in GT_citem
           where matnr = GT_citem-article  and werks = GT_citem-werks.
    error message here:When you use the addition "FOR ALL ENTRIES IN itab", the fields "WERKS"
    and "GIT_CITEM-WERKS" must have the same type and the same length.

    Hi,
    You know for statement FOR ALL ENTRIES in where clause data type and length should be match.
    As per my understanding ,here GT_citem-werks is a string. But you know data type of WERKS_D is char with lencth 4.
    Use the below select statement.
    SELECT matnr werks
           from marc
           into table GT_marc
           for all entries in GT_citem
           where matnr = GT_citem-article  and werks = GT_citem-werks+0(4).
    Thanks.
    Subhankar

  • What does it mean when my ipad is in Recovery mode? It's connected to my imac for software update and it says I must "restore" the ipad before itunes can be used. Will I lose everything on my ipad?

    What does it mean when my ipad is in Recovery mode? It's connected to my imac for software update and it says I must "restore" the ipad before itunes can be used. Will I lose everything on my ipad?

    Unless you have a backup from which you can restore, yes you will lose all of your data and settings.
    You should be able to sync your content back to the iPad if you have been syncing with iTunes all along. If you don't sync with iTunes, you can download much of your paid content again for free as long as you use the same Apple ID. This explains downloading past purchases.
    http://support.apple.com/kb/ht2519
    Unfortunately, at this point, you must restore the device before you can move on. There is nothing you can do to avoid it now.

  • HT5675 This update, upon booting, has caused my disk space to fill up and my system freezes up. The same happens to my coworker's computer. We both watch the remaining disk space decrease and the "spinning rainbow appears" and we must restart. What do we

    Software Update: Java for OS X 2013-002 1.0
    This update, upon booting, has caused my disk space to fill up and my system freezes up. The same happens to my coworker's computer. We both watch the remaining disk space decrease and the "spinning rainbow appears" and we must restart. What do we do?

    First, empty the Trash if you haven't already done so.
    Use a tool such as OmniDiskSweeper (ODS) to explore your volume and find out what's taking up the space. You can delete files with it, but don't do that unless you're sure that you know what you're deleting and that all data is safely backed up. That means you have multiple backups, not just one.
    Proceed further only if the problem hasn't been solved.
    ODS can't see the whole filesystem when you run it just by double-clicking; it only sees files that you have permission to read. To see everything, you have to run it as root.
    Back up all data now.
    Install ODS in the Applications folder as usual.
    Triple-click the line of text below to select it, then copy the selected text to the Clipboard (command-C):sudo /Applications/OmniDiskSweeper.app/Contents/MacOS/OmniDiskSweeper
    Launch the Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window (command-V). You'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning not to screw up. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.
    I don't recommend that you make a habit of doing this. Don't delete anything while running ODS as root. If something needs to be deleted, make sure you know what it is and how it got there, and then delete it by other, safer, means.
    When you're done with ODS, quit it and also quit Terminal.

  • HT1918 My Apple ID (email address) is somehow registered to the US store even though I live in the UK. Can I close the US account and open a UK one with the same ID/email?

    My Apple ID (email address) is somehow registered to the US store even though I live in the UK. Is there any way I can close the US account and open a UK one with the same ID/email?

    No, but you can change the country of your iTunes Store account. Sign into your iTunes Store account and click the "change country" link. You'll need a valid UK credit card to complete the change. If you have any credit balance remaining, you'll need to contact the iTunes Store to clear that for you before you'll be able to change the country.
    Note that if you purchased anything from the US iTunes Store, you probably will not be able to re-download it nor update apps once you change the country. So you may prefer to set up a new email address so you can create a new account in the UK iTunes Store. You can change the email address to which receipts and other notices are sent to your actual email address, if you prefer.
    Regards.

  • Wan and lan address the same

    Hello,
    Just a query really,
    Is it best to set my routers lan address the same as its external address when setting up with an ASA?
    I have been told to do this but I would of thought keeping it a private address on the subnet would be better.
    Thanks,
    Ash

    This is not possible.  If you set your outside interface IP to (lets say) 1.1.1.1/30 and then try to set your inside interface to 1.1.1.1 you will get an error message stating something like it is already assigned to another interface (don't remember the exact message).  So you would have to have different IP addresses for each interface on the ASA (that includes subinterfaces.
    In transparent mode you can set one management interface IP that will be on the same subnet as both your inside and outside networks.
    Please remember to select a correct answer and rate helpful posts

  • I have a ipod touch that has been locked by itunes and it says i must reset the data before i unlock it. Is there a way to back it up before i reset it or to avoid reseting it at all?

    I have a ipod touch that has been locked by itunes and itunes says i must reset the ipod to unlock it. Is there a way to back it up on a hard drive or icloud before I reset it or avoid reseting it all? thanks

    If you previous synced to the computer then you may be able to recovery use of the iPod without erasing the iPod by following the instructions here:
    Disabled Recovery-must use syncing computer.
    Otherwise y have to erase the iPod
    Place the iOS device in Recovery Mode and then connect to your computer and restore via iTunes. The iPod will be erased.
    iOS: Wrong passcode results in red disabled screen                         
    If recovery mode does not work try DFU mode.                        
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings        
    For how to restore:
    iTunes: Restoring iOS software
    To restore from backup see:
    iOS: How to back up     
    If you restore from iCloud backup the apps will be automatically downloaded. If you restore from iTunes backup the apps and music have to be in the iTunes library since synced media like apps and music are not included in the backup of the iOS device that iTunes makes.
    You can redownload most iTunes purchases by:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store        

  • Netweaver administration and SAP Web Application Server r the same?

    Hi All,
    I am a Basis Consultant & new to Netweaver,..
    I am interested in Netweaver administration..
    1.I am confused wheather netweaver administration and SAP Web Application Server r the same?(or WAS is just another component of Netweaver).
    2.Do we need to administrate all the components of Netweaver(EP,BI,etc.,)seperately as an Netweaver Administrator?
    Thanks in Advance ,
    Malti

    Hi Malti,
    You must first download and read this document and then read 'help.sap.com' for what is netweaver.
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e1515a37-0301-0010-b2bb-99780cb4cafa">Introduction to Web Application Server</a>
    The above mentioned document is a crisp guide to what is WAS.
    Further I got this from the sdn/netweaver webpage
    SAP NetWeaver is a web-based, open integration and application platform that serves as the foundation for enterprise service-oriented architecture (enterprise SOA) and allows the integration and alignment of people, information, and business processes across business and technology boundaries. It utilizes open standards to enable integration with information and applications from almost any source or technology. SAP NetWeaver is the foundation of SAP xApps and mySAP Business Suite solutions, and also powers partner solutions and customer custom-built applications.
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/netweaver">SAP Netweaver SDN Page</a>
    You have lots of reading to do now.. hope that helps
    Regards,
    Siddhesh

  • I was backing up my iPhone and importing photos onto iPhoto at the same time , then suddenly it says no more space available (i had 48GB before i do this and now i have 18GB) i can't find the back up or the photo anywhere , how can i delete them ?

    i was backing up my iPhone and importing photos onto iPhoto at the same time , then suddenly it says no more space available (i had 48GB before i do this and now i have 18GB) i can't find the back up or the photo anywhere , how can i delete them ? i dont need the pictures or the back ups , i want to delete them but they are not there

    Empty the Trash if you haven't already done so. If you use iPhoto, empty its internal Trash first:
    iPhoto ▹ Empty Trash
    Do the same in other applications, such as Aperture, that have an internal Trash feature. Then reboot. That will temporarily free up some space.
    According to Apple documentation, you need at least 9 GB of available space on the startup volume (as shown in the Finder Info window) for normal operation. You also need enough space left over to allow for growth of the data. There is little or no performance advantage to having more available space than the minimum Apple recommends. Available storage space that you'll never use is wasted space.
    When Time Machine backs up a portable Mac, some of the free space will be used to make local snapshots, which are backup copies of recently deleted files. The space occupied by local snapshots is reported as available by the Finder, and should be considered as such. In the Storage display of System Information, local snapshots are shown asBackups. The snapshots are automatically deleted when they expire or when free space falls below a certain level. You ordinarily don't need to, and should not, delete local snapshots yourself. If you followed bad advice to disable local snapshots by running a shell command, you may have ended up with a lot of data in the Other category. Reboot and it should go away.
    See this support article for some simple ways to free up storage space.
    You can more effectively use a tool such as OmniDiskSweeper (ODS) to explore the volume and find out what's taking up the space. You can also delete files with it, but don't do that unless you're sure that you know what you're deleting and that all data is safely backed up. That means you have multiple backups, not just one.
    Deleting files inside an iPhoto or Aperture library will corrupt the library. Any changes to a photo library must be made from within the application that created it. The same goes for Mail files.
    Proceed further only if the problem isn't solved by the above steps.
    ODS can't see the whole filesystem when you run it just by double-clicking; it only sees files that you have permission to read. To see everything, you have to run it as root.
    Back up all data now.
    If you have more than one user account, make sure you're logged in as an administrator. The administrator account is the one that was created automatically when you first set up the computer.
    Install ODS in the Applications folder as usual. Quit it if it's running.
    Triple-click anywhere in the line of text below on this page to select it, then copy the selected text to the Clipboard by pressing the key combination command-C:
    sudo /Applications/OmniDiskSweeper.app/Contents/MacOS/OmniDiskSweeper
    Launch the built-in Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window (command-V). You'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning to be careful. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.
    The application window will open, eventually showing all files in all folders, sorted by size with the largest at the top. It may take a few minutes for ODS to finish scanning.
    I don't recommend that you make a habit of doing this. Don't delete anything while running ODS as root. If something needs to be deleted, make sure you know what it is and how it got there, and then delete it by other, safer, means. When in doubt, leave it alone or ask for guidance.
    When you're done with ODS, quit it and also quit Terminal.

  • I prepare chronologies in word, and i am trying to do the same in pages using tables and cells. But somtimes i need a cell to wrap onto the next page but I can't work out how to do it - any suggestions would be greatly appreciated

    I prepare chronologies in word, and I am trying to do the same in pages using tables and cells. But sometimes I need a cell to wrap onto the next page because the contents are bigger than the page or the space left on the page,  but I can't work out how to do it - any suggestions would be greatly appreciated

    brendanfromsydney wrote:
    What are the different opinions on why pages should not achieve this?
    As far as I know, Apple is free to choose to offer this or that feature.
    They never said that they want to clone Word or even compete with it.
    Differences between tables in both worlds are numerous.
    In Pages (or Numbers)
    - we can't sort a single column
    - we can't sort by row
    - we can't insert or remove a single cell
    - a cell can't cross pages boundaries
    If I understand well these design choices match :
    ++-+-+-+-+-+-+-+-++
    Apple Human Interface Guidelines:
    Apply the 80 Percent Solution
    During the design process, if you discover problems with your product design, you might consider applying the 80 percent solution‚ that is, designing your software to meet the needs of at least 80 percent of your users. This type of design typically favors simpler, more elegant approaches to problems.
    If you try to design for the 20 percent of your target audience who are power users, your design may not be usable by the other 80 percent of users. Even though that smaller group of power users is likely to have good ideas for features, the majority of your user base may not think in the same way. Involving a broad range of users in your design process can help you find the 80 percent solution.
    +-+-+-+-+-+-+-+-+-++
    Yvan KOENIG (VALLAURIS, France) jeudi 9 juin 2011 16:03:52
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.7
    Please : Search for questions similar to your own before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

Maybe you are looking for