How do I take data from a data grid and put it into a variable?

I am having problems taking data from a datagrid (guess you got that from the title) and setting it to a variable. I am tak
ing the data from 3 different rss feeds, depending on what button you press, and showing it in a grid. I would like to be able to do more with this data. Here is my code so far:
<mx:VBox id="vbox" x="70" y="150">
  <mx:Label text="This Data Grid is doing nothing" />
  <mx:DataGrid width="1000" dataProvider="{fullXML}">
   <mx:columns>
    <mx:DataGridColumn id="dataGrid" *dataField="channel.description" headerText="Feed"/>
   </mx:columns>
  </mx:DataGrid>
</mx:VBox>
<!-- from test 5 -->
<mx:Move id="moved" target="{hbox}" repeatCount="0" easingFunction="mx.effects.easing.Linear.easeIn" />
<mx:HBox id="hbox" fontSize="12" fontFamily="courier">
  <mx:Label text="{website**}" />
</mx:HBox>
* this is the data I want to get out
** this is where I want to be able to put the variable.
I don't know if I can do it here or if I need a function or what.
I would like to be able to put it into an array, but step one is anything at all, so I'm trying just a variable.

Where do I put that line of code? I see that it goes at the Script part near the top, but how can I use that, I am pretty new to this language. I am not familiar with this line, where does it bind the value from the datagrid to the variable?
fullXML[myDataGrid.selectedIndex].FIELD_NAME;
myDataGrid would be the id from the grid I am guessing?
and selected index would be the channel.description part?
and FIELD_NAME; is the variable name?
does this go into a funtion or is it placed at the top where the variables are declared?

