How to handle this : event.result[0].parameter1[0].parameter2[0]

hi,
i know we can reach
aComponentSample["sampleControl" + i + ""].visible = false;
aComponentSample is a component and contains lot of controls. for example; sampleControl1, sampleControl2.. and so we can reach them via parameters (like i) with this ["sampleControl" + i + ""]. usage.
i am wondering how can i handle this in resultEvent?   how can i give the child nodes (parameterA) via parameter?
event.parameterA[0].parameterB[0].parameterC[0]
thank you for your time. have a good day.

hi again, i think i could not express clearly.
i have a web service operation result handler, and this operation back in "object" format.
thats the handler
            private function getFullWeatherValues_Handler(e:ResultEvent):void
                var obj:Object = e.result[0].regions[3].cityValues[5].temperature;                (it returns integer)
i can get the exactly temperature which i want but i don't want to writethose "result[0]" or "regions[3]" or "cityValues[5]" and even temperature.
i want to write a function to reach a value ( for example temperature) which gived as parameter and  i will give all other  "result[0]" or "regions[3]" or "cityValues[5]" as parameter to. my question is how can i handle it?
thank you for your answer,  any advice will be great.

Similar Messages

  • How to handle selection event in alv component

    Hi all,
        i am new to webdynpro abap. and i want to know how to handle selection event(such as select all / unselect ) in my simple alv application.
    Thanks very much

    Hi,
    By default when you use the selection mode for the ALV as Multi/Mutli No Lead then this option is enabled.
    Try to implement the event ONLEADSELECT and check wether this event is triggered or not.
    DATA: lo_value type ref to cl_salv_wd_config_table.
        CALL METHOD  lo_value->if_salv_wd_table_settings~set_selection_mode
          EXPORTING
            value = cl_wd_table=>e_selection_mode-multi_no_lead.
    Try to implement these event for ALV and put a break-point and test which event is getting triggered.
    ON_CLICK           
    ON_DATA_CHECK      
    ON_FUNCTION        
    ON_LEAD_SELECT     
    ON_STD_FUNCTION_AFTE
    ON_STD_FUNCTION_BEFO
    Please provide more inputs.
    Regards,
    Lekha.

  • How to handle this type of output?

    Hey everyone,
    I'm looking for a way handling this report for my own job.
    a table having the following attributes exists.
    Create table Test (
    Public_Date varchar2(10),
    City varchar2(10),
    cnt number(3))
    some records of this table are listed below:
    Pubdate City cnt
    2005      a     10
    2005     b      13
    2006     a     21
    2006     b      3
    2006     c     2
    2007     d     10
    2007     a     8
    2007     c     7
    2008     b     9
    2008     c     1
    Query with the following output could be readily produced using group by clause.
    Year Sum
    2005 23
    2006 36
    2007 15
    2008 10
    But the question is that How I can lead to the following output.
    (I want to merge some records into one record in the output, in this example
    sum of all years after 2005 is my interest not each year individually come before)
    Year(s) Sum
    2005 23
    2006 36
    "after 2006" 25
    Could everyone help me how to handle this?

    Year Sum
    2005 23
    2006 36
    2007 15
    2008 10Isnt' the above result wrong based on your input data?
    SQL> select public_date, sum(cnt) from test group by public_date;
    PUBLIC_DAT   SUM(CNT)
    2005               23
    2008               10
    2007               25
    2006               26
    SQL>Here's the one you are looking for.....
    SQL> select decode(public_date, 2005, public_date, 2006, public_date, 'Above 2006') pb_date,
      2         sum(cnt)
      3  from test
      4  group by decode(public_date, 2005, public_date, 2006, public_date, 'Above 2006') ;
    PB_DATE                            SUM(CNT)
    2005                                     23
    Above 2006                               35
    2006                                     26
    SQL>

  • Have started to get  info window from iTune telling "This computer is already associated with an Apple ID. "You can download past purchases on this computer with just one Apple ID every 90 days......" How to handle this situation

    "You can download past purchases on this computer with just one Apple ID every 90 days. This computer can be used with a different Apple ID in 63 days." How to handle this situation

    https://discussions.apple.com/message/16567363#16567363
    From the  More Like This  section on the right

  • My cube size is go on increasing essbase how to handle this ?

    ex:day 1 my cube size is 60 gb.after 2 days it go 80 gb.how to handle this in essbase

    May be you can try to do a restructure of the Cube. But it will take more time and and when this restructure is being performed no one will be able to access the cube.
    All the pag files will reduce to less files once its done.
    We have around 170 pag files and after restructure they have reduced to 130 pag files. You do not need to change any data inside the cube to do this.
    The process to do from F to H and back from H to F.
    Restructure to H drive
    Create the directories on the H drive if they do not exist. (not sure if this is necessary)
    Go to properties of the cube (storage tab) and remove the F drive, and add H drive
    Do a stop and start of the database
    Go back to properties and insure the H drive is there
    Right click on the cube and confirm the H drive is  there
    Then go to cube and do a restructure
    Restructure back to F drive
    Go to properties of the cube (storage tab) and remove H drive and add F drive
    Do a stop and start of the database
    Go back to properties and insure F drive is there
    Then go to cube, right click and do a restructure back to F.
    Regards,
    Naveen

  • How to handle server event in component through BOL Concept

    Hi All,
                Please let me know how o handle Server event in Component through BOL Concept.
    Thanks,
    Prameela.

    Hi Prameela,
    If you want the server event to be triggered in the search view, you have to add the code in the GET_DQUERY_DEFINITIONS method.
      DATA: lv_getter TYPE string.
    CONCATENATE 'GET_P_' <rt_result>-field INTO lv_getter.
        TRANSLATE lp_getter TO UPPER CASE.                    "#EC SYNTCHAR
        TRY.
            CALL METHOD me->(lp_getter)
              CHANGING
                cs_result = <rt_result>.
          CATCH cx_sy_dyn_call_illegal_method.
    *     no P-Getter found
        ENDTRY.
    Regards,
    Leon

  • How to handle this scenario in selection screen?

    hi friends...i have 2 radio-buttons (2 parameter fields below each) in one group..the need when one radio button is checked, i need two parameter fields below it to be input enabled and the other to be disabled, if another radio button is checked, then the former two will be disabled and the other two parameter fields to be input enabled..no problems with this..i have written this functionality in at selection-screen output..i want to make each 1 parameter in the two groups to be mandatory..as using obligatory gives problems during at selection-screen output event, i want to achieve this functionality in some other event...i have tried the same in At selection screen on para_1 and at selection screen on para_2 fields, but am not able to achieve the desired functionality..by default the first radio button is checked, if the user wants to click the second radio button, At selection screen on para_1 event gets triggered and it throws the error msg. for the first one & vice versa...can't handle this in start-of-selection event also, as it gives the error msg. in a blank new screen..how to achieve it??
    i have checked quite a few SDN threads, but doesn't answer my question
    regards,
    Sathish R

    Hi,
    I think you cannot proceed with obligatory statement as it will be triggered before theselection screen events.
    You may check the code below.
    PARAMETERS: r1  RADIOBUTTON GROUP rad1 USER-COMMAND abc.
    PARAMETERS p1(5).    ( maintained as obligatory)
    PARAMETERS p2(5).
    PARAMETERS  r2  RADIOBUTTON GROUP rad1.
    PARAMETERS p3(5).       ( maintained as obligatory)
    PARAMETERS p4(5).
    INITIALIZATION.
      r1 = 'X'.
    AT SELECTION-SCREEN OUTPUT.
      IF r1 = 'X'.
        LOOP AT SCREEN.
          IF screen-name = 'P4'.
            screen-active = 0.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      ELSEIF r2 = 'X'.
        LOOP AT SCREEN.
          IF screen-name = 'P2'.
            screen-active = 0.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      ENDIF.
    AT SELECTION-SCREEN .
      IF p1 IS INITIAL AND sy-ucomm NE 'ABC'.
        MESSAGE 'Enter the obligatory value' TYPE 'S' DISPLAY LIKE 'E'.
      ENDIF.
      IF p3 IS INITIAL AND sy-ucomm NE 'ABC'.
        MESSAGE 'Enter the  obligatory value' TYPE 'S' DISPLAY LIKE 'E'.
      ENDIF.
    Hope this will help you.
    Regards,
    Smart Varghese

  • How to handle Valuechange events, when page bean is in request scope

    Hello balusc and forum mates,
    I want to know is there any good way to handle ValueChangeEvents events, when the page's bean in request scope.
    My problem is, I have a page having more than 1 value change event so How can I maintain page values at backing bean. My bean is request scope, I can't change to session scope.
    Please I really need it.

    Hi Frank...
    In my code i used almost same logic as Andrejus Baranovskis has explained in his Editable Table example...
    You can refer that example to see what problem I'm facing...
    http://andrejusb.blogspot.com/2007/04/create-edit-and-delete-operations-in.html
    The Bean Scope in this Example is Session scope...Save button is working fine...
    But as i Change the bean scope to Request scope then Save button is not working for Edit but it is working for Delete Action very well..
    I want that save button should work also for Edit action in Request Scope..
    Please Make me understand that why it is happened like that..
    and help me to find the solution..
    and Also if you have a better document to Explain the life cycle of Application in Different Bean Scope...So please provide me that Doc to me...
    It would be a great help for me to understand the concept of session...
    Thanks Frank
    Fizzz...

  • How to handle key events in iphone

    I want to be able to detect physical keyboard (e.g. bluetooth) events in an iOS app.
    In Mac, there is a class NSEvent which handles both keyboard and mouse events, and in ios (iphone/ipad) the counterpart of NSEvent is UIEvent which handles only touch events. I know ios API does not provide this functionality, but how can i handle key events in iphone???

    in my application header part of the page is common of all page. header.jsff contains comandmenuItem named "proceduralhelp". if I click proceduralhelp a pop up opens .
    in my login page when first time I open popup and press escape popup is not closing.
    rest of the cases after login escpe will cose the popup.
    only on the loginpage that to for the first time it is not closing when pressing up on escape key. (then we click on close button. and once again open the popup in loginpage now if we press escape it works).
    Thanks,
    Raghavendra.

  • Jdev 10.1.2 UIX: How to handle page event and also follow link destination

    Hello guys, I think this should be easy:
    I have a frame with a link that produces an event which is handled by an event handler. But this link also has destination and targetFrame attributes.
    The event handling just updates the visual state of the frame which contains the link, but I also need the link to load the destination into the targetFrame, but this is not happening, just the event is handled but the link doesn't work.
    How can I get both, the event handling and the destination, work?
    Here is the code for the link:
    <link text="${uix.current.title}" destination="${uix.current.destination}"                                                             
                    targetFrame="main">
      <primaryClientAction>
       <fireAction event="optionClick">
         <parameters>
           <parameter key="clickedIndex" value="${uix.current.index}" />
          </parameters>
        </fireAction>
      </primaryClientAction>
    </link>Thanks
    Fer

    Thanks to everyone who read it. I figured out how to solve this.
    The workaround was to set every link destination to one action which performs 2 things:
    1. Update the visual state of the first frame (setting attributes to a session object) and;
    2. Puts the destination that I wanted to be loaded into the second frame as a request attribute;
    besides all the above, the link had its targetFrame set to "_parent", so the Frameset page was reloaded and therefore reloaded both frames, this way the first frame renders updated (thanks to the changes made to the session object) and the second frame has its source attribute bound to ${requestScope.frameDestination} to load the desired page (actually a struts action).
    Hope this helps someone else.
    Bye.

  • How to handle click event on listBox

    I have two listboxs. And I want to load The items into the second accordingly to the selected items in the first.And I want that the content of the second change each time the selected items of the first listbox are modified.
    I don't know which event to handle for the first listBox indicating the items are selected in the first listbox. I want to execute the method loading items into the second listbox each time this event is fired.
    Thanks in advance.

    Thanks for your reply.
    I used <webuijsf:listbox > component to display the list and .
    And I want to allow user to select multiple items.
    Then I want that the 2nd will be populated each time an item is selected.So the method doing it must be called in an action listener .
    Please I don't really know how to use the <h:selectOneMenu> component.And I want that after the submit the 2nd list will be populated.
    How can I do it please.
    Thanks.

  • How to handle this kind of scenario in SBO

    Hello, I am new to SAP Business One. I would like to know how to handle Transporation Company scenario below in SBO.
    QUESTION 1: A transportation company has 30 truck. The company receives orders from the customer and use the trucks to deliver the goods from Point A to Point B everyday. The cost for delivery is $0.50 per-KG.
    The way I handle above:
    1. In ITEM MASTER DATA:
    Create a new item > Item Type: Labor > Description: Delivery from Point A to Point B > and determine the delivery price is $0.50.
    2. Use the item created in no 1 above when creating Sales order/Invoice.
    If the weight is 5000kg then simply put QTY 5000 in Sales Order with the price of $0.50/KG, which has been set in Item Master Data.
    Is the above method correct or there is better way to handle?
    QUESTION 2: TRACKING EACH TRUCK EXPENSES BY ITS LICENSE PLATE:
    Each truck has Spare Parts expense (e.g. bulbs, oil, battery, tires etc) that the company would like to track.
    The company purchased the spare parts from suppliers and keep it in the warehouse. When a truck needs to replace its spare parts, the company will issue the parts and record it under that truck's license number as that truck's expense.
    The goal is SBO must be able to provide detail monthly expense report for each truck when inquired by its license plate. I prefer NOT to manually input "directly" in Journal Entry to prevent error.
    Thanks.

    Hi,
    welcome to sbo forum!
    For your question 1, it will depend if you will only have 1 route for all of your deliveries.If your point of origin is always point a then destination is point B w/ price of $0.50,then you are right with your process... but if you will have to expand and move into different places, i think it will best for you to create a UDT for your pricing.
    in summary:
    1.create UDT pricing(with origin,destination and price)
    2.Create UDF in row level of Sales order(U_origin,_U_destination)
    3.) create FMs for your Sales order Origin and destination based on UDT Pricing table.
    4.) create automatic fms for your price( based on origin and destination selection).
    for question 2, all your repairs and maintenance will pass through AP invoice( either by item or service). in our country we normally use Ap service,since a truck has normally several types of spare parts. This figures will will surely add up to the number of item master data record in your system ,since you will need create a unique item for each and every item available.
    -To monitor all your expenses, you will need to create a UDF in the header of PO, GRPO or AP invoice, place your plate number here. so that when you extract your reports, you will easily identify your expenses per truck.
    in summary:
    1.create UDF for header of PO,GRPO or AP( Udf_Plate number) you can set valid values for you udf or by FMS with default values.
    2.Create Udf for lines of PO,GRPO or ap(UDF_spare part type) --note: if you will use the Item type document for repairs and  maintenance then i guess you dont need to add UDF_spare parts.
    Hope i was able to help you.
    Regards,
    Darius Gragasin

  • How to handle this payment scenario in SAP

    Hello Gurus,
    Can anyone please help me with how we make this payment in SAP. Customer A is the alternate payer for Customer B. We gave customer B a credit memo. When customer A is making payments, customer A wants to use the credit memo assigned to customer B as a part of the total payment. How does this scenario be handled in SAP
    Thanks in advance

    Hi,
    You can use the Head office and Branch relationship then this should work . All the invoices/Credit memos get updated in the branch office and head office for reporting and at the time of receipt it can be made at the headoffice level
    K.R

  • How to handle the events of business object (BAPI)

    Hi,
    How to register to BAPI event and handle?
    For example, for a business object 'inv', there is an event as 'created'.
    I want to insert entry in a z table when an inv is created.
    I assume that the 'created' event is triggered when an inv is created.
    How i can register to that event and handle that event so that i can
    insert an entry in z table.
    Thanks,
    Prasad

    ComponentListener?
    : jay

  • Don't know how to handle this relationship

    I am a college student and am having a hard time wrapping my head around the database I have to work with for a project. The project entails implementing an auto parts application. I have not encountered a relationship like this before. I have linked to a document I made to describe the table. It can be found here: http://91.121.116.152/graph.pdf. There are basically 4 tables in the database. There is 1 table for all the automakers. (MAKER). Then, there are many tables in the form of APL___ where ___ is a column for the MAKER Table. The APL tables contain all the different models and links to the different parts. The column RLINK references RADCRX which contains 16 different columns. Each set of 4 columns contains part numbers that link to a RAD___ (where ___ is a 3 letter abbr for a vendor).
    I've done my best to explain it in English, but I think the document may help. Naturally the assignment is to find parts for a specified car. My problem is how do I do this as effciently as possible? I don't know how to handle a relationship where column name points to a table name, not a column in the table. It could be done with a very long join such as
    SELECT * FROM RADMOD, RADCRX WHERE RADCRX.MOD1=RADMOD.P_NUMBER
    or so on for each column in RADCRX. This doesn't seem right. I thought about doing joins on the tables, but I don't know how to do it. The DB as about 20K records. Does anyone have any insight?

    Try the ff solution if it works:
    1.)Create a union view for APL_ _ _
    create or replace view v_APL_ALL as
    select a.*,'CHE' m_code from APLCHE a
    union all
    select b.*,'TOY' m_code from APLTOY b
    union all
    select b.*,'HON' m_code from APLHON b
    union all
    select c.*,'MIT' m_code from APLMIT c
    2.)Create a view for v_APL_ALL and MAKER
    create or replace view v_APL_ALL_MAKER as
    select a.*,b.M_NUMBER,b.MAKER
    from v_APL_ALL a,MAKER b
    where a.m_code=b.m_code
    3.)Create view for RAD_ _ _
    create or replace view v_RAD_ALL as
    select a.*,'ARS' VENDOR_CODE from RADARS a
    union all
    select b.*,'MOD' VENDOR_CODE from RADMOD b
    union all
    select c.*,'BEH' VENDOR_CODE from RADBEH c
    union all
    select c.*,'DAN' VENDOR_CODE from RADDAN c
    4.) Create a view for v_RAD_ALL and VENDOR
    create or replace view v_RAD_ALL_VENDOR as
    select a.*,b.M_NUMBER,b.MAKER
    from v_RAD_ALL a,VENDOR b
    where a.VENDOR_CODE=b.VENDOR_CODE
    You can now join them & query it.
    Regards,
    Benjie

Maybe you are looking for