Expansile issue of s:DataGrid of Flex 4.6

Hello
s:DataGrid needs a lots of related classes. Each classes are referred to directly and mutually.
There is no interface and no factory.
When I want to change a class which is related with s:DataGrid,
I have to create a lots of classes by copying many source codes of those classes.
Try to change s:DataGridEditor, you can't change it without copying source codes.
I believe that s:DataGrid is in the middle of creation because ExcludeClass metadata is specified at some important classes. 
e.g. GridLayout, DataGridEditor, GridSelection ...
Am I correct?
thanks
Shigeru Nakagaki

Hello dear Coders, can you share my result for Flex 4.6 and Air 3.1
I hope you because you can work your restarting air applications.
I am sorry because i have been copied completed code but code tags are crazy. I have been edited always. Can you like my example for your nice wqay with Adobe Air Thanks and you are welcome
Have fun! Best regards, Jens

Similar Messages

  • How to create file system datagrid in flex web application

    how to create file system datagrid in flex web application

    Hi,
    Check this out:
    http://shigeru-nakagaki.com/flex_samples/FileReference/FileUploadExample2/FileUploadExampl e2.html
    Johnny
    Please rate answer.

  • Issue with Number sort in flex datagrid

    Hi All,
    I have implemented Number sorting as mentioned in the below(code).
    I have placed the function that i am setting for the column that is to be sorted.
    This column contains formatted amount (e.g. $2,000.00), so flex considers it as String and sorts the data as String.
    In the function pasted below i am removing the formatting and then converting the unformatted string into a Number.
    This function works fine when the amount of data is not large. i.e. < 1000 records in datagrid.
    But when the records are > 1000, the sorting takes long time and most of the time the script takes more than 30 secs to run.
    The reason here is that when the amount of data is large then the comparisons increase and the method which i am calling in this method gets called twice as many times as the numericSort Function.
    This causes the delay and the error is thrown.
    IS THERE ANY OTHER WAY TO IMPLEMENT NUMERIC SORTING WHICH IS LESS TIME CONSUMING THAN THIS WAY?
    Please help as i need a solution to this urgently.
    Thanks.
    Here is the method
    Code :::
    public static function numericSort(obj1 : Object, obj2 : Object):int
            try
                    var d1 : Number;
                    var d2 : Number;
                    var index : int = Util.getColumnIndex("MARGIN");
                    d1 = Number(removeStringFormatting(obj1[index]));
                    d2 = Number(removeStringFormatting(obj2[index]));
                    if (d1 < d2) {
                          return -1;
                    } else if (d1 > d2) {
                         return 1;
                    } else {
                    return 0;
            catch(error : Error)
                    Alert.show("Error in numericSort "+error.getStackTrace());

    Off topic: Having 1000 results displayed at once in a DataGrid ( heck, even 100-200 at once ) is dumb. Instead, you should break your data down to smaller pieces and use paging or something to traverse the whole collection of data. Displaying an imense bunch at once is just plain dumb.
    Regarding your problem: Since the data displayed in the DataGrid is formatted, you won't be having an easy time trying to sort that formated data. Instead, you should convert the data back to Number or integer ( or whatever might suit your needs ) and sort it that way. A custom compare function is good because you can perform the conversion back to the original state there and then sort the values ( or you can store a temporal list of the data that is unformatted, sort it, format it and display it - this is just one possible solution of the quite many ).

  • Performance issues of tab movement in s:DataGrid of Flex 4.6

    Hello
    I'm talking about item editors movement by TAB key.
    In mx:DataGrid, it moves quickly. However, I feel it's slow in s:DataGrid.
    I investigated source of classes related with s:DataGrid a little.
    I found three reasons.
      1) s:GridItemEditor uses s:TextArea
       2) grid.focusManager.getNextFocusManagerComponent takes dozens of milliseconds in editor_keyFocusChangeHandler function of s:DataGridEditor
       3) it calls the validateNow method in do while loop at ensureCellIsVisible function of s:Grid
    We can avoid 1) by using custom light-weight editor. But we can't avoid 2) and 3).
    Why is 2) needed?
    When I comment out 3), the focus moves incorrectly at rendererIsEditor column.
    However, there should be other ways without calling validateNow.
    thanks
    Shigeru Nakagaki

    One more note, I also set stage.focus = null as soon as the user hits the Save or Cancel button to make the keyboard go away first but this doesn't fix the problem.

  • Click issue with s:Datagrid on mobile for iPads with retina displays (only left half is clickable)

    I'm currently testing a Flex mobile application (that was originally made for iPad 2) on high rest iPad fourth generation and iPad Air devices.
    I'm having this strange issue where the s:DataGrid, no matter where I use it in the application, will display correctly, but only the left half is clickable to select rows. The number of columns in the DataGrid is not important, nor is the width of the DataGrid, the problem is always present. As soon as you try to click in the right half, it doesn't work.
    The application uses an applicationDPI of 160, and scales properly on the higher resolution devices.
    So this feels like a bug to me, as if the DataGrid scales properly, but not it's clickable area?
    I have tried a bunch of stuff to see if I could work around this issue, like calling invalidate functions and setting the DataGrid's width dynamically, but no change so far.
    At this point I'm open for any suggestions or ideas...
    Edit: After further testing it seems the same is true for the height. I noticed when I added more rows in the grid. Only the top half of the DataGrid can be clicked. So it really looks like a dimension issue with the clickable area?
    Thanks

    I ended up not using the DataGrid, and decided to use the experimental MobileGrid instead, which is not afflicted with this issue.
    So this issue no longer concerns me.
    BTW the default theme of MobileGrid is dark, but can be lightened up with CSS and by extending the MobileGrid skins, up to a point where I almost can't tell the difference v.s. the DataGrid.
    It also performs better then the DataGrid. since it's based on List. With 300 elements, it scrolled noticeably faster.

  • Russian (cyrillic) text visualization in datagrid through flex-amfphp-mysq

    Hi to all!!!
    Here's the scenario.
    I've got a mysql db with several products stored in several languages (english,french,deutsch,italian and russian). The table is stored in utf8 and through phpMyAdmin or mysql GUI client I'm able to see correctly all the products in all the language (russian included).
    I've also setted up remoting through amfphp. I've got a remote php object which queries the MySQL extracting all the products related to a language. On the flex side a read the remote result and I put it in a data grid  through databinding.
    Everything works fine with english,french,deutsch and italian but the troubles come with russian.
    In DataGrid cell, instead of the cyrillic chars, are displayed many "??????".
    I've tried to elaborate the result of the query changing the string data with this php function mb_convert_encoding($row->describtion,'UTF-8','Windows-1251') but the text displayed remains the same.
    I've also tried with utf8_encode / utf8_decode.
    Is there anyone who already faced this issue?
    Am i doing something wrong on php side? Am I missing something on flex side?
    Any help would be appreciated!!!!
    Thanks in advance!
    Luke

    If you make a call to drupal, through the Actionscript Remote
    Object - you have to assign it a "return" function. If you put a
    breakpoint in that return function and run it you can see what the
    data looks like coming out of drupal. It's usually in an Object
    variable with all the properties setup to your return types.
    We've had great success parsing these objects directly from
    Drupal in our actionscript code.
    M@

  • How to get selected values (using checkBox) from DataGrid in flex.

    i have a datagrid which is getting values from a XML file (getting this xml file from database using PHP and HTTP request in flex). i have created a checkbox in every row in data grid. and here is my requirement: i want to select tow or three check-box and would like to get all the values form that particular ROWs in some form , prefered arraycollection (such that i can pass this array directly to a bar chart) .. can some one help me as i am new to flex .
    code ......
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" creationComplete="siteData.send()">
              <mx:Script>
                        <![CDATA[
                                  import mx.collections.XMLListCollection;
                                  import mx.controls.*;
                                  import mx.events.ListEvent;
                                  import mx.rpc.events.ResultEvent;
                                  import mx.controls.Alert;
                                  [Bindable] private var fullXML:XMLList;
                                  private function contentHandler(evt:ResultEvent):void{
                                            fullXML = evt.result.values;
                        ]]>
              </mx:Script>
              <mx:VBox>
                        <mx:Label text="This Data Grid is loading the full XML file"/>
                        <mx:DataGrid width="600"  id="datagrid" dataProvider="{fullXML}">
                                  <mx:columns>
                                            <mx:DataGridColumn headerText="Select">
                                                      <mx:itemRenderer>
                                                                <mx:Component>
                                                                          <mx:HBox horizontalAlign="center">
                                                                                    <mx:CheckBox id="check"/>
                                                                          </mx:HBox>
                                                                </mx:Component>
                                                      </mx:itemRenderer>
                                            </mx:DataGridColumn>
                                            <mx:DataGridColumn dataField="release_version" headerText="Release"/>
                                            <mx:DataGridColumn dataField="build" headerText="build"/>
                                            <mx:DataGridColumn dataField="time_login" headerText="time_login"/>
                                            <mx:DataGridColumn dataField="time_tunnel" headerText="time_tunnel"/>
                                            <mx:DataGridColumn dataField="rate_login" headerText="time_tunnel"/>
                                            <mx:DataGridColumn dataField="rate_tunnel" headerText="rate_tunnel"/>
                                  </mx:columns>
                        </mx:DataGrid>
              </mx:VBox>
              <mx:HTTPService url="http://localhost/php_genxml.php" id="siteData" result="contentHandler(event)" resultFormat="e4x"/>
    </mx:Application>
    as you can see in the image , i will get this datgrid . now i want to select two or three checkboxes and would like to get all the values form the perticular row (for which check box is selected). i would like to get in array from such that i can driectly pass them to bar chart....
    can some one help me in this. as i m new to flex. or if you have some other suggestion ...My final requirement is: select some values and generate bar gharph for those values.
    please help me in this.
    thanks
    tanuj

    Hi Timo -
    Thanks for the suggestion. I could get the values as below:
    public void multiOpUnitValChange(ValueChangeEvent valueChangeEvent) {
    // Add event code here...
    BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry();
    DCIteratorBinding opUnitIter = (DCIteratorBinding)bindings.get("OperatingUnit2VOIterator");
    Integer[] values = (Integer[])valueChangeEvent.getNewValue();
    for (int i=0; i<values.length; i++){
    Row row = opUnitIter.getRowAtRangeIndex(i);
    System.out.println(row.getAttribute("OpUnitId"));
    Thanks -
    Rohit

  • Issue with Supplier site descriptive flex field upgrade from 11i to R12

    We ran into some issue when upgrade Supplier site descriptive flex field from 11i to R12.
    In 11i. we defined descriptive field on JG_PO_VENDOR_SITES. in the segment definition, we defined one of the attributes default value based on Form Field Value, and the statement is like this:
    SELECT decode(:SITE.COUNTRY,'IT','AP ITALIAN TRANSACTIONS','AP AUTOFATTURA') FROM dual
    All above worked fine in 11i, whenever the flexfield field is open in forms, the default valuse shows based on the real-time value in :SITE.COUNTRY.
    In R12, Supplier site management is in HTML format. There is no forms, which means no form value. Do you have an alternative soluction for implement the same logic in R12?
    Thank you and regards,
    Kate
    Edited by: user12100435 on Feb 12, 2013 9:06 AM

    Kate,
    Have you logged a SR and see if Oracle support can help?
    Thanks,
    Hussein

  • Issues with file upload in flex mobile application (sharepoint as backend)

    Hello,
    I am working on flex mobile application for android platform for which we are having sharepoint as a backend.
    (Flex SDK 4.6 and AIR 3.9)
    Issue which we are facing is as follows:
    We are communicating with the backend server using webservices: example:
    <s:WebService id="kWebService" wsdl="http://www.kservice.net/kdatabaseservice.asmx?WSDL" >
                <s:operation name="AddPost"
                             resultFormat="object"
                             result="addPostResult(event)"
                             fault="postsfaulterr(event)" />
    </s:WebService>
    Above services are working fine but we are facing issue with one service which is related to file upload.
    File upload for <10 MB is working fine but when we try to upload larger file on server it fails to process.
    We are sending bytearray to the backend and backend code is writing those bytearray into file.
    We have tried many ways to overcome from this situation. like we have checked configuration for file upload size on server , we have tried wcf services as well. Please help us on this criticle point as soon as possible
    Thanks
    Dhwani

    Prashant8809 wrote:
    Hi
    >
    > I have already gone through the video by Thomas Jung for multiple file upload but it saves the contents in server and not in >transparent table. So please suggest me alternative solutions.
    >
    >
    > Regards
    > Prashant Chauhan
    What do you mean that my video saves the contents int he server and not in transparent table?  I save the data into a temporary database table so it can be accessed by the parent WDA session. From there the WDA session can do whatever it wants with it.  What do you mean by transparent table - that would be a database table. Do you actually mean internal table?  if so, just read the data from the temporary database table into memory.

  • Does compiling an advanced datagrid using flex ant task require additional config other than the license property?

    Hi,
        I am trying to build my Flex app which uses the Advanced Data Grid in a couple of locations. Originally, when I built the app using the flex ant tasks, I noticed the Visualization Trial watermark show up on the screen. I then added the license tag with the serial number to my flex-config.xml and re-ran my ant build. The watermark goes away, but then when I look at the advanced datagrid, the datagrid shows up with the hierarchy, but the data does not display in the grid (only the group by nodes are visible, not the data for the leaf elements). This works fine when I build the app using my Flex Builder. Is there something I am missing or need to add to my flex ant task to make this work?
    Any help or guidance is much appreciated.
    The following is the ant task to build the module that uses the ADG:
        <target name="compile-modules" depends="compile-shared">
            <!-- Module 1 -->
            <echo>Compiling module 1...</echo>
            <mxmlc file="${modulesrc.dir}\ui\modules\mod1\Module1.mxml"
                    output="${dist.dir}\modules\mod1\Module1.swf"
                    actionscript-file-encoding="UTF-8"
                    incremental="true"
                    default-background-color="0xFFFFFF"
                    use-network="false"
                    load-externs="${extern-report-xml}">
                <load-config filename="${FLEX_HOME}/frameworks/flex-config.xml" />
                <source-path path-element="${FLEX_HOME}/frameworks"/>
                <!-- source paths -->
                <compiler.source-path path-element="${modulesrc.dir}"/>
                <!-- add external libraries -->
                <compiler.library-path dir="${main.dir}" append="true">
                    <include name="${lib.dir}"/>
                </compiler.library-path>
                <compiler.library-path dir="${FLEX_HOME}/frameworks" append="true">
                    <include name="libs" />
                    <include name="locale/{locale}" />
                </compiler.library-path>
                <compiler.debug>true</compiler.debug>
            </mxmlc>
        </target>
    And here is the ant task for the main application:
        <target name="compile-ui" depends="compile-modules">
            <mxmlc file="${src.dir}/MainApp.mxml" output="${dist.dir}/MainApp.swf"
                    actionscript-file-encoding="UTF-8" keep-generated-actionscript="false"
                    fork="true" maxmemory="1024m">
                <jvmarg value="-XX:MaxPermSize=256m"/>
                <load-config filename="${FLEX_HOME}/frameworks/flex-config.xml"/>
                <source-path path-element="${FLEX_HOME}/frameworks"/>
                <source-path path-element="${src.dir}"/>
                <source-path path-element="${main.dir}/locale/{locale}"/>
                <!-- List of SWC files or directories that contain SWC files. -->
                <!--<compiler.library-path dir="${FLEX_HOME}/frameworks" append="true">
                    <include name="libs" />
                    <include name="locale/{locale}" />
                </compiler.library-path>-->
                <compiler.library-path dir="${FLEX_HOME}/frameworks" append="true">
                    <include name="libs/datavisualization.swc" />
                    <include name="libs/flex.swc" />
                    <include name="libs/framework.swc" />
                    <include name="libs/rpc.swc" />
                    <include name="libs/utilities.swc" />
                    <include name="locale/{locale}" />
                </compiler.library-path>
                <compiler.library-path dir="${main.dir}" append="true">
                    <include name="${lib.dir}"/>
                </compiler.library-path>
                <runtime-shared-library-path path-element="${FLEX_FRAMEWORK}/framework.swc">
                    <url rsl-url="framework_3.2.0.3958.swf"/>
                    <url rsl-url="framework_3.2.0.3958.swz"/>
                </runtime-shared-library-path>
                <compiler.debug>true</compiler.debug>
            </mxmlc>
        </target>
    Regards,
    Purush

    to remove watermark i have added license key in WEB-INF\flex\license.properties file as key = value

  • Issues adding swfs created in Flex to a Captivate project

    The company I work with, ePath Learning Inc. has an online authoring tool called eActivity that we use to publish different eLearning templates. This online tool is built completely in Flex and uses the Flex compiler to ouput a swf file that can be used in many different products and online courses. Because it's an AS3/Flex created swf, we've had to wait for Captivate 4 to be released to support the generated swf file, so now we are testing it's compatibility and have run into some issues. It appears that swf files from our online authoring tool do not work correctly in Captivate. Further testing resulted in any swf published using Flex do not work properly in Captivate. Attempts at adding a swf file complied with Flex result in a variety of different errors as well as a performance issue causing the control bar as well as all other aspects of the Captivate project to work incorrectly.
    I've attached 2 sample swf files, 1 built using our online authoring tool and 1 using Flex Builder 3. When added to a new blank project in Captivate 4 using AS3 settings we have the errors as explained above.

    Hi there
    I just uploaded a small video to Jing. See if it helps you resolve the issue.
    Click here to view
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • Adobe Flex integration - Issue with populating table in Flex

    I'm trying to populate a table EXORGDS. In SAP I have defined the same DATASOURCE as EXORGDS. Here is the code I have defined in Flex.
    <mx:DataGrid id="OrgGr" borderStyle="outset"  backgroundAlpha="2" width="285" rowCount="3" backgroundColor="#ffffff" dataProvider="">
                <mx:columns>
                    <mx:DataGridColumn dataField="PORGUNIT" headerText="Org Unit"/>
                    <mx:DataGridColumn dataField="PORGDESC" headerText="Description"/>
                </mx:columns>
      </mx:DataGrid>
    Am I missing something here.
    Regards,
    Imthiaz

    Hi Srilatha,
    I am struck in the same problem. I am using the grouping collection option in Flex but my data is not getting displayed in the Flash Island, I have attached the code sample. Kindly guide me.
    <mx:AdvancedDataGrid id="myADG"
            width="100%" height="100%"
             initialize="gc.refresh();"  >       
            <mx:dataProvider>
                <mx:GroupingCollection id="gc" source="{datasource}">
                    <mx:grouping>
                        <mx:Grouping>
                            <mx:GroupingField name="{dis}"/>
                            <mx:GroupingField name="{ter}"/>
                        </mx:Grouping>
                    </mx:grouping>
                </mx:GroupingCollection>
            </mx:dataProvider>       
            <mx:columns>
                <mx:AdvancedDataGridColumn dataField="{dis}"
                 headerText="Employee Name"/>
                <mx:AdvancedDataGridColumn dataField="{ter}"
                    headerText="Age"/>
                <mx:AdvancedDataGridColumn dataField="{act}"
                  headerText="Department" />
                <mx:AdvancedDataGridColumn dataField="{est}"
                  headerText="Job Title"/>
            </mx:columns>
        </mx:AdvancedDataGrid>  
    Thanks
    Vivek

  • Undefined error: when update datagrid in flex

    I get this error when trying to update a field in my datagrid, using LCDS 2.61 with coldfusion.
    Why?
    undefined
        at mx.data::CommitResponder/result()[C:\depot\flex\branches\enterprise_bridgeman_final_hotfi xes\frameworks\mx\data\CommitResponder.as:424]
        at mx.rpc::AsyncRequest/acknowledge()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\ AsyncRequest.as:74]
        at NetConnectionMessageResponder/resultHandler()[C:\autobuild\3.2.0\frameworks\projects\rpc\ src\mx\messaging\channels\NetConnectionChannel.as:515]
        at mx.messaging::MessageResponder/result()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx \messaging\MessageResponder.as:199]
    Thanks,
    Jon Kravetz

    To troubleshoot this, you should add <mx:TraceTarget /> to your mxml file and then debug your application.  Afterwards, reply with the trace log from the console...

  • Datagrid for flex mobile apps

    Hello,
    Since in-built Datagrid component is not optimized to be used in flex mobile apps, what is the best alternative we can go ahead with?
    I have seen some of the posts which says that we can use List. But I'm still unable to find how List can be used. As we would need multiple columns, should we be using multiple Lists for each column?
    Kindly let me know if any of have have got this working and how.
    Appreciate your help..
    -Deepak

    Anyone please?:) Flex HarUI ??

  • Issue with child items of flex tree using QTP

    Hi,
    We are trying to automate Flex web application using QTP10.
    We are facing below issue with Flex tree when we try to automate a scenario of selecting a child item displayed in flex tree.
    Issue:
    On recording the step of selecting an item from Flex tree using QTP, the script displayed is .Select Index1. But when we replay it back no action is being performed.
    Also on object spy we are able to navigate only till flex tree and we are not able to spy child items of flex tree.On the web page the child items are displayed as radio buttons/checkboxes.
    Please provide a solution for me to this problem.
    Thanks

    Hi,
    You could perform a HTTP trace (using HTTP watch) and compare the OCI data in POST method for both users (the correct and incorrect ones).
    Perhaps there is some additional/missing information being passed from catalog to SRM.
    Kind regards,
    Ricardo

Maybe you are looking for

  • Import package error in SAP BPC 4.1

    Hi, Can anyone please assist. I tried running the import package several times on bpc ver 4.1 without aby success. I even tripple checked Users and Security and it validated successfully but the package still crashes in the middle of processing. The

  • How to I set up a local number in the 868 area cod...

    I have a friend in Trinidad and wish for her to call me with her area code to get a hold of me. Thanks!.

  • Access-SQL Server (Client Server Configuration) Best Way To Refresh SQL Server Records ?

    We are using Access 2013 as the front end and SQL Server 2014 as the back end to a client server configuration. Access controls are bound to the SQL fields with the same names. When using Access to create a new record in a Form, the data are not tran

  • How to delete cisco logs ?

    hi ! how can we remove logs on a router so as when we run "show logging" or "sh log", it'd be a 'tabula rasa' ? thanks !

  • [SOLVED] Removing systemctl service trouble

    Hello During installation I followed the instructions below: cd /etc/netctl cp examples/wireless-wpa my-network to create a config for my wireless network. The problem I have now is that I have since renamed that file to not include the "-" character