Similar Messages

  • Lost home PC with my iTunes account on it in a home fire.  How can I take everything from my iPhone 4 and put it on my new PC?

    Lost home PC with my iTunes account on it in a small home fire.  How can I take everything from my iPhone 4 and put it on my new PC?  Is this even possible?  iPhone 4 / new PC running Win XP Pro.  I have backed up to iCloud recently so the info is out there, just need to bring it down onto my PC....
    Need HELP.............

    Copy from iPod to computer
    Recovering your iTunes library from your iPod or iOS device: Apple Support Communities
    The sync to iPhone
    iTunes: Syncing media content to iOS devices and iPod

  • How do you Take songs from one iTunes library and put them on another(Mac)

    Well i have some songs that i don't really listen to anymore so i don't want them on my library or any of my ipods but i don't want to delete them because i bought them so i want to put them on another itunes library i created but i cant figure out how to take them out of my library and put them on the other one
    how do you do that?

    Open your other library, go to File>Add to library and navigate to the folder containing the files you want to add. Once they are in your new library delete them from the other library making sure that when you get the prompt to move them to trash say no. You should also back your purchases up to disc or to an external drive so you don't lose them of anything happens to your hard drive:
    How to back up your media in iTunes
    Back up your iTunes library by copying to an external hard drive

  • How can I take data from multiple pages documents and put them into a numbers table?

    I produce invoices in pages, with dates, invoice numbers, references and amounts due. I want to take all this data from multiple documents and transfeer it to a single numbers table. Is this possible and if so, how do I do it. I know I can do it the other way round with mail merge but I can't figure out how to do it this way round?
    Thanks,
    Keith

    The data is spread throughout a pages document in specific areas here's a copy of an invoice for you to have a look at.

  • How do i take song from my itunes playlist and put them on my ipod but not one by one

    i know how to do them one by one but i want to do them all at once

    Huh?
    A Playlist in your iTunes Library should put all the songs in it onto your iPod when you Sync the iPod. Where is this Playlist, in your iTunes Library, or is it something you have imported from somewhere else?
    I don't know how to take songs from a playlist one by one, how have you managed this?

  • How would I take money from one iTunes account and put it on another iTunes account?

    Trying to swap money from one iTunes account to another iTunes account so I can make in app purchases in a certain game. Can anyone help me out please?

    You can't do this yourself. Click here and ask the iTunes Store staff to put it back onto the card; they'll only do this if none of the balance has been spent.
    (123252)

  • How can I take minutes from mysql date format

    how can I take minutes from mysql date format??
    example 10:30:00 is stored in my sql and I want to create 3 variables which will store hours, minutes and seconds..
    Cheers..

    "use application date format" is the choice you want.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
    -------------------------------------------------------------------

  • How to I take my credit card information off and put no payment info like back how it first started, and how do I do that by my iphone?

    I need help,
    How do I take my credit card information off and put none payment
    And how do that by my iphone. With out using a computer.
    Because when I use my credit card and I know I have money on it
    It says decline so I wanna take that off so I can download apps without using
    My card or an iTunes card. Like down load the free apps without card info.

    Hi ShyGirl07,
    Welcome to the Support Communities!
    The article below may be able to help you with this.
    Why can’t I select None when I edit my payment information?
    http://support.apple.com/kb/ts5366
    I hope this information helps ....
    - Judy

  • I got some books from the itunes store and put them into my library.  I created a playlist so that I could burn them to cds.  The title is there but no contents.  It won't even play the playlist.  How do I get the contents of the book?

    I got some books from the itunes store and put them into my library.  I created a playlist so that I could burn them to cds.  It won't even play the book, there are no contents.  How do I get the contents of the book?

    I'm guessing this is a problem unique to me as there have been no replies at all...  Thanks a bunch folks

  • Adding data from a rolling camera and entering it into a file

    i have managed to get my software to read camera input from a usb port! I would like it to be able t pause the rolling image and trnsfer a image of me into a file named owner, so it reconises me! NOTE! it should only have to take my profile when it is started for the first time! then i would like it to be able to acsess the file so it knows that i am the owner!
    how would i go about doing this!
    baring in mind it would need to permantly know who i am afterwards!
    to make it reconise me after the initial setup! would you sagest i se a random accses file so that it can acses it or not!
    and would i need to put a loop so that it can acses the file to know who i am all the time!
    I hope this makes sense!
    many thanks

    Hi and welcome to the forum.
    Is there a way to retrieve data from a blob field and save it to temp table.Why would you want to do that?
    Can you provide some more details regarding your requirement?
    (Don't forget to mention your database version as well)
    Also, I wonder why you've added a 'decompress' tag to your question?
    edit, after seeing Tubby's reply
    Dang, the connection must be frozen here ;)
    Edited by: hoek on Jan 6, 2010 9:06 PM

  • AQ or Streams to replicate data from a database table and put it on a queue

    If was tasked with the above if I was using AQ I'd think about publishing to queue via insert trigger on a table that's the destination end of a replication.
    Given that there's replication involved it sounds like if you want to replicate data from A to B and also push it to a queue you should be thinking Streams with a transform and not just AQ.
    However, how do you get Streams to replicate from A to B and at the same time and in the same transaction transform a message and put it on a queue?
    Also, if you are to build the message in XML and use an XML payload what do you use to construct the message? PL/SQL by hand? Are there API's in PL/SQL to build a DOM and then stringify the DOM you've built such that everything is entity encoded correctly and the payload can be published to a queue as an XML payload?

    Oh yes sorry I lost track of which thread this was. I was thinking Streams but I forgot the original suggestion was to use triggers.
    We have many use cases today where data arrives via inserts into some table and a process polls this table and processes the data. This approach does not scale very well. Currently these polling processes are polling the same database that is constantly inserting data as it arrives via multple processes.
    I am trying to move away from this approach by introducing queuing. In addition to the above we also have an approach where as the data arrives it's placed on a queue and the process processes these messages asynchonously from the queue. Currently this queue based implementation does not use Oracle. I am trying to move to a solution where if the data must arrive via inserts into a database the processing of the data doesn't necessarily have to be by fetching those records out of the table thru polling. The general idea is that as the messages are inserted they are subsequently enqueued and processed off a queue. There is no desire to have a process which simply polls the database and enqueues what I find in the table. The goal is to remove constant polling of the database.

  • How to make blank copies of a PDF file and put it into the printer tray.

    Dear experts,
    Before you try printing the data from the FM, How tomake several blank copies of the PDF file  and  put it in the printer tray so that you can print just the data from the function module on it??????
    Please reply.

    Hi drredwood,
    When you open your PDF file a yellow bar will appear on the top of the screen.
    Click on 'Enable All Features'.
    Then you will be able to copy the content from your pdf and to paste in any of the file.
    Regards,
    Florence

  • Has anyone got a script to read a list of email addresses from a Mail message and put them into a group in Contacts?

    Has anyone got a script to read a list of email addresses from a Mail message header and put them into a group in Contacts?

    Now Tony, I know you can't hear my tone on a forum post but I was not complaining, simply stating facts . This change brought several people in my office to a grinding halt in a long established workflow that is really rather simple (and I thought was already assumed from the original post above ):
    1) Select a set of records in FileMaker Pro 12 and export only their e-mail addresses as a CSV file.
    2) Open that CSV file in Excel.
    3) Copy the column of e-mail address.
    4) paste into the appropriate recipient field in Mail.
    5) Send
    If I were to complain it would be about Apple's typically opaque approach to updates. There is no granular explanation of why changes were made or even "what" changes were made.
    Complaining is futile since Apple is Apple and is unlikely to change, but sometimes it is cathartic to "shout into the void" .
    I had thought about doing something with a formula in Excel and your suggestion was simple and helpful. Again, however, it is only a workaround for a long established helpful behavior that Apple has inexplicably broken/removed in Mavericks Mail.
    I, and the other posters here, would love to have the capability back rather than have to add previously unneeded steps to our workflows.
    Ultimately we may add scripting steps to the FileMaker side to export the address lists with commas inserted already if Apple ends up having permanently removed this feature.

  • How to load data from text.txt fiel and tokenize it into JCombo box???

    Hi Everyone,
    I am new to Java and Netbeans. I am working on the same GUI project and need your Help!!
    I have two queries and since i am new,please if possible explain step by step
    1.) How can I load the contents of data stored in sometext.txt file when i click the JCombo box]?? Also, if i enter a new string not existing in text, it should display a message and add the new entered data into the sometext.txt file.
    2.) How can i input the contents of table.txt file (which has characters seperated by Tab) into a JTable into specific rows and columns??. Again, the txt should add and update the new entered data.
    I dont want to use any databse connection!!
    Explainations with Examples/Attachments will be greatly and truly appreciated
    Please Please Help me ASAP as i have to submit this assignment by next week!!

    hi camickr,
    I tried to load a file into Jtable. I have used random access file method to read a large text file seperated by tabs. When i tried to run the file, i was unable to load the data from the file. i guess i am missing the link between custom table and the default table. Can you please help me?
    The complete code is attached below:.(The reason i am attaching the whole code is ..so that you can check me where i am going wrong, please dont mind!!)
    package javaapplication;
    import java.io.*;
    import java.util.ArrayList;
    import javax.swing.table.AbstractTableModel;
    public class table extends javax.swing.JFrame {
    /** Creates new form table */
    public class FileTableModel extends AbstractTableModel {
    RandomAccessFile raf;
    ArrayList<Long> lineToPos = new ArrayList<Long>();
    int columnCount = -1;
    public FileTableModel(String fileName) {
    try {
    raf = new RandomAccessFile(new File(fileName), "C://temp.txt");
    lineToPos.add(new Long(0));
    String line = null;
    while ((line = raf.readLine()) != null) {
    if (columnCount == -1)
    columnCount = line.split(" ").length;
    lineToPos.add(new Long(raf.getFilePointer()));
    lineToPos.remove(lineToPos.size()-1);
    } catch (Exception e) {
    e.printStackTrace();
    protected void finalize() throws Throwable {
    super.finalize();
    raf.close();
    public int getColumnCount() {
    return columnCount;
    public int getRowCount() {
    return lineToPos.size();
    public Object getValueAt(int rowIndex, int columnIndex) {
    try {
    raf.seek(lineToPos.get(rowIndex).longValue());
    String line = raf.readLine();
    String[] strs = line.split(" ");
    return strs[columnIndex];
    } catch (IOException e) {
    e.printStackTrace();
    return null;
    /** This method is called from within the constructor to
    * initialize the form.
    * WARNING: Do NOT modify this code. The content of this method is
    * always regenerated by the Form Editor.
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">
    private void initComponents() {
    jScrollPane1 = new javax.swing.JScrollPane();
    jTable1 = new javax.swing.JTable();
    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
    jTable1.setModel(jTable1.getModel());
    jScrollPane1.setViewportView(jTable1);
    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(
    layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    .addGroup(layout.createSequentialGroup()
    .addContainerGap()
    .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 375, javax.swing.GroupLayout.PREFERRED_SIZE)
    .addContainerGap(15, Short.MAX_VALUE))
    layout.setVerticalGroup(
    layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    .addGroup(layout.createSequentialGroup()
    .addContainerGap()
    .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 275, javax.swing.GroupLayout.PREFERRED_SIZE)
    .addContainerGap(14, Short.MAX_VALUE))
    pack();
    }// </editor-fold>
    * @param args the command line arguments
    public static void main(String args[]) {
    java.awt.EventQueue.invokeLater(new Runnable() {
    public void run() {
    new table().setVisible(true);
    // Variables declaration - do not modify
    private javax.swing.JScrollPane jScrollPane1;
    public javax.swing.JTable jTable1;
    // End of variables declaration
    }

  • HT4913 how do you take music from one Iphone (4s) and add it to another(5s), when no music appears in the library when the phone connects to itunes, but there is 13gb on the phone?

    I have upgraded to an Iphone 5s, however all of my music is on my old phone (4s), i want to transfer all 12.7gb of it to my new Iphone, but i cannot drag and drop it? how can i take my music from my 4s and add this to my 5s using Itunes on a windows laptop?

    See Recover your iTunes library from your iPod or iOS device.
    tt2

Maybe you are looking for