Problems using collection ArrayCollection as a DataProvider for trees and the menu bar, possibly bug?
Hi guys,.
I'm having some troble using a collection ArrayCollection as a DataProvider for a tree and a menu bar...
I read some Adobe documents on this subject, and I read that two components read the dataProvider in the same way.
but my current works of DataProvider well on the tree, but not on the MenuBar component...
My dataProvider is an ArrayCollection collection of a custom class (which extends from ArrayCollection collection), and among its assets is a children's collection: ArrayCollection, so the hierarchy can be read correctly.
When I use the component of the tree it works, but the menu bar do not display the branches...
Can someone help me?
Here's the function that create my dataprovider:
private function fnFillDP (): void {}
for (var i: int = 0; admResult.length > i; i ++) {}
If (.nivel JV_MenuAdm (JV_AuxMenuAdm(admResult[i]).menuAdm [0]) == 0) {}
var novoMenu:CL_ArrayMenu = new CL_ArrayMenu();
novoMenu.idMenu = .idMenu JV_MenuAdm (JV_AuxMenuAdm(admResult[i]).menuAdm [0]);
novoMenu.titulo = .titulo JV_MenuAdm (JV_AuxMenuAdm(admResult[i]).menuAdm [0]);
novoMenu.parent = .parent JV_MenuAdm (JV_AuxMenuAdm(admResult[i]).menuAdm [0]);
novoMenu.nivel = .nivel JV_MenuAdm (JV_AuxMenuAdm(admResult[i]).menuAdm [0]);
novoMenu.ordem = .ordem JV_MenuAdm (JV_AuxMenuAdm(admResult[i]).menuAdm [0]);
dataProvider.addItem (novoMenu);
} ElseIf (.nivel JV_MenuAdm (JV_AuxMenuAdm(admResult[i]).menuAdm [0]) == 1) {}
for (var j: int = 0; dataProvider.length > j; j ++) {}
{If (CL_ArrayMenu(dataProvider[j]).idMenu == {JV_MenuAdm (JV_AuxMenuAdm(admResult[i]).menuAdm [0]) .parent})}
var novoMenuChildren:CL_ArrayMenu = new CL_ArrayMenu();
novoMenuChildren.idMenu = .idMenu JV_MenuAdm (JV_AuxMenuAdm(admResult[i]).menuAdm [0]);
novoMenuChildren.titulo = .titulo JV_MenuAdm (JV_AuxMenuAdm(admResult[i]).menuAdm [0]);
novoMenuChildren.parent = .parent JV_MenuAdm (JV_AuxMenuAdm(admResult[i]).menuAdm [0]);
novoMenuChildren.nivel = .nivel JV_MenuAdm (JV_AuxMenuAdm(admResult[i]).menuAdm [0]);
novoMenuChildren.ordem = .ordem JV_MenuAdm (JV_AuxMenuAdm(admResult[i]).menuAdm [0]);
If (dp.length > 0) {}
If (CL_ArrayMenu (dp.getItemAt (0)) .parent == novoMenuChildren.parent) {}
dp.addItem (novoMenuChildren);
} else {}
DP = new ArrayCollection();
dp.addItem (novoMenuChildren);
}
} else {}
dp.addItem (novoMenuChildren);
}
CL_ArrayMenu (DataProvider [j]). Children = dp;
break;
}
}
}
}
tree.dataProvider = dataProvider;
menu.dataProvider = dataProvider;
}
Sorry for the bad English...
Hello
You can try using xml as the dataprovider of the Menu bar instead of going for the Arraycollection collection.
Thank you
Roman
Tags: Flex
Similar Questions
-
Recently in Acrobat Pro 9 Ver for Win 7 the menu bar (File, Edit, View, Document etc.) disappears when I move the window. . only happens when I have a pdf file open. . everything worked fine until a few days ago. . F9 solves the problem until I have move the window again. . I realize that my version is old so I tried tried download XI player and having the same problem. . any help would be appreciated
Found the Solution. . It's know bug with Kaspersky Anti Virus 2015... the solution is to upgrade to version KIS 15.0.1.415... Kaspersky Lab Forum > Bug: KIS version 15.0.0.463 patch B Acrobat Reader XI
-
I can't log off, restart or stop my MBP. Disappears from the menu bar, desktop files disappear, but dock is still operational. The only way is to force a stop down with the power button. Only a recent problem within the last week or 2. El Capitan updated in similar delays, could it be linked?
MBP retina, 13-inch, mid-2014; Intel Core i5 at 2.8 GHz. 8 GB 1600 MHz; 8 GB RAM
A Wacom tablet driver is installed on the MBP? In this case, you can try to uninstall or to verify that an update is available.
-
..
How can it be possible not able to control own firefox search engine? How yahoo can make changes in the configuration of firefox and always change in yahoo automatically after doing search page of firefox?I did not any changes having yahoo as engine ever.
Best regards
J.TuomiStart Firefox in Firefox to solve the issues in Safe Mode to check if one of the extensions or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > appearance/themes).
- Makes no changes on the start safe mode window.
- https://support.Mozilla.org/KB/safe+mode
Reset the pref browser.startup.homepage_override.mstone through the context menu by default on the subject: config page and close and restart Firefox to restore the on: default home page.
- Open the topic: config page through the address bar
- Type in the filter bar: mstone
- Right-click on the browser.startup.homepage_override.mstone line, and then select: Reset
- Close and restart Firefox
-
Problems on collection ArrayCollection and DataGrid
Hi people!
I have a problem of ugly...
in the my application, I have a datagrid named DG and its dataprovider is bound as an ArrayCollection called AC collection.
A result of the query contains the AC...
Ok.. So far so good...
the problem just when I try to select an object in AC by name...
AC has done like this:
0 objecthjh324jghf7
1 objectd5674567
2 objectAaagohrtt
3 object4534c45jg
so I can choose an object by its index (0,1,2,3... ecc)
but not by name (objectxxxxxx)
I might want the names of the objects are the name of the column (such as ID, NAME, NATION, phone ecc)
is this possible?
now, if I want the object ID in KT (i.e. the ID column in my datagrid DG), I have to check with a loop from 0 to col_number to find some AC (loop_value) USER.USER
EDIT
example:
If my first column of the DG's 'id', I want to use something like "myDataGrid.columns ('id')", now I have to use this "myDataGrid.columns (0)»
EDIT
Help me please! : D :D
PS: Sorry for my bad English... ^ _ ^"Amy Blankenship"
wrote
in the message news:[email protected]...
>
> "123qweads"wrote in message
> news:[email protected]...
> okay...
> maybe I made a few mistakes in my last posts.
> I'll try to explain better my problem...
>>
> my problem is to give a name to myDG.columns
> (before I talk about DATAGRID...) Sorry! I'm guilty... but the problem
> is
(> the same)
>>
> myDG.colums is a TABLE and I can get you an object index for example
> myDG.colums (1) .dataFiled or myDG.colums (2) .visible ecc...
> If I can give a name for the elements of each array, I could take an object by
> its
> name for example myDG.colums (ID) .dataFiled or myDG.colums (PRICE) .visible
> ecc...
>>
> Today I discovered how give an object name in the ARRAYCOLLECTION collection... in
> This
> way
> var o: Object = new Object();
> o [namecol1] = myObject1;
> o [namecol2] = myObject2;
> myAC.addItem (o);
>>
> works very well and myAC I find namecol1, namecol2, namecol3 instead
(0), (1), (2) but when I convert collection ArrayCollection in table online
>>
>>
>>
> I lost all the name of the object... and remains only the information from the object (i.e. the)
> column
(> information as dataField, visible, headerText, etc.)
>>
> WHY DO I WANT TO DO?
> I want to write a function that hide certain columns...
> now, my function is O (n * m), where n< m="" but="" if="" i="" can="" resolve="">
> problem
> my function become o (n)
> and it's a good thing
>>
>>
>>
>>
> BAD! (now)
> public void HideColums(col:Array,_myDataGrid:DataGrid):void {}
> for (var x: int = 0; x)< col.length;="">
> for (var i: int = 0; i< mydatagrid.columncount;="">
> If (myDataGrid.columns .dataField ==
(> col [x]) myDataGrid.columns.visible = false;
>> }
>>
>>
> GOOD (after your explanation)
> public void HideColums(col:Array,_myDataGrid:DataGrid):void {}
> for (var x: int = 0; x)< col.length;="">
> myDataGrid.columns [col [c] m:System.NET.SocketAddress.ToString ()] .visible = false;
>> }try (somewhere in your result handler that takes care of your objects):
var sampleObj:Object = myQuery [0];
columnNames = []; should be set on a global scale
for {(prop: String en sampleObj)}
columnNames.push (prop);
}now:
public void hideColumns(columnsToHide:Array,_myDataGrid:DataGrid):void {}
for (var x = 0; x)< columnstohide.length;="">
myDataGrid.columns [columnNames.indexOf (columnsToHide [x])] .visible = false;
}
}Note This is not tested, but it's the first thing I would try
-
When to use the cursor for loop and the cursor (open, fetch, close)
Hello world
I have a small doubt about when to use the cursor for loop and when to use the cursor for loop and the cursor (open, fetch, close).
Well, I'm not the difference between implicit and explicit cursor. So please tell me how I got to know, what to use and when?
Kind regards
BS2012
Published by: BS2012 on January 29, 2013 12:15All SQLs are analyzed, stored and executed as cursors. Thus, you will always use a cursor.
The problem is that languages, such as PL/SQL, provide different interfaces to interact with the SQL cursor. As the ref, the slider interface, the interface DBMS_SQL slider interface and so on.
Each of these interfaces offers different features. For example, using the interface DBMS_SQL allows binding dynamics and dynamic recovery. The Ref Cursor interface allows your code PL/SQL pass a handle to a reference pointing to the SQL cursor, to an external client. Etc.
The fundamental reason for the use of an explicit cursor interface is mainly that you own and manage bulk made extraction output provided by PL/SQL cursor.
With a cursor FOR , the motor loop of PL/SQL optimize the loop by extracting block a 100 lines both. However, you cannot access this collection in bulk directly inside the loop.
With an explicit cursor interface, you specify the size of the extraction in bulk via the clause LIMIT , and you set the variable of collection to use. This allows you to use the collection directly variable inside the loop.
However, the need to do - code manually in bulk collection - rarely occur in the daily programs in PL/SQL. A line of treatment is both slow and not well fits. And even if your bulk code collects lines, these lines must still be processed one at a time in your code. It is much more efficient and scalable rather write SQL code, and make the engine SQL the line of treatment for you.
-
I have created a user interface and want to give all selectable options to the user through cutomized launch time menu bar. However, I am facing a problem with that:
If I click on any menu item in the bar, I'm not able to choose another option until the first is finished. For example, control of the execution of a test sure if I give 'run' and 'pause' of the goods covered by 'test' in the menu bar and click 'Run', the control does not return to the menu bar to choose the other option ("pause" in this case) until execution of receives test it more. Making 'pause' option useless. Is there a way to fix this?
Fix is the example.
-
How can I create a gif for my blog [url removed by host] image using photoshop. I mean photoshop shortcut keys and the steps for creating gif
CTRL + Alt + Shift + S Windows Mac CMD + Option + SHIFT + S change the image that you normally edit images.
-
Periodically, I notice that the menu bar was "taken over" by these characters, making the navigation and use of the functions difficult or impossible. Close the program and then by reopening sometimes solves this problem for a while, but then it happens again. I think I have the latest version of 38.2.0.
It could be anything McAfee... It was a very problematic piece of software for a few years. See https://wiki.mozilla.org/Thunderbird: test: Antivirus_Related_Performance_Issues #McAfee
-
How to bring back the function "View Page Source"?
View Page Source has been moved in the submenu 'Web Developer'. You can use one of the following to view Page Source:
- CTRL + U
- Right click on a box empty page and choose "View Page Source"
- Firefox button > Web Developer > view Page Source
- Using the Menu bar: Tools > Web Developer > Page Source
- ALT + T + W, ALT, the letter O key key release
If this answer solved your problem, please click 'Solved It' next to this response when connected to the forum.
Not related to your question, but...
You may need to update some plug-ins. Check your plug-ins and update if necessary:
- Plugin check: https://www-trunk.stage.mozilla.com/en-US/plugincheck/
- Adobe Shockwave for Director Netscape plug-in: install (or update) the Shockwave with Firefox plugin
- Adobe PDF plugin for Firefox and Netscape: Installation/update Adobe Reader in Firefox
- Shockwave Flash (Adobe Flash or Flash): updated Flash in Firefox
- Next-generation Java plug-in for the Mozilla browser: install or update Java in Firefox
-
Recently started having a lot of popup coupons - on the coupon it says you can stop it by clicking on the coupon on the menu bar button, but I don't see a button for coupon on any of the menu bars. How can I remove this problem?
Thank youThat's good news. You're still using Windows XP?
-
Jerky mouse mouseover function for all while the menu (file, options, help) and the key back/forward/home too. More scrolling is choppy every Web site since the update to version 3.6 to 4 RC1.
Gel mouse pointer when it comes across objects that use some sort of animation or gradual highlighting when hovering on (which is basically all the Firefox 4 items menu, tabs, etc.) But also a lot of things on the Web pages as the green buttons on this page that change color when you hover over them).
After rebooting my system, however, the problem seems to have disappeared!
[, WinXP SP3 - 4 GB RAM, Core i5 M520, driver Nvidia NVS3100M 6.14.12.5738, Firefox 4.0]
-
Yesterday, I went on the site for computers levno, help my web access to my work email. I opened the page to display the output items and was never able to get back out of it. Finally used ctrl, alt, delete and completed the task. After that, the what's my taskbar looks like, I can't resize or exit using the tabs at the top or at the bottom, they do not display, nor is starting to show in the lower left corner, where I like it. I tried to uninstall and reinstall did not help.
This has happened
Each time Firefox opened
== July 9, 2010
Hello Sher.
If you are talking about the menu bar, press ALT or F10 from your keyboard to make the Menu bar temporarily visible. If you want it to be visible at all times, go in view > toolbars > Menu bar, or right click on the Navigation bar (for example, the Reload button), and then select menu bar.
If this does not help, right-click the navigation toolbar, select Customize... and click on restore by default. If it does not immediately appear, try pressing ALT or F10. You can enter in view > toolbars > Menu bar to make it visible at all times, or with the right button of the Navigation toolbar and select menu bar.
If none of this helps, you may have a problem with some Add on Firefox which is an obstacle to the normal behavior of your Firefox. Try to disable all add-ons (just to see) to see if Firefox goes back to normal.
-
Question
I have another type of problem with Firefox
Description
Window "Ready to Install" Firefox "Software Update" appeared. The folder "C:\Program Files\Mozilla Firefox\updates\0" contained the files update.mar, update.status and update.version. Each of the 3 files have been deleted. The next time that Firefox has been started, no update occurred because update files were missing. In the Menu bar, clicking Help showed in the menu drop-down that "apply downloaded update now" was always on the list. By clicking on "Apply downloaded update now" open "Software Update" window "Ready to install update", so that Firefox still considers that the update files exist, but they do not. In the window "Software Update", by clicking on "Restart Firefox" restart of Firefox, but once again it there's no update, and remains "apply downloaded update now" on the Help menu. How can "Apply downloaded update now" be replaced by "Check for Updates" so the update files can be downloaded?
Version of Firefox
3.6.3
Operating system
Windows XP
User Agent
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; RV:1.9.2.3) Gecko/20100401 Firefox/3.6.3
Plugins installed
- npmnqmp - 989898989877
- NP-mswmp
- Adobe PDF plugin for Firefox and Netscape "9.3.2.
- Default plugin
- Foxit Reader plugin for Firefox and Netscape
- Shockwave Flash 10.0 r45
- Version 1.0.3 copyright 1996-2009 The VideoLAN Teamhttp: / /www.videolan.org/
You can manually reset the software update feature by closing Firefox and remove the file "updates" (which seems you have done) and the two files "active - update.xml" and "updates.xml" - these are in the installation (C:\Program Files\Mozilla Firefox) directory or in the profile folder (C:\Documents and Settings\nom_utilisateur\Application Data\Mozilla\Firefox\Profiles\something.default).
If it does not, see our KB article How to resolve the failure of the update of Firefox update error message - the section of 'last resort' can be useful, or or read this article from MozillaZine KB, software update.
Please let us know how the above work, and if we can be of further assistance.
-
Outlook Express 6, Windows XP SP 3
Problem: send an email, I get an error message and the email is not put in the sent items folder while the email (and attachments, if any) are successfully delivered to the recipient.
The full error message is always useful, but I'm sure you have damaged dbx files.
Spend most of your messages out of the Inbox and then create new folders to send and sent items box after having moved the messages you want to save to a local folder that you create.
Tools | Options | Maintenance | Store folder will reveal the location of your Outlook Express files. Note the location and navigate on it in Explorer Windows or, copy and paste in start | Run.
In Windows XP, Win2K & Win2K3 the OE user files (DBX and WAB) are by default marked as hidden. To view these files in Windows Explorer, you must enable Show hidden files and folders under start | Control Panel | Folder Options icon | Opinion, or in Windows Explorer. Tools | Folder options | View.
With OE closed, find the DBX files for the items in the Outbox and sent and delete them. New ones will be created automatically when you open OE.
After you're done, followed by compacting your folders manually while working * off * and do it often.
Click Outlook Express at the top of the the folder tree so no folders are open. Then: File | Work offline (or double-click on work online in the status bar). File | Folder | Compact all folders. Don't touch anything until the compacting is completed.
General precautions for Outlook Express:
Do not archive mail in the receipt or sent items box. Create your own user-defined folders and move messages you want to put in them. Empty the deleted items folder daily. Although the dbx files have a theoretical capacity of 2 GB, I recommend all a 300 MB max for less risk of corruption.
Information on the maximum size of the .dbx files that are used by Outlook Express:
http://support.Microsoft.com/?kbid=903095Disable analysis in your e-mail anti-virus program. It is a redundant layer of protection that devours the CPUs, slows down sending and receiving and causes a multitude of problems such as time-outs, account setting changes and has even been responsible for the loss of messages. Your up-to-date A / V program will continue to protect you sufficiently. For more information, see:
http://www.oehelp.com/OETips.aspx#3Why you don't need your anti-virus to scan your email
http://thundercloud.NET/infoave/tutorials/email-scanning/index.htmNote that for some AV programs, it may be necessary to uninstall the program and reinstall in custom Mode and uncheck analysis when the option is the result of e-mail messages.
Compact often as specified above.
And backup often.
Outlook Express Quick Backup (OEQB Freeware)
http://www.oehelp.com/OEBackup/default.aspx
Maybe you are looking for
-
My Satellite phone stops during the restore recovery disc image
On several occasions the laptop suddenly stops until he's finished completely restore the recovery disc.I have a suspicion that this may be due to get warm. If so, is there anything that might be too sensitive to heat and therefore tripping? It becom
-
Toshiba display driver vs other sources - Satellite P100
Hello A few questions... A couple of weeks ago, I bought a P100-188 (pspa3e) of PC World (don't hate me, they were cheaper than if she had in stock!), it came with the installed NVIDIA 6.14.10.8400 - presumably from the Forceware 84 of NVIDIA drivers
-
my screen is zoomed, and I don't know how to zoom out.
original title: I wore my laptop down the stairs and I must have pushed a button. my screen is zoomed, and I don't know how to zoom out. can someone help me?
-
FledgeHook removed from the latest version of the SDK
I just downloaded and installed the latest SDK WebWorks (v2.1.0.24) and noticed that the FledgeHook.exe and the FledgeHook.dll are no longer installed. These were voluntarily withdrawn? If so, are they really isn't necessary anymore?
-
BlackBerry smartphones download dictionary and bible
Hey, I HAV try as many times 2 download dictionary and bible my curve is nt me