Failing of DataGrid Item Renderers, personalised in the loaded module.

I'm an application that manages a lot of types of data records.  You can load the plug-in (in the form of swf modules) which provide additional models record and the views and editors for these record types.

Above all, it works fine, except for a serious problem: wherever they are defined (inline, in the same file, the same swf or swc interface), any custom spark grid point motors which are used in the loaded views or editors cause my application crash when running.  Oddly, my DataGroup element converters seem to be the same problem, so far.

I've found a workaround.  In other words, if I fix the rendering engine when running, creationComplete and refer to this renderer in the main application, then it works fine.  However, it's a bit of a pain, if one of my plugin writers want to use a custom grid element converter I have has not planned in advance.  I really want a way for my plugin-developers being able to define new renderers, if necessary.  Clues on how to address this problem?

Here is the the crash stack trace:

TypeError: Error #1009: cannot access a property or method of a null object reference.

to spark.components::Group/addElement() [E:\dev\4.5.1\frameworks\projects\spark\src\spark\com ponents\Group.as:1342]

to spark.components.gridClasses::GridLayout/createTypicalItemRenderer() [E:\dev\4.5.1\framewo rks\projects\spark\src\spark\components\gridClasses\GridLayout.as:748]

to spark.components.gridClasses::GridLayout/updateTypicalCellSizes() [E:\dev\4.5.1\frameworks \projects\spark\src\spark\components\gridClasses\GridLayout.as:883]

to spark.components.gridClasses::GridLayout/measure() [E:\dev\4.5.1\frameworks\projects\spark \src\spark\components\gridClasses\GridLayout.as:444]

to spark.components.supportClasses::GroupBase/measure() [E:\dev\4.5.1\frameworks\projects\spa rk\src\spark\components\supportClasses\GroupBase.as:1148]

at mx.core::UIComponent/measureSizes() [E:\dev\4.5.1\frameworks\projects\framework\src\mx\cor e\UIComponent.as:8496]

at mx.core::UIComponent/validateSize() [E:\dev\4.5.1\frameworks\projects\framework\src\mx\cor e\UIComponent.as:8420]

to spark.components::Group/validateSize() [E:\dev\4.5.1\frameworks\projects\spark\src\spark\c omponents\Group.as:1012]

at mx.managers::LayoutManager/validateSize() [E:\dev\4.5.1\frameworks\projects\framework\src\ mx\managers\LayoutManager.as:665]

at mx.managers::LayoutManager/doPhasedInstantiation() [E:\dev\4.5.1\frameworks\projects\frame work\src\mx\managers\LayoutManager.as:792]

at mx.managers::LayoutManager/doPhasedInstantiationCallback() [E:\dev\4.5.1\frameworks\projec ts\framework\src\mx\managers\LayoutManager.as:1180]

In fact, I thought that this outing yesterday, but apparently you forgot to answer.

The problem you are having has to do with modulefactory.  Components of a

module must have their moduleFactory the value of the module.  This is done

If you use the on the factory's create() method, or you can assign

later if you want.

-Alex

Tags: Flex

