Explain DATES, Scheduled Actions & Reference Objects

Hi Experts,
In an activity screen can any one explain me about these three blocks?
DATES, SCHEDULED ACTIONS & REFERENCE OBJECTS
Dates  (Assignment Block)
Date Types -
Date-----Time-Date ToTime To--Duration-Time Unit-All D E
Planned Completion                                          
Period
Planned Date          
Activity: Planned Total Duration                                  
Actual Dates                                         
Activity: Actual Total Duration                             0     Minute     
Interaction: Actual Dur. Face-to-Face                                   
What is u201CPlanned completion periodu201D, u201Cplanned dateu201D, u201CActivity: Planned Total Durationu201D, u201CActual Datesu201D, u201CActivity: Actual total durationu201D, u201CInteraction: Actual dur. Face-to-Faceu201D.
Those all date types almost seems meant same, if there is any difference please explain.
Scheduled Actions (Assignment Block)
What is this for?
Reference Objects (Assignment Block)
What is Reference Objects? When I click on u201CNewu201D, it shows me Reference Type and Reference ID. What are these used for? What is this used for?
Thanks & Regards
Rohan

Hi Rohan,
for the first question I can advise to review the customizing of the date profile, transaction spro, CRM->Basic Functions-> Date Management.
Like the difference between the Planned Date and Actual Date in the Activity management lies in the different date rule used. So for the first one the FM CRM_DATES_ORDERACTUAL_TR is called when it is determined. For the second one the FM CRM_DATES_ORDERPLANNED_TR is called.
Hope this helps,
BR,
Erika

