Bugs in QMSOLB50.pll , QMS$HELP.show_online_help & event

Hi Headstart-team,
There's a bug in QMS$HELP.show_online_help.
This piece of code:
if p_data < 1000000
then
-- Module does not have Help ID prefix, show top level
rc := WinHelpApi.winhelp(hwnd,l_help_file,3,0);
else
rc := WinHelpApi.winhelp(hwnd,l_help_file,p_command,p_data);
end if;
should be:
if p_data < 1000000
then
-- Module does not have Help ID prefix, show top level
rc := WinHelpApi.winhelp(hwnd,l_help_file,p_command,0);
else
rc := WinHelpApi.winhelp(hwnd,l_help_file,p_command,p_data);
end if;
The number 3 is substituted for p_Command. In the original code
it would not matter which help-menu-item is choossen, help starts
always the same. Now with p_Command it makes a difference.
Furthermore the next setting didn't work on windows NT.
     - p_command = 3 : Help Topics (Top level generated help file)
This should be:
     - p_command = 15 : Help Topics (Top level generated help file)
Now it displays all the help-books (after also changing it in
the code, of course). Procedure QMS$HELP.event has to be
modified.
Where these bugs known by Headstart?
Greetings,
Gerrelt Molhoek, Achmea Pensioenen.

Hi Headstart-team,
There's a bug in QMS$HELP.show_online_help.
This piece of code:
if p_data < 1000000
then
-- Module does not have Help ID prefix, show top level
rc := WinHelpApi.winhelp(hwnd,l_help_file,3,0);
else
rc := WinHelpApi.winhelp(hwnd,l_help_file,p_command,p_data);
end if;
should be:
if p_data < 1000000
then
-- Module does not have Help ID prefix, show top level
rc := WinHelpApi.winhelp(hwnd,l_help_file,p_command,0);
else
rc := WinHelpApi.winhelp(hwnd,l_help_file,p_command,p_data);
end if;
The number 3 is substituted for p_Command. In the original code
it would not matter which help-menu-item is choossen, help starts
always the same. Now with p_Command it makes a difference.
Furthermore the next setting didn't work on windows NT.
     - p_command = 3 : Help Topics (Top level generated help file)
This should be:
     - p_command = 15 : Help Topics (Top level generated help file)
Now it displays all the help-books (after also changing it in
the code, of course). Procedure QMS$HELP.event has to be
modified.
Where these bugs known by Headstart?
Greetings,
Gerrelt Molhoek, Achmea Pensioenen.

