Welcome, Guest
  • Author Topic: Access Dataset rows  (Read 2211 times)

    Andres

    • Server what's that
    • *
    • Posts: 3
      • View Profile
      • Email
    Access Dataset rows
    « on: 11/24/04, 15:53 »
    I´ve followed the tutorial on this site to create a site that access a db with a xmlconnector and a dataset.
    I´ve modified it a lot, because my needs are a lot simplier, just have to access one row of the db and then put 3 of 4 rows in labels.
    The 4th row is an image and I only need the path to the image, so i tried doing this:

    Code: [Select]
    imagen.load("images/"+ dataset.items[0].imagen)
    also tried this
    Code: [Select]
    imagen.load("products/"+ dataset.imagen)
    but without success

    when doing this
    Code: [Select]
    pepe = dataset.items[1].id  
    (pepe is a dynamic textbox) i get undefined at the textbox

    how can i access the rows in a dataset with code?

    PechE

    thanks
    « Last Edit: 11/24/04, 15:55 by Andres »

    vesa kortelainen

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 3450
      • View Profile
    Re:Access Dataset rows
    « Reply #1 on: 11/24/04, 16:00 »
    Andres, check Dataset.Class


    Andres

    • Server what's that
    • *
    • Posts: 3
      • View Profile
      • Email
    Re:Access Dataset rows
    « Reply #2 on: 11/24/04, 16:11 »
    Thanks for the reply

    From what i`ve read here http://livedocs.macromedia.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Flash_MX_2004&file=00000455.html , this should work .... but it doesn´t

    Code: [Select]

    pepe = dataset.producto

    What i´m doing wrong? the labels work ok with the binding

    Andres

    • Server what's that
    • *
    • Posts: 3
      • View Profile
      • Email
    Re:Access Dataset rows
    « Reply #3 on: 11/25/04, 10:29 »
    will be usefull if i upload the fla somewhere?