How can I select an item from a list component with a seperate button

This is a repost, I decided it'd probably be better here than
in the general discussion board. I will try to delete the other
one.
Hello Everyone,
This is my first post here. I am trying to figure out how to
select an item within a list component with a button. This button
is calling a function. I have searched for the past 3 hours online
and I can't find anything about it. I thought perhaps I could set
the selectedItem parameter, but that is read only, and I believe it
returns an object reference rather than something like a number so
even if i could set it, it would be pointless. I also found a get
focus button, thought that may lead me somewhere, but I think that
is for setting which component has focus currently as far as typing
in and things like that. I am lost.
Basically I am looking for a way to type this
myList.setSelected(5); where 5 is the 5th item in the list.
Any help would be much appreciated.

Never mind found it. It is the property called selectedIndex
and it is writable

Similar Messages

  • How do you select an item from a table indicator with a mouse click and then use that selection in code?

    Hi,
    I am displaying a list of filesfrom a directory  in a table on the front panel of a VI as part of a program I am developing. I would like the user to be able to select from that table so that particular file can be processed. Is there a way to do this?
    Thanks,
    Aaron

    you'll find that most of the useful functionality of the labview user control interface is hidden within the property node and invoke node functions. just right click a control or indicator terminal on the block diagram and mouse over to create, then to property node or invoke node. lots of fun stuff in there. attached is an example. one file is saved for labview 8.0, the other is saved for labview 8.6.
    Message Edited by Root Canal on 10-16-2008 11:17 AM
    global variables make robots angry
    Attachments:
    file selection table.vi ‏26 KB
    file selection table lv 8.0.vi ‏42 KB
    file selection table.PNG ‏18 KB

  • How can I take an item from one image and move it to another image?

    How can I take an item from one image and add it to another image, and rotate it to fit?

    Carefully select the objects of interest in one image and then copy, scale and position them into the other image. Then touch up the composite.
    Have to Love Photoshop for Retouching Images!

  • How can i delete purchased items from the cloud in iTunes

    how can i delete purchased items from the cloud in iTunes

    I had this problem as well. You can't delete them but you can hide them by swiping across from the cloud to. The other side then pressing hide

  • How can I select several emails from 3900 on my 5c and delete the rest easily

         How can I select several emails from 3900 on my 5c and delete the rest easily

    We'll I don't think there's a easy way to delete a lot of emails besides deleting all of them. To delete all of them click on inbox them edit then "mark all" then trash/delete. Other than that you will have to specifically deleted the ones you want to delete.

  • How can i make a picture from a video file with final cut pro x?

    how can i make a picture from a video file with final cut pro x?

    Go to the "share" menu, select "save current frame"

  • How can i transfer my contacts from iphone4s to imac with different apple id without loosing everything on my phone

    how can i transfer my contacts from iphone4s to imac with different apple id without loosing everything on my phone

    Move the iPhoto library from the Pictures item of the Finder's sidebar on the MacBook Pro to the same location on the iMac via FireWire Target Disk mode, or a drive, partition, or disk image formatted as Mac OS Extended, or through AFP file sharing over a network.
    (68308)

  • How can we delete one Material from Material List?

    Hello Experts,
    How can we delete one Material from Material List? Is their any possibility?

    Hi,
    Instead of deleting you can go for mark for deletion in MM06.
    Thanks
    VSA

  • How do I select a item from a drop down list on a web in Safari On An. IPad 2.  The list apears and disapears só QuickClips I cannot TAP anything On The list Quickly enough.

    I tried to select an item from a drop down list on a web page in safari and discovered that the list disapeared to quickly for me to make a selection.  Has anyone else found this and solved the problem.  Many thanks.

    Demo wrote:
    I tried it on my iPad and I see what you mean. From what I can see when I go to the site on my Mac, it is Flash based and that will not work anyway.
    Actually, it is Javascript and uses the 'onmouseover' event.

  • How do you select individual items from within a group?

    Hi, All.
    New poster. Forgive me if I miss any forum etiquette.
    Currently using Indesing CS6 on Mac Osx 10.7.4
    I'm a relatively recent convert to Indesign from Quark, and one thing I seem to have continual problems with is selecting individual items from within a group.
    For example I will have a grouped item, such as price marker that is comprised of several individual items, some text boxes, some rectangles.
    I find there is no way to select a rectangle that is currently placed behind a transparent text box without ungrouping the entire item - which isn't really an option.
    The select options (slect next item below etc. just don't work)
    For any Quark users out there, the equivalent command I'm looking for is the cmd+opt+shift click through, which just worked absolutely perfectly.
    I have scoured the internet and forums looking for an answer for this, as I assumed it must be my own lack of knowledge, but I can't find an answer.
    Any help much appreciated.
    Thanks

    Hi, winterm.
    Thanks for the super quick repsonse. Unfortunately that hasn't seemed to have helped me.
    That works fine as long as the grouped items are overlapping or apart, but not when items are entirely behind another item (ie, no part protruding from the group)
    The problem is that if I double click to try and get through a text box to an item that is entirely behind it, then it just switches into text edit mode for the top text box.
    If it helps, could you imagine a transparent text box that is 20x20 with red rectangle centred beneath it that is 10x10. If the 2 items are grouped I cant find any way to select through to the red rectangle without first ungrouping the two.
    Am I going mad?

  • How can I erase deleted items from the hard drive?

    How can I erase deleted files from the hard drive?  Will my machine run faster?

    If you've already deleted the files and emptied the Trash they are already, in effect, erased. At least the disk space they occupied is now available.
    To be able to offer help we need more information about which Mac you have, which OS you are running, how much RAM you have installed, how much hard disk space you have available, etc.
    Go to the Apple Menu>About this Mac - copy and paste the contents of the report here (deleting the serial number of your machine). Once we have that info, I'm sure someone will have some suggestions.

  • How can I select a channel on the RT target with a VI on the host?

    Maybe I'm trying to pound a square peg into a round hole, so please let me know if I'm abusing LV, but ...
    I'm trying to parameterize our RT VI app that deals with digital output channels.  We use the same basic VI for multiple configurations.  The only thing that changes is the channel allocations.  So for instance, actuator 1 is on port0/line5 for one configuration and port1/line2 in another.  I really don't like the idea of modifying the VI every time we have a new configuration because it makes configuration management insane.  If I make a change to the basic VI, now I have to upate N copies of the VI and hope I catch everything.
    So I'm making the main app VI read an XML configuration file that specifies all the allocations.  Sounds great at first, but how do I create the XML file?  I created a VI that manages the data in the VI, allowing the user to add/remove channels and edit the name and channel and then save it to an XML file.  The configuration is comopsed of an array of clusters, with the cluster containing the name and DAQmx channel.  My intent was to let the user select the channel from the list of valid channels by using the DAQmx Global Channel control.  But the problem is, the configure VI runs on the host, which doesn't see any of the channels because they are on the RT target.  But if I try to run the configure VI on the target, it refuses to deploy because I have GUI widgets.
    Is my approach fundamentally flawed?  Is there a better way of parameterizing our VI?  Or is there a trick to getting access to the valid channels on the host VI?  The information MUST be available because after all, when I modify a target VI and select a global channel constant, I'm doing this on the host.
    Thanks,
    Keith.

    Hi Keith,
    you can handle the channels like "normal" strings. See the attached picture.
    Hope it helps.
    Mike
    Message Edited by MikeS81 on 07-25-2008 06:46 AM
    Attachments:
    Unbenannt1.PNG ‏6 KB

  • How can i store the data from the list to MS-Access?

    Hi all,
    We all know that from alv it is possible to export data to Ms-excel or word or text file. Can anyone tell me how can i store the data from alv or reports to Ms-Access?
    Thanks in Advance,
    Abhijit

    Hi,
    If you want that without code, i suppose there is a option in MS-Access to import data from Excel, so you have to first export to excel and then import to Access.
    If you want to code it yourself then have a look at FM TABLE_EXPORT_TO_MSACCESS, as said in Exporting Data from R/3 to MS ACCESS
    You can also see the search results in SCN for [export data to MS-Access (45 Results)|https://www.sdn.sap.com/irj/sdn/advancedsearch?query=exportdatato+MS-Access&cat=sdn_all].
    Regards
    Karthik D

  • How can we transform a video from progressive to interlaced with final cut?

    How can we transform a video from progressive (720x1080 50p) to interlaced (PAL) with final cut pro???????
    The video is taken with Sony EX3

    Hi Nick
    Sorry but your first link says +"The file you are trying to access is temporarily unavailable."+ ... but tell me, are you viewing these interlaced encodes yourself on an interlaced monitor (eg are you burning them to disc and viewing on a TV) as they are meant to be seen, or are you just playing them back from file on your (progressive) computer display?
    By the way, I did manage to download your source file and encoded it here. Looks ok to me ... in a addition to the instruction above, I also changed the Field Dominance in the Encoder > Video Format tab to Top First (it defaulted to progressive due to the progressive source file).
    Let me know if that helps
    Andy

  • How can I delete an item from the main left column of iTunes?

    I'd like to delete an item from the main left hand column in iTunes (the column containing the main headings LIBRARY, STORE, SHARED, PLAYLISTS etc etc). Under the first heading 'LIBRARY' appear the items Library, Music, Movies, iTunes U, Books, Apps and Ringtones. I'd like to remove the item "Library" from that list - it appears immediately after the heading "LIBRARY" and serves no purpose whatsoever. (Neither does it appear to cause any harm, I must say, just a nuisance.) This item does not appear in any of the iTunes viewing options or controls lists. Neither does it appear in iTunes in the other accounts on my Mac and I have yet to see it any other iTunes on any other Mac.
    I've upgraded since about iTunes 8 assuming the problem would eventually disappear through the upgrades but it hasn’t, even through all the providedupgrade increments available for iTunes.
    I'm assuming it's from something I've installed in my main user account at some stage and it entered this item in the iTunes app. But I can't see how to remove it. The only things I can remember installing are "iTunes Batch Column Renamer" and "Join Together", both if which are just Scripts and which I use fairly regularly, but I don't recall either of them installing that particular item.
    Is there any folder I can navigate to to edit the list of items in that main left hand column of iTunes?
    Many thanks in advance for any help offered.

    on second thought, that you have an item "library" is indeed odd - there shouldn't be.
    suggest you try removing iTunes completely (click here and follow the instructions), then reinstall it using the standalone installer from here: http://www.apple.com/itunes/download/.
    note this will not do anything to your media files, playlists, ratings, etc.
    btw, you didn't install any 3rd party tools like this script:
    Change Hidden iTunes Preferences v2.4 
    This application will allow you to invoke hidden iTunes preferences:
    Show "Library" playlist
    Changing view setting is global
    Allow half-stars in ratings
    Hide "Ping" buttons
    Show/hide arrow links -- to either search the iTunes Store or search your library
    Load complete iTunes Store preview before playing
    Create playlists for purchased song collections
    Play songs while importing or converting
    Create file names with track number
    Maintain grid view for Search results
    Option-click zoom button for Mini Player&
    Show buttons horizontally
    Message was edited by: Jolly Giant

Maybe you are looking for

  • WebService Automated Activity in BPM - How to transport WSDL to Test/Prd

    Hi, I am using a webservice in BPM, This webservice is based on BRM. It is hosted on DEV and i am consuming it with its WSDL whose url has DEV host/port. My questions, How would i change when I should move whole BPM piece. I know i will do the same w

  • Force Quit Illustrator CS3 on PC

    HELP!! I'm working on a PC and every time I try to quit Illustrator CS3, the program delays and does not quit. The only way to get out is to force quit. This is so frustrating. I remember reading something about it on another forum and it mentioned t

  • AS3 Putting Buttons Inside Movie Clip

    I am practicing AS3 (after years of AS2) and am having trouble having a button inside a movie clip talk to another movie clip on the main timeline. Here is the code: OneButton.addEventListener(MouseEvent.CLICK, OneButtonClicked); function OneButtonCl

  • Best way to import illustrator path

    i am trying to animate a complex flame that i drew in illustrator. whenever i get the path imported or copied from illustrator to flash, it adds a ton of extra anchor points, making it impossible to animate without a ton of extra work. is there a way

  • I have already installed Lion.  How can I download it again on to an external USB thumb drive?

    Having already downloaded Lion on to my hard drive, I would like to have an external copy available.  I would like to have this on a USB drive.  When I go into the App Store, the link shows I have already downloaded and I am not allowed to do so agai