Edit filtered ArrayCollection messes up Datagrid

I understand Datagrid + itemrenderer is a frustrating issue
sometimes. After Googling around, I got no luck solving my problem.
It goes like this:
I have an ArrayCollection
objectArray as the dataprovider for a datagrid. I applied a
filtered function on
objectArray and the datagrid displayed the filtered array
with no problem. However, when I looped through the filtered array
and made some changes, the datagrid went crazy. The order got
changed and some of the changed values didn't show up as changed.
Did anyone come across the same issue? Can anyone give me
some idea of what's going on?
Thanks.

mmm...
Filter should be working, lets try to change Item for object.
private function changeValue():void {
for each (var item:Object in myArray) {
item.value = true;
myArray.refresh();
"scabbage" <[email protected]> wrote in
message
news:[email protected]...
> Ok, I think I found where the problem is. My code looks
like this:
>
>
>
> ----------
> <mx:Script>
> <![CDATA[
>
> private function applyFilter():void {
> myArray.filterFunction = myFilter;
> myArray.refresh();
> }
>
> private function changeValue():void {
> for each (var item:Item in myArray) {
> item.value = true;
> }
> myArray.refresh();
> }
>
>
> // simple filter
> private function myFilter(item:Object):void {
> if (item.id > 5 && item.id < 20)
> return true;
> else
> return false;
> }
>
> ]]>
> </mx:Script>
>
> <mx:DataGrid dataProvider="{myArray}"/>
> <mx:Button label="filter" click="applyFilter()"/>
> <mx:Button label="change value"
click="changeValue()"/>
>
>
>
> -------------------------
>
> So what causes the problem is the "changeValue"
function. Solution to my
> problem: bring "myArray.refresh()" inside the loop. So
instead of doing a
> refresh after all the values are changed, refresh the
array EVERY TIME you
> change a value. I realized that without doing this, the
"for each" loop
> doesn't
> loop through the filtered array correctly. Some items
gets accessed twice
> and
> some don't get accessed at all. This explains the "true,
false, true,
> false,
> ..." alternating result I got previously.
>
> However, I was not able to reproduce this problem using
a 5000-item toy
> ArrayCollection (different objects). Flex made the right
value changes
> with
> only one array refresh at the end.
>
>
>
quote:
Originally posted by:
Newsgroup User
> Sorry.. I can't help you without see some code.
> Rgds
>
> JFB
>
>
> "scabbage" <[email protected]> wrote in
message
> news:[email protected]...
> > JFB,
> >
> > I followed what you said and did a
myArray.refresh() after I changed all
> > my
> > myArray.someProperty from false to true (myArray is
the filtered array).
> > However, in the Datagrid, the someProperty column
didn't show "true"
> > everywhere, but with true and false alternating
(false, true, false,
> > true,
> > false...) across the datagrid. Any idea how this
coud be solved?
> >
> > Thanks.
> >
>
>
>
>
>
>

Similar Messages

  • ArrayCollection to populate Datagrid

    Hi,
    Im having problems getting my own array data to bind to a
    dataGrid. I've tried formating my array data several ways but none
    work. Here is an example of one of the iterations i have tried
    which i beleive should work. I build my array like this ...
    for(i) {
    arrayName.push( [{ fieldName1: value
    , fieldName2: value}] );
    which gives me a nice 2d array. this is put in an
    arrayCollection which is bindable....
    arrayCol = new ArrayCollection( arrayName);
    and it is set as the dataProvider for my grid and the
    fieldNames are set as the column dataFields ...
    <mx:DataGrid x="424" y="425" height="125" width="340"
    id="grd" editable="true" enabled="true"
    dataProvider="{arrayCol}">
    <mx:columns>
    <mx:DataGridColumn headerText="Tag"
    dataField="fieldName1" editable="false"/>
    <mx:DataGridColumn headerText="Tag Value"
    dataField="fieldName1" editable="true"/>
    </mx:columns>
    </mx:DataGrid>
    The dataGrid does populate in the sense that i am allowed to
    select the rows; the number of rows that my array consists of ...
    however the cells are empty. I've spent a fair time trying to work
    this out and search the docs / this forum. If anyone has any
    recommendations about how to bind array / arrayCollection data to a
    dataGrid it would be greatly appreciated.
    Regards

    The way you have it structured, it looks like you have a
    two-dimensional array
    where the second dimension always just contains a single
    item. Unless I'm
    misinterpreting your goal, the way to change this would be to
    remove the extra
    left/right brackets in your arrayName.push:
    change
    arrayName.push( [{ fieldName1: value<i> , fieldName2:
    value<i>}] );
    to
    arrayName.push( { fieldName1: value<i> , fieldName2:
    value<i>} );
    That way, you have a one-dimensional array, but each item in
    that array has a
    field named 'fieldName1' and another field named
    'fieldName2'.
    Here is a complete sample that works for me (with the latest
    internal build --
    I haven't tried beta 3):
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute"
    creationComplete="initData()">
    <mx:Script>
    <![CDATA[
    import mx.collections.ArrayCollection;
    public var mydata:Array;
    [Bindable]
    public var arrayCol:ArrayCollection;
    private function initData():void
    mydata = [];
    mydata.push( { fieldName1: '1', fieldName2: '2' } );
    mydata.push( { fieldName1: '3', fieldName2: '4' } );
    arrayCol = new ArrayCollection(mydata);
    ]]>
    </mx:Script>
    <mx
    ataGrid x="424" y="425" height="125" width="340"
    id="grd" editable="true"
    enabled="true" dataProvider="{arrayCol}">
    <mx:columns>
    <mx
    ataGridColumn headerText="Tag" dataField="fieldName1"
    editable="false"/>
    <mx
    ataGridColumn headerText="Tag Value"
    dataField="fieldName2"
    editable="true"/>
    </mx:columns>
    </mx
    ataGrid>
    </mx:Application>
    Mike Morearty
    Developer, Flex Builder team
    http://www.morearty.com/blog
    McDusty wrote:
    > Hi,
    >
    > Im having problems getting my own array data to bind to
    a dataGrid. I've tried
    > formating my array data several ways but none work. Here
    is an example of one
    > of the iterations i have tried which i beleive should
    work. I build my array
    > like this ...
    >
    > for(i) {
    > arrayName.push( [{ fieldName1: value<i> ,
    fieldName2: value<i>}] );
    > }
    >
    > which gives me a nice 2d array. this is put in an
    arrayCollection which is
    > bindable....
    >
    > arrayCol = new ArrayCollection( arrayName);
    >
    > and it is set as the dataProvider for my grid and the
    fieldNames are set as
    > the column dataFields ...
    >
    > <mx
    ataGrid x="424" y="425" height="125" width="340"
    id="grd" editable="true"
    > enabled="true" dataProvider="{arrayCol}">
    > <mx:columns>
    > <mx
    ataGridColumn headerText="Tag" dataField="fieldName1"
    > editable="false"/>
    > <mx
    ataGridColumn headerText="Tag Value"
    dataField="fieldName1"
    > editable="true"/>
    > </mx:columns>
    > </mx
    ataGrid>
    >
    > I've spent a fair time trying to work this out and
    search the docs / this
    > forum. If anyone has any recommendations about how to
    bind array /
    > arrayCollection data to a dataGrid it would be greatly
    appreciated.
    >
    > Regards
    >

  • Filtering XMLList used for DataGrid

    I'm using an HTTPService to load a database table into an
    XMLList, which is then used as the dataProvider for a dataGrid. I
    can't find anything online for filtering this datagrid , i can only
    find stuff for filtering using an ArrayCollection, can someone help
    me? I'd prefer not to have to send HTTPService requests back and
    forth for filter the datagrid, I'd rather just filter the XMLList
    that was loaded at the start of the application

    "cokeeffe" <[email protected]> wrote in
    message
    news:gm1vfg$5ja$[email protected]..
    > OK, I've got it to work using this
    >
    > var items:XMLList = event.result.person.(city ==
    txtSearch.text);
    >
    > where txtSearch is a text box. However my problem now
    is, I have to spell
    > the
    > word fully and correctly for it to show the appropriate
    results. If I
    > don't,
    > while I'm typing the word, the datagrid goes empty, and
    then once spelt
    > correctly, the results appear.
    >
    > So is there a way to show the relevant results while im
    typing the word.
    >
    > EG, If I wanted New York results to appear, If I type in
    Ne , most words
    > beginning with Ne would appear in the datagrid.
    >
    > Kind of like how the % or modulus works in SQL queries
    to show similar
    > results.
    Use a filterFunction on the dataProvider.

  • Editing filters - to affect a whole track, not just the clip?

    I'm cutting a four camera shoot and need to match the colours. I have each camera on a separate track, and I got a basic balance before I started lopping. But as usual I want to give it a bit of a tweak now I'm looking at the cuts.
    I can work down the time-line changing the colour on each shot, or re-pasting from my best saved version, but what I'd prefer to do is to select a whole track (one camera, lots of shots) and adjust ALL the filter effects on ALL the shots at once.
    Is that possible, does anyone know?
    Thanks
    Intel MacBook Pro   Mac OS X (10.4.8)  

    I have my early versions in my favourites folder and I can easily adapt and re-apply along the track - butv that's time-consuming and I was hoping that apple had thought up a quick way - as most other software designers have.
    What I'm really hoping to findis something akin to a style menu - so that once all the filters are applied to the clips editing one filter will change all the other selected filters, or possibly all the other clips on that track.
    I don't set angles as I'm not using multiclip. I use one track per camera, so have no problem selecting all the clips for each cam.
    The above all seem to involve treating individual clips rather than applying to a track, group or gang - which is what I'm really after.
    Thanks for the ideas!

  • If I edit an item in a datagrid is it possible to add an effect to that entire row?

    If I edit an item (default ItemRenderer) in a datagrid is it
    possible to add an effect to that entire row?

    If you are using the mail app - Tap and hold down on the attachment icon in the email and that should bring up a window that says Open In. Do you not get that? Then you can select Pages from that window - assuming that you have Pages on the iPad.
    The attachment should open when you tap on it anyway, even if you don't have Pages.

  • Making TDs editable creates visual mess

    When I make table cells ice editable it creates a visual mess in the editor. There seem to be overlapping region borders on the tables making it very difficult to read the content. or perhaps its also showing row borders (no the rows aren't marked as editable)
    see screenshot below
    thanks
    gregory

    Below is the code that I was referring to but didn't get inluded...
    gf
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <html><!-- InstanceBegin template="/Templates/trips.dwt" codeOutsideHTMLIsLocked="false" -->
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <!-- InstanceBeginEditable name="head" -->
    <title>Colorado Rafting Colorado Whitewater Rafting in Colorado</title>
    <META NAME="description" content="Colorado whitewater rafting offering Colorado rafting and whitewater rafting in Colorado." >
    <META NAME="KEYWORDS" CONTENT="colorado rafting,rafting colorado,colorado whitewater rafting,whitewater rafting in colorado,arkansas river rafting,river rafting arkansas,rafting arkansas river,arkansas river whitewater rafting,arkansas river white water rafting,whitewater rafting vacations,rafting vacations,white water rafting vacations,colorado vacation,colorado whitewater rafting vacation" >
    <META NAME="robots" content="index,follow" >
    <meta name="GOOGLEBOT" content="index,follow" >
    <META NAME="revisit-after" CONTENT="14 days" >
    <script src="js/swfobject.js" type="text/javascript"></script>
    <link href="css/icestyles.css" rel="stylesheet" type="text/css" ice:classes="*">
    <script src="/includes/ice/ice.js" type="text/javascript"></script>
    <link href="css/stylesheet.css" rel="stylesheet" type="text/css">
    <link href="css/layout.css" rel="stylesheet" type="text/css">
    <link href="css/menus.css" rel="stylesheet" type="text/css">
    <link href="p7tm/p7tmpastelboxes.css"  rel="stylesheet"  type="text/css">
    <style type="text/css" media="screen">
    <!--
    @import url("p7tp/p7tp_06.css");
    -->
    </style>
    <style type="text/css" media="screen">
    <!--
    @import url("p7pm/p7pmh24.css");
    -->
    </style>
    <script type="text/javascript" src="p7tp/p7tpscripts.js"></script>
    <script type="text/javascript" src="p7tm/p7tmscripts_mod.js"></script>
    <link href="p7pm/p7pmh24.css" rel="stylesheet" type="text/css">
    <!-- InstanceEndEditable -->
    <script type="text/javascript" src="p7pm/p7popmenu.js"></script>
    <link rel="stylesheet" href="p7tm/p7tmbasic.css" type="text/css">
    <style type="text/css">
    <!--
    .style1 {color: #FFFFFF}
    -->
    </style>
    </head>
    <body onLoad="P7_TMopen();P7_initPM(1,3,1,0,10);P7_initTP(6,1)">
    <!-- InstanceBeginEditable name="banner" --><div id="bannerTop" style="background-image:url(images/headerpic_packages.jpg)"><div id="flashcontent"></div>
      <script type="text/javascript">
            // <![CDATA[
            var so = new SWFObject("waorafting_frame.swf", "waorafting", "986", "285", "8", "#ffffff");
            so.addParam("wmode", "transparent");
            so.write("flashcontent");
            // ]]>
        </script>
    </div><!-- InstanceEndEditable -->
    <div class="container">
    <?php require ("menubar_1.php"); ?>
    <div id="centerRow">
      <div id="sidebar1"><!-- InstanceBeginEditable name="EditRegion6" -->
        <?php require ("sidemenu_2.php"); ?>
      <!-- InstanceEndEditable --><!-- InstanceBeginEditable name="sidebar" --><!-- #BeginLibraryItem "/Library/Book Now box.lbi" --> <div class="bookBox"><p class="bookText" style="text-align:center" ><strong>Book your  Trip Now!</strong></p>
        <p class="bookText">Call: <span class="black"><strong>800.530.8212</strong></span><br>
          or<br>
          <a href="booknow.html"><img src="images/btn_book_on.gif" alt="book now" width="180" height="68"  style="padding-top:10px; border:none"></a></p>
        </div><!-- #EndLibraryItem --> <div class="quoteBox"  ice:editable="*">
      <p>
        I want to thank you for the enjoyable time both my husband and I had rafting with your company. We have been rafting several times, but your company was the most FUN and enjoyable of any company we have used.<br>
        <br>
        We WILL be back.<br>
        <br>
      </p>
      <p class="speaker">
        Susan Swanson<br>
        Mesa, AZ
      </p>
      <p class="speaker"> 
      </p>
    </div>
          <!-- InstanceEndEditable --></div>
    <!-- InstanceBeginEditable name="content" -->
    <div class="contentB">
      <div id="p7TP1" class="p7TPpanel">
        <div class="p7TPheader">
         <div ice:editable="*"><h1>Rafting Packages</h1></div>
        </div>
        <div class="p7TPwrapper">
          <div class="p7TP_tabs">
            <div id="p7tpb1_1" class="down"><a class="down" href="javascript:;">Raft & Ride</a></div>
            <div id="p7tpb1_2"><a href="javascript:;">Rafting & Bridge</a></div>
            <div id="p7tpb1_3"><a href="javascript:;">Raft & Stay</a></div>
            <div id="p7tpb1_4"><a href="javascript:;">Rock & Raft</a></div>
            <br class="p7TPclear">
          </div>
          <div class="p7TPcontent">
            <div id="p7tpc1_1">
              <div class="dataContainer"  >
                <table width="100%" border="0" cellpadding="0" cellspacing="5">
                    <tbody ice:repeatinggroup="*">
                  <tr class="dataUnit">
                    <th  ice:editable="*" width="16%" class="dataLabel" > </th>
                    <th  ice:editable="*" width="38%" class="tableHeader">1/2 Royal Gorge Raft Trip</th>
                    <th  ice:editable="*" width="46%" class="tableHeader">1/2 Day Bighorn Sheep Canyon Raft Trip</th>
                  </tr>
                  <tr class="dataUnit" ice:repeating="true">
                    <td  ice:editable="*"  class="dataLabel">Price:</td>
                    <td  ice:editable="*" class="dataUnit">$99.25/person</td>
                    <td  ice:editable="*" class="dataUnit">$87.75/person,  $67.75 age 12 &amp; under</td>
                  </tr>
                  <tr>
                    <td  ice:editable="*" class="dataLabel">Check-in:</td>
                    <td  ice:editable="*" class="dataUnit">8:30 AM for rafting, 3:00 PM for train</td>
                    <td  ice:editable="*" class="dataUnit">8:30 AM for rafting, 3:00 PM for train</td>
                  </tr>
                  <tr>
                    <td  ice:editable="*" height="26" class="dataLabel">Difficulty:</td>
                    <td  ice:editable="*" class="dataUnit">moderate/advanced </td>
                    <td  ice:editable="*" class="dataUnit">beginner/moderate</td>
                  </tr>
                  </tbody>
                </table>
              </div>
      <div  ice:editable="*">
      <p class="paraHeading ">
        Royal Gorge Scenic Train &amp; Raft Package
      </p>
      <div class="floatboxRight">
        <img src="images/royal_gorge_route_1.jpg" alt="royal gorge" class="photoFrame" width="223" height="154">
      </div>
      <p class="bodystyle">
        This package combines a half day of rafting in the morning with an afternoon ride on the Royal Gorge Scenic Train Route. The train ride through the Royal Gorge has been called "the most arresting scenic site in all of American railroading".
      </p>
      <p class="bodystyle"> 
      </p>
      <div class="clearfloat"></div>
      <p class="bodystyle">
        <span style="font-weight: bold;">1/2 Day Royal Gorge with Train Ride</span>
      </p>
      <div class="floatboxRight ">
        <img src="images/0036.jpg" alt="royal gorge" class="photoFrame" width="300" height="200">
      </div>
      <p class="bodystyle firstPara">A Colorado classic, the half day Royal Gorge is the most popular trip we run among locals and repeat guests. The best white water on the Arkansas River combined with the some of the most spectacular scenery in the State. We are certain this adventure will leave you in awe. </p>
      <p class="bodystyle">
        <span style="font-weight: bold;">1/2 Day Big Horn Sheep Canyon with Train Ride</span><br>
        The <a href="trips_day.html">Bighorn Sheep Canyon raft trip</a> is an excellent adventure for first time rafters and familys with children, it's fun, splashy and appropriate for nearly anyone.
      </p>
    </div>
            </div>
            <div id="p7tpc1_2">
              <div  ice:editable="*"><h2>Royal Gorge Bridge Ticket &amp; Raft Trip</h2></div>
              <div class="dataContainer">
                <table width="100%" border="0" cellpadding="0" cellspacing="3">
                     <tbody ice:repeatinggroup="*">
                  <tr class="dataUnit">
                    <th   width="16%" class="dataLabel" ></th>
                    <th  ice:editable="*" width="42%" class="tableHeader">Over and Under Combo</th>
                    <th  ice:editable="*" width="42%" class="tableHeader">Family Fun Combo</th>
                  </tr>
                  <tr class="dataUnit" ice:repeating="true">
                    <td  ice:editable="*"  class="dataLabel">Price:</td>
                    <td  ice:editable="*" class="dataUnit">$82.75/person</td>
                    <td  ice:editable="*" class="dataUnit"> $70.75/person,
                      $56.75 age 12 &amp; under</td>
                  </tr>
                  <tr>
                    <td  ice:editable="*" class="dataLabel">Check-in:</td>
                    <td  ice:editable="*" class="dataUnit">8:30 AM</td>
                    <td  ice:editable="*" class="dataUnit">8:30 AM</td>
                  </tr>
                  <tr>
                    <td  ice:editable="*" class="dataLabel">Difficulty:</td>
                    <td  ice:editable="*" class="dataUnit">moderate/advanced</td>
                    <td  ice:editable="*" class="dataUnit">beginner/moderate</td>
                  </tr>
                  </tbody>
                </table>
              </div>
              <div  ice:editable="*"><p class="paraHeading ">Over and Under Combo</p>
              <div class="floatboxRight"> <img src="images/river_rafting_1.jpg" alt="royal gorge" width="300" height="200" class="photoFrame"></div>
              <p class="bodystyle firstPara"><strong>Rafting:</strong> A Colorado classic, the half day Royal Gorge is the most popular trip we run among locals and repeat guests. The best white water on the Arkansas River combined with the some of the most spectacular scenery in the State. We are certain this adventure will leave you in awe. </p>
              <p class="bodystyle firstPara"><strong>Royal Gorge Bridge &amp; Park: </strong>Royal Gorge Bridge and Park in Colorado is the most visited theme park and wildlife park in the Pikes Peak Region. This historical landmark features scenic beauty and natural attractions as well as the world's highest Suspension Bridge, world's longest single-span Aerial Tram, world's steepest Incline Railway and the newest thrill ride, the world's highest Skycoaster®. This has proven to be the most popular family fun attraction in the Royal Gorge &amp; Canon City area for decades.</p>
              <p class="bodystyle firstPara"> </p>
              <p class="paraHeading ">Family Fun Combo</p>
              <div class="floatboxRight"> <img src="images/bridge.jpg" alt="royal gorge" width="300" height="444" class="photoFrame"></div>
              <p class="bodystyle firstPara"><strong>Rafting:</strong> Perfect for the &quot;nervous novice&quot; and families who want to experience a whitewater raft trip together. Appropriate for nearly anyone. This trip is rated class II &amp; III. This is a pool-drop section of the Arkansas, meaning there are plenty of splashy, fun filled rapids with long sections of relatively calm floating in between. Exciting for adults and absolutely thrilling for the kids. This is also the best section to catch a glimpse of wildlife, including Colorado's largest herd of Bighorn Sheep.</p>
              <p class="bodystyle firstPara"><strong>Royal Gorge Bridge &amp; Park: </strong>Royal Gorge Bridge and Park in Colorado is the most visited theme park and wildlife park in the Pikes Peak Region. This historical landmark features scenic beauty and natural attractions as well as the world's highest Suspension Bridge, world's longest single-span Aerial Tram, world's steepest Incline Railway and the newest thrill ride, the world's highest Skycoaster®. This has proven to be the most popular family fun attraction in the Royal Gorge &amp; Canon City area for decades.</p>
              <p class="bodystyle firstPara"></p>
              <p class="bodystyle firstPara"> </p>
              </div>
            </div>
            <div id="p7tpc1_3">
              <div  ><h2>Ca&ntilde;on City Comfort Inn Package</h2></div>
              <div class="clearfloat"></div>
              <div class="dataContainer">
                          <table width="100%" border="0" cellpadding="0" cellspacing="7">
                                 <tbody ice:repeatinggroup="*">
                  <tr class="dataUnit" ice:repeating="true">
                    <td   width="13%"  class="dataLabel" ice:editable="*">Price:</td>
                    <td   width="87%" class="dataUnit" ice:editable="*">$650.00 ( based on 2 adults and two kids)
                      additional child activities only: $80.00</td>
                  </tr>
                  <tr>
                    <td  class="dataLabel" ice:editable="*">Included:</td>
                    <td class="dataUnit" ice:editable="*">2 nights lodging, 1/2 day Bighorn Sheep Canyon raft trip, Royal Gorge Bridge &amp; park, Buckskin Joe Frontier Town &amp; Railway, Royal Gorge Route Scenic Train ride,</td>
                  </tr>
                  </tbody>
                </table>
                 </div>
              <div class="floatboxRight"> <img src="images/comfort_inn.jpg" alt="royal gorge" width="300" height="200" class="photoFrame"> </div>
             <div  ice:editable="*"> <p class="bodystyle">The Cañon City Comfort Inn is conveniently located within walking distance of restaurants and local activities. All the large guest rooms are tastefully decorated and equipped with private bathrooms with showers. Choose a room with either 2 queen size beds or a king. The modern facility has an indoor pool and hot-tub and includes a continental breakfast.</p>
              <p class="bodystyle">The Bighorn Sheep Canyon rafting trip is an excellent raft trip for first time rafters and families with children, it's fun, splashy and appropriate for nearly anyone aged 6 and up.</p>
              <p class="bodystyle">Experience Colorado's own world wonder, the Royal Gorge Bridge &amp; Park. At 1,053 feet high, the panoramic vistas of the gorge are as awesome as the Grand Canyon. Spanning a quarter mile across is the world's highest suspension bridge, an engineering feat as inspiring as the Eiffel Tower. </p>
              <div class="floatboxRight"> <img src="images/royal_gorge_route_1.jpg" alt="royal gorge" width="223" height="154" class="photoFrame"> </div>
              <p class="bodystyle">The spirit of the old west explodes to life at Buckskin Joe Frontier Town and Railway, with hourly gun-fights, some historical and some humorous, exciting live entertainment, barnyard animals for the kids, and everything you could imagine in an old west town plus more. The town sits on the edge of the Royal Gorge canyon, and has a mountain gauge train that takes you to the edge to view the canyon and the famous Royal Gorge Bridge.</p>
              <p class="bodystyle">The Royal Gorge Route train ride through the Royal Gorge has been called &quot;the most arresting scenic site in all of American railroading&quot;. This train has 3 departures daily from Memorial Day through Labor Day.</p>
            </div>
            </div>
            <div id="p7tpc1_4">
              <div ice:editable="*"><h2>Rock Climbing & Rafting Package</h2></div><br><br>
              <div class="dataContainer">
                <table width="100%" border="0" cellpadding="0" cellspacing="5">
                                <tbody ice:repeatinggroup="*">
                  <tr class="dataUnit">
                    <th   width="14%" class="dataLabel" > </th>
                    <th   width="43%" class="tableHeader"><div ice:editable="*">1/2 Day Climbing &amp; 1/2 Day Raft Trip</div></th>
                    <th   width="43%" class="tableHeader"><div ice:editable="*">Full Day Climbing &amp; Full Day Raft Trip</div></th>
                  </tr>
                  <tr class="dataUnit"  ice:repeating="true">
                    <td    class="dataLabel" ><div ice:editable="*">Price:</div></td>
                    <td   class="dataUnit"><div ice:editable="*">$455.00/two people</div></td>
                    <td   class="dataUnit"><div ice:editable="*">$510.00/two people</div></td>
                  </tr>
                  <tr>
                    <td   class="dataLabel"><div ice:editable="*">Check-in:</div></td>
                    <td   class="dataUnit"><div ice:editable="*">Call for details</div></td>
                    <td  class="dataUnit"><div ice:editable="*">Call for details</div></td>
                  </tr>
                  <tr>
                    <td   class="dataLabel"><div ice:editable="*">Difficulty:</div></td>
                    <td   class="dataUnit"><div ice:editable="*">moderate/advanced</div></td>
                    <td    class="dataUnit"><div ice:editable="*">moderate/advanced</div></td>
                  </tr>
                  </tbody>
                </table>
              </div>
              <div ice:editable="*"><p class="bodystyle"><strong>Climbing</strong><br>
              </p>
              <div class="floatboxRight"> <img src="images/manclimbing.jpg" alt="royal gorge" width="195" height="259" class="photoFrame"> </div>
              <p class="bodystyle">Rock climbing is probably the most popular type of climbing. It can be learned in a day, done indoors or outdoors, and uses a relatively small amount of equipment. If you've always wondered what exactly is involved in rock climbing, this will give you a general view. Experience the thrill of rock climbing while learning basic rock safety and climbing technique during these outings.</p>
              <p class="bodystyle">The Front Range Climbing Company offers guided day trips for beginners or intermediates that provide a wide variety of climbing experiences, including remote alpine spires high on Pikes Peak, gentle sandstone towers in the Garden of the Gods and granite pinnacles in North Cheyenne Canyon Park. The Pikes Peak region offers some of the greatest variety of climbing found anywhere.</p>
              <p class="bodystyle">All equipment is provided; you need only to bring your sunscreen, sunglasses and lunch.</p>
              <p class="bodystyle"><strong>Rafting</strong> - Full day<br>
              </p>
              <div class="floatboxRight"> <img src="images/river_rafting_2.jpg" alt="royal gorge" width="300" height="200" class="photoFrame"> </div>
              <p class="bodystyle">The Full Day <a href="trips_day.html">Royal Gorge raft trip</a> is our most popular trip, beginning in Bighorn Sheep Canyon in the morning. You'll run Class II and III+ rapids, such as Wake-Up, Three Rocks, Five Points, Spikebuck and Sharkstooth, then it's a stop at the beach for our gourmet lunch, and on to the Class IV and V rapids of the Royal Gorge. The Royal Gorge itself contains some of the most beautiful scenery on the river, you'll pass under the Royal Gorge Bridge, spanning the river 1053' above you, while running seven miles of nearly continuous whitewater. You'll run Sunshine Falls, Sledgehammer and Boateater, just to mention a few of the exciting rapids the Royal Gorge has to offer. This is considered to be one of the best whitewater runs in the western U.S.</p>
              <p class="bodystyle"><strong>Rafting</strong> - Half day<br>
                A Colorado classic, the half day Royal Gorge is the most popular trip we run among locals and repeat guests. The best whitewater on the Arkansas River combined with the some of the most spectacular scenery in the State. We are certain this adventure will leave you in awe. We recommend the morning check-in time on this one with less &quot;river traffic&quot; and nearly always warm sunshine. Our guides covet the &quot;morning Gorge&quot; trip. WAO offers the shortest shuttles possible during this trip. Class III - V thrills.</p>
            </div>
            </div>
          </div>
        </div>
        <!--[if lte IE 6]>
    <style type="text/css">.p7TPpanel div,.p7TPpanel a{zoom:100%;}.p7TP_tabs a{white-space:nowrap;}</style>
    <![endif]-->
        <!--[if IE 7]>
    <style>.p7TPpanel div{zoom:100%;}</style>
    <![endif]-->
      </div>
      <div class="clearfloat"> </div>
    </div>
    <!-- InstanceEndEditable -->
      <div class="clearfloat"> </div>
      </div>
       <?php require ("footer_1.php"); ?>
             <!-- InstanceBeginEditable name="SubFooter" -->
    <?php require ("subfooter_1.php"); ?>
      <!-- InstanceEndEditable --> 
      <div class="clearfloat"></div><br /><br> <br>
    </div></body>
    <!-- TemplateEnd --><!-- InstanceEnd --></html>

  • How to edit selected rows in a datagrid?

    Hi all,
    I am new to flex and I would like to know how to edit
    selected rows( through check boxes) in a data grid. As of now the
    whole data grid becomes editable.
    Regards
    Saran.

    This is not simple in Flex 2.0.
    You will need to use a custom itemRenderer.
    Search the net, perhaps someone has a component or sample
    close to what you want.
    Tracy

  • All of my ophotoshop filters are messed up and missing.

    Default filters are missing, other filters are missing. Why is it all scarewed up?

    We can't know. You have not provided any relevant technical info about your system, image modes, image types, the workspace/ menu set and so on. Yeah, it's some Mac, but then what?
    Mylenium

  • User edition report got messed. Restore from DB Backup?

    Hi All,
    DBA new to discovere so excuse the ignorance.
    Yesterday tried manipulating a report in Discoverer User Edition
    There were 2 sheets, added one column in one of the sheet and saved the report. Surprisingly the other sheet 'Disappeared'.
    Don't know wat happened, but I have already restored the DB from the previous backup on a separate machine since the report was saved in DB.
    Now my question is:
    HOW to restore the report from the backup? I'm an absolute novice and don't have much time to go thru the manual, just for now
    TIA
    Naveen

    if you've restored apex to an auxiliary instance, then just log into apex on the auxiliary instance, and export the application (or application pages) that are missing.
    its probably safer to do the following:
    i) export your production apex appliation.
    ii) import it to your auxiliary instance(using a different application id)
    iii) copy the required pages from your auxiliary instance to your production instance copy
    iv) verify your production instance copy works as expected
    v) export your production instance copy from aux instance
    vi) import v to your production instance.
    I always export my apps and keep the exports under source control
    that way, I can always get something back.
    NB: The aux instance will need its own http server.

  • Ios7 editing playlist - Apple messing with my head

    I've been trying to edit a playlist while music is playing.  If I remove a song it disappears from the list, then things get weird.  The deleted song somehow goes to the top of the playlist, but doesn't show up there (makes perfect sense, huh?).  For example, the top song in your list is an AC/DC song and the then further down you delete a Crystal Method song.  The Crystal Method song disappears from the list, but if you go to top of the list, and click on the AC/DC song it will play the Crystal Method song.  If you click on the second song in your list, it will play the AC/DC song.  This keeps happening each time you delete a song.  Meaning if you delete 5 songs, and then want to play a song in your playlist, you will need to click on the song 5 songs below your desired song.

    I've been trying to edit a playlist while music is playing.  If I remove a song it disappears from the list, then things get weird.  The deleted song somehow goes to the top of the playlist, but doesn't show up there (makes perfect sense, huh?).  For example, the top song in your list is an AC/DC song and the then further down you delete a Crystal Method song.  The Crystal Method song disappears from the list, but if you go to top of the list, and click on the AC/DC song it will play the Crystal Method song.  If you click on the second song in your list, it will play the AC/DC song.  This keeps happening each time you delete a song.  Meaning if you delete 5 songs, and then want to play a song in your playlist, you will need to click on the song 5 songs below your desired song.

  • Update variable after datagrid edited

    I have 4 variables that are numbers being retrieved and assigned to an arraycollection for a datagrid
    private var myDataProvider:ArrayCollection= new ArrayCollection([{col1:'Approaching headlights', col2:myVar1},
    {col1:'Bright lights in my eyes', col2:myVar2},
    {col1:'Dogs Barking', col2:myVar3},
    {col1:'Fighting with friends', col2:myVar4}]);
    The datagrid (col2) gets sorted in descending order and then the user is able to change the values.  Somehow I need to have the corresponding variable updated if/when a user edits that particular cell.  If I'm on the line with Dogs Barking and edit the value from say," 3" to "5", then myVar3 needs to be updated to "5' as well.  The datagrid could be in any order depending on what values have been assigned to each and I can't find a way to get those variables updated.

    Then you may be interested in the property "rendererIsEditor" available to datagrid columns.  Here is an adobe link going into more depth
    along with an example.
    http://livedocs.adobe.com/flex/3/html/help.html?content=celleditor_3.html

  • Editable Datagrid with LabelFunction Problems

    Hi,
    I'm having problems with a datagrid with editable columns and labelFunctions.
    The problem is that when i leave the editable field by a way that wasnt with Escape Key, the datagrid apply again the labelFunction and destroy the number formattion adding a lot of numbers.
    When the field is filled with 0000,00 he just adds more zeros, like 0.000.000,0000 and keep going after do the same process.
    And when the field has a number different of zero, he apply the labelFunction then after he remove the labelFunction. After few times it just make the number vanish and the cell goes empty.
    I read the documentation about editing cell and tryed to implement a solution to prevent the cell be edited, without sucess.
    The source code goes attached for some advice on my problem.
    Thanks, Fredy.

    Hi,
    I solved a part of problem with some changes that i've made.
    Now there is no problem with values different of zero, when i got just number, its fine, but still have problems with zero values.
    The snippet code goes next, the bold part that was modified from the last sample.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
         layout="vertical"
         backgroundColor="white">
         <mx:Script>
              <![CDATA[
                   import mx.controls.Alert;
                   import mx.events.DataGridEventReason;
                   import mx.controls.TextInput;
                   import mx.controls.dataGridClasses.DataGridColumn;
                   import mx.formatters.NumberFormatter;
                   import mx.events.DataGridEvent;
                   import mx.collections.ArrayCollection;
                   [Bindable] private var collection:ArrayCollection = new ArrayCollection([
                        {code:1, description:"Item 1", value:4564654},
                        {code:2, description:"Item 2", value:00000000},
                        {code:3, description:"Item 3", value:00000000},
                        {code:4, description:"Item 4", value:00000000},
                        {code:5, description:"Item 5", value:00000000},
                        {code:6, description:"Item 6", value:00000000},
                        {code:7, description:"Item 7", value:00000000}
                   private var formatter:NumberFormatter;
                   private function formatterFunction(item:Object, column:DataGridColumn):String {
                      if (formatter == null){
                           formatter = new NumberFormatter();
                           formatter.decimalSeparatorTo = ",";
                           formatter.thousandsSeparatorTo = ".";
                           formatter.decimalSeparatorFrom  = ",";
                           formatter.thousandsSeparatorFrom = ".";
                           formatter.useThousandsSeparator = true;
                           formatter.precision = 4;
                      return formatter.format(item[column.dataField]);
                 private function editEndHandler(event:DataGridEvent):void {
                    var myEditor:TextInput = TextInput(event.currentTarget.itemEditorInstance);
                    var newVal:Number = isNaN(Number(myEditor.text)) ? myEditor.text as Number : 0.0000;
                    var oldVal:Number = Number(event.currentTarget.editedItemRenderer.data[event.dataField]);
                     // it solves the partial part of the problem, but still have some errors
                     if (event.reason == DataGridEventReason.CANCELLED || event.reason == DataGridEventReason.OTHER) {
                        return;
                    if (oldVal == newVal ) {
                             // i've tryed this, but the itemEditor still open
                             event.preventDefault();
                             // if I just put 'return', still have the same problem
                             // return;
              ]]>
         </mx:Script>
         <mx:Label text="Bug datagrid editavel com labelFunction"
              fontSize="16"
              fontWeight="bold" />
         <mx:DataGrid dataProvider="{collection}"
              editable="true"
              itemEditEnd="editEndHandler(event)">
              <mx:columns>
                   <mx:DataGridColumn headerText="Código"
                        dataField="code"
                        editable="false"/>
                   <mx:DataGridColumn headerText="Descrição"
                        dataField="description"
                        editable="false"/>
                   <mx:DataGridColumn headerText="Valor"
                        width="300"
                        dataField="value"
                        labelFunction="formatterFunction"
                        editable="true"/>
              </mx:columns>
         </mx:DataGrid>
    </mx:Application>
    @Alex
    Thanks for the answer.
    I want to edit this column, but if there is no 'change' i dont want to apply again the label function and close the itemEditor.
    I've tryed to call event.preventDefault() but i dont know what to do next.
    Do you have some advice how to solve my problem?
    This is just happening when i got zero values on my datagrid =/
    Thanks all for the answers.

  • Load xml to Datagrid, add row or edit and save it to the xml file??

    Good afternoon,
    I know how to load the xml, add a row or edit the data in a datagrid . Only thing I dont't  know
    how to save the changes to the xml file. I'm ussing Flash Professional CC and it wil be an Adobe Air
    desktop application.

    Hi, and thank for the reply. Problem is not saving the xml, but getting the edited or new rows in the datagrid  to be saved in the xml.....

  • Editable DataGrid With DateField

    I'm new to flex and struggling with the editable DataGrid. I
    have a DataGrid with an ItemRenderer that outputs a DateField. I
    can't figure out how to get the new value of the DateField after
    the edit.
    Here is my DataGrid (the endDate column):
    <mx:DataGrid id="allHistoryGrid"
    dataProvider="{allEntries}" height="313" width="782" y="-4"
    itemEditEnd="saveGridChange(event)" editable="true">
    <mx:columns>
    <mx:Array>
    <mx:DataGridColumn dataField="dietDescription"
    headerText="Diet"/>
    <mx:DataGridColumn dataField="allergyDescription"
    headerText="Allergy"/>
    <mx:DataGridColumn dataField="labDescription"
    headerText="Lab"/>
    <mx:DataGridColumn dataField="labResult" width="50"
    headerText="Result" itemRenderer="LabResultItemRenderer"/>
    <mx:DataGridColumn dataField="medicationDescription"
    headerText="Medication"/>
    <mx:DataGridColumn dataField="height" width="65"
    headerText="Height" itemRenderer="HeightItemRenderer"/>
    <mx:DataGridColumn dataField="weight" headerText="Weight"
    itemRenderer="WeightItemRenderer"/>
    <mx:DataGridColumn dataField="bmi" width="35"
    headerText="BMI" itemRenderer="BmiItemRenderer"/>
    <mx:DataGridColumn dataField="circumference" width="45"
    headerText="Circ." itemRenderer="CircumferenceItemRenderer"/>
    <mx:DataGridColumn headerText="Start Date" width="75"
    sortCompareFunction="startDateSortCompare">
    <mx:itemRenderer>
    <mx:Component>
    <mx:VBox clipContent="false">
    <mx:DateFormatter id="dateFormatter"
    formatString="MM/DD/YYYY"/>
    <mx:Text width="100"
    text="{dateFormatter.format(data.startDate)}"/>
    </mx:VBox>
    </mx:Component>
    </mx:itemRenderer>
    </mx:DataGridColumn>
    <mx:DataGridColumn dataField="endDate" width="45"
    headerText="End Date" itemRenderer="EndDateItemRenderer"
    rendererIsEditor="true"/>
    <mx:DataGridColumn id="deleteEntry" width="50"
    textAlign="center"
    headerText="Delete" sortable="false"
    itemRenderer="DeleteItemRenderer"/>
    </mx:Array>
    </mx:columns>
    </mx:DataGrid>
    Here is my itemRenderer:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:VBox xmlns:mx="
    http://www.adobe.com/2006/mxml"
    paddingLeft="16" horizontalAlign="center">
    <mx:DateFormatter id="dateFormatter"
    formatString="MM/DD/YYYY"/>
    <mx:DateField x="16" y="67" id="AllHistoryEndDate"
    text="{dateFormatter.format(data.endDate)}"/>
    </mx:VBox>
    How do I get the new value in the saveGridChange function?
    private function saveGridChange(event:DataGridEvent):void {

    That gives me this error:
    TypeError: Error #1034: Type Coercion failed: cannot convert
    EndDateItemRenderer@51a70a1 to mx.controls.TextInput.

  • Editable Datagrid from programmaticaly built XmlListCollection help needed

    Hi, I am trying to build an editable datagrid with 20 empty
    rows in it. Users will fill out the cells, this then gets persisted
    to a DB, then later by making selections in a combobox, they can
    bring this data back for viewing and/or modification. I have been
    trying to create the XML dynamically and then addItem on the
    XmlListCollection to no avail. Can someone please point out where I
    am going wrong? Thanks!
    [Bindable] private var teamGridDataAsXml:XML;
    [Bindable] private var teamGridData:XMLListCollection;
    private function initEmptyTeamGrid():void {
    teamGridData = new XMLListCollection();
    var s:String = "<rows>";
    for(var i:int = 0; i < 20; i++) {
    s += "<row rowIndex=\'" + i + "\' agentId='' firstName=''
    lastName='' country='' />";
    s += "</rows>";
    teamGridDataAsXml = new XML(s);
    teamGridData.addItem(teamGridDataAsXml);
    <mx:DataGrid id="agentInfo" editable="true"
    dataProvider="{teamGridData}" width="100%" height="100%"
    rowCount="20">
    <mx:columns>
    <mx:DataGridColumn headerText="#" dataField="@rowIndex"
    editable="false"/>
    <mx:DataGridColumn headerText="Agent ID"
    dataField="@agentId" editable="true"/>
    <mx:DataGridColumn headerText="First Name"
    dataField="@firstName" editable="true"/>
    <mx:DataGridColumn headerText="Last Name"
    dataField="@lastName" editable="true"/>
    <mx:DataGridColumn headerText="Country"
    dataField="@country" editable="true"/>
    </mx:columns>
    </mx:DataGrid>

    teamGridDataAsXml = new XML(s);
    trace(teamGridDataAsXml.toXMLString() ); to be sure you have
    good xml
    var xlRows:XMLList = teamGridDataAsXml.row;
    trace(xlRows.length()); //what you expect?
    teamGridData =new XMLListCOllection(xlRows);
    You could skip the xml variable and go straignt into the
    XMLListCollection also. In the loop, build the XML node, using XML
    literal syntax, and then call addItem *inside the loop*.
    Tracy

Maybe you are looking for