Similar Messages

  • I need help with event structure. I am trying to feed the index of the array, the index can vary from 0 to 7. Based on the logic ouput of a comparison, the index buffer should increment ?

    I need help with event structure.
    I am trying to feed the index of the array, the index number can vary from 0 to 7.
    Based on the logic ouput of a comparison, the index buffer should increment
    or decrement every time the output of comparsion changes(event change). I guess I need to use event structure?
    (My event code doesn't execute when there is an  event at its input /comparator changes its boolean state.
    Anyone coded on similar lines? Any ideas appreciated.
    Thanks in advance!

    You don't need an Event Structure, a simple State Machine would be more appropriate.
    There are many examples of State Machines within this forum.
    RayR

  • Does anyone know how to change where incoming (via mail) calendar requests go on my MacBook? Mine insist on going to Entourage, which I don't use any more. I've tried setting the default calendar in iCal preferences. Doesn't help. Bugs me. Can you help?

    Does anyone know how to change where incoming (via mail) calendar requests go on my MacBook? Mine insist on going to Entourage, which I don't use any more. I've tried setting the default calendar in iCal preferences. Doesn't help. Bugs me. Can you help?

    Jneklason wrote:
    ~snip~
    I know this email is confusing and really hard to understand...perhaps now you will know how i've been feeling--lost and confused with all the mis-information, with a hit and miss phone, and out of time with all the 1 1/2 hr to 2 hrs EACH wasted on this issue.
    On top of all this, I can't even find out how to file a complaint with anyone higher up than Customer Service.
    I hate to tell you this, but you didn't write an email. You wrote a discussion post on the Verizon Wireless Community forum which is a public peer to peer forum. Unfortunately since you didn't mark your post as a question, the VZW reps that roam this community won't ever see your post. Before you re-post it, don't. Duplicate posts get removed from the community.
    I see there were several missteps both by the reps and yourself in your post. First you should have insisted on returning the phone within the 14 day return policy period. Second which Samsung Galaxy mini model did you purchase? The S3 mini or the S4 mini? Did you do any research prior to deciding on this device. The reps at that time deflected the easiest course of action, by trying to get you to replace the phone under insurance instead of returning the phone. The Early Edge payment option requires the current phone on the line using the early Edge must be returned to Verizon Wireless. Did you once considered going to a third party site like Swappa to purchase a gently used device for your daughter?

  • [svn:osmf:] 16166: Fix bug FM-857: VAST impression and tracking events broken.

    Revision: 16166
    Revision: 16166
    Author:   [email protected]
    Date:     2010-05-17 16:44:55 -0700 (Mon, 17 May 2010)
    Log Message:
    Fix bug FM-857: VAST impression and tracking events broken.
    Ticket Links:
        http://bugs.adobe.com/jira/browse/FM-857
    Modified Paths:
        osmf/trunk/libs/VAST/org/osmf/vast/media/VASTImpressionProxyElement.as
        osmf/trunk/libs/VAST/org/osmf/vast/media/VASTTrackingProxyElement.as
        osmf/trunk/libs/VASTTest/org/osmf/vast/media/TestVASTImpressionProxyElement.as
        osmf/trunk/libs/VASTTest/org/osmf/vast/media/TestVASTTrackingProxyElement.as

  • [svn:osmf:] 15068: Fix bug FM-603: Need to signal complete event when live stream is unpublished.

    Revision: 15068
    Revision: 15068
    Author:   [email protected]
    Date:     2010-03-26 10:10:58 -0700 (Fri, 26 Mar 2010)
    Log Message:
    Fix bug FM-603: Need to signal complete event when live stream is unpublished.
    Ticket Links:
        http://bugs.adobe.com/jira/browse/FM-603
    Modified Paths:
        osmf/trunk/framework/OSMF/org/osmf/net/NetStreamCodes.as
        osmf/trunk/framework/OSMF/org/osmf/net/NetStreamTimeTrait.as

    I have at least now managed to narrow down the problem.
    I took a guess at the packages that were causing problems, and seems I guessed right.
    By following this guide: http://wiki.archlinux.org/index.php/Downgrade_packages
    I downgraded both libgl to version 7.7-1 and ati-dri to 7.7-1, and now I can X starts correctly.
    I guess I'll need to figure out how to file a bug on those packages.

  • BUG: File History fails with no warning- Event ID 201

    I apologize for the long post but I want to summarize everything I've learned about this so far, as it looks like a critical bug.
    I am unable to get File History to backup my files with Windows 8.1.  I set up a 1 TB USB HDD as the target drive and it seemed to run for a minute or two, and then quit completely without any warning.  It created two empty folders on the target
    HDD, but no data was backed up.  I then clicked "Run Now" to try and get it going again, but nothing happened. 
    Under "Advanced Settings" I opened the event log, and saw an Event ID 201 was created each time File History attempted to run: "Unable to scan user libraries for changes and perform backup of modified files for configuration C:\Users\MyUserName\AppData\Local\Microsoft\Windows\FileHistory\Configuration\Config". 
    I've pasted the entire error below.  The "Event Log Online Help" link opens to "Page not Found" on TechNet.
    A Google search revealed other users are experiencing this problem, too (links below).  Some people have been able to solve it by excluding libraries and/or moving all of their data out of the libraries then replacing it one folder at time, running
    FH, and repeating until they find the "offending" file by error 201 occurring.
    There are reports of similar problems with Event IDs 202, 203 and 204.   A similar, but separate error is "Unusual condition was encountered during scanning user libraries for changes and performing backup of modified files for configuration C:\Users\MyUserName\AppData\Local\Microsoft\Windows\FileHistory\Configuration\Config". 
    Based on others' posts, the problem appears to be a bug in how FH handles files/folder names that are similar,
    contain unusual (but legal) characters, and shortcuts ("reparse error").   The second bug is, regardless of which Event ID, that
    FH does not alert the user when it fails, so you have no idea your files are not being backed up.  Even if you are able to eliminate the problem once, there is no guarantee that it won't happen again.  Once error 201 occurs, File
    History is dead in the water and unfortunately since Windows 7 File Backup was removed, there is no alternative data backup method available.
    If anyone has an idea of how to solve or work around this problem (i.e. under exactly what filename conditions FH fails), please post.  I have Windows 8.1 installed on drive C, Windows 7 on drive D, and a data partition E onto which I moved all my Libraries. 
    The Win 7 and 8.1 libraries are in separate folders and not linked in any way, so 8.1 is not trying to back up 7's data.  However, the partition arrangement does not appear relevant.
    Thanks!
    Related links:
    http://answers.microsoft.com/en-us/windows/forum/windows_8-files/filehistory-unable-to-scan-user-libraries-for/b43183bc-eeaa-4d1a-bda4-0ab9dcf061be
    http://social.technet.microsoft.com/Forums/windows/en-US/ccd27fbc-2d95-4ab7-bdd1-2c0c6a43bd2f/file-history
    My Event Log:
    Log Name:      Microsoft-Windows-FileHistory-Engine/BackupLog
    Source:        Microsoft-Windows-FileHistory-Core
    Date:          4/3/2014 11:01:19 PM
    Event ID:      201
    Task Category: None
    Level:         Error
    Keywords:      
    User:          SYSTEM
    Computer:      ThinkPad-Edge
    Description:
    Unable to scan user libraries for changes and perform backup of modified files for configuration C:\Users\inert_000\AppData\Local\Microsoft\Windows\FileHistory\Configuration\Config
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Microsoft-Windows-FileHistory-Core" Guid="{B447B4DB-7780-11E0-ADA3-18A90531A85A}" />
        <EventID>201</EventID>
        <Version>0</Version>
        <Level>2</Level>
        <Task>0</Task>
        <Opcode>0</Opcode>
        <Keywords>0x1000000000000000</Keywords>
        <TimeCreated SystemTime="2014-04-03T14:01:19.267846200Z" />
        <EventRecordID>12</EventRecordID>
        <Correlation ActivityID="{388E273A-4F3D-0001-022B-8E383D4FCF01}" />
        <Execution ProcessID="556" ThreadID="5128" />
        <Channel>Microsoft-Windows-FileHistory-Engine/BackupLog</Channel>
        <Computer>ThinkPad-Edge</Computer>
        <Security UserID="S-1-5-18" />
      </System>
      <EventData>
        <Data Name="Hr">2147747327</Data>
        <Data Name="ConfigFilePath">C:\Users\inert_000\AppData\Local\Microsoft\Windows\FileHistory\Configuration\Config</Data>
      </EventData>
    </Event>

    Hi, thanx for the post. It helped me to fix my Problem with file history.
    In my case it was the spelling of some files. I'm German and we have some Special chars like ä,ö,ü and ß.
    The "Problem" is that You can spell These also in a different way for example "ä" is same like "ae" and "ß" is same like "ss" .
    If I Name one file like "groß.txt" and the other one "gross.txt" file history won't work! I don't know why, probably MS conversts the Name in the background or whatever - but this really
    sucks!
    Even more that You don't get informed! Only when checking the eventlog - and not even in the "normal" eventlog - You have to go to "Microsoft-Windows-FileHistory-Engine/BackupLog" - well, how often does one look up this??
    I think file history is quite useless in this state as it does not inform the user about Problems with the backup. And I really don't want to get "informed" when I Need to restore some files...
    Cheers
    To life is christ, to die is gain...

  • Help! Event content disappears, but still remains in Finder package

    Hi guys,
    I'm totally stumped here. It seems FCP 10.1.1 has some sort of bug that makes content disappear. Here is what has been happening:
    I upgraded back when 10.1 was released, and everything seemed fine. Around 10.1.1 I decided I wanted to move some things around. So I would click on an event inside of a Library, and I would drag it into another Library. Sometimes it would work great. Sometimes FCP would freeze, beachball, and fail. Sometimes I would leave it for 30 minutes or so just in case it was just doing something. I would eventually have to Force Quit.
    The problem? The events that were to be moved didn't show up in the libraries they were supposed to go to. Not in FCP, and not in the Finder. Instead, they stayed where they were coming from. In FCP, these events no longer had any content in them. Also, they lost the purple star that would be next to events. If I went to that same event inside of the Library (Show Package Contents) ALL content was there. All the clips, the transcodes, the originals...everything. Yet, FCP wouldn't "see" it or display it.
    I thought I had a workaround - copy the original files in those events to the desktop, then reimport them into a new event. Well, that does work IF it was an event that was waiting to be edited. But if it was mid-edit, of course, now all I have is the original clips, but no access to the project or edits.
    And now, it seems to just "happen." I will quit FCP and then relaunch it again when I need it, and I will see another event or two in a library has lost its purple star and no longer has content in it! No idea why or what's causing it. I'm on a new Mac Pro, plenty of RAM (64GB), plenty of space, etc.
    Additionally, when I quit FCP it's normally because the browser window stops updating. What I mean is, I am clicking around between events or libraries looking for clips to add to a project. Then, at some point (and this is random, haven't seen a patterns of it always occurring on any particular event) the browser gets "stuck" on an event. I can click on another event and it will be highlighted as active, but the browser window is still displaying the last event I was in. It isn't frozen, as I can still scroll, look at the clips, etc. At this point, no matter what other event I click on, I am "stuck" with the event browser displaying the contents of that event. So, then I have to quit the app and restart it...and I might find that another event has randomly lost all of its clips and projects.
    Again - in the Finder if I go into the Library package and look in that event folder, EVERYTHING is still in there, nearly organized in the folder structure - yet there is nothing I can do (that I know of) to get FCP to see and display it.
    Totally lost now, and scared to keep firing up FCP for fear or losing even more work...but yet, I have to because this is my job! Any help?

    This kind of problem seems to indicate that somehow the changes you made were not correctly registered in the library's database. This is stored inside the library in a file with .flexolibrary extension.
    A possible solution is to force FCP X to rebuild it. This method has worked on several occasions, but of course there is no guarantee. You may want to make a copy of the affected library before attempting the following.
    Locate the library in the Finder (control-click, Reveal in Finder);
    Quit FCP X;
    (At this point, you may want to make a duplicate of the library, just in case)
    Control-click the library and "Show Package Contents"
    Locate the .flexolibrary file and drag it out of the library
    Restart FCP X.
    If all goes well, FCP X will reconstruct the database from the contents of the library package.

  • Further action after leaving search help without event "onEnter"

    Hi,
    I created an iView with an input field to select an employee with search help PREM. Everything works well, so I can search by several match codes.
    And here's my problem: I need the name of the employee in an output field of my iView whenever I select a result of the search help without pressing the enter key (just to make the user sure to use the right employee).
    Is there the possibility to call a customer function and afterwards to bind the element? Ok, I think I need an interaction – but how can I do this without the event onEnter? I just want to select an employee with the search help and -when returning back- displaying his name.
    We substituted an html-application with this iView. The html-appl used a piece of java script in which we used the "on blur"-function, so when we left the input field we called a function to select the employee's name. This way was fine...
    Ok folks, who has an idea/solution?!
    Steffen

    hi steff........
               what you can do is... instead of a standard search help, you can use ovs... so in the coding part you can fill other details too with respect to the selected value... or
            try filling the output field  in the wddomodify method.
    ---regards,
       alex b justin

  • Help needed - events deleted from calendar?

    Saturday morning some events for the coming week disappeard from ICal on both my Mac and IPhone.  Tuesday am they were back.  Now things are gone for Thursday on both systems.  Tuesday events were single events, the Thursday items were repeating events.  Looked to see if there were sytems issues or updates going on nothing is indicated.  Suggestions on anything I can to do to prevent this?  

    Hi llmtwm,
    Welcome to Apple Support Communities.
    If your calendar isn't behaving and you're using iCloud to sync, this article offers some helpful troubleshooting tips:
    iCloud: Troubleshooting iCloud Calendar
    http://support.apple.com/kb/ts3999
    Best,
    Jeremy

  • Help, Recurring Event WON'T Edit or Delete

    I've read the threads about the slow iCal, or SBOD, or not responding. I've tried deleting the plists, backing up then restoring the calenders. I've made all my recurring events end at a date instead of never.
    I think I have the problem narrowed down to one event. If I have the calender that this event is in deselected, iCal runs like a champ, no SBOD, no slow downs, just like the good old days. If I have that calender selected, even if it's the only one, SBOD with every input, takes to long to change month or anything. If I try to edit, or delete this event SBOD for as long as you can wait. If it happens to go away, nothing has happened. "The end on date" still has no were to input the date or if you tried to delete it it's still there.
    Any help would be greatly appreciated. I have installed all updates so I am up to date (kinda redundant)
    Thanks again.

    Ferd, You are a life saver. In  response to you suggestions.
    1) Folder did not exist on my HD. Must have been deleted at some past update.
    2) tried and tried again to no avail. Even deleted the iCal folder in HD/Users/Name/Library/Caches and it still didn't help.
    3)And the angels rejoiced. Had to go back to April 2001 and it took about 3 Min. of the SBOD before it happened but Waa-Lah. The evil event is dead. No spinning ball, no freeze ups, and even with all my calendars selected (10 of them) I can switch between months, events, days, views, whatever just like I used to.
    For anyone reading this that is having a slowdown issue with iCal, It was 1 repeated event out of many that caused the problem. I knew which one it was because if I selected it in Month View I got the SBOD for about 20 sec. every time. If I selected another event, that event highlighted immediately.
    Good Luck All and
    Thanks Again.

  • How to validate enries in Maintenance Views with the help of Events?

    Hello,
    I have a Maint. View. I would like to apply a validation for a specific field of the table. And if there is an entry which is not proper, than I'd need an error message to be issue, and the fields should be open for correction.
    I know this should be managed by Events. I tried many of them, but there was allways some different kind of issuses. E.g. When I used Event 21, the problem was that:  table "total" was not updated with the values I entered, when the Event triggered. More over, when I ussed a simple error message, that appeared on the screen, but when I hit Enter, I got an infinite LOOP, cause Event 21 was again triggered.
    When I tried Event 01, the total table was already updated. But with the program went back to the sceen from where I called the maintenance of the table. And Issues the error message there. When I hit Enter it took me back to maintenance screen. But this is not very nice.
    A bunch of hints would make me very happy, or a good example, which is priceless!
    Thanks and regards,
    Gyula

    Hi priyaranjan,
    Check the data in debug mode whether the record_tab is getting filled or not. If it is not filled use FM 'F4UT_RESULTS_MAP' to fill the data.
    Refer the link F4UT_RESULTS_MAP Standard Search Help Exit for Filling Hit List - Function - ABAP - SAP to know how to use FM.
    Once You get result from FM in to record_tab then sort the table as per your requirement.
    Regards,
    Ravikiran.K

  • New to ABAP Objects. Need help using events

    Hi all,
    I got a program from one of the text books which has the output as
             pursur helps pilot
             stewardess helps passenger on seat 11
             stewardess helps passenger on seat 17
    I am trying to modify this program to get an output:
    purser helps pilot
    stewardess helps passenger on seat 11 to have 2 foodservice.
    stewardess helps passenger on seat 11 to have 2 drinkservice.
    stewardess helps passenger on seat 17
    stewardess helps passenger on seat 17 to have 1 foodservice.
    stewardess helps passenger on seat 17 to have 1 drinkservice.
    stewardess helps passenger on seat 21
    stewardess helps passenger on seat 21 to have 3 foodservice.
    stewardess helps passenger on seat 21 to have 3 drinkservice.
    stewardess helps passenger on seat 25
    stewardess helps passenger on seat 25 to have 1 foodservice.
    stewardess helps passenger on seat 25 to have 1 drinkservice.
    stewardess helps passenger on seat 31
    stewardess helps passenger on seat 31 to have 2 foodservice.
    stewardess helps passenger on seat 31 to have 2 drinkservice.
    I have modified the program and am getting some errors. The program is:
    REPORT  Z_KMADHUR_PROGRAM5.
    class declarations.
    class pilot definition.
    public section.
    methods: call_flight_attendant.
    EVENTS: call_button_presses.
    endclass.
    class passenger definition.
    public section.
    methods: constructor importing value(i_seatnumber) type i,
             service_number importing value(i_servicenumber) type i,
             service_type importing value(i_servicetype) type i,
             call_for_help.
    EVENTS: call_button_pressed exporting value(e_seatnumber) type i,
            call_service_number exporting value(e_servicenumber) type i,
            call_service_type exporting value(e_servicetype) type i.
    PROTECTED SECTION.
    data seatnumber type i.
    data servicenumber type i.
    data servicetype type i.
    endclass.
    class flight_attendant DEFINITION.
    PUBLIC SECTION.
    METHODS: constructor
             importing i_id type string,
             help_the_pilot for EVENT
             call_button_presses OF pilot,
             help_a_passenger FOR EVENT
             call_button_pressed OF passenger
             IMPORTING e_seatnumber, e_wervicenumber, e_servicetype.
             PROTECTED SECTION.
    DATA id TYPE string.
    ENDCLASS.
    class Implementations
    class pilot implementation.
    method call_flight_attendant.
    RAISE EVENT call_button_presses.
    ENDMETHOD.
    ENDCLASS.
             class passenger implementation.
             method: constructor.
             seatnumber = i_seatnumber.
             servicenumber = servicenumber.
             servicetype = servicetype.
             endmethod.
             method: call_for_help.
                      RAISE EVENT: call_button_pressed
                      EXPORTING e_seatnumber = seatnumber,
                      RAISE EVENT call_service_number
                      exporting e_servicenumber = servicenumber,
                      RAISE EVENT call_service_type
                      exporting e_servicetype = servicetype.
                      endmethod.
                      endclass.
    class flight_attendant implementation.
    method constructor.
    id = i_id.
    endmethod.
    method help_the_pilot.
    write: / id, 'helps pilot'.
    endmethod.
    method: help_a_passenger.
    write: / id, 'helps passenger on seat',
    e_seatnumber.
    write:  'to have', e_servicenumber.
    write: e_servicetype.
    endmethod.
    endclass.
    global data
    DATA: o_pilot type ref to pilot,
          o_passenger_1 type ref to passenger,
          o_passenger_2 type ref to passenger,
          o_passenger_3 type ref to passenger,
          o_passenger_4 type ref to passenger,
          o_passenger_5 type ref to passenger.
    DATA: o_purser type ref to flight_attendant,
          o_stewardess type REF to flight_attendant,
          0_foodservice type REF to flight_attendant.
          0_drinkservice type REF to flight_attendant.
    classical processing blocks
          start-of-selection.
          create object: o_pilot,
          o_passenger_1 exporting i_seatnumber = 11,
          o_passenger_2 exporting i_seatnumber = 17,
          o_passenger_2 exporting i_seatnumber = 21,
          o_passenger_2 exporting i_seatnumber = 25,
          o_passenger_2 exporting i_seatnumber = 31.
    create object: o_purser
                   exporting i_id = 'purser',
                   o_stewardess
                   exporting i_id = 'stewardess',
                   o_foodservice
                   exporting i_id = 'foodservice',
                   o_drinkservice
                   exporting i_id = 'drinkservice'.
    set handler: o_purser->help_the_pilot for o_pilot,
                 o_stewardess->help_a_passenger for all instances.
    call method: o_pilot->call_flight_attendant,
    o_passenger_1->call_for_help,
    o_passenger_2->call_for_help.
    I am getting an error "object type passenger doesnot have an event RAISE".
    Any help is appreciated.
    Thanks in advance
    Thanks..

    Hi Madhuri,
    the error that you are getting 'statement is not accessible' is just because u didnt end the data statements with '.'...it is ','...check that
    one more thing when you are creating the object passenger you have to export the 'service number' and the 'service type' also along with 'seatnumber' as you have declared that way in the constructor.
    i made the changes...please check the code..there are no errors but please pass suitable values according to your requirement. right now all the events are getting triggered.
    check this changed code..code in bold
    *& Report  ZTEST_EVENTS
    REPORT  ZTEST_EVENTS.
    class declarations.
    CLASS PILOT DEFINITION.
      PUBLIC SECTION.
        METHODS: CALL_FLIGHT_ATTENDANT.
        EVENTS: CALL_BUTTON_PRESSES.
    ENDCLASS.                    "pilot DEFINITION
          CLASS passenger DEFINITION
    CLASS PASSENGER DEFINITION.
      PUBLIC SECTION.
        METHODS: CONSTRUCTOR IMPORTING VALUE(I_SEATNUMBER) TYPE I
                                      VALUE(I_SERVICENUMBER) TYPE I
                                         VALUE(I_SERVICETYPE) TYPE I,
        CALL_FOR_HELP.
        EVENTS: CALL_BUTTON_PRESSED EXPORTING VALUE(E_SEATNUMBER) TYPE I,
        CALL_SERVICE_NUMBER EXPORTING VALUE(E_SERVICENUMBER) TYPE I,
        CALL_SERVICE_TYPE EXPORTING VALUE(E_SERVICETYPE) TYPE I.
      PROTECTED SECTION.
        DATA SEATNUMBER TYPE I.
        DATA SERVICENUMBER TYPE I.
        DATA SERVICETYPE TYPE I.
    ENDCLASS.                    "passenger DEFINITION
          CLASS flight_attendant DEFINITION
    CLASS FLIGHT_ATTENDANT DEFINITION.
      PUBLIC SECTION.
        METHODS: CONSTRUCTOR
        IMPORTING I_ID TYPE STRING,
        HELP_THE_PILOT FOR EVENT
        CALL_BUTTON_PRESSES OF PILOT,
        HELP_A_PASSENGER FOR EVENT
        CALL_BUTTON_PRESSED OF PASSENGER
        IMPORTING E_SEATNUMBER,
    <b>    CALL_SERVICE_PRESSED FOR EVENT
        CALL_SERVICE_NUMBER OF PASSENGER
        IMPORTING E_SERVICENUMBER,
        CALL_TYPE_PRESSED FOR EVENT
        CALL_SERVICE_TYPE OF PASSENGER
        IMPORTING  E_SERVICETYPE.</b>
      PROTECTED SECTION.
        DATA ID TYPE STRING.
    ENDCLASS.                    "flight_attendant DEFINITION
    class Implementations
    CLASS PILOT IMPLEMENTATION.
      METHOD CALL_FLIGHT_ATTENDANT.
        RAISE EVENT CALL_BUTTON_PRESSES.
      ENDMETHOD.                    "call_flight_attendant
    ENDCLASS.                    "pilot IMPLEMENTATION
          CLASS passenger IMPLEMENTATION
    CLASS PASSENGER IMPLEMENTATION.
      METHOD: CONSTRUCTOR.
        SEATNUMBER = I_SEATNUMBER.
        SERVICENUMBER = I_SERVICENUMBER.
        SERVICETYPE = I_SERVICETYPE.
      ENDMETHOD.                    "constructor
      METHOD: CALL_FOR_HELP.
        RAISE EVENT: CALL_BUTTON_PRESSED
        EXPORTING E_SEATNUMBER = SEATNUMBER.
    <b>    RAISE EVENT: CALL_SERVICE_NUMBER
        EXPORTING E_SERVICENUMBER = SERVICENUMBER.
        RAISE EVENT: CALL_SERVICE_TYPE
        EXPORTING E_SERVICETYPE = SERVICETYPE.</b>
      ENDMETHOD.                    "call_type_help
    ENDCLASS.                    "passenger IMPLEMENTATION
          CLASS flight_attendant IMPLEMENTATION
    CLASS FLIGHT_ATTENDANT IMPLEMENTATION.
      METHOD CONSTRUCTOR.
        ID = I_ID.
      ENDMETHOD.                    "constructor
      METHOD HELP_THE_PILOT.
        WRITE: / ID, 'helps pilot'.
      ENDMETHOD.                    "help_the_pilot
      METHOD: HELP_A_PASSENGER.
        WRITE: / ID, 'helps passenger on seat',
        E_SEATNUMBER.
      ENDMETHOD.                    "help_a_passenger
    <b>  METHOD CALL_SERVICE_PRESSED.
        WRITE: 'to have serviceno', E_SERVICENUMBER.
      ENDMETHOD.                    "call_service_pressed
      METHOD CALL_TYPE_PRESSED..
        WRITE: 'service type' ,E_SERVICETYPE.
      ENDMETHOD.</b>                    "call_type_pressed
    ENDCLASS.                    "flight_attendant IMPLEMENTATION
    global data
    DATA: O_PILOT TYPE REF TO PILOT,
    O_PASSENGER_1 TYPE REF TO PASSENGER,
    O_PASSENGER_2 TYPE REF TO PASSENGER,
    O_PASSENGER_3 TYPE REF TO PASSENGER,
    O_PASSENGER_4 TYPE REF TO PASSENGER,
    O_PASSENGER_5 TYPE REF TO PASSENGER.
    DATA: O_PURSER TYPE REF TO FLIGHT_ATTENDANT,
    O_STEWARDESS TYPE REF TO FLIGHT_ATTENDANT,
    O_FOODSERVICE TYPE REF TO FLIGHT_ATTENDANT,
    O_DRINKSERVICE TYPE REF TO FLIGHT_ATTENDANT.
    classical processing blocks
    START-OF-SELECTION.
      CREATE OBJECT: O_PILOT,
      O_PASSENGER_1 EXPORTING I_SEATNUMBER = 11
                              I_SERVICENUMBER = 12
                              I_SERVICETYPE = 13,
       O_PASSENGER_2 EXPORTING I_SEATNUMBER = 14
                              I_SERVICENUMBER = 15
                              I_SERVICETYPE = 16,
       O_PASSENGER_3 EXPORTING I_SEATNUMBER = 17
                              I_SERVICENUMBER = 18
                              I_SERVICETYPE = 19,
       O_PASSENGER_4 EXPORTING I_SEATNUMBER = 20
                              I_SERVICENUMBER = 21
                              I_SERVICETYPE = 22,
    O_PASSENGER_5 EXPORTING I_SEATNUMBER = 23
                              I_SERVICENUMBER = 24
                              I_SERVICETYPE = 25.
    *o_passenger_2 exporting i_seatnumber = 17,
    *o_passenger_2 exporting i_seatnumber = 21,
    *o_passenger_2 exporting i_seatnumber = 25,
    *o_passenger_2 exporting i_seatnumber = 31.
      CREATE OBJECT: O_PURSER
      EXPORTING I_ID = 'purser',
      O_STEWARDESS
      EXPORTING I_ID = 'stewardess',
      O_FOODSERVICE
      EXPORTING I_ID = 'foodservice',
      O_DRINKSERVICE
      EXPORTING I_ID = 'drinkservice'.
      SET HANDLER: O_PURSER->HELP_THE_PILOT FOR O_PILOT,
      O_STEWARDESS->HELP_A_PASSENGER FOR ALL INSTANCES,
    <b> O_STEWARDESS->CALL_SERVICE_PRESSED FOR ALL INSTANCES,
      O_STEWARDESS->CALL_TYPE_PRESSED FOR ALL INSTANCES.</b>
      CALL METHOD: O_PILOT->CALL_FLIGHT_ATTENDANT,
      O_PASSENGER_1->CALL_FOR_HELP.
    similarly call the methods for the other objects also.
    Regards,
    Vidya

  • Nokia Photos wont open/load. help! (Event Details...

    Hey guys!
     First off, I really, really need this data to be recovered so any help would be appreciated....ok so....
    In short: I have a n95 8gb. I store texts, messages, etc on Lifeblog/Photos.  I was using Nokia Lifeblog until they made us download Nokia Photos. Since then I've used Nokia Photos.  Now apparently Ovi's the new thing and Photos support ended.  
    When I open Photos, nothing happens after the splashscreen.  I've tried installing the latest version; didnt work. I restored it back to the old.  Here is the Windows Event Log.  I run Windows XP Pro SP 3.  Please help me figure out what this means and how to fix it..
    Thank you in advance!  Any help in helping me to find the destination files for the  text messages or opening the program with be greatly appreciated! 
    ========================================
    Event Type: Error
    Event Source: NokiaPhotos
    Event Category: None
    Event ID: 100
    Date: 11/22/2010
    Time: 2:40:45 PM
    User: N/A
    Computer: EVEREST
    Description:
    Timestamp: 11/22/2010 8:40:44 PM
    Message: HandlingInstanceID: ec2940ce-41d3-4ecf-bd3b-03bb50cf1c99
    An exception of type 'System.MissingFieldException' occurred and was caught.
    11/22/2010 14:40:44
    Type : System.MissingFieldException, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
    Message : Field not found: 'MS.Utility.EventTrace.APPCTORGUID'.
    Source : PresentationFramework
    Help link : 
    Data : System.Collections.ListDictionaryInternal
    TargetSite : Void .ctor()
    Stack Trace :    at System.Windows.Application..ctor()
       at Nokia.NokiaPhotos.App..ctor()
       at Nokia.NokiaPhotos.SingleInstanceManager.OnStartup(StartupEventArgs e)
       at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
       at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)
       at Nokia.NokiaPhotos.EntryPoint.Main(String[] args)
    Additional Info:
    MachineName : EVEREST
    TimeStamp : 11/22/2010 8:40:44 PM
    FullName : Microsoft.Practices.EnterpriseLibrary.ExceptionHandling, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
    AppDomainName : NokiaPhotos2.exe
    ThreadIdentity : EVEREST\Hammad
    WindowsIdentity : EVEREST\Hammad
    Category: Error
    Priority: 0
    EventId: 100
    Severity: Error
    Title:Nokia Photos
    Machine: EVEREST
    App Domain: NokiaPhotos2.exe
    ProcessId: 168
    Process Name: C:\Program Files\Nokia\Nokia Photos\NokiaPhotos2.exe
    Thread Name: 
    Win32 ThreadId:368
    Extended Properties: 
    For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
    =========================================

    Hi melvinpereira,
    Which operating system you are using? Xp/Vista? 32 or 64 bit?
    If you want to make backup of all your phone entries, why donot you try Content Copier of Nokia PC Suite 7.0.8.2???

  • Help with event listener

    I'm having some trouble trying to figure out how this event listener will work.
    The main application is building an arrayCollection of a calendarDay custom components which is displayed by a DataGroup.
    Within each calendarDay custom component i may create an arrayList of a DriverDetailComponent custom components displayed within the calendarDay by a DataGroup.
    If a user double clicks on the DriverDetailComponent that is two layers in I would like to change states of the main application.  I'm having trouble figuring out what item in the main application to set the listener on.  Please help.
    I can't figure out how to post the below as scrollable code snips so this is very long.
    Main application code:
    <code><?xml version="1.0" encoding="utf-8"?>
    <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:components="components.*"
                   preinitialize="readDataFile()"
                   creationComplete="buildRowTitles()"
                   width="1024" height="512"  backgroundColor="#A4BDD8">
        <s:states>
            <s:State name="State1"/>
            <s:State name="driverDetailState"/>
        </s:states>
        <!--
        <fx:Style source="EventCalendar.css"/>
        creationComplete="readDataFile()"    creationComplete="driversList.send()"-->
        <fx:Declarations>
            <!-- Place non-visual elements (e.g., services, value objects) here -->       
            <mx:DateFormatter id="myDateFormatter"
                              formatString="EEE, MMM D, YYYY"/>
            <!--<s:HTTPService id="driversList"
                           url="files/drivers.xml"
                           result="driversList_resultHandler(event)"
                           fault="driversList_faultHandler(event)"/>
            <s:HTTPService id="postDriversList"
                           url="files/drivers.xml"
                           method="POST"
                           result="postDriversList_resultHandler(event)"
                />-->
            <!--<s:Move id="expandTab"
                    target="{labelTab}"
                    xBy="250"/>-->
        </fx:Declarations>
        <fx:Script>
            <![CDATA[
                import components.CalendarDay;
                import components.TruckDriver;
                import components.calendarDay;
                import events.CancelChangeDriversEvent;
                import events.ChangeDriversEvent;
                import events.EditDriverEvent;
                import mx.collections.ArrayCollection;
                import mx.collections.ArrayList;
                import mx.containers.Form;
                import mx.controls.Alert;
                import mx.controls.CalendarLayout;
                import mx.core.FlexGlobals;
                import mx.core.IVisualElement;
                import mx.core.WindowedApplication;
                import mx.printing.FlexPrintJob;
                import mx.rpc.events.FaultEvent;
                import mx.rpc.events.ResultEvent;
                import mx.rpc.xml.SimpleXMLEncoder;
                import spark.components.Application;
                import utilities.FormatUtil;
                import utilities.ObjectToXML;
                /* public var prefsFile:File; */ // The preferences prefsFile
                [Bindable] public var driversXML:XML; // The XML data
                public var stream:FileStream; // The FileStream object used to read and write prefsFile data.
                public var fileName:String="driversArrayCollection";
                public var directory:String = "AceTrackerData";
                public var dataFile:File = File.documentsDirectory.resolvePath(directory + "\\" + fileName);
                [Bindable]
                public var drivers:ArrayCollection=new ArrayCollection();
                private var fileStream:FileStream;
                [Bindable]
                public var calendarDayArray:ArrayCollection = new ArrayCollection;
                public var i:int;
                [Bindable]
                public var weekOneTitle:String;
                [Bindable]
                public var weekTwoTitle:String;
                [Bindable]
                public var weekThreeTitle:String;
                [Bindable]
                public var weekFourTitle:String;
                public var day:Object;
                protected function readDataFile():void
                    if(dataFile.exists)
                        fileStream = new FileStream();
                        fileStream.open(dataFile, FileMode.READ);
                        drivers = fileStream.readObject() as ArrayCollection;
                        fileStream.close();
                    else
                        drivers = new ArrayCollection();
                        var driver:TruckDriver = new TruckDriver("New", "Driver", 000);
                        drivers.addItem(driver);
                        saveData(drivers);
                    buildCalendarArray();
                protected function buildCalendarArray():void
                    calendarDayArray.removeAll();
                    for (i=0; i<28; i++)
                        var cd:calendarDay = new calendarDay;
                        cd.dateOffset= i-7
                        cd.drivers=drivers;
                         cd.addEventListener("editDriverEvent",editDriverEvent_Handler);
                        calendarDayArray.addItem(cd);
              private function saveData(obj:Object):void//this is called on the postDriversList result handler to create and write XML data to the file
                    var fs:FileStream = new FileStream();
                    fs.open(dataFile, FileMode.WRITE);
                    /* fs.writeUTFBytes(myXML); */
                    fs.writeObject(drivers);
                    fs.close();
                protected function driverschedule1_changeDriversHandler(event:ChangeDriversEvent):void
                    saveData(drivers); 
                    readDataFile();//i read the drivers file again, this refreshes my data, and removes any temporary data that may have been stored in the drivers array
                    buildCalendarArray();
                    currentState = 'State1';//this hides the driversdetail window after we've clicked save
                    /* postDriversList.send(event.driverInfo); */  //this needs to be different
                    /* Alert.show("TEST"); */
                protected function driverschedule1_cancelChangeDriversHandler(event:CancelChangeDriversEvent):void
                    /* Alert.show("Changes have been canceled."); */
                    readDataFile();//this re-reads the saved data file so that the changes that were made in the pop up window
                    // are no longer reflected if you reopen the window
                    buildCalendarArray();
                    currentState = 'State1';  //this hides the driversdetail window after we've clicked cancel
                protected function buildRowTitles():void
                    var calendarDay0:Object;
                    var calendarDay6:Object;
                    calendarDay0=calendarDayArray.getItemAt(0);
                    calendarDay6=calendarDayArray.getItemAt(6);
                    weekOneTitle = calendarDay0.getDayString() + " - " + calendarDay6.getDayString();
                    weekTwoTitle=calendarDayArray.getItemAt(7).getDayString()+ " - " + calendarDayArray.getItemAt(13).getDayString();
                    weekThreeTitle=calendarDayArray.getItemAt(14).getDayString()+ " - " + calendarDayArray.getItemAt(20).getDayString();
                    weekFourTitle=calendarDayArray.getItemAt(21).getDayString()+ " - " + calendarDayArray.getItemAt(27).getDayString();
            ]]>
        </fx:Script>
        <s:Group height="100%" width="100%">
            <s:layout>
                <s:BasicLayout/>  <!--This is the outermost layout for the main application MXML-->
            </s:layout>
        <s:Scroller width="95%" height="100%"  >
        <s:Group height="100%" width="100%"  ><!--this groups the vertically laid out row titles hoizontally with the large group of calendar days and day titles-->
            <s:layout>
                <s:HorizontalLayout/>
            </s:layout>
        <s:Group height="95%" width="50" ><!--this is the group of row titles layed out vertically-->
            <s:layout>
                <s:VerticalLayout paddingLeft="40" paddingTop="35"/>
            </s:layout>
            <s:Label text="{weekOneTitle}"
                     rotation="-90"
                     backgroundColor="#989393"
                     height="25%" width="115"
                     fontWeight="normal" fontSize="15"
                     paddingTop="4" textAlign="center"  />
            <s:Label text="{weekTwoTitle}"
                     rotation="-90"
                     backgroundColor="#989393"
                     height="25%" width="115"
                     fontWeight="normal" fontSize="15"
                     paddingTop="4" textAlign="center" />
            <s:Label text="{weekThreeTitle}"
                     rotation="-90"
                     backgroundColor="#989393"
                     height="25%" width="115"
                     fontWeight="normal" fontSize="15"
                     paddingTop="4" textAlign="center"  />
            <s:Label text="{weekFourTitle}"
                     rotation="-90"
                     backgroundColor="#989393"
                     height="25%" width="115"
                     fontWeight="normal" fontSize="15"
                     paddingTop="4" textAlign="center"  />
        </s:Group>
        <s:Group height="100%" width="100%" >
            <!--this vertically groups together the horizontal day names group and the tile layout datagroup of calendar days-->
            <s:layout>
                <s:VerticalLayout paddingLeft="5"/>
            </s:layout>
        <s:Group width="100%" >
            <s:layout><!--this group horizontal layout is for the Day names at the top-->
                <s:HorizontalLayout paddingTop="10"/>
            </s:layout>
            <s:Label id="dayNames" text="Sunday" width="16%" fontWeight="bold" fontSize="18" textAlign="center"/>
            <s:Label text="Monday" width="16%" fontWeight="bold" fontSize="18" textAlign="center"/>
            <s:Label text="Tuesday" width="16%" fontWeight="bold" fontSize="18" textAlign="center"/>
            <s:Label text="Wednesday" width="16%" fontWeight="bold" fontSize="18" textAlign="center"/>
            <s:Label text="Thursday" width="16%" fontWeight="bold" fontSize="18" textAlign="center"/>
            <s:Label text="Friday" width="16%" fontWeight="bold" fontSize="18" textAlign="center"/>
            <s:Label text="Saturday" width="16%" fontWeight="bold" fontSize="18" textAlign="center"/>
        </s:Group>
            <!--<s:SkinnableContainer width="16%">-->
                <s:DataGroup id="calendarDataGroup"
                             dataProvider="{calendarDayArray}"
                             itemRenderer="{null}"  resizeMode="scale"
                              height="100%" width="100%"
                              >  <!--  I had to use a null renderer because otherwise each instance is added in a group container renderers.DriverScheduleRenderer-->
                    <s:layout >
                        <s:TileLayout requestedColumnCount="7" />
                    </s:layout>
                </s:DataGroup>
            <!--</s:SkinnableContainer>-->
        <!--<mx:FormItem label="Today's Date:">
            <s:TextInput id="dateToday"
                         text="{myDateFormatter.format(testDate)}"/>
        </mx:FormItem>-->
        <!--<components:DriverSchedule drivers="{drivers}"
                                   changeDriversEvent="driverschedule1_changeDriversHandler(event)"/>-->
            <s:HGroup>  <!--this groups together my drivers button and my print button at the bottom of the calendar-->
            <s:Button id="showDriverDetailButton"
                      label="Driver List"
                      click="currentState = 'driverDetailState'">
                <!--</s:Button>
                <s:Button id="printButton"
                    label="Print"
                    >  click="printButton_clickHandler(event)"-->
                </s:Button>
            </s:HGroup>    <!--this is the end of the small hgroup which pairs my drivers button with the print button-->                  
        </s:Group><!--this ends the vertical grouping of the day names and the tile layout calendar-->   
    </s:Group>        <!--this ends the horizontal grouping of the calendar (names and days) with the week labels at the left-->
        </s:Scroller>
            <s:SkinnableContainer includeIn="driverDetailState"
                                  width="95%" height="95%"  horizontalCenter="0" verticalCenter="0"
                                  backgroundColor="#989898" backgroundAlpha="0.51">
                <s:BorderContainer horizontalCenter="0" verticalCenter="0">
                <components:DriverSchedule id="driverSchedule"
                                            drivers="{drivers}"
                                           changeDriversEvent="driverschedule1_changeDriversHandler(event)"
                                           cancelChangeDriversEvent="driverschedule1_cancelChangeDriversHandler(event)"
                                           />
                </s:BorderContainer>
            </s:SkinnableContainer>
        </s:Group>  <!--end of basic layout group-->
    </s:WindowedApplication>
    </code>
    calendarDay.mxml code:
    <code>
    <?xml version="1.0" encoding="utf-8"?>
    <s:Group xmlns:fx="http://ns.adobe.com/mxml/2009"
             xmlns:s="library://ns.adobe.com/flex/spark"
             xmlns:mx="library://ns.adobe.com/flex/mx"
             creationComplete="initDay()"
              width="100%">  <!--width="16%" height="25%"  width="160" height="112"-->
        <fx:Declarations>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
            <mx:DateFormatter id="myDateFormatter"
                              formatString="MMM D"/>
        </fx:Declarations>
        <fx:Metadata>
            [Event(name = "editDriverEvent", type="events.EditDriverEvent")]
        </fx:Metadata>
        <fx:Script>
            <![CDATA[
                import components.CalendarDay;
                import components.DriverDetailComponent;
                import events.EditDriverEvent;
                import mx.collections.ArrayCollection;
                import mx.collections.ArrayList;
                import mx.controls.CalendarLayout;
                import mx.controls.DateField;
                [Bindable]
                public var todayCollection:ArrayCollection = new ArrayCollection;
                [Bindable]
                public var todayList:ArrayList=new ArrayList; //arraylist created as data provider for dataGroup, this is where all drivers with an arrival date of today are added
                [Bindable]
                public var currDate:Date =new Date; //this will be used to contain the current real world date
                [Bindable]
                public var calDate:Date = new Date; //this is used below to determine the date of the calender day that is being created
                [Bindable] 
                public var todaysDate:CalendarDay;
                [Bindable]
                public var currDay:int;
                [Bindable]
                public var dateOffset:int;
                public var drivers:ArrayCollection= new ArrayCollection();
                   public var driver:Object;  
                public var rowLabel:String;
                public function initDay():void
                    todaysDate  = new CalendarDay(currDate, currDate.day, dateOffset)//currDate represents the day the operating system says today is
                        currDay=todaysDate.returnDate().getDate();//currDay is an int representing the day of the month
                        calDate=todaysDate.returnDate();//calDate represents the actual date on the calendar (MM-DD-YYY) that is currently being evaluated
                        /* if (currDay ==currDate.getDate()) //i want to highlight the day if it is in fact today
                            cont.styleName="Today";
                            if (calDate.getDate() == currDate.getDate())
                            calDayBorder.setStyle("backgroundColor", "#FFFF00");
                        else
                            calDayBorder.setStyle("backgroundColor", "#EEEEEE");
                         addDrivers(); 
                    return;
                  public function addDrivers():void
                       var count:int = 0;
                      /*var driverDetail:DriverDetailComponent;
                      var driver =  */
                    for each (driver in drivers)
                    {//i check the date value based on data entry of mm-dd-yy format against the calculated date for the day
                        //the calender is building and if it is equal the drivers information is added to this day of the calendar
                        if (DateField.stringToDate(driver.arrivalDate,"MM/DD/YYYY").getDate() == calDate.getDate())
                                var driverDetail:DriverDetailComponent = new DriverDetailComponent; //i create a new visual component that adds the id and destination to the calendar day
                                driverDetail.driverid = drivers[count].id; //i feed the id property which is the truck# - firstName
                                driverDetail.driverToLoc=drivers[count].toLoc; //i feed the toLoc which is the current destination of the driver
                                driverDetail.driverArrayLocation=count;   //here i feed the location of this driver in the "drivers" array so i know where it's at for the click listener
                                todayList.addItem(driverDetail);
                            //this concatenates the drivers truck number first name and destination to display in the calendar day
                                /* todayList.addItem(driver.truckNumber + " - " + driver.firstName + " - " + driver.toLoc); */
                    count ++;
                public function getDayString():String
                    rowLabel =myDateFormatter.format(calDate);
                    return rowLabel;
            ]]>
        </fx:Script>
        <s:BorderContainer id="calDayBorder" width="160" styleName="Today" cornerRadius="2" dropShadowVisible="true" height="100%">
            <s:layout>
                <s:BasicLayout/>   
            </s:layout>
            <!--I need to make a custom item renderer for my calendar days that limits the height and width of the day, and also puts the items
            closer together so i can fit maybe 5 drivers on a single day-->
            <s:DataGroup dataProvider="{todayList}"
                         itemRenderer="spark.skins.spark.DefaultComplexItemRenderer"
                         bottom="-2"
                         width="115" left="2">  <!--width="94%"  width="100"  width="16%"-->
                <s:layout >
                    <s:VerticalLayout gap="-4"/> <!--The reduced gap pushes the drivers together if there are serveral on one day. This helps cleanly show several drivers on one day-->
                </s:layout>
            </s:DataGroup >
            <s:Label  text="{currDay}" right="3" top="2" fontSize="14" fontWeight="bold"/>
        </s:BorderContainer>
    </s:Group>
    </code>
    DriverDetailComponent code:
    <code><?xml version="1.0" encoding="utf-8"?>
    <s:Group xmlns:fx="http://ns.adobe.com/mxml/2009"
             xmlns:s="library://ns.adobe.com/flex/spark"
             xmlns:mx="library://ns.adobe.com/flex/mx">
        <fx:Declarations>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
        </fx:Declarations>
        <fx:Metadata>
            [Event(name = "editDriverEvent", type="events.EditDriverEvent")]
        </fx:Metadata>
        <fx:Script>
            <![CDATA[
                import events.EditDriverEvent;
                import mx.controls.Alert;
                [Bindable]
                public var driverid:String;
                [Bindable]
                public var driverArrayLocation:int;
                [Bindable]
                public var driverToLoc:String;
                protected function label1_doubleClickHandler(event:MouseEvent):void
                    Alert.show("You have selected " +driverid +" at location "  + driverArrayLocation.toString() +" in the drivers ArrayCollection.");
                    var eventObject:EditDriverEvent = new EditDriverEvent("editDriverEvent",driverArrayLocation);
                    dispatchEvent(eventObject);
            ]]>
        </fx:Script>
        <s:Label id="driverDetailLabel" text="{driverid} - {driverToLoc}"  doubleClick="label1_doubleClickHandler(event)" doubleClickEnabled="true"/>
    </s:Group>
    </code>

    lkb3 wrote:
    I'm trying to add a listener to [this JOptionPane pane dialog box|http://beidlers.net/photos/d/516-1/search_screenshot.JPG|my dialog box], so that when it pops up, the cursor is in the text box, but then if the user clicks a button other than the default, the cursor reverts back into the text box.
    The code I have is this:
      // BUILD DIALOG BOX
    JLabel option_label = new JLabel("Select a search option:");
    // Create the button objects
    JRadioButton b1 = new JRadioButton("Search PARTS by name");
    JRadioButton b2 = new JRadioButton("Search ASSEMBLIES by name");
    JRadioButton b3 = new JRadioButton("Search DRAWINGS by name");
    JRadioButton b4 = new JRadioButton("Search all by DESCRIPTION");
    b1.setSelected(true);
    // Tie them together in a group
    ButtonGroup group = new ButtonGroup();
    group.add(b1);
    group.add(b2);
    group.add(b3);
    group.add(b4);
    // Add them to a panel stacking vertically
    JPanel panel = new JPanel();
    panel.setLayout(new BoxLayout(panel,BoxLayout.Y_AXIS));
    panel.add(b1);
    panel.add(b2);
    panel.add(b3);
    panel.add(b4);
    JLabel name_label = new JLabel("Enter a search term (add *'s as required)");
    JTextField name = new JTextField(30);
    name.addComponentListener(new ComponentListener() {
    public void componentHidden(ComponentEvent ce) { }
    public void componentMoved(ComponentEvent ce) { }
    public void componentResized(ComponentEvent ce) {
    ce.getComponent().requestFocus();
    public void componentShown(ComponentEvent ce) { }
    Object[] array = { option_label, panel, name_label, name };
    // GET INPUT FROM USER
    int res = JOptionPane.showConfirmDialog(null, array, "Select", JOptionPane.OK_CANCEL_OPTION);
    String searchTerm = name.getText();This sucessfully has the focus in the text box when opened; is there a way to get the focus to go back into the text box after the user clicks a radio button?
    Thanks!
    [this JOptionPane pane dialog box|http://beidlers.net/photos/d/516-1/search_screenshot.JPG|dialog Joption]
    you will need to add ItemListener to the JRadioButtons

  • Is this bug or just me? HELP PLEASE!!!!!!!!!

    hi all, i have 3 very simple class it just calling a method from Layout class. they are all from different package. class path are fine because i can create Layout but i cant call it methods from package ROSServer with package ROSGui.sharedGui it is fine. i dont kno what kinda error or bug this is
    have never come across one even a simple class like this :(
    this is kinda urgen, please help me!!!!!!!!!
    thanks in advance <3
    this class can compile just fine no problem
    package Domain;
    import java.util.*;
    * This Class Create a Layout Object
    public class Layout{
         /** Create an empty Layout */
         public Layout(){
         public String getName(){return name;}
         public String name;
    this class can compile just fine no problem
    package ROSGui.sharedGui;
    import Domain.*;
    public class SharedToolBar{
         public SharedToolBar(Layout l){
              Layout layout = l;
              layout.getName();
    // Variables declaration
    // End of variables declaration
    this class can not compile error "cannot resolve symbol"
    package ROSServer;
    import Domain.*;
    * This Class contains all SQL methods required to modify database and getting Connection
    * from DBConnect
    final class ServerHandler{
         ServerHandler(Layout l){
              Layout layout = l;
              layout.getName();
    // Variables declaration
    // End of variables declaration
    }

    It's an easy problem:
    Do yourself a favor and post the actual error next time. Or, better yet, read the error yourself, think about what it's telling you, BELIEVE WHAT IT SAYS, and act on it. There's no reason why anybody should be posting compilation errors to a forum.
    You can only have one package statement in a .java source file, and it's got to be the first statement in the file.
    Put each class in its own file and make them all public. Recompile. When I did that, they all compiled just fine.

Maybe you are looking for