Is this a bug: ModelLocator.ArrayCollection.length

ModelLocator.ArrayCollection.length that equals to 4 starting
from index 0 (zero)
I see:
going into the objects using for each item i see correctly:
item:[object Object]
item:[object Object]
item:[object Object]
item:[object Object]
going into the objects using for loop with
ModelLocator.ArrayCollection.length, it is not counting the full
length:
0 --this is page:springgraph16.UIComponent0.template1 with
index:0 and pageid:1
1 --this is page:springgraph16.UIComponent0.template2 with
index:1 and pageid:2
2 --this is page:springgraph16.UIComponent0.template3 with
index:2 and pageid:3
If I index into ModelLocator.ArrayCollection[3] in the for
loop I get errors.
example:
checked the length with:
trace("---lenbefore:" + __modelLocator.siteRef.length); //
displays a trace, ---lenbefore:3
__modelLocator.siteRef.addItem(templatesAllData);
trace("---lenafter:" + __modelLocator.siteRef.length) //
displays a trace, ---lenafter:4
THIS WORKS AND DISPLAYS 4 ITEMS:
for each (var item:* in __modelLocator.siteRef){
trace("item:" + item);
trace result is:
item:[object Object]
item:[object Object]
item:[object Object]
item:[object Object]
THIS DOES NOT WORK:
for(s =0 ; s < __modelLocator.siteRef.length; s++){
trace(s +" --this is page:" +
__modelLocator.siteRef[s]['template']);
trace("CHECK:" +__modelLocator.siteRef[3]['template']); //
this thoughts up an error below:
ERROR: RangeError: Index '3' specified is out of bounds.
which is why these do not work in the for loop:
for(s =0 ; s <= __modelLocator.siteRef.length; s++)
for(s =0 ; s < __modelLocator.siteRef.length+1;
s++)

If you use the debugger and step through the ArrayCollection
as it does each loop - what does the watch variables panel show?
This shouldn't make a difference, but out of curiosity -
after the AC has all it's day, if you make a copy of it and then
loop over it... what happens...? E.g.:
__modelLocator.siteRef.addItem(templatesAllData);
var newAC : ArrayCollection =
ObjectUtil.copy(__modelLocator.siteRef);
for(s =0 ; s < newAC.length; s++)
Or another idea... instead of accessing the AC via index
(e.g. siteRef[s]), what if in the loop you do a getItemAt(s)?

Similar Messages

  • Is this a bug in OWB 11.2 - importing table metadata for character columns

    The Oracle® Warehouse Builder Data Modeling, ETL, and Data Quality Guide provides an overview of the data types supported.
    http://docs.oracle.com/cd/E11882_01/owb.112/e10935/orcl_data_objx.htm
    It says that for VARCHAR2 data type it saws (http://docs.oracle.com/cd/E11882_01/owb.112/e10935/orcl_data_objx.htm#CHDFIADI )
    "Stores variable-length character data. How the data is represented internally depends on the database character set. The VARCHAR2 data type takes a required parameter that specifies a maximum size up to 4,000 characters"
    That means , I guess, it says that when I import a table, any columns of type VARCHAR2(10) in the database should have its length show as characters in OWB, so a column of type Varchar2(10) in the Oracle database, should be shown as Varchar2(10) when imported into OWB table metadata via the OWB import function.
    However, if I have a database that set-up as a single-byte and import a table using the OWB import function a column that has a size of e.g. 10 in the database, is imported as OWB table metadata and the size is 10. Correct, I am happy.
    However, if the database is modified to support multi-byte characters, ALTUF16 encoding with the semantics set to "CHAR", then when I import the same table into OWB, OWB reports the size as 40, I guess its 40 bytes as in 10 characters @ 4 bytes per character.
    Is this a bug in OWB, as the datatype in the Oracle DB is varchar2(10), should OWB after importing a table not also report the column as VARCHAR2(10) ? Currently, is shows the column as varchar2(40).

    I noticed that myself in our project.
    Our varchars2 are defined as VARCHAR2(xxx CHAR) - OWB puts the size*4
    In fact if you have special characters like umlauts (ü,ä,ö,...) it will use 4 bytes per character.
    You can try it yourself. Define a Varchar2(1 CHAR) and manually change the size of the Column in your mapping inside OWB (in filters, joins or your target table).
    Then shoot an umlaut through the mapping and will end up with a "too small" error.
    Dont mind the size*4 issue - we totally ignored it and run without error since 4 years now.

  • Is this a bug in mx:ComboBox ?

    Hi All,
    I'm using a mx:ComboBox control in my extension project for InDesign CS5/CS55.5/CS6 using Extension Builder 2.1, Flash Builder 4.6 and Extension Builder 3.4 SDK.
    Problem:
    When I click my ComboBox control(the text part excluding the down arrow part) after switching application to another and then back to InDesign, the list is shown and then closed quickly. Again if I click on ComboBox then the list is displayed properly.
    Is this a BUG in mx:ComboBox ?
    Please suggest any solutions/workaround to fix the issue.
    ComboBoxTest.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" historyManagementEnabled="false"
      initialize="initializeHandler(event)">
      <mx:Script>
      <![CDATA[
      import mx.collections.ArrayCollection;
      import mx.events.DropdownEvent;
      import mx.events.FlexEvent;
      import mx.events.ListEvent;
      [Bindable]
      private var cmbBoxItems:ArrayCollection;
      private function onComboBoxClick(event:MouseEvent):void{
      trace('onComboBoxClick() - '+event);
      private function onComboBoxOpen(event:DropdownEvent):void{
      trace('onComboBoxOpen() - '+event);
      private function onComboBoxChange(event:ListEvent):void{
      trace('onComboBoxChange() - '+event);
      private function onComboBoxClose(event:DropdownEvent):void{
      trace('onComboBoxClose() - '+event);
      trace('\n');
      protected function initializeHandler(event:FlexEvent):void
      cmbBoxItems = new ArrayCollection(["One","Two","Three","Four","Five"]);
      ]]>
      </mx:Script>
      <mx:VBox height="100%" width="100%" verticalAlign="middle" horizontalAlign="center" verticalGap="10">
      <mx:ComboBox  id="testCmbBox" dataProvider="{cmbBoxItems}" click="onComboBoxClick(event)" open="onComboBoxOpen(event)" change="onComboBoxChange(event)" close="onComboBoxClose(event)"/>
      </mx:VBox>
    </mx:Application>

    Now I'm sure that its a BUG in mx:ComboBox(Mac OS X Lion, InDesign CS5.5) as I'm able to reproduce in Adobe's Kuler panel also as follows,
    Open Kuler panel and switch to Browse tab.
    Then switch application(Cmd+Tab) and come back to InDesign.
    Then click on any combo-box(Highest Rated or All Time).
    We see that the combo-box is not opened for the first time.
    Any help/suggestion/workaround is highly appreciated.
    Thanks.

  • Is this a bug in FCP5?

    I created an 2 min .mov file from screen capture on IBM.
    I imported this clip into the project and in the viewer strange things started happening.
    1. Shift N creates still image not where the cursor is, but about 20 sec ahead of the clip.
    2 The length is 21sec, but not 10 as is set in the preference window
    3. After selecting in and out the viewer, and click F10, overwrite, selected excerpt doesn't correspond with the chosen one. It's like 30 sec ahead of the out point.
    Thank you for the help.

    Is this a bug in FCP5?<<</div>
    In short, no, it probably isn't an FCP issue. Most likely its a problem with your movie file. Open the file in QT Player and make sure the frame rate and all other settings match your FCP Sequence settings.
    -DH

  • Error #1009, Is this a bug?

    I am using latest build of TLF (418),  when I tried to bind textFlows to the textFlow setter in SimpleEditorPanel(the Adobe example), the textFlows are from an ArrayCollection, the binding looks like:
    <local:SimpleEditorPanel id="simpleEditor"
                        textFlow="{TextFilter.importToFlow(this.myModel.userResponse.pageContent.getItemAt(this.m yModel.userResponse.currentPageNum).content, TextFilter.TEXT_LAYOUT_FORMAT)}" />
    Basically, I need to dynamically add pages, each page stores in a textFlow,
    I also added a listener to listen the damageEvent, if a textFlow's got changed, then the listener function exports the textFlow to the ArrayCollection,
    I've got the following error when I tried to edit a textflow:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
        at flashx.textLayout.edit::EditManager/finalizeDo()
        at flashx.textLayout.edit::EditManager/doOperation()
        at flashx.textLayout.edit::EditManager/flushPendingOperations()
        at flashx.textLayout.edit::SelectionManager/enterFrameHandler()
    Is this a bug? any suggestions to work around?
    Thanks in advance.

    When a TextFlow is deepCopied the new returned TextFlow will have a flowComposer created using the origianl's configuration.  The configuration specifies a flowComposerClass and a flowComopser of that class is created.  No interactionManager is created.  That's by design.
    When a TextFlow is us create a TextScrap for a clipboard the flowComposer is nulled.  That's the only place I know of where we clear the flowComposer.  That's also by design - a flowComposer isn't useful on the clipboard at this time.
    I don't understand the ArrayCollection issue from the description.  Do you have a code snippet that demonstrates the flowComposer getting nulled by TLF?
    Best Regards,
    Richard

  • How to get ArrayCollection length in initial function?

    Hi,
    I am working for conver Application form Flex 2 to Flex 3.
    I have the following code,I can see in the dataGrid and
    ArrayCollection length in the label "loopNumber",but why I can not
    get ArrayCollection length in initPage() for Flex 3 and the loop
    doesn't work.
    But I can get ArrayCollection length in initPage() in Flex 2.
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    ... creationComplete="initPage()">
    >
    <mx:Script>
    <![CDATA[
    import ....;
    import ....;
    [Bindable]
    private var modelLocator:AdminModel =
    AdminModel.getInstance();
    private function initPage():void{
    Alert.show(modelLocator.acProcess.length.toString());
    for ( var j : int =0; j <modelLocator.acProcess.length ;
    j++)
    ]]>
    </mx:Script>
    <mx:DataGrid x="42" y="64" id="proceeList"
    dataProvider="{modelLocator.acProcess}" width="300"
    updateComplete="initPage()">
    <mx:columns>
    <mx:DataGridColumn headerText="Bursary Online"
    dataField="processName"/>
    </mx:columns>
    </mx:DataGrid>
    <mx:Label id="loopNumber" x="32" y="428"
    text="{modelLocator.acProcess.length}"/>
    </Application>

    What error do you get with Flex 3?
    Thanks,
    Gaurav Jain
    Flex SDK Team

  • Is this a bug of RandomAccessFile ??

    On Win2000
    in A class :
    //main
    public static void main(String args[]) {
    XXXConvert xxxConvert = new XXXConvert();
    String ccc_path[] = {
    "C:\\aaa\\bbb01.ccc", //file path and name
    "C:\\aaa\\bbb02.ccc",
    "C:\\aaa\\bbb03.ccc",
    "C:\\aaa\\bbb04.ccc",
    "C:\\aaa\\bbb05.ccc",
    "C:\\aaa\\bbb06.ccc",
    "C:\\aaa\\bbb07.ccc",
    "C:\\aaa\\bbb08.ccc",
    "C:\\aaa\\bbb09.ccc",
    "C:\\aaa\\bbb0B.ccc",
    "C:\\aaa\\bbb0C.ccc",
    "C:\\aaa\\bbb0D.ccc"
    for (int i = 0; i < ccc_path.length; i++) {
    xxxConvert.convert(ccc_path);
    //main
    and
    //convert
    public void convert(String ccc_path_name) {
    PrintWriter textFile = null;
    try {
    String temp[] = new String[512];
    temp = aaa.get_ccc_temp_names(ccc_path_name);
    // aaa class aaa._ccc_temp_names()
    for (int i = 0; (i < temp.length) && (temp[i] != null); i++) {
    aaa.get(ccc_path_name, temp[i]); //aaa class aaa.get()
    //convert
    in aaa class :
    RandomAccessFile raf;
    //get_ccc_tmp_names
    String[] get_ccc_tmp_names(String ccc_path_name) throws IOException {
    fil = new File(ccc_path_name);
    if (fil.exists() != true) {
    System.out.println("file not exist :" + fil.toString());
    throw new IOException();
    raf = new RandomAccessFile(fil, "r");
    .... raf.seek()... read temp_names[] in raf
    return temp_names[];
    //get_ccc_tmp_names
    and
    //get
    public int get(String tmps, String tmps_map) {
    .... raf.seek()... some RandomAccessFile method operation
    raf.close();
    //get
    I envoled class aaa's method from class A. IOException occured at "C:\\aaa\\bbb0C.ccc" and "C:\\aaa\\bbb0D.ccc". It shows some other process were processing "C:\\aaa\\bbb0C.ccc" and "C:\\aaa\\bbb0D.ccc" when RandomAccessFile closed "C:\\aaa\\bbb0B.ccc" and try to open the last two.
    Then I try again with
    String ccc_path[] = {
    "C:\\aaa\\bbb0C.ccc",
    "C:\\aaa\\bbb0D.ccc"
    Both the IOException of "file not found". oops!! the last two file names disappeared on the harddisk. Is this a bug??

    Not without you describing what in the heck you are trying to do.
    For now (Because I can't make heads or tails of your original question - not only does the code make no sense at all, but your formatting of it makes it impossible to read), I can guarantee to you that the problem you are experiencing is because of something you are doing.
    The chances of you finding a bug in a class as much used as RandomAccessFile is for all intents and purposes equal to 0.
    I would recommend that you deconstruct your code to get the smallest number of lines that still create your problem, then use a debugger on it to figure out what's going on.
    If that still doesn't help, post your question again, but make a huge attempt to make it plain and clear what you think the problem is, then someone can probably give you a hand.
    - K

  • Pages 5.5.1: When opening a document created with Pages '09 (Version 4.0) with Pages 5.5.1 the page header and the page footer are deleted. How can this be prevented? Or is this a bug in Pages 5.5.1?

    Pages 5.5.1: When opening a document created with Pages '09 (Version 4.0) with Pages 5.5.1 the page header and the page footer are deleted. How can this be prevented? Or is this a bug in Pages 5.5.1?

    Same problem here (no graphics in header or footer) and the problem has been reported months ago. It is another bug/feature lost when Apple moves from 09 to the iCloud-compatible versions.  Complain to Apple, you may have better chance than me and they may finally listen to their users....

  • Iphone 6 tells me that "Item not available" in my country UK, when i click on the itunes store icon for the app to open the music, movies or tv shows section of the app. is this a bug?

    I am based in the UK and have just got a new iphone 6, everything works well except when i try to turn on the itunes store app -  i can do a search and buy music etc that way, within the app, however, if i go to Music, Movies or the TV shows section within the Store app, i get a message come up saying "Item Not Available" - This item you've requested is not currently available in the UK Store, but it is available in the US store. Tap Change Store to view this item".   I therefore cannot browse the music, movies or tv shows sections at all, nothing shows up except that message.  All my previous itunes purchases have downloaded ok, and i can access them. My apple ID works fine and restrictions on the iphone are turned OFF. The App Store app works normally. Connection etc is all fine and I can access itunes  in the normal way on my ipad and laptop, so this is just an iphone problem. Any ideas? is this a bug? I cant find anyone else with exactly the same problem. By the way, the same message comes up when i click on the red Music icon, on the iphone (situated next to the Safari icon) and then go to the "Store" via that app.  my playlists are in tact, but as soon as i click that Store button, I am told that the Item is unavailable - not that i have chosen any Item lol, I just want to access the store in the normal way. Thank you in advance for any suggestions you can give

    It is working now. I no longer get the message about the item not being available in the US and I can access the store.

  • Open Cursor Issue because of file browse Item - Is this a Bug in APEX 3.2

    Hi All,
    I am using file browse Item to upload file into the database at two places in my application, but it seems whenever I am submitting those two pages, with file path or without file path, its opening an cursor which remains open after that, because of this open cursor count in the application is getting exceeding every time.
    For testing this I have made an dummy page containing just file browse item and submit button, and still it is increasing the open cursor count.
    Is this a bug in Apex file browse item or there is some other way to handle this.
    Please kindly help me in the above issue as this is affecting the production application.
    Thanks & Regards
    Sanjay
    Edited by: user11204334 on Dec 5, 2010 9:57 PM
    Edited by: user11204334 on Dec 5, 2010 9:58 PM

    Hi,
    One observation, Apex is switching the Session ID after one got killed ? I was working on Apex page with browse Item to test open cursor count,
    after killing the SID (227) on which the open cursor count was getting increase, it APEX automatically switches to new SID(149) for that session.
    Now the problem is even if I have two SID's and one hits the maximum open cursor count, It is not switching to other SID instead the whole application becomes unavailable.
    STATNAME SID VALUE USER
    opened cursors current 20 14 APEX_PUBLIC_USER
    opened cursors current 149 74 APEX_PUBLIC_USER
    opened cursors current 194 71 APEX_PUBLIC_USER
    opened cursors current 211 5 APEX_PUBLIC_USER
    opened cursors current 227 325 APEX_PUBLIC_USER Killed
    opened cursors current 244 15 APEX_PUBLIC_USER
    opened cursors current 20 14 APEX_PUBLIC_USER
    opened cursors current 149 76 APEX_PUBLIC_USER
    opened cursors current 194 71 APEX_PUBLIC_USER
    opened cursors current 211 5 APEX_PUBLIC_USER
    opened cursors current 244 15 APEX_PUBLIC_USER
    Please kindly help in this.
    Thanks in Advance
    Thanks & Regards
    Sanjay
    Edited by: user11204334 on Dec 8, 2010 1:02 AM

  • Is this a bug with BoEdge3.1?

    Can anyone help me on the issue which my customer is facing for BoEdge3.1
    Concerning  Error Message: You do not have enough Named User Licenses to make this user a named user. You have 55 Named User Licenses. (FWB 00013)
    This is the error message she was receiving when trying to change an
    existing user from Concurrent to Named under the Connection Type on the
    Properties panel.
    The current workaround was to delete the existing Concurrent user, then re-add the same user as Named.
    She have been going through this process of deleting existing users, and then
    re-adding them as Named and it was working okay. Then, it stopped
    working and she started getting the same FWB 00013 error message again.
    She was not able to create any Named users now. Basically, the workaround
    worked for a while - then stopped working.
    She currently has a total of 88 users. 21 of them are named. 67 of them
    are Concurrent. She is licensed for 55 Named.
    Once again, the system thinks she has 55 users marked as Named. But
    there are only 21 marked as Named.
    She did notice that as she was going through all of her existing list of
    users, in alphabetical order, she was opening the Properties tab and
    checking the Named/Concurrent status - as she got to the 55th user in the
    list that is when she started getting the error message again.
    Is this a bug with BoEdge3.1?
    And I got an ADAPT01194692.
    I am not sure that Is the ADAPT related to this issue.
    Please help me its very critical.

    Hi Salena,
    If you are an SAP Employee, request you to post this question at
    https://cw.sdn.sap.com/community/bobjtc
    Cheers,
    Subhodeep

  • JDev 9.0.3, Business comp wizard, is this a bug?

    Howdy,
    Found something that perhaps is a bug, hoping you guys have fixed for the real release.
    1) Create a database connection, but don't fill in username/password. Don't check deploy password.
    2) Create new workspace and project.
    3) create new business component package in the project. On step 2, point Connection name to username/password-less connection. Alert says prompt will ask for credentials. No matter what I put in, with valid username/password entries, a Connect Error pops saying invalid arguments in call. Exception: oracle.jdeveloper.cm.CMException.
    Is this a bug? We're using dynamic credentials in our app with data sources, so username/password is left off.
    Thanks,
    Joe Tseng
    Technical Management Consultant
    TUSC
    [email protected]

    Joe,
    I've filed Bug#2561459 to track this problem.

  • Cannot see my picture stream on iPad with IOS 8.1.3. Pics from iPad are uploaded and visible on picture stream on iPhone 4, IOS 7. Is this a bug?

    I cannot see my picture stream on iPad with IOS 8.1.3. The pictures  from iPad are uploaded and visible on picture stream on iPhone 4, IOS 7. Is this a bug with IOS 8.1.3?

    Try:
    - Reset the iOS device. Nothing will be lost      
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    iOS: Troubleshooting Messages
      iOS: Troubleshooting FaceTime
    - Sign out and then sign back into Messages and FT. Note you will lose all messages presently on the iPod
    - Reset all settings                            
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:                                               
    iOS: Back up and restore your iOS device with iCloud or iTunes      
    - Restore to factory settings/new iOS device.                       

  • Emulator on OSX don't support capturing audio, is this a BUG?? SDK 3.0

    Hello all,
    well i'm trying to capture audio with the emulator on OSX. When i test the System Properties for capturing audio i always get FALSE.
    I tried the same application on Windows XP with the SDK 3.0 and it works, i'm getting True and can capture the audio with my microphone.
    Now i want to know if this is only a Bug and could be fixed or is the support for capturing audio on Mac OSX not implemented yet?
    Thanks
    Greetings

    What kind of problem about the display image in signature?
    How do you add the image into the message body when you send the message?
    Does it show correct through Web-based access?
    Outlook 2007 doesn't support some of Style Element, you may reference the link as below:
    http://www.campaignmonitor.com/css/
    Thanks.
    Tony Chen
    TechNet Community Support
    Thanks for your reply,  I know that some Style Elements won't be supported in Outlook, but this is not the reason.
    Please refer to my post previously, I post it but get no response.
    http://social.technet.microsoft.com/Forums/office/en-US/481170b1-f23f-4d46-9914-823326491846/is-this-a-bug-of-outlook-2007-about-images-displaying-in-signature?forum=outlook

  • When I press right click - Open in a new Tab on a bookmark on Firefox 4.0 nothing happens. Is this a bug? Is there a solution?

    When I press right click -> Open in a new Tab on a bookmark on the "Display your bookmarks" icon that is located on the upper right corner of Firefox 4.0 nothing happens. It only works if I press right click -> Open in a new Tab on bookmarks under the menu that is located on the upper left corner. Is this a bug? Is there a solution?

    No its working fine.
    Start Firefox in Safe Mode : How to start in safe mode
    If it doesn't work
    Create new Profile: Profiles

Maybe you are looking for

  • App store and Youtube problems

    Hello, I have a 2g iPod touch which I have started having problems with the last week or so. I can open the app store, browse through all the apps and view them. I can access my iTunes account, but when I press the updates tab in app store, it comes

  • Customizing a backup plan for mac osx10.6.8

    What to do to backup all content of every file to an external hard drive Go-Flex Pro for Mac My old back  back up plan is not sufficient.  i dont seem to have Time Machine with my Sno leopard Thank you

  • Upgrade to 12.1.2.0 now ?

    Hi all, I have developed an adf application with JDeveloper 11.1.2.4.0 and I want to move it to production environment. I also want to upgrade to 12.1.2.0 and use some new components like Panel SpringBoard etc.  But I have some doubts because I have

  • How many photos can a stream have

    Orginally I was told that a stream can only store 1000 photos or up to 30days. This is what was told to me about 2 weeks ago. yesterday I took a workshop and was told the time does not matter but the 1000 is still the case? Also is that for the strea

  • Raw materials are getting posted to register RG23C

    Dear All, Material is created with material type ROH but for some of the materials the excises postings are geting posted to RG23C. Please give the inputs why this is happening for some material. Thanks in advance deepti