Bug in drop-in ItemRenderer?

Hello,
In all the examples I have seen online most of the Drop-In
ItemRenderers use an ArrayCollection when a CheckBox is used as the
DataProvider. I tried using an XMLList collection instead and I
don't get any of the CheckBoxes in the ItemRenderer to be checked
when the value is true, by default they all appear as unchecked.
I've tested the values displayed when I take out the ItemRenderer
and they show true or false.
I've tried to see if it made a difference that the values
were either text nodes or attr nodes and it didn't seem to care. So
is this a problem with the Drop-in ItemRenderer? Is this expected
behavior? Do I need to create a LabelFunction to cast the XML value
as a boolean? (I tried and it didn't work either)
I'm kinda baffled and would appreciate any help.
Thanks,
Hoyt
The code is very simple:
XML file:
<root>
<test>
<testValues>
<boolval attr="false">true</boolval>
<boolval attr="true">false</boolval>
<boolval attr="true">true</boolval>
<boolval attr="true">false</boolval>
</testValues>
</test>
</root>
The mxml file:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="absolute" creationComplete="testXML.send();"
cornerRadius="8" borderStyle="solid" borderThickness="2"
borderColor="#000000" themeColor="#00FF00"
backgroundGradientAlphas="[1.0, 1.0]"
backgroundGradientColors="[#008080, #008080]">
<mx:Script>
<![CDATA[
import
mx.controls.advancedDataGridClasses.AdvancedDataGridColumn;
import mx.collections.HierarchicalData;
import mx.binding.utils.ChangeWatcher;
import mx.events.ListEvent;
import mx.events.ItemClickEvent;
import mx.controls.dataGridClasses.DataGridColumn;
import mx.rpc.events.*;
import mx.collections.XMLListCollection;
import mx.controls.*;
import mx.binding.*;
import mx.binding.utils.BindingUtils;
import mx.rpc.xml.*;
[Bindable]
private var testList:XMLListCollection;
private function testXMLHandler(evt:ResultEvent):void {
testList = new
XMLListCollection(evt.result.test.testValues.boolval);
txtArea.text += testList.toString();
]]>
</mx:Script>
<mx:HTTPService id="testXML"
result="testXMLHandler(event)" resultFormat="e4x" url="
http://localhost/~hoytng/Workspace/studentDB/xml/test.xml"/>
<mx:DataGrid x="401" y="18" width="224" height="100"
dataProvider="{testList}">
<mx:columns>
<mx:DataGridColumn headerText="Column 1"
dataField="@attr"/>
<mx:DataGridColumn headerText="Column 2"
dataField="*"/>
</mx:columns>
</mx:DataGrid>
</mx:Application>

Hmm, I don't know off-hand if I'll be able to fix this, because of the following:
1.  The selection list property returns a Wire reference...I don't
know if there's a way for me to figure out which segment of a wire is
selected.
2.  The Insert method only takes a Wire reference...there's no way to
tell it a particular segment of the wire on which you want the insert
to take place.
I'll look into it, but I'm not hopeful it can be fixed without some changes to the internals of VI Scripting...
Thanks for the bug report.
Darren Nattinger, CLA
LabVIEW Artisan and Nugget Penman

Similar Messages

  • BUG: Sorting drop-down lists from the field tab when using "specify item values"

    Hi all,
    I've finished creating my form now, but I came across this whilst writing up my documentation for maintenance tasks.
    This occurs when adding new values to a drop-down list that has the "Specify item values" checkbox in the binding tab checked.
    When I then try to sort my list using the built in sort buttons, it will sort the items, but the list of specified values in the binding tab does not sort reorder to stay with the original items in the list.  This is hapenning when I sort from the Object > Field tab.  If I sort in the Object > Binding tab then the sort will include the specified values.
    For example:
    A    5
    C    2
    D    9
    Add a new value to get:
    A    5
    C    2
    D    9
    B    10
    Sort the list using the button:
    A    5
    B    2
    C    9
    D    10
    But it should be:
    A     5
    B     10
    C     2
    D     9

    I was able to duplicate this problem and it looks like a possible bug.  I've submitted it to support.

  • Is this a bug for drop down box in DS1.3?

    I found that if there were many items (e.g. 50), when I clicked the arrow of the drop down box, it showed the items and then disappeared all the items except "ALL". I have to use "F4" key to display all the items and use scroll bar to show the items.
    It is OK when there are few items and no scroll appears in the list.
    Did anybody meet with the same problem?
    Thank you.

    Roam,
    Thanks again for your suggestion,
    "Furthermore one should always Repair Permissions both before doing a Software Update and again afterwards."
    I honestly dont know anything about this "Repair Permissions" from the name, i though it is a verification of authentication to repair OS or some kind of credential issue, and since i m admin user then there is no point to verify it, i should be allowed to do so. Again it is my first time to do this thing in 3 - 4 years of using panther, every time i update software i never ever do this! If this step is essential for every update and installation why dont apple put them as one of TODO step during the processes (as licensing agreement) instead of keep them as an option (just my thought) Anyway, I m glad u tell me about it, and i will give it a shot tonight.
    "That may because you didn't have sufficient disk space. In fact running out of disk space can create all sorts of problems. Please tell me how disk space is available on your
    start up drive."
    That what I thought coz i have only 5.x GB left in 60 GB HD. Thats why I claimed as whining and have to scarify the lost of data by reinstall panther in order to get my mac back to work
    "So are you saying it is a bug or it is a hacker, I don't believe it is either"
    Please see second update info about password, and i m not impose anyone to believe, thats why the topic is a questioning sentence "Is this a bug.."
    "This Discussion site is not Applecare. The people here give their time voluntarily to those who are receptive to help."
    Thats why i ask for "mac expert" not "apple authority/technician" and always appreciate any suggestion.
    Anyway, that great to hear from you and i have learned new thing from your suggestion. I will let u know when i have tried it.

  • Home Hub 5 Firewall bug causing dropped DSL connec...

    We've had infinity 2 since the start of December (2013) and have had nothing but problems with it.  It frequently (5x a day atm) drops the connection, sometimes it fails to re-obtain the connection so does a full restart.
    We had an engineer round who couldn't find anything wrong with our line, swapped us to another cable pair, but after a week of "stabilisation", the problems were still there.  We had a "new" home hub, which had been left using a test bench WiFi Id, so I suspect it was another faulty return they've given us.  It has been better - possibly 1/2 the number of disconnects, but still having problems.  We had another engineer round, who replaced the backplate on the BT socket with a new one, with better rated capacitor for filtering.  A few days later, not much better.
    What I have noticed from the logs, is that the loss of connection frequently happens a few minutes (normally 2, sometimes 10) after the hub has blocked bogus (normally Chinese) remote admin attempts.  Is there another attempt they're making that kills it, or is there a potential bug in the firewall that trips the reset?
    08:34:03, 01 Feb.
    IN: BLOCK [16] Remote administration (TCP 61.160.195.250:6000->86.134.x.x:22 on ppp3)
    08:05:09, 01 Feb.
    IN: BLOCK [16] Remote administration (TCP 211.75.112.37:61650->86.134.x.x:80 on ppp3)
    It quite often drops the connection just after I have connected using my Android phone (which has no problems with any other device).
    The log (before a reset) also includes bogus entries such as:
    09:08:18, 01 Feb.
    BLOCKED 2 more packets (because of Advanced Filter Rule)
    09:08:17, 01 Feb.
    OUT: BLOCK [44] Advanced Filter Rule (fw/policy/0/chain/fw_ath12_out/rule/0: UDP 0.0.0.0:68->255.255.255.255:67 on ath12)
    Again, the firewall kicking in, just before a reset?  Coincidence?
    Line stats:
    3. Firmware version:
    Software version 4.7.5.1.83.8.173.1.6 (Type A) Last updated 15/01/14
    4. Board version:
    BT Hub 5A
    5. VDSL uptime:
    0 days, 00:28:57
    6. Data rate:
    6446 / 52409
    7. Maximum data rate:
    6616 / 52721
    8. Noise margin:
    6.2 / 6.1
    9. Line attenuation:
    0.0 / 23.2
    10. Signal attenuation:
    0.0 / 21.3
    I'll have to give the line a few more days after last week's engineer visit before they'll listen to me again, but I'm considering cancelling my contract on the grounds they're unable to provide me with a stable broadband connection - despite the same line running standard ADSL perfectly well for 4 years
    Oh, the HH5 also makes a quiet whining and ticking noise if you stick your ear up to it - is this normal?

    You still have the same fault but not with the OR modem. Sounds like the HH5's are faulty
    To say thanks for a helpful answer, please click the white star

  • OS 10.4.9 bug causes dropped networks with large files?

    After updating to OS 10.4.9, I am no longer able to copy large AIFF files from an older Mac G3 running OS 9.x to my G5. (I had no problems with this type of file sharing using 10.4.8.) I have the computers connected via Ethernet and use AppleTalk and OS X file sharing. I do the drag 'n' drop work on the G3 (the only way do move files between an old Mac and a Tiger Mac, now). I can make an initial connection and am able to move small files back and forth, but when I try to drag a large AIFF audio file (25 MB) from the G3 to the G5, the connection immediately fails. An error message appears on the G3:
    "G5 [IP address] via TCP/IP... The file server’s connection has unexpectedly closed down"
    This has put a serious roadblock in my workflow.
    Any advice? (Other than going back to 10.4.8, which is a pain.)
    Power Mac G5 Dual 2.5   Mac OS X (10.4.9)   2.5 GB RAM | Safari 2.0.4 | QuickTime 7.1.5

    As an aside, in my experimintation with the OS9.2.2<->10.4.9 problem, using the old limited version of Shareway IP...
    http://www.opendoor.com/shareway/
    that came with my PM/6500, I find that I can GET files on either Mac from the Other, but cannot PUT files on the other without OS9 freezing, and OS10.4.9 locking up until the OS9 machine is reset... seems the problem is one way!
    Copied 240 MB files from the other machine either way, but trying to copy from the machine in use to the other one just doesn't work... ie. Download fine, Upload no workie in afp,smb, or ftp! :-P

  • Bug(?) Dropping a snippet which browses for SubVIs in not undo-able

    Here is one that fortunately hadn't struck me yet, but is a bit of a pain.
    Situation:  Interesting snippet on forum page.  User has disdain for most MSoft products so refuses to use IE unless there is no other option and iPhone is discharged.  Arrange the browser and desired BD so the drag from browser to desktop to BD can take place.  On the way to the desired BD, a muscle spasm occurs causing the snippet to drop on the wrong BD.  No big deal, after LV does its thing and finds the subVIs I press Ctrl-z.  Nothing.  Now I have to go through and surgically remove the snippet code from the original BD.
    Normal snippet drops are undoable, but apparently not if LV has to browse for a subVI.  LV9 SP1
    Solved!
    Go to Solution.

    Darin-
    I tried to duplicate this situation and I found that you are right, it should work, but doesn't.  I've filed a correction action request to alert R&D ofthe situation.  Thanks for the information.
    -Scott Wiest
    National Instruments
    Applications Engineer

  • Help! Expand Box, Doubled Float Margin Bug & Float Drop Problem

    Hi,
    My website has a title problem in line 159, 161 and 164, and I couldn't fiugre out why since my design view is TOTALL messed up in dreamweaver. However, by using google chrome broswer, webpage is still displaying fine, but not IE or firefox.. I was wondering if someone can help me take a look and give me some feedback how to fix the issue....thank you very much,
    http://www.akuiskitchen.com/

    Thank you, all errors have been fixed from w3 validation site, but I still have browser compability problem..
    Ken, do you mean removing all below underline portion under demostyle.css?
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Unable to load page</title>
    <style type="text/css">
    #container {
              width: 50%;
              margin: 3em auto;
              font-family: Verdana, Geneva, sans-serif;
    #dwicon {
              float: left;
              margin-right: 2em;
    #error {
              padding-top: .5em;
    #desc {
    </style>
    </head>
    <body>
    <div id="container"> <img id="dwicon" src="dw://configuration/Shared/ICE/Images/warning_icon.gif" width="32" height="32" alt="Warning" />
      <h3 id="error">Server Not Found</h3>
      <p id="desc">The page "http://localhost/resources/demos/style.css" was not loaded because Dreamweaver could not find the server "localhost". Please make sure you are connected to the internet and the server name is correct.</p>
    </div>
    </body>
    </html>

  • Drop Shadow Bug on Rotated Items?

    So, it looks like there's a bug with drop shadows on items that have been rotated, but only when previewing the book on an iPad. It would appear that the greater the rotation, the more pronounced the issue.
    Basically, it looks like it's calculating the offset from the new object bounding box, rather than the actual object.
    See a screenshot here: http://i.imgur.com/jTPzL.png

    That was iBooks 2 ~ iPad 2...
    This is iBA 1.1 on computer/10.7.4:

  • Need help with IE6 box drop problem DW CS4

    Having a problem with this page: http://www.recoverings.com/tarzan.html in IE6. Maincontent drops below the sidebar menu. Looks fine in FF, Safari, IE7.
    All other pages work well. I assume that this has something to do with the width of the .wrapnail and .thumbnail divs, but reducing the margins doesn't seem to help and the images start to get too close together. What am I missing here?
    Can someone help me solve this?
    I would also appreciate any suggestions on cleaning up my CSS. Seems like I have an awful lot of stuff in there. Maybe it's okay but could it be cleaner?
    Thanks for your help,
    Phil

    IE bug Float Drop is fairly common.  Make sure your page wrapper division is wider than the combined width of left sidebar + main content + left & right borders if any.  If that doesn't help, add an overflow: hidden rule to your floated container and make sure you have cleared both floats.
    More about float drop and the expanding box problem can be found here:
    http://www.positioniseverything.net/explorer/expandingboxbug.html
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics |  Print | Media Specialists
    www.alt-web.com/
    www.twitter.com/altweb

  • Dispatching Event in ItemRenderer Component?

    Am I going about this the right way? Here's my situation:
    I have a custom itemRenderer for a List. This itemRenderer consists mainly of a checkbox and label, but has a few additional details in it (which is why I'm not using a drop-in itemRenderer). I want to detect when the selection of the checkbox changes, so I was thinking of creating a custom event in the itemRenderer and then bubbling it up to the list.
    Or is there a way I can detect when a user checks a checkbox from the lists itself?
    Thanks!

    I found this article which explains this topic very well also: http://weblogs.macromedia.com/pent/archives/2008/03/itemrenderers_p_2.html
    (It appears that these may be referencing the same series of articles on different sites.)
    However, I am now conflicted, because if I the version without bubbling, I am tying the itemRenderer directly to my component; whereas with bubbling I don't need to make that association. I may opt for the bubbling route after all, because I want to keep my itemRenderers generic enough to use in any of my custom controls, and not just in a certain type.
    For more clarification: the hangup is where the event gets triggered on the listData.owner. To do this, it appears that it must be type-cast first, and then manipulated. Any ideas on how to get around that? Here's Peter's example:
    ====================================
    First, you have to add metadata to the CatalogList control to let the compiler know the control dispatches the event:
         import events.BuyBookEvent;
         import mx.controls.TileList;
         [Event(name="buyBook",type="events.BuyBookEvent")]
         public class CatalogList extends TileList
    Second, add a function to CatalogList to dispatch the event. This function will be called by the itemRenderer instances:
              public function dispatchBuyEvent( item:Object ) : void
                   var event:BuyBookEvent = new BuyBookEvent();
                   event.bookData = item;
                   dispatchEvent( event );
    Third, change the Buy button code in the itemRenderer to invoke the function:
                   <mx:Button label="Buy" fillColors="[0x99ff99,0x99ff99]">
                        <mx:click>
                        <![CDATA[
                             (listData.owner as CatalogList).dispatchBuyEvent(data);
                        ]]>
                        </mx:click>
                   </mx:Button>
    Now the Button in the itemRenderer can simply invoke a function in the list control with the data for the record (or anything else that is appropriate for the action) and pass the responsibility of interfacing with the rest fo the application onto the list control.
    ====================================

  • List of detected bugs for 3.1.4.710

    Hello,
    Used this tool to develop simple model and found that the following are the bugs:
    1) DROP MATERIALIZED VIEW not possible/ dependencies must be tracked when created as PREBUILD
    2) LEVEL (in connect by clause)and DATE(as literal) special words does not recognized by view's parser
    3) Even set genaration Materialized view with REDUCED precision (in the case of PREBUILD) no appropriate clause generated in DDL
    Thanks

    Hi Sergey,
    thanks for reporting these problems.
    1) DROP MATERIALIZED VIEW not possible/ dependencies must be tracked when created as PREBUILDI logged a bug for that.
    2) LEVEL (in connect by clause)and DATE(as literal) special words does not recognized by view's parserFor such cases is good to have Select statement posted here.
    Problem with LEVEL is fixed for next release, at least what we know as problem - your query can still have it :)
    3) Even set genaration Materialized view with REDUCED precision (in the case of PREBUILD) no appropriate clause generated in DDLThis works in DM 3.3
    Philip

  • Just another 10.4.9 Logic Bug...Is Apple listening?

    Now when you record an audio track and hit stop, the fade indicator in the left hand pane which is normally a 0 becomes an asterisk as if you have multiple audio files with multiple fades. This is the norm when you do have multiple audio files with multiple fades but not when you only have one audio file with NO fades. Way to go Apple, batting a thousand!

    omg, I lost exactly that very same nanosecond of sleep over it too! and I demand that nanosecond back, now! how dare they call this thing a pro app? if I add up all the picoseconds of sleep I've lost over these frankly unsurmountable bugs, I'd be entitled to a whole trillionth of my usual daily rate.
    but seriously. I hope people are learning a lesson here. every time a system update comes around, it's inevitably followed by an onslaught of posts in the following format:
    I was in the middle of project x which has a deadline in y number of days and now I did the update and I'm ruined. good one apple.
    well. the simplest of rules to follow is that if you have a project 'x' with a deadline 'y', then system updates can and should wait until after 'y'. at the end of the day, we are the professionals responsible for getting the work done, nobody else. if the machine is working, then don't mess with it till you have the time to backup (or even better, clone) your system and then carefully dedicate some time to doing an update. and even then, you should only do it after you've waited for the dust to settle, to make sure that there aren't any reports of big problems with the update, and after you've done the rounds of all your 3rd party plug in websites to make sure they haven't got big flashing warning signs all over their site screaming 'our plug ins aren't ready for system x.y.z yet!'.. or at the very least, they may have updates for you to get first.
    in the case of this OS update, it really does look like the only legit problem being reported so far is the new AU val causing some plug ins to fail validation. the cause seems to be only that developers knew this new AU val version was coming, but weren't expecting it till 10.5 leopard. so it's not a bug, nor a faulty update nor a bug-bomb dropped on us all by apple. all that is going to be required is an update to certain plug ins so that they pass validation again, because there was a spec change. and according to reports, there doesn't seem to be anything critically wrong with these plug ins either.. they just don't match the new spec so AU val deems them as failed. you can still open the validation app and force logic to use them, and then continue working as normal, until updates come out.

  • Dropping calls frequently

    Is any fix bugs for dropping call on ios7?

    Telling us your phone drops calls is like saying Germans speak German.
    We need information in order to start advising on tips and solutions.
    0. What country are you in?
    1. Have you talked to your carrier yet?
    If not, why?
    2. Are you in a bad service area? (do your friends experience the same?)
    3. What attempts to troubleshoot have you done?
    4. Check your actual signal here:
    http://www.iphonehacks.com/2012/11/how-to-check-the-actual-signal-strength-on-ip hone.html
    @Aircool
    What carrier/iPhone do you have?
    Are there any unique characteristics that cause the call to fail?
    @MsSudz
    What carrier/iPhone do you have?
    Are there any unique characteristics that cause the call to fail?

  • Users can bypass required quiz if it is drag & drop

    Captivate 8.01 on a Mac.
    I have the quizzes in the project set to "Required - The user must take the quiz to continue". This works on all other quiz types except the drag and drop questions.  Since the quiz properties are different for d&d I wonder if I am missing a setting or if this is a bug.

    Drag&Drop is not a default question slide, although it has some of its functionality like interactive objects and interactive learning interactions have. This is not a bug, there are more differences with the normal question slides: when getting back to a D&D it is automatically reset. It is not included in a Retake or a Review. The score can be included in the total score of a file, just like the score of buttons, click boxes, shape buttons, Text Entry Boxes and interactive interactions can be included in that score. But it is not a normal question slide.
    Drag&Drop tips - Captivate blog

  • Nest a DataGrid within another DataGrid using ActionScript?

    I am running into an interesting issue. I am trying to nest a
    DataGrid in a column of another DataGrid by setting the
    ItemRenderer property. But I am hitting a well that might be due to
    the way setting itemRenderers are done in ActionScript or just my
    ignorance.
    Here's the issue -
    When I set the itemRenderer property of for a grid column, it
    has to be set as follows -
    col.itemRenderer = new ClassFactory(DataGrid);
    But if I do that, since I am dealing with the class and not
    the instance of the DataGrid, how do I set the dataProvider,
    columns and other properties for my nested grid? I know we can do
    this in MXML but how to achieve the same in ActionScript?
    Thank you.

    A very interesting question. I should try this myself at some
    point. If you were using a drop-in itemRenderer, it might look like
    this:
    <mx:DataGridColumn dataField="gridData" ... >
    <mx:itemRenderer>
    <mx:Component>
    <mx:DataGrid dataProvider="{data.gridData}" width="100%"
    height="100%" ...>
    </mx:DataGrid>
    </mx:Component>
    </mx:itemRenderer>
    </mx:DataGridColumn>
    In ActionScript, this might work, but you would need to
    extend DataGrid or use a container wrapper.
    class DataGridItemRenderer extends DataGrid {
    override public function set data(value:Object):void {
    super.data = value;
    dataProvider = data.
    gridData;
    This should do it.

Maybe you are looking for

  • Can't create pdf files v10.0

    I have computer with Windows 7 64-bit installed.  I was using adobe 9.X and was able to create pdf from a variety of sources. I installed by Acrobat 10.0 Pro and performed all of the updates for windows, etc.  I can create pdfs from Office 2010 and s

  • Setting Up Mail Accounts

    My high school has our email addresses linked with Gmail, but I would like to recieve my emails on my iPad2. If my school email ends in @education.nsw.gov.au but is still somehow linked with Gmail, how would I set that up using the mail account setti

  • Transaction Problem in Session Facade Design Pattern

    Hi Well Sorry for giving wrang title to the topic, coz of which I have not received and reply. I am using session facade design pattern. I have Action class calling session facade method "getData" . This method calls "findByPrimaryKey" method in BMP.

  • Creating Inbound IDoc Using LSMW

    How to create the inbound IDoc using LSMWu2026 For example Input is Flat filesu2026. I created custom IDoc with header and items Structure looks Header 1   Item 1   Item 2 Header 2   Item 3   Item 4 Header 3   Item 4   Item 5 u2026u2026. u2026u2026.

  • Shell Script parameter $0 displays all concatanates all defalut parameter values

    I have a issue.The $0 is displaying all the default parm values. Pls suggest workaround: echo 'Printing parameters-.' echo '0:'$0 echo '1:'$1 echo '2:'$2 echo '3:'$3 echo '4:'$4 echo '5:'$5 echo 'FCPLOGIN:'$FCP_LOGIN echo 'Finished printing parameter