Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 4 of 4
  1. #1
    Member jddesigns's Avatar
    Join Date
    Aug 2005
    Location
    Tucson, AZ
    Posts
    30
    Member #
    11038
    I have a Flash DataGrid question. I am trying to set up so the user can select 3 DBs to load into a grid. However, if they choose DB1, then DB2, I want it to delete/unload DB1 in order to load DB2. Any idea how to do this? Here is the code I have right now that allows me to load them up:

    dine = new Object();
    dine.click = function(eventObj){
    xmlDine.trigger();
    }
    loadDine.addEventListener("click", dine);

    ride = new Object();
    ride.click = function(eventObj){
    xmlRide.trigger();
    }
    loadRides.addEventListener("click", ride);

    show = new Object();
    show.click = function(eventObj){
    xmlShow.trigger();
    }
    loadShows.addEventListener("click", show);
    Jeff

    JD Designs
    http://j-ddesigns.com

  2.  

  3. #2
    WDF Staff smoseley's Avatar
    Join Date
    Mar 2003
    Location
    Boston, MA
    Posts
    9,729
    Member #
    819
    Liked
    205 times
    What's the name of the grid? Where do you load it with content?

  4. #3
    Member jddesigns's Avatar
    Join Date
    Aug 2005
    Location
    Tucson, AZ
    Posts
    30
    Member #
    11038
    The grid's name is itinerary

    I use an XML Connector to a DataSet to load it. I have 3 XML Connectors and 3 Data Sets (one for each button / set of data I am loading)
    Jeff

    JD Designs
    http://j-ddesigns.com

  5. #4
    Member jddesigns's Avatar
    Join Date
    Aug 2005
    Location
    Tucson, AZ
    Posts
    30
    Member #
    11038
    Actually figured it out - just needed to add a 'removeAllColumns'

    ___________the code follows for anyone who might be interested or have the same question___________

    unload = new Object();
    unload.click = function(eventObj){
    itinerary.removeAllColumns();
    }

    dine = new Object();
    dine.click = function(eventObj){
    xmlDine.trigger();
    }

    ride = new Object();
    ride.click = function(eventObj){
    xmlRide.trigger();
    }

    show = new Object();
    show.click = function(eventObj){
    xmlShow.trigger();
    }

    loadDine.addEventListener("click", unload);
    loadDine.addEventListener("click", dine);
    loadRides.addEventListener("click", unload);
    loadRides.addEventListener("click", ride);
    loadShows.addEventListener("click", unload);
    loadShows.addEventListener("click", show);
    Jeff

    JD Designs
    http://j-ddesigns.com


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 03:37 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com