Similar Messages

  • Reference object data update in Location tab page of order

    Hello
    When a  reference object in notification/order is changed, the location and account assignment data is  updated in order location data by standard settings in SAP but any changes to the master data of the existing reference object is not changed in Notification/Order location tab page.
    But there is an option that  when you change the data in the technical object and you need the same to be reflected in order location data for which this order has the reference object, we can use the functionality of clicking the right mouse in object list and so the data will be updated in notification/order.
    Please explain how to carry out this step "of clicking the right mouse in object list and so the data will be updated in notification/order"..
    I have changed the Location data/Account assignment data of techincal object in its master data and now i want that to reflect in Work order.
    How to achieve this??

    Hi,
    Keep the cursor in Equipment field & right click the mouse. You can find the option Update Reference Object Data.
    Select that option, you will get updated details in the Notification / order.
    Regards,
    Maheswaran.

  • Reference Object to Refresh Work Order Field Data

    Dear Gurus,
    In IW21/IW22 the reference object will populate the Responsibilities section of the Notification tab, and fields on the Location Data tab.  When the reference object is changed, those same fields will update or refresh.  The reference object will also populate field data in a work order if the work order is created from the notification, however, work order fields will not refresh if the reference object on the notification is changed.  Nor will work order fields change if the reference object is changed directly within the work order.
    Can anyone explain why fields will refresh in IW21/IW22 when the reference object is changed, but similar fields in the work order will not refresh when the reference object is changed in IW31/IW32?

    Hi Lisa,
    When you execute IW31/IW32 transaction, in back ground standard SAP programs are called to perform order related task.
    When transaction IW21 / IW22 is executed and order is created or changed at that point also standard SAP programs are called to perform order related task.
    But program called by IW31/IW32 are different then that will called with IW21/IW22 and thus refresh dont happen if u change reference object in notification once after order is created.
    You need to manually change in work order.

  • Notification: Set priority and dates, based on the reference object

    Hello,
    I'm searching for an idea/solution, to set the priority of a notification automatically, depending on the entered reference object (F/L or equi).
    I.e. I want to classify the F/Ls and equis with a priority (e.g. via the classification, or F/L / equi master data). When the user creates a notification, and enters a F/L or equi, the priority should be selected from the object and set automatically.
    Thanks for your answers!
    Best regards
    Stephan

    Hello Pete,
    thank you for your answer. Unfortunatelly both user-exits seem not to work for my problem.
    QQMA0025: Default values when adding a notification
    Priority and dates can be modified, but in this step you don't have the functional location. I thought, I can send a popup in this user-exit, to ask for the functional location, but the functional location is deleted in a later step (before the 1st display of the notification header), i.e. the user has to enter it again.
    QQMA0018: Deadline setting based on entered priority
    Here you can only modify the dates / times, but not the priority.
    Another show stopper is, that the exits will only be processed once, i.e. in both cases, a change of the functional location doesn't adjust the dates/times.
    It seems, that exit "Before saving the notification" (as far as I remember QQMA0014) could be a solution.
    I see 2 problems ->
    1. the user enters the F/L or equi and nothing happens to the priority / dates -> sending a popup in the saving process to inform the user about the changes, could be a solution.
    2. What to do, when the user has already maintained priority and/or dates/times?
    I will have a look, if there are enhancement spots in the notification program. Perhaps this can help me (or better - my boss ).
    Best regards
    Stephan

  • Reference data types in interface objects?

    How do you create reference data type based on data type in interface object??

    First create the reference DT1 in IR then create a new data type DT2 and if you want to create a reference to DT1 then in  the editor select Type (3rd coloum) as the DT1 which you can get by double click on Type and then you select "search help" and select DT1 from the list.
    Cheer's

  • F2 Notification type not picking reference object tab data

    Hello experts,
    I am facing a problem while creating notification. I have one lot of 01 inspection type(which is created after GRN) to which F2 notification type is attached. When i am trying to create notification against that lot, system is not fetching data in Reference Object Tab i.e. Material number, Plant, Material Doc, etc,.
    Please give me some solution on this.

    Dear all,
    i am adding screen shots of process which i am doing. Please have a look on it.
    1. I have done result recording in which i have rejected one parameter and closed RR. As i have not activated automatic defect recording it will allow me to save RR. Now i clicked on Defect recording.
    2. Selected report type 00000010 & defect recording at Inspection Lot Level.
    3. Added defect & clicked on Notification.
    4. Here no data is fetched.

  • Access via NULL reference object not possible

    Hi friends,
      I have created an wda application which uses the table popin to display data.
      So that i have created a view with two of the  fields as link to action UI element.
      In the Events/Actions of the link to action element i implemented the following logic.
      data wd_table_cell_editor type ref to cl_Wd_view_element.
      data wd_table_column      type ref to cl_wd_table_column.
      data wd_popin             type ref to cl_wd_table_popin.
      data id type string.
    <b> wd_table_cell_editor ?= wd_this->m_view->get_element( id ).</b>
      wd_table_column ?= wd_table_cell_editor->get__parent( ).
      wd_popin = wd_table_column->get_popin( ).
      context_element->set_attribute( name = 'SELECTED_POPIN' value =
    wd_popin->id ).
    So when i click on the link to action in the table column of the field am getting the following error
    <b>Access via NULL reference object not possible.</b>
    While debugging i have noticed that this error was coming at the below step of the code.
    <b>wd_table_cell_editor ?= wd_this->m_view->get_element( id )</b>
    in the m_view->get_element( id ) does not contan any value , its showing as table , as null value cannnot be assigned may be its throwing the above error.
    But i didnt understand why the view is not getting UI element id ....
    Can one please suggest me where might be the wrong....
    Regards
    Sireesha.

    Hi nithya,
      Could you please calrify the doubts for the following q's.
    1. As u said in the above post, i have changed the code to the below.
         data: lr_table type ref to cl_wd_table,
    lr_table_col type ref to cl_wd_table_column.
    lr_table ?= wd_this->m_view->get_element( 'TABLE' ).
    lr_table_col = lr_table->get_column( ID = 'TABLE_CONNECTID' ).
      <b>wd_popin = lr_table_col->get_popin( ).</b>
    (At the above step which is in bold , eventhough there is value in lr_table_col->get_popin , its not assigning a value to the wd_popin, throwing same error NULL etc.,)
      context_element->set_attribute( name = 'SELECTED_POPIN' value =
    wd_popin->id ).
    2. Before changing the code suggested by u, the follwoing was the code from standard example.Its working fine in the application wdr_test_table.I have debugged the code.The value is getting assigned into wd_table_cell_editor.
    The same thing i have done but its failing to assign the value. thats y its throwing null reference error. Here i have a confusion how its assigning a value and y not in the z application.am giving the code below which is in standard and my application.Please clarify these.
    data wd_table_cell_editor type ref to cl_Wd_view_element.
      data wd_table_column      type ref to cl_wd_table_column.
      data wd_popin             type ref to cl_wd_table_popin.
      <b>wd_table_cell_editor ?= wd_this->m_view->get_element( id ).</b>
    ( Note :  wd_this->m_view->get_element contains value but not assigning it to the wd_table_cell_editor and same code in the standard behaving correctly like assigning the view value to the cell editor. Y this behavior, please advice me)
      wd_table_column ?= wd_table_cell_editor->get__parent( ).
      wd_popin = wd_table_column->get_popin( ).
      context_element->set_attribute( name = 'SELECTED_POPIN' value = wd_popin->id )
    Regards
    Sireesha.

  • Creation of Reference Object in Complaints

    Hi,
    I want to create Ibase component as reference object for Complaint . I debugged through the Order_maintain and tried to fill as like that.
    Please find the  code :
    DATA: lt_refobj_com TYPE  crmt_srv_refobj_comt.
    DATA: ls_refobj_com TYPE crmt_srv_refobj_com.
    DATA: lt_input_field  TYPE  crmt_input_field_tab.
    DATA: ls_input_field TYPE crmt_input_field.
    DATA: lt_field_names  TYPE crmt_input_field_names_tab.
    DATA: ls_field_names TYPE crmt_input_field_names.
    DATA: lt_service_os TYPE  crmt_srv_osset_comt,
          ls_service_os TYPE  crmt_srv_osset_com.
    DATA: lt_crmt_srv_osset_comt1 TYPE crmt_srv_osset_comt1,
          ls_crmt_srv_osset_com1 TYPE crmt_srv_osset_com1.
    DATA: lv_guid_16  TYPE  guid_16.
    **ls_refobj_com-ref_guid  =  '4C43086918AE56A9E1000000AC1447B6' .
    **ls_refobj_com-ref_kind  = 'A' .
    *ls_refobj_com-ib_instance = '566' .
    **ls_refobj_com-ext_refobj = '10000608'.
    **ls_refobj_com-profile_type = 'A'.
    *ls_refobj_com-product_id = '10000608'.
    **ls_refobj_com-guid =  '4C43086918AE56A9E1000000AC1447B6' .
    *ls_refobj_com-mode = 'A' .
    *APPEND ls_refobj_com TO lt_refobj_com.
    ls_service_os-ref_handle = '0000000000' .
    ls_service_os-ref_guid  =  '4C43086918AE56A9E1000000AC1447B6' . ....
    ls_service_os-ref_kind  = 'A' .
    *ls_service_os-mode = 'C' .
    ls_crmt_srv_osset_com1-ref_handle = '0000000000' .
    ls_crmt_srv_osset_com1-ref_guid = '4C4308AF18AE56A9E1000000AC1447B6'.........
    ls_crmt_srv_osset_com1-subject_profile = 'ZSRVCAL'.
    ls_crmt_srv_osset_com1-profile_type = 'A' .
    *ls_crmt_srv_osset_com1-mode = 'C' .
    CALL FUNCTION 'GUID_CREATE'   " *is it necessary? else what guid needs to giv here*
    IMPORTING
       ev_guid_16       = lv_guid_16
    *   EV_GUID_22       =
    *   EV_GUID_32       =
    ls_refobj_com-ref_handle = '0000000000' .
    ls_refobj_com-ref_guid  =  lv_guid_16 .  " 4C56A479560967D6E1000000AC1447B6' .
    *ls_refobj_com-ref_kind  = 'A' .
    ls_refobj_com-ib_instance = '566' .
    *ls_refobj_com-ext_refobj = '10000608'.
    *ls_refobj_com-profile_type = 'A'.
    *ls_refobj_com-product_id = '10000608'.
    *ls_refobj_com-guid =  '4C43086918AE56A9E1000000AC1447B6' .
    ls_refobj_com-mode = 'A' .
    ls_refobj_com-main_object = 'X' .
    APPEND ls_refobj_com TO lt_refobj_com.
    ls_crmt_srv_osset_com1-refobject  = lt_refobj_com.
    APPEND ls_crmt_srv_osset_com1 TO lt_crmt_srv_osset_comt1.
    ls_service_os-osset = lt_crmt_srv_osset_comt1.
    APPEND ls_service_os TO lt_service_os.
    ls_input_field-ref_handle = '0000000000' .
    ls_input_field-ref_guid   = '4C43086918AE56A9E1000000AC1447B6' .
    ls_input_field-ref_kind  = 'A' .
    ls_input_field-objectname = 'SERVICE_OS' .
    ls_field_names-fieldname = 'IB_INSTANCE' .
    APPEND ls_field_names TO lt_field_names.
    APPEND ls_input_field TO lt_input_field.
    CALL FUNCTION 'CRM_ORDER_MAINTAIN'
      EXPORTING
        it_service_os   = lt_service_os
      CHANGING
        ct_input_fields = lt_input_field.
    *CALL FUNCTION 'CRM_REFOBJ_MAINTAIN_OW'
    *  EXPORTING
    *    it_refobj_com          = lt_refobj_com
    **   IV_EXTERNAL_CALL       = FALSE
    *  CHANGING
    *    ct_input_field         = lt_input_field
    ** EXCEPTIONS
    **   ERROR_OCCURRED         = 1
    **   OTHERS                 = 2
    *IF sy-subrc <> 0.
    ** MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    **         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    *ENDIF.
    DATA: lt_obj TYPE crmt_object_guid_tab,
          lv_obj TYPE crmt_object_guid.
    lv_obj = '4C43086918AE56A9E1000000AC1447B6' .
    APPEND lv_obj TO lt_obj.
    CALL FUNCTION 'CRM_ORDER_SAVE'
      EXPORTING
        it_objects_to_save         = lt_obj
    *   IV_UPDATE_TASK_LOCAL       = FALSE
    *   IV_SAVE_FRAME_LOG          = FALSE
    *   IV_NO_BDOC_SEND            = FALSE
    *   IT_ACTIVE_SWITCH           =
    * IMPORTING
    *   ET_SAVED_OBJECTS           =
    *   ET_EXCEPTION               =
    *   ET_OBJECTS_NOT_SAVED       =
    * CHANGING
    *   CV_LOG_HANDLE              =
    * EXCEPTIONS
    *   DOCUMENT_NOT_SAVED         = 1
    *   OTHERS                     = 2
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    * EXPORTING
    *   WAIT          =
    * IMPORTING
    *   RETURN        =
    COMMIT WORK.
    Please let me know, where I made mistake?
    Sushant
    Edited by: Sushantbm on Aug 9, 2010 8:15 AM
    Edited by: Sushantbm on Aug 9, 2010 8:17 AM

    has anybody worked on adding referene objects to compliants programmatically?
    Thanks,
    Sushant

  • Payment terms / Due date Schedule

    Dear experts, how do the Payment terms definen in FI - FICA, relate to the Due Date Schedule used in Student Lifecycle Management?. Do I define Payment terms for the contract account, or just the Due Date Schedule?
    Best regards.

    Hello:
    The Due Date Schedule (DDS) is used to split fees into payment plans (example 50% at beginning of term, 25% one month later and 25% two months later).  The DDS is maintained in the Academic Calendar. To define the DDS you first need to set up a Time Limit and Time Limit Sequences using the IMG path: SLCM>Master Data in SLCM>Academic Calendars.. Note that at least one DDS is required even if you do not provide payment plans for the students. This DDS will have one payment date.  The DDS can be assigned to the Program, Module, Student Account or Contract Object.
    Each partial payment is an orgianal open item which in turn can be split into an FI-CA installment plan using Transaction FPR1.
    As an alternative to the DDS you can use Transaction FPR1 to set up installment plans. This transaction provides more control over payments including dynamic definitoin of due dates.
    Regards,
    Patricia

  • What is use of Reference object in BW

    Hi All,
    I have a small doubt about use of Reference object.Since reference object uses same database table of referenced object and also we can not load data in this.Only loaded data in Referenced object will be available in newly created reference object.
    Also if we create more than 2 objects referencing the same object and used them in InfoProvider then what is use of these objects in that infoprovider whether they have same data and also all properties.
    For example if we have created two objects u2018Sender Cost Centeru2019 and u2018Receiver Cost centeru2019 referencing the same object u2018Cost Centeru2019 and used them in an InfoCube.
    Then what is use of these objects whethet they are refering same database table of u2018Cost Centeru2019.And how we can differentiate them during Reporting.
    Regards
    Vinay

    consider below table:
    cost center (master data table):
    Cost SID, Center name, Other details
    1 ..., xyz....., bla bla
    2 ..., abc....., bla bla
    Purchase Order Header Table (transcation table)
    PONumber, Sender CostCntr, RecevierCostCntr, Other details.
    101, 1, 2, xxxxxx
    102, 2, 1, yyyyy
    in cube, u've SIDs for MD... so when u read the details for say PONo 101, u pick sender SID & receiver SID & read details from master data table...
    other example:
    u r working somewhere.. u have employee ID & ur other details like name, address... all these get store in 0employee master data..
    when in HR module ur salary is generated, salary module will hold only ur employee ID.. but from ur ID other details u can get.. rite?
    same way leave module will have ur Id.. & it can get details bout ur leave & address...
    both is true for ur manager.. but when ur leave is to be approved.. ur manager ID is required...when ur manager apply for leave his managerID is used.. all this get store in same leave module..

  • POPUP FOR SCHEDULE ACTIONS

    Hello All,
                  I have an issue.I need to add an  icon 'ICON_ACTION_SUCCESS' in the action colums of the items table view present in the service order page ,based on the condition that this button should be added only if the items in the item table view  have action profile .I have done this part.
               problem is one when i click on this icon('ICON_ACTION_SUCCESS' ) it should open the schedule actions associated with the item in a poup.Iam getting the popup but schedule action data is not being displayed in the popup.
    i did the following steps.
    i have added the gsaction component with interface views','executedactions','newactionsedit'.in the component usage of the BT116IT_SRVO.
    and i have added these   views of the gsactions in the window of  BT116IT_SRVO
    View CUGSActions.ExecutedActionsEdit
    View CUGSActions.ScheduledActions
    View CUGSActions.NewActionsEdit
    and added the navigation links.I have done this all in the runtime repository.AND i have done the binding of the NODE BTADMINI PRESENT IN BT116IT_SRVO WITH ACTIONS NODE  OF THE GSACTIONS IN COMPONENT CONTROLLER 'WD_USAGE_INITIALIZE'.
    and in the event handler i have  added this  code.
          data: confirm_popup type ref to IF_BSP_WD_POPUP.
          CALL METHOD COMP_CONTROLLER->IF_BSP_WD_WINDOW_MANAGER~CREATE_POPUP
            EXPORTING
              IV_INTERFACE_VIEW_NAME = 'NewActionsEdit'
              IV_USAGE_NAME          = 'CUGSActions'
              IV_TITLE               = 'Hello'
            RECEIVING
              RV_RESULT              = confirm_popup.
    after doing this iam not getting the data populated in the schedule actions.I dont know whether i should build a custom controller or not.I want to display the schedule actions data present in the component gsaction in apopup when i click on the button in component BT116IT_SRVO.
    can any one tell me how to get the schedule action data from the gsaction component and populate it in the popup.
                                     thanks in advance

    Hi Sowmiya,
                         First you have to define the component usage in the source component for the target component.Then check if you have the custom controller defined for the target component in the source component other wise define a custom controller and do the interface binding that bind the context nodes of the source and target component .then check if u have redfine the wd_uage_intiliaze in the component controller for the component controller.
    Now in the view controller call the custom controller of the source component and populate the data into it( get the data by using relations).
    <removed_by_moderator>
    Thanks,
    Srikar
    Edited by: Stephen Johannes on Dec 11, 2009 8:36 AM

  • Inserting Object link as reference object in Maint Order/Notification

    Dear all,
    I've mapped pipe line using obejct link,now when i create Maint Order or Notification system displays below mentioned message,
    Select a link object as reference object
    Message no. IH101
    Diagnosis
    You are trying to create an order or a notification for a link object, but have not yet selected an object.
    Procedure
    Place the cursor on a link object. This object will be entered in the notification or order as the object referred to.
    In std Screen RefObject thers is no ref object for Link,
    Please guide me how we can create Maint.Order/Notification against Object Link,as it is required to track cost as well as history of repairs in pipe line.
    Thanks in advance
    Regards
    Parshil
    Edited by: PM_in_SAP on Jul 27, 2010 9:19 AM

    Hi,
    i refer page no 18 of SAP book Object Networking (CS-BD/PM-EQM-ON) SAP AG Release 4.6C,
    To select a particular link from the list, (IN18)select the object link and choose one of the following options:
    Goto --> Change/Display --> link, You reach the object link data screen.
    Goto -->Create notification  --> Notification type
    You reach the screen where you can create a maintenance notification for the link. If a link object is entered for the selected link, the system automatically uses it as a reference object for the notification.
    Goto --> Create order
    You reach the screen where you can create a maintenance order for the link. If a link the system automatically uses it as a
    reference object for the order.
    Regards
    Parshil
    Edited by: PM_in_SAP on Jul 27, 2010 11:22 AM

  • Reference Object Screen For Vehicle in Maintenance Order

    SAP Gurus,
    How could I display the reference object screen for vehicle specific data (O150) in my Maintenance Order. I have been able to display it in Maintenance Notification but how could the fields plate number etc defined in reference object screen for Fleet objects be displayed in Order.
    Regards,
    Muhammad Usman Kahoot

    Muhammad Usman Kahoot,
      When you create the Order from the notification, there shouldn't be a problem with the reference object screen, you should be able to see the Fleet object reference field, even if the screen reference object type for the order type is set to blank in config.
    If you are creating a order directly using transaction IW31,Make sure to assign the Equipment only reference object screen (0150) to the order type using transaction OIOA.This will bring in the fleet reference object field defined as well.
    Regards
    Narasimhan

  • Data From GUI to Objects?

    Ive been doing a lot of reading and asking a lot of questions about a program Im trying to tackle. Ive broken it down to its most basic form. I have a GUI with two text fields and a button. There is a main class that creates the GUI class and a Student class with a name and grade member. The user enters the name and grade into the fields and clicks the button to save the data to the student object. Im starting to clear up some, but Im still a little confused on where the student class goes in relation to the GUI. Im clear on the fact that student should not be a member object of the GUI (no GUI -> Student), but how then does the info get into the student class if its not a member of the GUI:
    My simple code so far has this snipet:
    private void jButton1_actionPerformed(ActionEvent e)
    student.setName(textField1.getText());
    student.setGrade(textField2.getText());
    But this only works if student is a member object of the GUI and thats a no no apparently, so how else can I get the info to student?

    I made this to demonstrate:
    1 - how the truck objects are separate from the gui,
    2 - how to pass the truck references (eg, truck1, truck2,...) into the gui, and
    3 - how these are used to query and change the truck objects.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class ClassTalk
        public static void main(String[] args)
            ShineyNewGUI gui = new ShineyNewGUI();
            ShineyNewPickupTruck truck1 = new ShineyNewPickupTruck("red");
            ShineyNewPickupTruck truck2 = new ShineyNewPickupTruck("yellow");
            ShineyNewPickupTruck truck3 = new ShineyNewPickupTruck("blue");
            ShineyNewPickupTruck truck4 = new ShineyNewPickupTruck("pink");
            ShineyNewPickupTruck[] fleet = { truck1, truck2, truck3, truck4 };
            gui.addTrucks(fleet);
    class ShineyNewGUI
        ShineyNewPickupTruck[] trucks;
        ShineyNewPickupTruck selectedTruck;
        ShineyNewGUI()
            // north panel
            final JTextField colorField = new JTextField(12);
            colorField.addActionListener(new ActionListener()
                public void actionPerformed(ActionEvent e)
                    selectedTruck.setColor(colorField.getText());
            JPanel northPanel = new JPanel();
            northPanel.add(new JLabel("truck color  "));
            northPanel.add(colorField);
            // center panel
            final JLabel outputLabel = new JLabel(" ");
            JPanel panel = new JPanel();
            panel.add(outputLabel);
            // south panel
            final JTextField indexField = new JTextField(4);
            final JButton showColorButton = new JButton("show color");
            showColorButton.addActionListener(new ActionListener()
                public void actionPerformed(ActionEvent e)
                    // must be a number from [0 - 3]
                    int index = Integer.parseInt(indexField.getText());
                    selectedTruck = trucks[index];
                    String truckColor = selectedTruck.color;
                    outputLabel.setText("truck # " + index + " color = " + truckColor);
            JPanel southPanel = new JPanel();
            southPanel.add(new JLabel("truck #  "));
            southPanel.add(indexField);
            southPanel.add(showColorButton);
            JFrame f = new JFrame();
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.getContentPane().add(northPanel, "North");
            f.getContentPane().add(panel);
            f.getContentPane().add(southPanel, "South");
            f.setSize(400,300);
            f.setLocation(200,200);
            f.setVisible(true);
        public void addTrucks(ShineyNewPickupTruck[] trucks)
            this.trucks = trucks;
    class ShineyNewPickupTruck
        String color;
        public ShineyNewPickupTruck(String color)
            this.color = color;
        public void setColor(String color)
            this.color = color;
    }

  • Mapping action script object to mx:model object

    Hi all,
    I am having an action script class and an mx:model element
    with same elements. I want to assign an action script object to
    this mx:model. How can I do that one?
    Let me state it clearly.
    Say, my action script class contains two elements - user and
    rollno with required getter and setter methods.
    And I am having an mx:model element with the following
    format.
    <mx:model id="data">
    <data>
    <user/>
    <rollno/>
    </data>
    </mx:model>
    I want to assign an instance of action script class to this
    model object.
    I tried extending action action script class from Objectproxy
    and used data=actionscriptinstance.
    But it's not working properly.
    Is there anyway I can do this one?
    Thanks in advance

    The quick answer:
    <mx:model id="data">
    <data>
    <user>{ myASObj.user }</user>
    <rollno>{ myASObj.rollNo}</rollno>
    </data>
    </mx:model>
    The bigger question might be, "Why have the mx:Model?"
    The Model tag is all Strings, so you lose data typing.
    Why not just create a value object (VO) for your user data
    and pass that around?
    package samples.user {
    [Bindable]
    [RemoteClass(alias="samples.user.User")]
    public class User {
    public var user:String;
    public var rollNo:int;
    Then when the result data returns, cast to the VO.
    public var user:User = (eventObj.result as User)

Maybe you are looking for

  • Permanent network

    I have a Mac mini and an IPad that I'm going to use as a monitor. I'm gonna use Iteleport to transfer the image from the Mac mini to the IPad. The problem is that i sometimes have to use it where there's no Internet so i can't use my Google-account.

  • Why does my iPad2 Calendar app shut down randomly?

    When I try to advance my calendar by 1 week to schedule appointments, the app shuts down, taking me back to the home screen.  I've both done a reset and a total system erase but the problem still persists.  How can I fix this?  This us the Apple cale

  • When Printing a message from mail, How do I get the Icons to print?

    When printing an email message, I'd like the attachment's icon to print so I can see what the file types and the names of those attachments are. How can I do this? I DO NOT WANT to print the attachment, only the icon to be displayed wnen printing.

  • Making my video into a Circle on screen

    Not sure the exact wording. I'm trying to make my video clip into a circle on the center of the screen. From what I know I assume going to the motion tab and changing the size and distorting it should do it. It seems I can only make the video into re

  • Sync movies

    I'm having trouble syncing my digtal movie onto my ipod. I have it on my iTunes but cannot sync it.