How to get the Clicked Item of a ListBox?

I need to get the clicked item of a listbox.
The item can be at first selected, when I click it again, it
automatically gets de-selected, but I want to get that item
whenever I click it. Any idea how to do this?
This line does not work, because it gets the selected item.
var pattern:String = event.currentTarget.selectedItem.myname;
This one must work,but something is missing.
Anyone can help me with this?
marks is my ArrayCollection;
var pattern:String =marks.getItemAt[??].myname;

Here is my code. Am using this function in the itemclick
event of the ListBox.
My ListBox is a multi-select listbox. So am selecting several
items by pressing "Ctrl" key and selecting each item using click.
Say I have selected 4 items, when I press "Ctrl" and
de-select one of the items, I want to get the itemname of the
deselected item.
public function createMarksList(event:ListEvent):void{
// Alert.show(new
String(event.currentTarget.selectedItem.myname));
// var pattern:String =
event.currentTarget.selectedItem.myname;
// pattern = pattern += "," + pattern;
// text1.text = pattern;
<mx:List x="9" y="46" width="121" height="121"
id="lstMarks" allowMultipleSelection="true"
itemClick="createMarksList(event)"></mx:List>
So, your help is required here buddy.
I sitll can't figure out.
Thx

Similar Messages

  • How to get the selected item of a ListBox if it's contents are binded data? (Please read)

    So, I am making an application in which binds data from a WebClient to a ListBox. Thus, it is needed to understand that I did not create this data, it is from a Web API. So my goal is to be able to click on any of the items in the list box(which are binded
    from a web API) and open a pop-up to display more data binded from that specific area.
    Example:
    The data has been loaded and I click on the 2nd item, well this item is a Metallica concert located in Russia blah blah.. ok, so I press it, it opens a pop up with more info like the date, location, etc...
    Info:
    I am binding the things in the lost box from and "events" statement, and I want the data in the list box in the pop up to display the selected child item, "event".
    Zack Bowling

    So are you storing that 'more info data' along with main data(i.e. that metallica concert etc.) somewhere in a List/observableCollection/database etc, if yes then probably it can be fetched directly from that collection. 
    e.g.
    private void listBox_Tap(object sender, System.Windows.Input.GestureEventArgs e)
    var Itemobj = (listboxname.SelectedItem) as ObjectClassname; string datevalue = Itemobj.date; string location = Itemobj.location;
    //so using Itemobj you can fetch the properties you want as stored in ObjectClassname.
    // Here ObjectClassname is the name of class storing the properties(setter-getter) for the parsed data.
    http://developer.nokia.com/community/wiki/Using_Crypto%2B%2B_library_with_Windows_Phone_8

  • How to get the selected items from listbox

    Regarding listbox i have two questions
    1) I want to get the selected items as per the order in which ihave selected.Presently i'm getting in the ascending order.For example after selcting the 1,2,6 if i select 3 then its giving 1,2,3,6.But i want it in the order 1,2,6,3
    2)I want to select items from a single list box to many other listboxes.(ie) my first selection should goto first,second one to the second listbox and like this.How should i write the logic.
    please give me a suggestion.

    In order to have the selected items line up in accordance to the selection order, please do it one at a time. (That's the limit for that VI)
    If you need more than that (i.e. to regconize which item clicked first and which one comes later), you may have to figure it out ya
    Wish you good luck. Perhaps, someone else has a already made vi.
    Cheers!
    ian.f
    Ian F
    Since LabVIEW 5.1... 7.1.1... 2009, 2010
    依恩与LabVIEW
    LVVILIB.blogspot.com

  • How to get the Purchased item details in R12

    Hello everyone, am using Oracle Application R12,
    I need the following details for the all purchased item,
    how to get the item_id,item_name,vendor_name,ordered_quantity,rec eived_quantity,
    returned_quantity.
    Thank you.
    Regards,
    Gurujothi.

    Hi Gurujothi,
    pl.try the following SQL. it will give you complete details of purchasing.
    SELECT A.SEGMENT1 PO_NO, B.LINE_NUM, C.SHIPMENT_NUM,
    C.QUANTITY,C.QUANTITY_ACCEPTED,C.QUANTITY_BILLED,C.QUANTITY_CANCELLED,C.QUANTITY_RECEIVED,C.QUANTITY_REJECTED,D.QUANTITY QUANTITY_RETURNED,
    B.ITEM_ID,E.DESCRIPTION,F.VENDOR_NAME
    FROM PO_HEADERS_ALL A , PO_LINES_ALL B , PO_LINE_LOCATIONS_ALL C , RCV_TRANSACTIONS D, MTL_SYSTEM_ITEMS_B E , PO_VENDORS F
    WHERE A.ORG_ID = &OU_NAME
    AND A.PO_HEADER_ID = &PO_HEADER_ID
    AND B.PO_HEADER_ID = A.PO_HEADER_ID
    AND C.PO_LINE_ID = B.PO_LINE_ID
    AND D.PO_LINE_LOCATION_ID (+) = C.LINE_LOCATION_ID
    AND D.TRANSACTION_TYPE (+) ='RETURN TO VENDOR'
    AND E.INVENTORY_ITEM_ID = B.ITEM_ID
    AND E.ORGANIZATION_ID = C.SHIP_TO_ORGANIZATION_ID
    AND F.VENDOR_ID=A.VENDOR_ID
    regards
    sanjay

  • How to get the mail item opened window?

    Hi,
    I need to get the window of the opened mail.
    Within the mailItem.Open() event tried to get the Application.ActiveExplorer() but it returns the main outlook window.
    From the load of the addin tried as follows, but hwndSource always returns null.
    activeWindow = _mailItem.Application.ActiveWindow()
    ((Microsoft.Office.Interop.Outlook.ExplorerEvents_10_Event)activeWindow).Deactivate += MyEvent
    public void MyEvent()
    System.Diagnostics.Process[] processes = System.Diagnostics.Process.GetProcesses();
    foreach (System.Diagnostics.Process process in processes)
    if (process.MainWindowTitle.StartsWith (_mailItem.Subject))
    IntPtr handle = process.MainWindowHandle;
    System.Windows.Interop.HwndSource hwndSource = System.Windows.Interop.HwndSource.FromHwnd(handle);
    System.Windows.Window window = hwndSource.RootVisual as System.Windows.Window;
    Any suggestions to get the mail item opened window? Please help.
    VS2010 C# with Outlook 2007.

    Hi Damian,
    When the Open event is fired, the Inspector object
    is initialized but not yet displayed.
    You can handle the
    NewInspector event of the Inspectors class which is fired whenever a new inspector window is
    opened, either as a result of user action or through program code. Then the
    Activate event of the Inspector class is fired, when an inspector becomes the active window,
    either as a result of user action or through program code. 

  • How can get the library items total file size

    Hi All,
    I want to get the total file size of the library and count how many file in library.
    would I use getItemsRequest can get them?
    or have another ways to do that?
    Thank You
    Jimmy

    Sorry, I don't have any ideas.
    Just so you know, the document management support is the lowest priority.
    There are not any active enhancements planned for document management.
    We added some support in 12.0.x for WebAccess, but there is none planned
    further.
    Preston
    >>> On Tuesday, August 21, 2012 at 2:26 AM,
    jimmyng25<[email protected]> wrote:
    > Thank you, Preston.
    > I will try to find other ways.
    > Would you please telling me if you have any idea?
    > I no idea to solve that, thank you very much.
    >
    > Jimmy

  • How to get the inbox items in IC WEB CLIENT

    hi,
    Is there any function module to get the emails present in inbox in IC WEB CLIENT.
    Message was edited by:
            neelima m

    IC WebClient processes Email using SAPConnect component .There are certain configurations need to take place on groupware integration like SMTP configuration and Inbox settings on IC WebClient .
    Please follow the instructions given in the document which is available on SAP Note 82653
    Thanks,
    Thirumala.

  • How to get the Highlighted Item on DataGrid?

    Hello everybody...
    I've already searched in a bunch of sites and forums, and i can't find anything...
    I need to get some data on the Highlighted (not selected) Item on my DataGrid (I intend to use MouseOver event)...
    does anyone have a clue on how to do that?
    ps. sorry for grammar mistakes... my english is not very good...

    Hi
                 I have done some exercise on that but i could not found any solution for this .. but one thing when u use mouse over effect flex will take the object of the datagrid not that object of the row u mentioned..
             when u place mouse on that datagrid it will automatically take that datagrid as object i think so ..
                       let us know if u get any solutions on that perticular task.. Because i have some what interest on this task.. This is some what new task for me to work out...
                  thanks for posting ...

  • How to get the status of the button?

    i want to know how to get the clicked status of the button? whether it is in clicked state or in unclicked state?
    For ex: i have the following code...
    <components:IconButton id="bold_btn" width="22" icon="@Embed('/assets/bold.png')" click="onBoldClick()" enabled="{this.loadCompleted}" toggle="true"/>
    how to find whether the bold button is clicked or not?
    this.bold_btn.????

    Hi Isa,
    You can make use of a Boolean variable to acheive this functionlaity...check out the below simple example...
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
            layout="vertical"
            verticalAlign="middle"
            backgroundColor="white" width="100%">
        <mx:Script>
            <![CDATA[
             import mx.controls.Alert;
             private var isBtnToggle:Boolean = false;
             private function onButtonClick():void
        isBtnToggle = !isBtnToggle;
        if(isBtnToggle)
         btnToggle.label = "I am Toggled ON";
         Alert.show("Button is Toggled ON");
        else
         btnToggle.label = "I am Toggled OFF";
         Alert.show("Button is Toggled OFF");
            ]]>
        </mx:Script>
        <mx:Button id="btnToggle" label="I am Toggled OFF" toggle="true" click="onButtonClick()" />
    </mx:Application>
    If this post answers your question or helps, please kindly mark it as such.
    Thanks,
    Bhasker Chari

  • How to get the image stored in archieve link as an attachment in work item.

    Hi All,
    through transaction OAWD we are storing scanned images.
    Once this transaction is executed a workitem appears in the inbox of the initiator with the scanned invoice as attachment.
    When the user executes the work item FV60 screen is displayed where the user enters the data based on the scanned invoice attachment.
    After the user Parks the document the custom workflow triggers and a workitem appears in the inbox of an approver.
    Our requirement is that the scanned image should also appear as the attachment.
    Can you please suggest how to get the image stored in archieve link as an attachment in work item.
    Regards
    Shraddha

    Hi Martin,
    with every parked document a scanned image is linked.
    I need to create a link under objects and attachments in the work item, such that when the user clicks that link the image is displayed.
    At present the following functionality is available.
    The BO used is FIPP
    Objects and attachments:
    parkeddocument:AK0108500001252008.(via FIPP binding with WIOBJECT_ID)
    On clicking the link below objects and attachments: the parked document AK0108500001252008 opens in display mode.
    Now we want to have 2 links:
    parkeddocument:AK0108500001252008.
    image.
    When we click on the link image then the scanned invoice linked to the document should get opened.
    I am able to get the image id of the the image through  SAP_WAPI_GET__OBJECTS,
    export parameter leading_object provides the detail.
    But I am not able to figure out how to use it in my workflow to display it as an attachment.
    Hope this will give a better understanding of my question.
    can you please suggest as to how I should proceed with it.

  • I would like to know how to get the unrestricted quantity excluding actual customer ordr quantities on a given group of items?

    I would like to know how to get the unrestricted quantity excluding actual customer ordr quantities on a given group of items?

    Hi , Welcome to the HP Forums!
    It is a terrific place to find answers and tips!
    For you to have the best experience in the HP forum I would like to direct your attention to the HP Forums Guide.Learn How to Post and More I grasp you would like to replace the keyboard and would like the part number and where to purchase one. Here is a link to the HP Pavilion 17 Notebook PC HP Pavilion 15 Notebook PC Maintenance and Service Guide .  Please note chapter 3, page 20, item 2 for the replacement keyboard part numbers. You stated you were having a difficulty locating where to purchase the part.  Here is a link to  HP Notebook PCs - Ordering HP Certified Replacement Parts for your convenience. You can also try a Google search with the part number for other vendors that may have one.   To say thanks for replying please click the thumbs up icon below. If this has addressed your query please choose solution provided to help other people locate this information.   Best of Luck!

  • How to get the objects from a workflow item's container

    Dear all,<P/>
    We need to get the value of a variable in the container of a workflow item. I can get the workflow item list using function module <B>SAP_WAPI_CREATE_WORKLIST</B>. Then how can I get the corresponding container elements' value?<P/>
    I tried function mofule <B>SAP_WAPI_GET_OBJECTS</B>, but the returned table <B>OBJECTS</B> and <B>OBJECTS_2</B> are both empty.<P/>
    Thanks + Best Regards<P/>
    Jerome<P/>
    null

    Hi,
    Well, I think you will be getting the value as BORNAME:BORKEY. Get the KEYVALUE into your local variable. And use the <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/c5/e4acef453d11d189430000e829fbbd/frameset.htm">BOR Macros</a> to get the instance and desired contents.
    Regards
    <i><b>Raja Sekhar</b></i>

  • How to get the Delivery date in PO line Item in SAPScript

    Hi Gurus,
    I am working on PO Script (MEDRUCK). I copied the Standard to a Z form. ZMM_MEDRUCK, Now I need to print the the Header text at the end of MAIN window.  I put Iem number along with the other line Item informmation like stanadrd PO Script MEDRUCK. I also want to show the delivey date with line Item, so Itried to use EKET-EINDT but it is returning the delivery date of last line item, means while printing the first line and other information it is showing the delivery date of the last line item, I tried with the  PEKPO-EINDT it is also not working.
    Can any body suggest me how i can get the delivery date for the respective line Item  ?
    Regards
    Sony

    actually your are picking up the correct data from Table EKET (EKET-EINDT) but your are printing that in item data loop for EKET might have already executed in your script and the header of that internal table consist the last entry of the table so for that. Fetch the delivery date explicite from the Table EKET when your in item level processing and print that.
    For Example u can use this code.
    To print you have write the this code in Script item level printing window "MAIN" window
    Following perform is called to get the line item delivery date in PO
    {/: PERFORM GET_DEL_DATE IN PROGRAM ZPerform_prog
    /: USING &EKPO-EBELN&
    /: USING &EKPO-EBELP&
    /: CHANGING &DEL_DATE&
    /: ENDPERFORM}
    {* Dellivery date &DEL_DATE& }
    write the below code in the Z program "ZPerform_prog"
    { FORM get_del_date  TABLES in_par STRUCTURE itcsy
                             out_par STRUCTURE itcsy.
      READ TABLE in_par WITH KEY 'EKPO-EBELN'.
      CHECK sy-subrc = 0.
      $_po_no = in_par-value.
      READ TABLE in_par WITH KEY 'EKPO-EBELP'.
      CHECK sy-subrc = 0.
      $_po_line = in_par-value.
      SELECT *
      FROM eket UP TO 1 ROWS WHERE ebeln EQ $_po_no AND ebelp EQ $_po_line.
        $_del_date = eket-eindt.
        CALL FUNCTION 'CONVERT_DATE_TO_EXTERNAL'
          EXPORTING
            date_internal            = eket-eindt
          IMPORTING
            date_external            = $_del_date
          EXCEPTIONS
            date_internal_is_invalid = 1
            OTHERS                   = 2.
        READ TABLE out_par WITH KEY 'DEL_DATE'.
        CHECK sy-subrc EQ 0.
        out_par-value = $_del_date.
        MODIFY out_par
                    INDEX sy-tabix.
        CLEAR : $_po_no , $_po_line ,$_del_date.
      ENDSELECT.
    ENDFORM.                    "GET_DEL_DATE }

  • I-photo:  I used 2 cameras to take pictures on a trip --- i have put the pictures from both cameras into an album --- when i click on view and then sort by date, the pictures do not sort by date --- any ideas on how to get the pics sorted by date?

    I-photo:  I used 2 cameras to take pictures on a trip --- i have put the pictures from both cameras into an album --- when i click on view and then sort by date, the pictures do not sort by date --- any ideas on how to get the pics sorted by date?

    Select all the photos that you need to change, then click the "Photos" menu and choose "Adjust Date and Time".
    If you add a year, it will adjust all the photos that you selected by adding a year (so if you accidentally select one of the photos that already has "2012", that will change to "2013"). 

  • How to get the text which was clicked in  a A href tag.

    I am displaying the names from database in a page as hyperlink. When this hyperlink is clicked I want to display the corresponding address from DB. What the problem is when the link is clicked how to get the name which is clicked. I know only to link to a page using href. Now I want the text which has been clicked. Pls help.

    Sorry to interrupt here!
    For the code you suggested:
    David,
    if the target path is "http://localhost/testing.jsp", then
    the code would become:
    David.
    So what would the difference between the code shown above and this code:
    David
    What is the function for these two symbols: "<<" and ">>"?

Maybe you are looking for

  • File in InDesign CS2 seems locked - can't select anything

    I've received an InDesign file from a client and am trying to open it in CS2. It opens fine and other than some missing fonts which is easily fixed there are no problems. I do have problems when I try and select any of the objects - picture boxes or

  • XML support in SAP 4.6

    Hi all ! I'm looking for information about XML support in SAP 4.6c. I have to implement a data exchange mechanism between SAP and web application written in Java. Whole idea looks simple: Java application send an XML document through RFC and ABAP pro

  • Ios7 pic locations in camera roll

    I downloaded the new IOS7 on Iphone4, by mistake I am finding out, and I can no longer see the locations of where my pics have been taken. I REALLY enjoyed this feature. Anyone know how to getit back or if there if an App for that?

  • FRM-40815

    Hi, I get this error when i am submiting concurrent request set. FRM-40815: Variable GLOBAL TEMPLATES_ENABLED does not exist But i don't get this error while logged in as sysadmin. I get this only as normal user. There are some patches recommended by

  • Can't get application to start upon login

    Hello everyone! I'm using Gnome 3, and I am trying to get an application to run upon login. I've created the following desktop entry for it: [Desktop Entry] Type=Application Name=xflux Exec=/usr/bin/xflux -l 52.0 -g 5.0 I've tried saving in ~/.config