Similar Questions

  • After update Folio Builder Panel 1.1.3. Items to keep in the loading

    Hi all

    After update panel Builder Folio as requested (by the Panel it self), we cannot access any article. A loading icon stops animating and grey stay article-records. Anyone know how to fix this?

    Research before hear you.

    Kind regards

    Remco van den Hout

    Hi Remco,

    This article has been published: http://kb2.adobe.com/cps/913/cpsid_91340.html

    This problem is caused by with older versions of the Folio Builder Panel which are not compatible with the current version of the code Server Digital Publishing Suite.

    Information on the installation of plugins creating content for the creation of Folio: http://help.adobe.com/en_US/digitalpubsuite/using/WS67cb9e293e2f1f60-21ba9a4512e5e5e0b8d-7 ffe.html

    With sincere friendships.

    KlaasJan Tukker

    Adobe Systems Benelux

  • Access the class from the loaded module

    I have this in the main application and I the public variable test in the module. The problem is that I don't know how to access it properly.

    public

    var fontsModule:IModuleInfo;

    public var FontsClass: Class;

    public

    function initApp(evt:FlexEvent):Sub

    {

    fontsModule = ModuleManager.getModule ("modules/fontsBG.swf");

    fontsModule.addEventListener (ModuleEvent.READY, fontsLoaded);

    () fontsModule.load

    new ApplicationDomain (ApplicationDomain.currentDomain), null , null , moduleFactory);

    }

    public function fontsLoaded(evt:ModuleEvent):Sub

    {

    FontsClass = fontsModule.factory.create)

    as Class;

              trace ()' HERE: "(+ FontsClass.test);". "

    }

    If I replace the class with the name of the 'FontsBG' class actions script in this example, everything would work, but the main swf file size goes from 100 to nearly 400 kbs when the fontsBG.swf file is 67 kbs. So I'm certainly not doing it right.

    So the question is: what is the correct way of loading the modules and using their properties and functions - through the class or interface and how it's done? Please set up a small code example so I can get the concept of base as well as the readers of this thread.

    Thank you!!!

    (3) again, you will need to use a shared interface or a common base class.

    Most people put the UI widgets in a module and they all extends UIComponent

    You can reference them as UIComponents.  If they need to access other

    Properties and methods, they define an interface.

    (1) my guess is that the button does not know what a module with embedded

    fonts loaded and don't refresh to use.  Normally, you would

    wrap styles in the module with the fonts, and then set styleonce

    the module is loaded.  In this case, you specify MyriadPro as the

    CSS font family and he would set via setStyle once the module is loaded.

  • How to recharge areas after the end of the loading of Javascript?

    Hello community,

    I got JavaScript in the "run when the Page loads" - Section, which basically load content of the database in hidden Page items (with a conversion of XML).

    These hidden Page items are part of the Source of my graphics in the Apex.

    This works fine until now, my problem is now:

    Given that my hidden Page items are filled on the loading of the page, I need to submit (or update) my page again so that the changes in these elements will appear in my paintings.

    How to avoid that?

    thought of a few possible solutions:

    1 Refresh (dynamic action) my chart regions automatically once the page has been loaded. Could not get this to work, try loading the page events, before sending the page, after discounting, unloading of the page with the 'Refresh' True Action and selection-Type 'Region '.

    2. let graphic-region-charge wait Javascript code at the end. If possible, can you tell me how?

    Sorry if this is already answered in another topic, could not find an answer. (Was not yet sure how to search this topic)

    Thanks in advance for any advice,

    Thomas

    -APEX version: 4.2.5.00.08

    -DB version and edition: 11g

    -Browsers used: Firefox (sometimes Chrome)

    -Theme used: 2 - blue Builder (and 1 - red single)

    -Models - of the region a report model

    WOD wrote:

    Why you use this approach? Why not produce all the necessary contents to see the processing page?

    Well, I use because it's pretty complex (generate data dynamically) and from what I've read there is no more easy/other approach. Unfortunately, I do not know what you mean by 'page display treatment '. Could you please explain that?

    Generate values for page elements hidden using calculations or processes at the points of execution before Header/After Header/Before regions.

    You specify the items hidden in the properties of Elements of Page to submit of the graphic regions?

    I don't have the "Page elements must send" - field in one of my areas. Are you sure that there must be a?

    Yes. This property has been moved from the report attributes page as it is now supported by other types of region (e.g. graphics and plug-ins). For the parts of the diagram, the property is located in the section series of each series definition query.

    If you use this approach, complete all of the necessary content generation and region is updated on a single charge of dynamic Page action is likely to be easier than trying to synchronize JavaScript running in two different places...

    I will try the solution of dynamic load page all-in-One action. If I get this right, I should create a D.A. with the "Page Load" event and several real actions. First being "run the Code Javascript' with the JS Code, I am currently under"Run when the Page loads", followed by a simple"Refresh"Action-true, no?

    Yes.

    Edit: with the D.A. all-in-One I have the same problem as before. (JS code 1, 2) 'Refresh', type 'Region', the selection on the "mychartregion" region). Issue being, what I have to do an another refresh (update of manual button) so that the changes become visible.

    This is because the elements with generated content are not specified in the elements of the Page Properties to submit for the series in the chart.

  • Microsoft SQL Server 2014 (SP1 - CU4) (KB3106660) query failed with error ORDER BY items must appear in the select list if SELECT DISTINCT is specified.

    Hello
    I use Microsoft SQL Server 2014 (SP1 - CU4) (KB3106660) Enterprise Edition (64-bit) on Windows NT 6.1 (Build 7601: Service Pack 1)

    SELECT DISTINCT A.PI_LOOKUP_CATEGORY_ID,
    REPLACE (REPLACE (UPPER (A.LOOKUP_CATEGORY_NAME), ' ', '_'), '-', '_') AS CATEGORY_TECH_NAME,
    A.LOOKUP_CATEGORY_NAME,
    A.LOOKUP_CATEGORY_DESCR,
    COUNT (B.PI_LOOKUP_CATEGORY_ID) AS USAGE_COUNT
    FROM [PI_LOOKUP_CATEGORY] A LEFT OUTER JOIN B [PI_INSIGHT_COLUMN] WE
    A.PI_LOOKUP_CATEGORY_ID = B.PI_LOOKUP_CATEGORY_ID
    A.PI_LOOKUP_CATEGORY_ID GROUP,
    REPLACE (REPLACE (UPPER (A.LOOKUP_CATEGORY_NAME), ' ', '_'), '-', '_').
    A.LOOKUP_CATEGORY_NAME,
    A.LOOKUP_CATEGORY_DESCR
    ORDER TO REPLACE (REPLACE (UPPER (A.LOOKUP_CATEGORY_NAME), ' ', '_'), '-', '_')

    above request is failed with error ' ORDER BY items must appear in the select list if SELECT DISTINCT is specified. " Microsoft SQL Server (SP1 - CU4) 2014 (KB3106660)

    same query works fine with older versions of SQL servers like (2008R2, or 2012)

    Please let me know the resolution of this problem...

    Thank you
    Touria

    Ask here:

    MSDN - SQL Server - Microsoft forums

  • Multiple Item Renderers

    Hi all

    I'm building a SectionList who displays a lot of complex information in several States. Is it possible to use several renderers point within the same list?

    In flex, you can override createItemRenderer and return different custom items, but the sectionList has no similar method I can find.

    Any ideas?

    My other thought was to use a rendering engine of single cell skins himself differently according to its data, but it seems not as elegant somehow.

    Cheers for your help

    Converters of point are reused in a list, that you scroll to the top and elements are moved out of sight on one side and new to the other side. For example, when you scroll the contents of the list to the top, the class cellrenderer for the item that was above previous and now is invisible, is reinserted inside to become the rendering engine for one of the order of the day calls to view.

    For this reason, your only real option is to change your render engine configuration based on what he sees in the Appeal substituted for "protected function set data().

    Also note that for this reason, if you create child objects in this routine, you could have memory leaks and performance issues. You should create first of all children, that you need in the manufacturer or another place that is called only once, and then just juggle them around (add / removeChild (), etc.) as required based on the data passed to the routine "data value".

  • Too many items to menu in the application will result in failure project packaging

    Hi all

    I have a problem in my application when the number of the menu in the application items exceeded a certain number of the packaging project fails.

    When I tried to the bottling of the project in eclipse, an error message was the result:

    I/o Error: Cannot run program "jar": CreateProcess = 2 error, the system cannot find the file specified
    Packaging project Myproject failed (taken 6,391 seconds)

    But when I remove one menu item package succeeded.

    What could be wrong.

    Thanks in advance.

    Thank God,

    I found the solution:

    I'm not sure but I think becaue I use (Blackberry JRE 5) so I need JDK 6 more to update 20.

    But what makes issue resolved that:

    I installed (JDK 6 update 21) and put the path to the bin folder in environment variables.

    Here is the link to download (JDK 6 update 21):

    http://download.Java.NET/jdk6/6u21/promoted/b05/binaries/JDK-6u21-EA-bin-b05-Windows-i586-29_may_201...

    To add the environment variable:

    Right click on my computer > properties > advanced > environment variables:

    system variables:

    Double click PATH, and then add the path to the bin folder (can be like this: "C:\Program Files\Java\jdk1.6.0_21\bin")

    I hope this will help one.

  • DataGrid, error using DateField as the post editor

    Hello

    I am trying to create a DataGrid editable using Flex 2.0.1. One of the columns is of type Date, so I want to use a DateField as the item editor.

    The problem is that I get an error when the focus is removed from the DateField:

    TypeError: Error #1034: Assegnazione di tipo forzata limpeza no:
    Impossibile convertire "10/01/1980" in Date.
    at mx.controls::DataGrid/::itemEditorItemEditEndHandler()

    It seems that the DataGrid control is trying to assign the value of raw string in my data provider object.

    It is a code snippet that reproduce the problem:

    < mx:Script >
    <! [CDATA]
    [Bindable]
    private var lines: collection ArrayCollection = new ArrayCollection();
    private function init (): void {}
    called on creationComplete
    var testRow:PersonVO = new PersonVO();
    testRow.name = "name";
    testRow.surname = "name";
    testRow.birthDate = new Date (1980, 9, 1);
    rows.addItem (testRow);
    }
    []] >
    < / mx:Script >
    < mx:DataGrid dataProvider = "{lines}" editable = "true" >
    < mx:columns >
    < mx:DataGridColumn dataField = "name" / >
    < mx:DataGridColumn dataField = "name" / >
    < mx:DataGridColumn dataField = "birthDate" >
    < mx:itemEditor >
    < mx:Component >
    < mx:DateField formatString = "DD/MM/YYYY" / >
    < / mx:Component >
    < / mx:itemEditor >
    < / mx:DataGridColumn >
    < / mx:columns >
    < / mx:DataGrid >

    Do you have an idea of the cause of this behavior?

    Thank you
    Cosma

    Hello

    I managed to do works by adding the editorDataField = "selectedDate" attribute to the element of DataGridColumn, even leaving the attribute date of birth on the VO as public Date variable.

    Thanks anyway for the help.
    Cosma

  • DataGrid and loose coupling of the selectedItem

    I'm pretty new to Flex, but I know that this must be possible, but search as I might I cannot find examples of what I need online, so I hope someone here can help me out or point me in the right direction.

    I have two custom components, with a DataGrid that has a collection ArrayCollection as dataprovider, and the other is a simple panel - simply designed for the display of the details of any item is selected in the datagrid control.

    How can I switch the selectedItem of the data grid to the Panel element? At the moment I can't move outside the datagrid component, perhaps because I do not use the event good or because I am the binder not correctly.

    Thank you
    ELSA

    Let me see if I understand. You have something like this: a main application (or MXML file) which has 2 children. One contains a DataGrid control and the other contains a Panel. You want to get the data grid selection appear in the Panel.

    Call this: MyGrid.mxml (say that it extend HBox and HBox has a DataGrid inside) and MyPanel (it extends from Panel and it has a label, for example).

    In MyGrid.mxml:

    1 define an event: [Event (" gridSelect")]
    2. define a public var to access the selection: [Bindable] public var selectedItem: Object;
    3. the change on the DataGrid event set the value of selectedItem and dispatches the event:

    private void handleChange(): void {}
    selectedItem = mygrid.selectedItem;
    dispatchEvent (new Event (" gridSelect"));
    }

    In MyPanel.mxml:

    1. define a public variable to accept data: [Bindable] public var gridItem: Object;
    "{2 binding to this element in the controls: gridItem.employeeName}" / >

    In the hand (or other) component with MyPanel and MyGrid has children:


    gridSelect= "mypanel. gridItem = event.target. selectedItem"... / >"

    Notes:

    I tried to use characters bold, underline and italics to show where the elements are releated.
    There are other ways to do it, but I think it is the simpler and easier to understand. You have MyGrid sending an event every time that the DataGrid is selected and it provides a public variable that contains the selection. The MyPanel has a var that various controls are bound to data. When the gridSelect event is triggered, the public variable MyPanel is set to the selectedItem and this will trigger the data binding to update MyPanel controls.

  • 3D "" on"" (nvidia Control Panel) crashes thunderbird if closing a thunderbird menu item. 3D off the coast? Thunderbird works again.

    Well plant? "If the opening of a thunderbird menu item and close, you get a"not responding"" WARNING and the only thing to do is to close the program. Windows 7 can't find a solution.
    This is just a warning.
    It took me a long time until I discovered that it is 3D. (reinstall a virusscanner, a point of restoring 3 times and a full system image)
    I realize there are not many people using nvidia 3d. So I don't expect any change by programmers.
    O, the first time I also had to restart windows after 3D ' "" No idea why it was that the first time.
    I already pulled the 3d module (what the hell he was doing there?) but that did not help.

    Hardware acceleration has been such a problem that the 38 coming version has a user interface in the advanced options to enable the use of hardware acceleration on and off voltage.

    Until then, it is the same job https://support.mozilla.org/en-US/questions/1012145

  • What is the menu item "Bring everything to the front ', and how to use it?

    What is the menu item "Bring everything to the front ', and how to use it?

    It's a selection in the window menu and means to bring all open windows of this application at the front and push all the windows open for other applications behind. This makes access to the easiest application windows. However, if you don't have that one window open in an application, then the menuitem does nothing.

  • I've updated for Mozilla 9.01 and it fails to display my home page that the URL is not valid

    My Update tab is missing and I can't go back to the "restore previous Session '. If I change my homepage and if I close the browser and re - open my new home page is not.

    Clear the cache and cookies from sites that cause problems.

    "Clear the Cache":

    • Tools > Options > advanced > network > storage (Cache) offline: 'clear now '.

    'Delete Cookies' sites causing problems:

    • Tools > Options > privacy > Cookies: "show the Cookies".

    Start 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).

    If the menu bar is hidden, then press the F10 key or hold down the Alt key to make the call of menu bar.

    Make sure the toolbars like the toolbar 'Navigation' and the 'personal bar' are visible: "view > toolbars".

    • Open the Customize via "view > toolbars > customize.
    • Make sure the "Bookmarks Toolbar items" are on the personal bar
    • If the "Bookmarks Toolbar items" is not on the bookmarks toolbar, then FRY it in the toolbar palette in the window the bookmarks toolbar Customize
    • If the missing elements are in the toolbar palette then drag them from the window, customize the toolbar
    • If you do not see an item on a toolbar in the toolbar palette and then click the button "Restore default" to restore the default toolbar set up
  • Why should I enter a password when item is moved to the trash

    Why should I enter a password when item is moved to the trash

    All items from anywhere?  If you try to trash system files, they can have special permissions.

  • Windows fails to load, the loading screen bar after installed KB2479628 _

    Windows fails to load once installed KB2479628, my Dell BIOS boots then the loading loading bar continuously scrolls. After now the power button for 5 seconds and re-start the computer, Startup Repair tries to run and need to use system restore to properly initialize.

    I uninstalled the update and disabled for windows updates won't install the update on its own.

    • Never had a failure of the before update.
    • running a dell inspiron e1705
    • V8.0.6 IE / Win Vista SP2a

    Research on the update, it seems that KB2479628 is very important. Is there a reason that my system is not compatible with it?

    [1] [of Spybot's Tea Timer is] Enabled

    [2] I was running AVG previos version and previous version of Comodo until the current version of Comodo conflicted with AVG...

    A1. Please disable the Tea Timer of Spybot and leave this option unchecked for now. See http://aumha.net/viewtopic.php?f=26&t=32409

    NB: If you don't fully understand what Tea Timer does and how it does, leave it off in a way permanent.

    A2. Comodo Internet Security includes an antivirus application. You should NOT have more than one 1 installed anti-virus application & loading at startup. You tell me that you used to have Comodo Internet Security (antivirus, antispyware, firewall) AND AVG Free anti-virus installed at the same time?

    PS: Let us a favor & edit your first post above: replace KB2479268 KB2479628typos. Thank you!

    ~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft

  • of the Assembly's strong name validation failed "c:\windows\ehome\ehshell.exr". The file may have been tampered with or it was partially signed but not totally witht the

    media center ehshell.exe received the error message 205 units

    of the Assembly's strong name validation failed "c:\windows\ehome\ehshell.exr". The file may have been tampered with or has been partially registered, but not totally witht the private key

    After you have installed the XP SP3.

    How can I fix this error.

    Media Center worked fine until I installed SP3.

    Hello

    I imagine the inconvenience that you have experienced, but don't worry, we are here to help solve the problem and guide you in the right direction.

    Ehshell.exe is a Windows system file that is used to run Microsoft Media Center. It is not a critical system file. However, the ehshell.exe file can become infected and cause errors trying to run certain programs. If the ehshell.exe is absent, it can also cause errors. Reinstall a clean copy of ehshell.exe with the Microsoft System Restore.

    (a) click on the "Start" menu, then click on "programs". Scroll down and click on "Accessories," then "system tools." Click "System Restore."

    (b) click on 'Next' in the system restore window to view a list of points of restoration which has been archived.

    (c) select a restore point created before the ehshell.exe file becomes corrupt or got deleted. If no restore point until this time is listed, click on "Show restore points more" to select the one that is before this date. Click 'Next' to choose which restore point.

    (d) click on 'Finish' to start the system restore. The computer will restart once the process is complete and the ehshell.exe file is reinstalled.

    If the problem persists, follow these steps:

    You try to run the following commands to re-register all Media Center services:

    (a) close Media Center

    (b) click on the start menu, choose run and type cmd , and then press ENTER.

    (c) in the command prompt, run the following commands to type (or copy/paste) the one at a time and press on enter:

    · Regsvr32.exe atl.dl

    · C:\WINDOWS\eHome\ehl Sched /unregServer

    · C:\WINDOWS\eHome\ehSched/service

    · C:\WINDOWS\eHome\ehRecvr /unregServer

    · C:\WINDOWS\eHome\ehRecvr/service

    · C:\WINDOWS\eHome\ehRec.exe /unregServer

    · C:\WINDOWS\eHome\ehRec.exe/regserver

    · C:\WINDOWS\eHome\ehmsas.exe /unregServer

    · C:\WINDOWS\eHome\ehmsas.exe/regserver

    · Restart the Media Center

    Hope this helps and let us know if you need more assistance. We will be happy to help you.

Maybe you are looking for

  • 23.0.1 does not accept keyboard entries

    Since the upgrade to 23.0.1 this morning I am not able to use keyboard shortcuts, type the address bar, search or page box. I tried to open Firefox in safe mode, but that did not help.

  • error Ox8007064a aggiornamento app

    Non riesco ad installare nessun aggiornamento delle approx. e installarne di nuove even. It could be he di not misconfigured windows firewall? Defender antivirus e Malwarebyte s help

  • Scan multiple pages into 1 PDF file

    I am able to scan a page in a pdf document, but need to scan several pages simultaneously in 1 pdf doc. Microsoft windows Vista Home Premium 6.0.6002 service pack 2 build 6002, HP Officejet J6480 all in one.  Connect the jet of office by usb cable. 

  • EA6500 &amp; Range Extenders

    I have an EA6500 that works very well for me. But our new House is a bit bigger. Wanted to know if the RE6500HG is compatible with my EA6500 as a range extender? Thank you

  • I have Windows Home Premium do I need windows vista or windows xp

    I'm so confused as to what I need and that you don't need.  There is therefore a lot of downloads, I don't know which ones that I need or if I need any of them.  I have premium have window.