What is event handler in oopsand why we need it  and how to use it ?

Hi  everyone ,
I am new to sdn.I did not understand event handler  in oops .Please replay to this .
Thanks & Regards,
Sudeep Subudhi.
Moderator Message: Welcome to SDN. Please read the [Forum Rules of Engagment|Welcome and Rules of Engagement; before posting your question.
Edited by: Suhas Saha on Jan 9, 2012 2:51 PM

EDIT: BAH! I posted too slow... but there is still some information about saving and clearing in there
Its for making a playlist while your 'on the go'. So you click and hold the middle button the selected song (or album) should flash... Then you go into the playlist menu (music>playlists>on-the-go) and use it like any normal playlist...
When there's songs on the playlist it gives you the option to save or clear at the end of the song list, you select either one and it'll ask for conformation.
It works in both manually sync and auto sync mode. But if you have it on auto sync the play list will be created in iTunes...
So I'm not sure why you don't see songs in it after yo assign them to it, try sending a whole album and then music>playlists>on-the-go the album songs should be listed.
As for reasons to use it well maybe while out and about you realise that you want to hear from two artists at the same time, Radiohead and Bowie, in a shuffle mode. You could make it a on-the-go playlist. Or there's a few podcasts you want to hear in order... so you go down the list and assign them to on-the-go.
Some people use the On the go to note songs that need to be looked at in iTunes later, maybe because its too quiet, badly imported or they don't understand how such a bad song found its way onto the iPod.
Once you save it if you try and put more songs to it, 'on-the-go-1' will be created.
-hope this helps

Similar Messages

  • Why and how to use events in abap objects

    Dear all,
      Please explain me why and how to use events in abap objects with real time example
    regards
    pankaj giri

    Hi Pankaj,
    I will try to explain why to use events... How to use is a different topic.. which others have already answered...
    This is same from your prev. post...
    Events :
    Technically speaking :
    " Events are notifications an object receives from, or transmits to, other objects or applications. Events allow objects to perform actions whenever a specific occurrence takes place. Microsoft Windows is an event-driven operating system, events can come from other objects, applications, or user input such as mouse clicks or key presses. "
    Lets say you have an ALV - An editable one ...
    Lats say - Once you press some button  you want some kind of validation to be done.
    How to do this ?
    Raise an Event - Which is handled by a method and write the validation code.
    Now you might argue, that I can do it in this way : Capture the function code - and call the validate method.
    Yes, in this case it can be done.. But lets say .. you change a field in the ALV and you want the validation to be done as soon as he is done with typing.
    Where is the function code here ? No function code... But there is an event here - The data changed event.
    So you can raise a data changed event that can be handled and will do the validation.
    It is not user friendly that you ask the user to press a button (to get the function code) for validation each time he enters a data.
    The events can be raised by a system, or by a program also. So in this case the data changed event is raised by a system that you can handle.
    Also, Lets say on a particular action you want some code to trigger. (You can take the same example of validation code). In this case the code to trigger is in a separate class. The object of which is not available here at this moment. (This case happens very frequently).
    Advantage with events : Event handlers can be in a separate class also.
    e.g : In the middle of some business logic .. you encounter a error. You want to send this information to the UI (to user - in form of a pop up) and then continue with some processing.
    In many cases - A direct method call to trigger the pop up is not done. Because (in ideal cases) the engine must not interact with UI directly - Because the UI could be some other application - like a windows UI but the error comes from some SAP program.
    So - A event is raised from the engine that is handled in the UI and a pop up is triggered.
    Here -- I would have different classes (lets say for different Operating Systems). And all these classes must register to the event ERROR raised in application.
    And these different classes for different Operation systems will have different code to raise a pop-up.
    Now you can imagine : If you coded a pop-up for Windows (in your application logic) .. it will not work for Mac or Linux. But of you raise a event.. that is handled separately by a different UI classes for Win, Linux or Mac  they will catch this event and process accordingly.
    May be I complicated this explanation .... but I couldn't think of a simpler and concrete example.
    Cheers.
    Varun.

  • What is the colored spinning disk, and why does it appear, and how do I get rid of it?

    What is the colored spinning disk, and why does it appear, and how do I get rid of it?

    Repairing permissions will help as will running the UNIX commands. This widget will do all but the pram.
    http://db.tt/Lob4XtPB  Maintenance Widget  One of those links will get you the widget.
    To reset the pram hold the Command+Option+P+R when starting up, wait through 4 startup sounds before letting go.

  • I'm trying to download a FREE app on my iphone4s and the billing information thing keeps popping up. It wasn't doing that yesterday. What should I do? Idk why I need that info when the app is free

    I'm trying to download a FREE app and the billing info thing keeps popping up. It wasn't doing that yesterday. Now I can't even download anything. What should I do ? Idk why I need thus info when the app is free

    You must have a payment method in your iTunes account, even for free content. It is used to verify your identity. See: http://support.apple.com/kb/HT2534 for information on how to create a billing method if you don't have a credit card.

  • My MacBook Pro (Mountain Lion) seems to be making copies of files in my download folder.  Why is this happening and how do I stop it?

    My MacBookPro with Mountain Lion seems to be making copies of files in my download folder.  Why is this happening and how do I stop it?

    This issue has nothing to do with Time Machine or local snaphsots. No built-in feature of OS X does what you describe.
    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It won’t solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    Third-party system modifications are a common cause of usability problems. By a “system modification,” I mean software that affects the operation of other software — potentially for the worse. The following procedure will help identify which such modifications you've installed. Don’t be alarmed by the complexity of these instructions — they’re easy to carry out and won’t change anything on your Mac. 
    These steps are to be taken while booted in “normal” mode, not in safe mode. If you’re now running in safe mode, reboot as usual before continuing. 
    Below are instructions to enter some UNIX shell commands. The commands are harmless, but they must be entered exactly as given in order to work. If you have doubts about the safety of the procedure suggested here, search this site for other discussions in which it’s been followed without any report of ill effects. 
    Some of the commands will line-wrap or scroll in your browser, but each one is really just a single line, all of which must be selected. You can accomplish this easily by triple-clicking anywhere in the line. The whole line will highlight, and you can then either copy or drag it. The headings “Step 1” and so on are not part of the commands. 
    Note: If you have more than one user account, Step 2 must be taken as an administrator. Ordinarily that would be the user created automatically when you booted the system for the first time. The other steps should be taken as the user who has the problem, if different. Most personal Macs have only one user, and in that case this paragraph doesn’t apply. 
    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. 
    When you launch Terminal, a text window will open with a line already in it, ending either in a dollar sign (“$”) or a percent sign (“%”). If you get the percent sign, enter “sh” and press return. You should then get a new line ending in a dollar sign. 
    Step 1 
    Triple-click the line of text below to select it:
    kextstat -kl | awk '!/com\.apple/{printf "%s %s\n", $6, $7}' 
    Copy (command-C) the selected text to the Clipboard. Then click anywhere in the Terminal window and paste (command-V). Post the lines of output (if any) that appear below what you just entered. You can do that by copy-and-paste as well. Omit the final line ending in “$”. No typing is involved in this step.
    Step 2 
    Repeat with this line:
    sudo launchctl list | sed 1d | awk '!/0x|com\.(apple|openssh|vix)|edu\.mit|org\.(amavis|apache|cups|isc|ntp|postfix|x)/{print $3}' 
    This time, you'll be prompted for your login password, which you do have to type. It won't be displayed when you type it. You may get a one-time warning not to screw up. You don't need to post the warning. 
    Note: If you don’t have a login password, you’ll need to set one before taking this step. If that’s not possible, skip to the next step. 
    Step 3
    launchctl list | sed 1d | awk '!/0x|com\.apple|edu\.mit|org\.(x|openbsd)/{print $3}' 
    Step 4
    ls -1A /e*/mach* {,/}L*/{Ad,Compon,Ex,Fram,In,Keyb,La,Mail/Bu,P*P,Priv,Qu,Scripti,Servi,Spo,Sta}* L*/Fonts 2> /dev/null  
    Important: If you formerly synchronized with a MobileMe account, your me.com email address may appear in the output of the above command. If so, anonymize it before posting. 
    Step 5
    osascript -e 'tell application "System Events" to get name of every login item' 2> /dev/null 
    Remember, steps 1-5 are all copy-and-paste — no typing, except your password. Also remember to post the output. 
    You can then quit Terminal.

  • I love the 6th Gen. iPod Nano but it has a major deficiency, the power button. I've bought 2 and they both have given me the same issue of the power button becoming slack and not functioning. Why is this so, and how can I fix it??

    MAJOR DEFICIENCY = WASTED MONEY:
    I love the 6th Gen. iPod Nano but it has a major deficiency, the power button. I've bought 2 and they both have given me the same issue of the power button becoming slack and not functioning. Why is this so, and how can I fix it??

    Greetings,
    I've never seen this issue, and I handle many iPads, of all versions. WiFi issues are generally local to the WiFi router - they are not all of the same quality, range, immunity to interference, etc. You have distance, building construction, and the biggie - interference.
    At home, I use Apple routers, and have no issues with any of my WiFi enabled devices, computers, mobile devices, etc - even the lowly PeeCees. I have locations where I have Juniper Networks, as well as Aruba, and a few Netgears - all of them work as they should.
    The cheaper routers, Linksys, D-Link, Seimens home units, and many other no name devices have caused issues of various kinds, and even connectivity.
    I have no idea what Starbucks uses, but I always have a good connection, and I go there nearly every morning and get some work done, as well as play.
    You could try changing channels, 2.4 to 5 Gigs, changing locations of the router. I have had to do all of these at one time or another over the many years that I have been a Network Engineer.
    Good Luck - Cheers,
    M.

  • HT201317 My photos are syncing from my iPhone, to the iCloud PhotoStream and to our iPad, but it is no longer syncing to my computer (Microsoft, not Apple).   Why would this happen and how can I get it resolved?

    My photos are syncing from my iPhone to the iCloud PhotoStream and to our iPad, but they are no longer syncing to our home computer (Microsoft operating system, not Apple).   Why would this happen and how can I get it resolved?  I have since tried to remove and reinstall the iCloud application in my computer's control panel.  I have verified that I am using the latest Apple operating system and the latest iTunes.  I have reset my photo stream.  Not sure what else to try...   I was also having an issue with my calendar where it would sync from my computer to my iPhone but not vice versa.  Somehow in all the resetting that's resolved, but the photo issue is not.   Again - photos are going into the photostream, but not wirelessly being put into the file on my computer.

    To change the iCloud ID on your device you have to go to Settings>iCloud, tap Delete Account, provide the password to turn off Find My iPhone when prompted, then sign back in with the ID you wish to use.

  • When my 6 year old daughter plays the free games that I have downloaded for her IPAD and IPOD, I am now getting upgrade charges on these free games to my AMEX Card. WHy is this happening and how do I get my AMEX card off of the IPAD and IPOD?

    When my 6 year old daughter plays the free games that I have downloaded for her IPAD and IPOD, I am now getting upgrade charges on these free games to my AMEX Card. Why is this happening and how do I get my AMEX card off of the IPAD and IPOD?

    She is making in app purchases. Probably not knowing what that means to your monthly credit card bill. Use the Settings app to enable restrictions and turn on restrictions for iTunes, App Store and in app purchases, mabe some others too. The restrictions will be set with a passcode to prevent your daughter from changing them.
    Settings > General > Restrictions

  • Iphone 6 automatically turn on even not connect to charger, why would this happen and how to solve it?

    iphone 6 automatically turn on even not connect to charger, why would this happen and how to solve it?

    I'm not an apple expert or anything, but after hearing this from a coworker (and doing a quick google search) many of the generic chargers do not work in the 5s (especially after the most recent update.) I'm thinking this may be the problem in your case...the charger is not working so the phone just needs a good charge from either an apple certified charger or a generic that will actually work with the phone. I've read some people are able to pull the cable out, turn it around and then plug it back in facing the opposite direction to get it to work. Many have reported, however, that even when this remedies the cable issue, its still won't charge the phone while it is completely dead (which is likely the case since it won't power on at all.) So if you haven't fixed your problem by now, go buy a new charger and see what happens. You might be able to go into and apple store and borrow a charger there for a few minutes to see if this actually IS the problem. That way you don't waste your money before buying.

  • On-The-Go Playlist: what is it and how to use?

    I've read the notice on the iPod when you select the On-the-Go playlist but don't know what it does and how to best use it. I've tried to add a song to it by holding down the center button while the song was playing but don't know how to check to see if it's been added. When I go to the On-the-Go playlist in the menu I only get the text instructions. Can someone describe how to add, and remove, songs from it or tell me if you can and how to use it?
    OT

    EDIT: BAH! I posted too slow... but there is still some information about saving and clearing in there
    Its for making a playlist while your 'on the go'. So you click and hold the middle button the selected song (or album) should flash... Then you go into the playlist menu (music>playlists>on-the-go) and use it like any normal playlist...
    When there's songs on the playlist it gives you the option to save or clear at the end of the song list, you select either one and it'll ask for conformation.
    It works in both manually sync and auto sync mode. But if you have it on auto sync the play list will be created in iTunes...
    So I'm not sure why you don't see songs in it after yo assign them to it, try sending a whole album and then music>playlists>on-the-go the album songs should be listed.
    As for reasons to use it well maybe while out and about you realise that you want to hear from two artists at the same time, Radiohead and Bowie, in a shuffle mode. You could make it a on-the-go playlist. Or there's a few podcasts you want to hear in order... so you go down the list and assign them to on-the-go.
    Some people use the On the go to note songs that need to be looked at in iTunes later, maybe because its too quiet, badly imported or they don't understand how such a bad song found its way onto the iPod.
    Once you save it if you try and put more songs to it, 'on-the-go-1' will be created.
    -hope this helps

  • Why and how we use Logical Database?

    Can anybody explain with example why and how we use logical database?
    Regards,
    Rajan

    Hello,
    SAP comes loaded with all the extras. Among the extras that are most helpful to IT managers are all the access routines needed to pull any business object that managers can think of out of SAP databases. However, SAP has not thought of everything where your particular applications are concerned. SAP organizes its standard database tables to service business units based on conventional business applications. Itu2019s likely your business requires something new, perhaps even something exotic. In that case, you will need to create a new database, using information from different places. Basically, you need a logical database. You need to create a virtual business data object repository consisting of a new kind of record or table that suits your purposes. In addition, the repository should be composed of information that is actually stored in a number of different locations, none of them necessarily logically associated with one another. Letu2019s take a closer look at creating logical databases.
    A case for a logical database
    Suppose my company manufactures widgets of the most obscure variety, and they are components of other widgets. I sell my widgets as raw material for the more sophisticated widgets built by others, but in some cases I actually partner with other manufacturers in creating yet another class of widget. Now, in my world, I consequently have customers who are also partners. I sell to them and I partner with them in manufacturing and distribution. Also, I need an application that uses both of these dual-use relationships.
    Essentially, I have a customer database and a partner database. Neither contains records that are structured to contain the identifying particulars of the other. Thus, I need a hybrid database that gives me tables detailing these hybrid relationships. What can I do? I can go the long way around and write a new database, pulling information from both and creating new objects with a customized program that I write by hand. However, this process is cumbersome and contains maintenance issues. On the other hand, I can use SAPu2019s logical database facility, create my logical database in a couple of minutes, and have no maintenance issues at all.
    Logical database structures
    There are three defining entities in an SAP logical database. You must be clear on all three in order to create and use one.
    u2022     Table structure: Your logical database includes data from specified tables in SAP. There is a hierarchy among these tables defined by their foreign keys (all known to SAP), and you are going to define a customized relationship between select tables. This structure is unique and must be defined and saved.
    u2022     Data selection: You may not want or need every item in the referenced tables that contributes to your customized database. There is a selection screen that permits you to pick and choose.
    u2022     Database access programming: Once youu2019ve defined your logical database, SAP will generate the access subroutines needed to pull the data in the way you want it pulled.
    Creating your own logical database
    ABAP/4 (Advanced Business Application Programming language, version 4) is the language created by SAP for implementation and customization of its R/3 system. ABAP/4 comes loaded with many predefined logical databases that can construct and table just about any conventional business objects you might need in any canned SAP application. However, you can also create your own logical databases to construct any custom objects you care to define, as your application requires in ABAP/4. Hereu2019s a step-by-step guide:
    1.     Call up transaction SLDB (or transaction SE36). The path you want is Tools | ABAP Workbench | Development | Programming Environment | Logical Databases. This screen is called Logical Database Builder.
    2.     Enter an appropriate name in the logical database name field. You have three options on this screen: Create, Display, and Change. Choose Create.
    3.     Youu2019ll be prompted for a short text description of your new logical database. Enter one. Youu2019ll then be prompted to specify a development class.
    4.     Now comes the fun part! You must specify a root node, or a parent table, as the basis of your logical database structure. You can now place subsequent tables under the root table as needed to assemble the data object you want. You can access this tree from this point forward, to add additional tables, by selecting that root node and following the path Edit | Node | Create. Once youu2019ve saved the structure you define in this step, the system will generate the programming necessary to access your logical database. The best part is you donu2019t have to write a single line of code.
    Regards
    Arindam

  • I have selected calendars on my iPhone and macbook to synch with icloud. This works if I enter items on the phone, but not if they are entered on the macbook. Any suggestions why this is happening and how to fix it?

    I have selected calendars on my iphone and macbook to synch using icloud. If I enter an item on the iphone, it appears on the macbook calendar but not the other way round. Any suggestions why this is happening and how to fix it?

    Dartiesdad wrote:
    Hmmmm  Snow Leopard and iCloud.... not usually workable but here is an article that might be helpful.
    http://reviews.cnet.com/8301-13727_7-57511534-263/how-to-set-up-icloud-services- in-snow-leopard/
    10.7.5 is not Snow Leopard so we have to wait and see, the answers to the question I asked will define what it really is.

  • Lately when I sync certain albums to my iPhone, the tracks are duplicated one behind the other so that I have to listen to each song twice. Why does this happen and how can it be fixed?

    Lately when I sync certain albums to my iPhone, the tracks are duplicated one behind the other so that I have to listen to each song twice. Why does this happen and how can it be fixed?

    Very strange behavior.  Don't entirely give up on the "Manually Added Items" category ... I have seen things magically appear there even after I've checked and seen nothing there.  I think things got real quirky when Apple released iCloud ... I don't remember extra copies of purchases lingering on my iPhone once transferred to my library before that.  Sure, if I bought an album directly to my iPhone it would stay on there even after I sync to my library, but if I deleted the album from the iPhone it stayed deleted.  Now it seems that there are some phantom copies that come and go with no explanation.
    jcburbank wrote:
    I've tried deleting the album from both the phone and from iTunes and then redownloading them to both and the same problem occurs.
    If you're re-downloading an album to iTunes and your iPhone, that may perpetuate the problem.  What happens if you completely delete every copy of the album, then just download to your iTunes library and then sync the album to your iPhone from your library?  That should put only one copy on your iPhone.
    A few other things to try:
    1- Completely sign out of your Apple account on your iPhone, then re-sync to iTunes, then sign into your account on your iPhone again.  Maybe throw in a Reset or at least a power OFF/ON somewhere in the middle.
    2- Go to Settings/ General/ Usage, then select Music and when you see All Music, swipe your finger across it and tap the Delete button.  Before doing anything else, Reset your iPhone.  This does not actually delete your music, but seems to clear up some cobwebs left behind (people use this technique to reduce "Other" that swells up over time).

  • HT3775 My DVD player is supposed to play avi videos, but it often doesn't telling me that the file format is not recognized.  I suspect it's because it's the wrong codec.  How can I tell what the codec is before I burn a DVD?  And how do I get a workable

    My DVD player is supposed to play avi videos, but it often doesn't telling me that the file format is not recognized.  I suspect it's because it's the wrong codec.  How can I tell what the codec is before I burn a DVD?  And how do I get a workable codec?  Thanks for uour help!
    Ken Selvidge ([email protected])

    I am not a computer savy person.  I just need to plug in and have the machine do what it should do.
    Not a problem, but that indicates you have a lot to learn.
    File extensions like mpeg, mp4., avi, wmv, etc. are just wrappers. It is like a box the audio or video content is placed inside. The audio and video content must be encoded with a codec before it is placed in the box. There are thousands of codecs. Not all are installed on your Mac. You must have the same codec installed that encoded the video in order to play it. So, while Quicktime does support mpeg wrapper, it may not have the codecs to decode the internal video.
    Some programs have lots of the codecs available to them, like VLC, Niceplayer, MPlayerX, etc.
    You can also get "plug-ins" for Quicktime that add codecs to Quicktime, like Perian. Although it is no longer being developed, Perian still works well.
    Why is it so difficult? Probably because they are always working on ways to compress the video to get better playback.

  • When opening IMovie, we discovered all of our files were gone.  Why did this happen and how do we recover them?

    When opening up our iMovie, we discovered that all of our events, projects, etc. were gone.  Why did this happen and how do we recover our files?

    Try browsing out to and opening these alternate iTunes library using the instructions in this document.
    How to open an alternate iTunes Library file or create a new one
    B-rock

Maybe you are looking for