Grouping issue on Advanced DataGrid

Hello,
I've got an advanced datagrid with 5 columns, The number_Group column has data like this...
1-10
1-10
11-20
11-20
11-20
21-30
21-30
21-30
41-50
101-110
When I apply Grouping, it works as expected but the 101-110 group is displayed before the 11-20 group.
I've tried to set groupingField.numeric = true but that screws it up even more... because 11-20 isn't a number I'm guessing.
Does anyone know a way around this? I could change the number_Group column to this...
1
1
11
11
21
41
101
and groupingField.numeric = true should work but I need the Grouping display to show 1-10, 11-20. Perhaps I can intercept this and modify it?
Anyone got any ideas?
Thanks,
Nick

Hi, Nicky
u can solve this problem by grouping function.
u create ur dataprovider like
private var myData:ArrayCollection = new  ArrayCollection([{data1:1, data2:10,......},
                                                                                     {data1:1, data2:21, ....}]);
u declare the grouping function in following manner
private function myGroupLabelFunction(item:Object, column:AdvancedDataGridColumn):String
// here u write ur logice to formatting ur dispalying data in advance grid.
//suppose ur labelfield of datagrid are data1,data2, data3 respectively.
return item.data1+"-"+item.data2;
if u do in this way i think it will work.
if u sucess then give me mark.
Thanks
Niranjan

Similar Messages

  • Removal of grouping icon on advanced datagrid

    Hi
    Is it possible to remove the folder icon when you having grouping on the advanced datagrid? I ve done some googling but cant find a solution.
    Cheers
    Shaun

    Hi, Nicky
    u can solve this problem by grouping function.
    u create ur dataprovider like
    private var myData:ArrayCollection = new  ArrayCollection([{data1:1, data2:10,......},
                                                                                         {data1:1, data2:21, ....}]);
    u declare the grouping function in following manner
    private function myGroupLabelFunction(item:Object, column:AdvancedDataGridColumn):String
    // here u write ur logice to formatting ur dispalying data in advance grid.
    //suppose ur labelfield of datagrid are data1,data2, data3 respectively.
    return item.data1+"-"+item.data2;
    if u do in this way i think it will work.
    if u sucess then give me mark.
    Thanks
    Niranjan

  • Filtering of Grouped data in Advanced DataGrid

    I want to display the Hierarchical Data (groped data) in
    Advance DataGrid and at the same time I want the filtering
    functionality as well. The problem is if I want grouped view then I
    have to provide GroupingCollection to the dataprovider ( that has
    no filterFunction type functionality ).
    Is there any way to solve this issue?

    You have to call adg.validateNow() after assigning the
    GroupingCollection as dataProvider to the AdvancedDataGrid and
    before applying the filterFunction.
    It should be like -
    adg.dataProvider = gc;
    adg.validateNow();
    IHierarchicalCollectionView(adg.dataProvider).filterFunction
    = filterFunc;
    IHierarchicalCollectionView(adg.dataProvider).refresh();
    Note: The filter function will be applied to group rows
    also.

  • How to generate checkbox on grouping column in advanced datagrid : flex 3

    This is my code .but it generate for all rows. I want checkbox for only where studyid displayed.
    <mx:AdvancedDataGrid id="dgList" x="10" y="342" width="1001" height="175" sortExpertMode="true" borderColor="#992958" styleName="invoiceDataGrid">
                    <mx:dataProvider>
                        <mx:GroupingCollection id="groupda" source="{CptArr}">
                            <mx:Grouping>
                                <mx:GroupingField name="patientname"></mx:GroupingField>
                                <mx:GroupingField name="studyId"></mx:GroupingField>
                            </mx:Grouping>
                        </mx:GroupingCollection>
                    </mx:dataProvider>
                    <mx:groupedColumns>
                        <mx:AdvancedDataGridColumn headerText="Patient Details" width="200"/>
                        <mx:AdvancedDataGridColumn dataField="cpt_code_val" headerText="CPT Code" width="100"/>
                        <mx:AdvancedDataGridColumn dataField="cpt_desc" headerText="CPT Description"/>
                        <mx:AdvancedDataGridColumn dataField="modifier" headerText="Modifier" width="100"/>
                        <mx:AdvancedDataGridColumn headerText="Fee Schedule" dataField="fee_schdule" width="100"/>
                        <mx:AdvancedDataGridColumn headerText="select" id="dgselect">
                        <mx:itemRenderer>
                            <mx:Component>
                                <mx:CheckBox visible="{data.cptdesc}"
                            </mx:Component>
                        </mx:itemRenderer>
                        </mx:AdvancedDataGridColumn>
                    </mx:groupedColumns>
                </mx:AdvancedDataGrid>
    output:
    but i want like this:
    Thanks in advance for your help.

    Sunil,
    Which column is the sal column? I can’t see any numeric columns in your query. If you use htmldb_item calls in your query column, then this makes them strings and you can’t build sums on string columns. If you want to build sums in an updateable report / tabular form, then don’t use the htmldb_item API. Instead use the built-in display types on the report column attributes page. Using the built-in display types is the better options in most cases anyway and they do allow you to calculate sums even if the column is a text field or display and save type field.
    Regards,
    Marc

  • Grouping of Data in Advanced Datagrid

    Hii,
    I need to group the data in advanced datagrid. I used the Grouping collection class, but it it not working.
    My advanced datagrid has column groups...so will this have any impact on grouping.
    Thanks!!
    Vikas

    Assuming that the table (say WALK_IN_PER_LOG) that you have has atleast the following two columns
    walk_in_date DATE -- holds date time stamp
    dob DATE -- holds date of birth
    SELECT TO_CHAR(walk_in_date,'WW')&#0124; &#0124;'-'&#0124; &#0124;TO_CHAR(walk_in_date,'DAY') "Week#-Day"
    ,TO_CHAR(TRUNC(TO_CHAR(walk_in_date,'HH24')/02),'09')&#0124; &#0124;'-'&#0124; &#0124;
    TO_CHAR(TRUNC(TO_CHAR(walk_in_date,'HH24')/02)+2,'09')
    ,COUNT(*)
    FROM walk_in_per_log
    WHERE MONTHS_BETWEEN(SYSDATE,dob) > 18*12
    GROUP BY TO_CHAR(walk_in_date,'WW')&#0124; &#0124;'-'&#0124; &#0124;TO_CHAR(walk_in_date,'DAY')
    ,TO_CHAR(TRUNC(TO_CHAR(walk_in_date,'HH24')/02),'09')&#0124; &#0124;'-'&#0124; &#0124;
    TO_CHAR(TRUNC(TO_CHAR(walk_in_date,'HH24')/02)+2,'09')
    PS I might have complicated the query a little in trying to get the formatting as you had requested but the principle is simple
    First group by the day, so that all events of one day can be compared together, then extract the hour portion of each of those dates and divide by 2 and use the quotient of the division as a grouping factor.
    eg
    from hours
    00-02 the quotient is 0 (2 is taken as 1:59:59)
    02-04 the quotient is 1 (4 is taken as 3:59:59)
    and so on
    hope this helps....

  • Advanced DataGrid Performance Issue

    Hi,
    I used advanced data grid which have more than 40 rows and  more than 25 columnand this rows minght be more according to project size .
    And in this i used separated Renderer for each cell , header and rowColumn (i.e.first column)
    My issue with performance of system. Because of this grid my screen draw is take time about 8/9 second that is not happen with low data or less row count..
    How can i up performance of this advnced data grid ?
    It's really urgent for me because now my project is in tuff situation.
    Please if any one knows how can i resolve this issue and any idea about speed up advanced datagrid then please tell me.
    Thanks,
    Mohit.

    Use the performance profiler.  See past discussion on renderer optimization.

  • Issue With select Check box in advance datagrid

    Hi
           i am using advance datagrid having hierarichal data.There is one column having checkbox and one header renderer(CheckBox) on top giving functionality of select all.when i clicked on select all checkbox , all the checkboxes in that column not showing checked unless  i collapse or expand the heirarichal data or scroll the advance data grid,similar is the case with unselect checkbox.however internally values are selected and unselected as per functionality but checkboxes are not show checked/unchecked in first go.i have tried following things to refersh the data but nothing worked.
    refreshing the arrayCollection and then calling invalidateList() on the grid.
    IHierarchicalCollectionView(adg.dataProvider).refresh();
    so please  guide me .
    Thanks in advance
      Vineet Osho

    we have a field to bind the checkbox selected status, such as 'selected', when the data['selected'] = true means the checkbox is checked, otherwise is unchecked
    the itemrenderer code:
    public class CheckBoxADGItemRenderer extends CenteredCheckBox
                        public function CheckBoxADGItemRenderer()
                                  super();
                        override public function set data(value:Object):void
                                  super.data = value;
                                  invalidateProperties();
                        override protected function commitProperties():void
                                  selected = data['selected'];
                                  super.commitProperties();
    when click the header renderer checkbox, change the collection data 'selected' field, when checked, data['selected'] = true;
    then invalidate the check column properties,
    eg:
    private function invalidateCheckColumnProperties():void
                                  var i:int = 0;
                                  var n:int = listItems.length;
                                  var instance:IInvalidating;
                                  for (i = 0; i < n; i++)
                                            instance = listItems[i][0] as IInvalidating;
                                            if (instance)
                                                      instance.invalidateProperties();
    Hope help for your.
    Huang

  • Efficiently retrieve MANY records with Advanced Datagrid?

    Hi all,
    I've encountered the following issue:
    I have a database with more then 120.000 records, that I want to show with an advanced datagrid.
    It's grouped by 2 ID's, thus showing the results a group within a group. This works perfect!
    Only: it takes a long time before it shows the results, probably because it's downloading all the records at once (with the getAll() function).
    Is there a way to use advanced datagrid more efficiently? Like: first download the two columns that are used to define the groups, and only retrieve data that's visible once you click the group? (In this case, the 2nd group within the 1st group)
    This would greatly increase the loading-time of the whole application.
    Or should I take an other aproach to this application, like, using a tree-component, a simple datagrid, writing alternative update & retrieve functions in AS3 & PHP?
    Thanks!

    Hi Sam, thanks for your help!
    I'm not sure though how to create the returned datastructure?
    Example:
    Product_id
    productname
    category_a
    category_b
    1
    Toy A
    boy
    0-3
    2
    Toy B
    girl
    0-3
    3
    Toy C
    girl
    3-6
    4
    Toy D
    boy
    6-9
    5
    Toy E
    girl
    3-6
    6
    Toy F
    boy
    0-2
    7
    Toy G
    boy
    6-9
    Grouping by [category_a] and [category_b], I would like to get the following in the Advanced Datagrid, but paginated:
    Product_ID
    Productname
    boy
    0-2
    6
    Toy F
    0-3
    1
    Toy A
    6-9
    4
    Toy D
    7
    Toy G
    girl
    0-3
    2
    Toy B
    3-6
    3
    Toy C
    5
    Toy E
    In my PHP-service, I would create the following query:
         public function getProducts_paged($startIndex, $numItems) {
              $stmt = mysqli_prepare($this->connection, "SELECT product_id, category_a, category_b, productname FROM $this->tablename GROUP BY category_a, category_b LIMIT(?,?)");
              $this->throwExceptionOnError();
              mysqli_bind_param($stmt, 'ii', $startIndex, $numItems);
              mysqli_stmt_execute($stmt);
              $this->throwExceptionOnError();
              $rows = array();
              mysqli_stmt_bind_result($stmt, $row->product_id, $row->category_a, $row->category_a, $row->productname);
             while (mysqli_stmt_fetch($stmt)) {
               $rows[] = $row;
               $row = new stdClass();
               mysqli_stmt_bind_result($stmt, $row->product_id, $row->category_a, $row->category_a, $row->productname);
              mysqli_stmt_free_result($stmt);         
              mysqli_close($this->connection);
              return $rows;
    This will give me the right structure, Right?
    Now:
    - How to tell the Advanced Datagrid which 2 groups to apply?

  • Sorting /Grouping Issue: Single Artist Compilation Album Doesn't Group

    iTunes 8 Sorting / Grouping Issue
    EXAMPLE
    • Album: Essential Willie Nelson
    • There are 22 songs on this Disc
    • 19 of them are labelled "Willie Nelson" in the artist field
    • 3 of them are lebelled "Willie Nelson Feat. Waylon Jennings" in the artist field
    PROBLEM
    • Album will not stay grouped together when in the standard "Sort by Artist" in Grid View. A very legitimate expectation to be able to have Willie's name listed along with his pals in the artist field and have them grouped together in one album within Willie's albums section. 19 songs group within one album in the Willie Nelson section and the other 3 are placed separately either in the compilation section or as separate albums within the regular artists grid view.
    I've read most if not all postings that suggest solutions but no matter what... they don't work. The only way that I know to work is to strip out all other names and leave only "Willie Nelson" in the Artist field. All other sorting and grouping options don't work for this issue... I've tied every combination. My opinion is that this is just a limitation at this time and there is no solution until future updates. I don't want a cheezy work-around either, that's very "unApple like". I assume it to be fixed in future updates.
    Bueller... Bueller?
    Anyone?

    There's a few other "goodies" I have found also but haven't had time to check out.
    If you have songs not in iTunes that you want to add to iTunes in a different format than the song is in...
    (This is carried over from at least 7.4)
    Set the Importing prefs to what you want the new file to be.
    Hold the Option key and go to menu Advanced and select *Convert selection to* AAC (or whatever is in the Import prefs}.
    This will add it to iTunes in the new format.
    Previously, you had to Import the file, change the prefs, go to Advanced - *Convert selection to*, convert the file, then delete the original from iTunes.
    This is new...
    In iTunes 8, go to to File - > *Show duplicates*. (moved from View menu).
    Now hold Option and go to to File and it now displays *Show exact duplicates*.
    Don't know what it means by *exact duplicate* though.

  • 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

  • HP QTP10 cannot read Automation values of Advanced DataGrid

    Hi everyone,
    We're an Automation functional testing team, testing a flex application with HP QTP v10. So far we've successfully automated many parts of the application. Now, we're struck at a serious issue.
    The issue is QTP cannot read automation values specified for an Advanced Datagrid (ADG).
    While trying to read row data of the ADG, the automation name of QTP shows like,
    "lblData | someGroup |  | ** |  |  |  |  |  |  |  |  |  | lblData"
    The screenshot of Object Spy while spying ADG is also attached.
    Other than the Automation Index, we are not able to populate any automation values of a row data.
    The ADG is a custom one. Our development team has customized it in some way, and we dont have access to the code. They are using an External renderer or Custom renderer to render values into the column.
    As there is no possiblity for value-based recording, we tried to access the ADG with index-based recording. Then, we 're able to perform operations like Click, but cannot read contents of the row/cell.
    We're using:
    HP Quick TestProfessional v10.0
    Flex plugin 4.5
    Internet Explorer 7
    Flash Player v10
    Our Questions are:
    How to get automation values for these custom ADG?
    Is there any other possible ways to access the custom ADG components other than these automation values?
    Do we need any patches/plugin upgradation to perform this?
    Is there any other tools in market that can recognize and access these custom ADGs?
    Without these automation values we're unable to proceed further work. Any replies/comments/help are welcome.
    Thank you!

    A sortCompareFunction would look something like:
    Function sortWithNullAtEnd(a:Object, b:Object, field:Array = null):int
        if (a.fieldName == null && b.fieldName == null) return 0;
        if (a.fieldName == null) return 1;
        if (b.fieldName == null) return –1;
        if (a.fieldName < b.fieldName)
            return –1;
        if (a.fieldName > b.fieldName)
            return 1;
        return 0;
    Note that this sort would be unstable so you might be better off using a second field to get stability.

  • SortcompareFunction is not working properly for more than 1 column in advanced datagrid

    Hi Guys,
    I am using an advanced datagrid with groupingCollection.
    I have more than 1 grouped column. How ever I am using 2 sort compare function to sort date and time.
    The problem is when I am trying to sort date its workinf properly then when I jump to time column its not working and sorting few rows only inside the  column but not the entire column. samething happen when I sort time first and the date is not sorting.
    any help will be really appriciable .
    Thanks in advance.

    In our application we tend to use views to return appropriate values for a particular user.
    For example (we do building inspections) the publication item sql is like
    select * from inspection_sites where id in (select site_id from v_pda_bi_sites where bi_id=:bi_id)
    The view acts like a dynamic parameter table (in this cases looks at experience level, status of sites, and responsibility allocations). Once the driving views are tuned this works quite efficiently, and as the dependant tables for the publication item automatically includes all of the tables in the driving view, the object gets refreshed if there is any change to any of them, even if the site details themselves have not changed

  • Advanced Datagrid GroupingCollection of flat data (XMLLISTCollection) while sorting throws exception

    HI,
         Iam using AdvancedDatagrid inorder to group the flat data populated from the backend through BlazeDS. Result data will be in xml format and i have converted it to xmllistcollection and assigned to the grouping collection source. Flat data is grouped by one of the attribute called 'Name' and refreshed after data has been populated.
    Data structre used as input is: WIth this structure, iam grouping by the field 'Name'.
      <Report> <att_report>
      <id>FDR1</id>
      <Name>Feeder 1</Name>
      <frequency>Monthly</frequency>
      <Field>Finance 1</Field>
      <Aug_10>100</Aug_10>
      <Jul_10>200</Jul_10>
    </att_report>
    <att_report>
      <id>FDR1</id>
      <Name>Feeder 1</Name>
      <frequency>Yearly</frequency>
      <Field>Finance 2</Field>
      <Jul_10>200</Jul_10>
    </att_report>
    <att_report>
      <id>FDR2</id>
      <Name>Feeder 2</Name>
      <frequency>Quarterly</frequency>
      <Field>Finance 3</Field>
      <Jul_10>2000</Jul_10>
    </att_report>
    <att_report>
      <id>FDR2</id>
      <Name>Feeder 2</Name>
      <frequency>MOnthly</frequency>
      <Field>Finance 2</Field>
      <Jul_10>2000</Jul_10>
    </att_report>
    <att_report>
      <id>FDR4</id>
      <Name>Feeder 4</Name>
      <frequency>yearly</frequency>
      <Field>Finance 5</Field>
      <Jul_10>2000</Jul_10>
    </att_report>
    </Report>
    Grouping is done as expected. We have additional functionalities like soring / seraching of the result set. Either one is working fine. Other functionality throws excpetion mentioned below.
    When any of the advanced datagrid grid column header is clicked for sorting, it throws exception. I have pasted the exception below for reference.
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at mx.collections::HierarchicalCollectionView/internalRefresh()[C:\work\flex\dmv_automation\ projects\datavisualisation\src\mx\collections\HierarchicalCollectionView.as:709]
    at mx.collections::HierarchicalCollectionView/refresh()[C:\work\flex\dmv_automation\projects \datavisualisation\src\mx\collections\HierarchicalCollectionView.as:686]
    at mx.controls::AdvancedDataGridBaseEx/sortHandler()[C:\work\flex\dmv_automation\projects\da tavisualisation\src\mx\controls\AdvancedDataGridBaseEx.as:6869]
    at mx.controls::AdvancedDataGrid/sortHandler()[C:\work\flex\dmv_automation\projects\datavisu alisation\src\mx\controls\AdvancedDataGrid.as:6899]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.core::UIComponent/dispatchEvent()
    at mx.controls::AdvancedDataGrid/headerReleaseHandler()[C:\work\flex\dmv_automation\projects \datavisualisation\src\mx\controls\AdvancedDataGrid.as:7120]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.core::UIComponent/dispatchEvent()
    at mx.controls::AdvancedDataGridBaseEx/mouseUpHandler()[C:\work\flex\dmv_automation\projects \datavisualisation\src\mx\controls\AdvancedDataGridBaseEx.as:5738]
    at mx.controls::AdvancedDataGrid/mouseUpHandler()[C:\work\flex\dmv_automation\projects\datav isualisation\src\mx\controls\AdvancedDataGrid.as:8457]
    I tried with couple of options but still not able to get rid of the excpetion. I browsed through couple of links also, still not able to find an solution. Can i know whether it is a bug or it can be fixed.
    Any help / suggestions on this will be great.
    Thanks in Advance,
    Srinivasan

    Read the error messages and pay attention to the line number of the error:
    1)1 import java.io.*;
    2
    3 public class Test
    4 {
    5   public static void openFile()
    6   {
    7     FileOutputStream f = new FileOutputStream("data.txt");
    8   }
    9
    10   public static void main (String[] args)
    11   {
    12     openFile();
    13   }
    14 }
    $ javac -cp "" Test.java
    Test.java:7: unreported exception java.io.FileNotFoundException; must be caught or declared to be thrown
        FileOutputStream f = new FileOutputStream("data.txt");
                             ^
    1 error2)1 import java.io.*;
    2
    3 public class Test
    4 {
    5   public static void openFile() throws FileNotFoundException
    6   {
    7     FileOutputStream f = new FileOutputStream("data.txt");
    8   }
    9
    10   public static void main (String[] args)
    11   {
    12     openFile();
    13   }
    14 }
    $ javac -cp "" Test.java
    Test.java:12: unreported exception java.io.FileNotFoundException; must be caught or declared to be thrown
        openFile();
                ^
    1 error3)
    1 import java.io.*;
    2
    3 public class Test
    4 {
    5   public static void openFile() throws FileNotFoundException
    6   {
    7     FileOutputStream f = new FileOutputStream("data.txt");
    8   }
    9
    10   public static void main (String[] args)
    11   {
    12     try
    13     {
    14       openFile();
    15     }
    16     catch(FileNotFoundException e)
    17     {
    18       System.out.println("Error file doesn't exist.");
    19     }
    20   }
    21 }
    $ javac -cp "" Test.java
    $
    1 import java.io.*;
    2
    3 public class Test
    4 {
    5   public static void openFile() throws FileNotFoundException
    6   {
    7     FileOutputStream f = new FileOutputStream("data.txt");
    8   }
    9
    10   public static void main (String[] args) throws FileNotFoundException
    11   {
    12     openFile();
    13   }
    14 }
    $ javac -cp "" Test.java
    $

  • Its near impossible to get a Advanced datagrid to remember its opened nodes when it has fresh data

    Theres a post in
    http://www.mail-archive.com/[email protected]/msg85521.html//www.mail-archive.com/[email protected]/msg85521.html
    which is basically saying its near impossible to get a Advanced datagrid to remember its opened nodes when it has fresh data
    I'm having pretty much the same problem (exept I'm not filtering just getting the latest data from the server)as this guy and have been searching for a solution, heres what he said:
    Sun, 02 Mar 2008 08:07:46 -0800
    Hello guys,
    I'm trying to filter my ADG without success :
    I created a GroupingCollection from a flat ArrayCollection.
    ADG's dataProvider is GroupingCollection.
    First issue : refresh
    if I filter the underlaying ArrayCollection, the related
    groupingCollection doesn't refresh automatically (bug? feature?)
    Actually I menaged to force gc.refresh() with some event( it is
    impossible to listen on CollectionEventKind.REFRESH because of
    infinite loop ac.refresh => gc.refresh )
    Second issue (more important) : openNodes
    Ok now that my gc is refreshed, the Tree in the ADG collapses itself
    (ok let say that is normal), and I need it to expand all nodes that
    were opened before.
    I tried to do something like this :
    var openNodes : Object = IHierarchicalCollectionView(
    myADG.dataProvider ).openNodes;
    gc.refresh();
    myADG.dataProvider.openNodes = openNodes;
    and it doesn't works.
    next I tried this :
    var openNodes : Object = IHierarchicalCollectionView(
    myADG.dataProvider ).openNodes;
    for each( var node : Object in openNodes )
    IHierarchicalCollectionView( myADG.dataProvider.openNode( node )
    guess what, doesn't work
    I'm calling myADG.invalidateList() each time too.
    I don't know what to do to achieve this simple task, I'm a bit
    disappointed because I expected lot more from the brand new
    AdvancedDataGrid and this basic functionality actually seems too hard
    to implement.
    I still hope I'm wrong and someone can show me the correct solution
    Thank you all,
    Adnan

    Hi,
    I remember the days when Oracle would practically give Oracle Financial s away just for the implementation consulting fees.
    Yeah, IBM used to give-away DB2 also . . . .
    Oracle Financial s away just for the implementation consulting fees. Yeah, but any ERP requires massive set-up costs. I once worked on an SAP effort that cost over $20,000,000.
    complete with Microsoft head to headIn what? Oracle is far-and-away the world's most robust and flexible database, hundreds of times more powerful that SQL Server.
    IMHO, it's like apples-to-oranges . . . .
    Everyone is running SQL server Here, DICE shows over a hundred Oracle openings in the Boston area, that might help you:
    http://seeker.dice.com/jobsearch/servlet/JobSearch?op=300&rel_code=1102&N=0&Hf=0&NUM_PER_PAGE=30&Ntk=JobSearchRanking&Ntx=mode+matchall&AREA_CODES=&AC_COUNTRY=1525&QUICK=1&ZIPCODE=&RADIUS=64.37376&ZC_COUNTRY=0&COUNTRY=1525&STAT_PROV=0&METRO_AREA=33.78715899%2C-84.39164034&TRAVEL=0&TAXTERM=0&SORTSPEC=0&FRMT=0&DAYSBACK=30&LOCATION_OPTION=2&FREE_TEXT=oracle&WHERE=Boston+MA&WHEREList=Boston+MA&SEARCH.x=0&SEARCH.y=0
    Excel is the tool of choice for accountants and its integration withcubes is nothing short of stunning
    Sorry, I must disagree! Yes, CPA's will download Oracle data into spreadsheets for analysis, but Excel is wanting, especially for hypothesis testing, correlational analysis and data mining. Oracle's ODM, however, is truly stunning, light-years ahead of PC-based tools:
    http://www.rampant-books.com/book_2006_1_oracle_data_mining.htm
    Larry make Oracle great again be cutting the costI cannot speak for Oracle Corporation, but Oracle XE is FREE, totally and completely free. Add-in Apex for free, and it's very competitive.
    Hope this helps. . .
    Don Burleson
    Oracle Press author
    Author of “Oracle Tuning: The Definitive Reference”
    http://www.dba-oracle.com/bp/s_oracle_tuning_book.htm

  • Report with grouping issue

    I have a report which have year(2008), Category(0-1,2-3, ALL), product(0,1,2,3,4..), % sales. I group by all the category elements and called it as All, I am not getting the right percentage sales for the Category ALL other wise for 0-1,2-3 i am getting it right. Please advise where i am doing it wrong. please find the blog for a screen shot of my issue.
    http://ravibiblog.blogspot.com/2012/04/report-with-grouping-issue.html
    Thanks,
    RC

    Pl post details of OS, database and EBS versions. Pl see if these MOS Docs can help
    FARXPBSH Failing With "Program was terminated by signal 11" or "Program was terminated by signal 10"          (Doc ID 742729.1)
    Publishing RXAPPYAC: The FARXPBSH Ends With 'Signal 11' Error          (Doc ID 432797.1)
    RXi RX Reports Failing With Program Was Terminated By Signal 10 or 11 Errors After FA Rollup Patch 6          (Doc ID 737963.1)
    Program was Terminated by Signal 11 when Running Rxi Reports          (Doc ID 559425.1)
    HTH
    Srini

Maybe you are looking for

  • Warning: iOS 8 Resized My Images When Exporting Via Image Capture

    I have an iPad Air and I take lots of pictures. I installed iOS 8 last night. I don't like the lack of a Photo Stream and a Camera Roll, but I am willing to try new things, so I decided to clear out all the images from my iPad and start from scratch.

  • How to cancel/reverse confirmation of service in SD module?

    Hello How to cancel/reverse confirmation of service in SD module? By confirmation of service I mean document which we can see in SD documents flow (if scenario is without goods movement). User need to delete delivery but confirmation of service and s

  • Link to download Windows 8 ; for installation in Macbook pro-retina

    Hi, I have the Macbook-pro-15 retinal display(2013-haswell). I want to install Windows 8 using BootCamp. But do not know which windows version to install. In the Microsoft website ; The Windows 8 page says ; "For current Windows 7 user". Can someone

  • Using DISTINCT and COUNT together.

    So I have a query which I dicovered is not quite working as planned. SELECT DISTINCT NULL LINK,        TO_CHAR(MONTHS_,'YYYY-MM') DATIME,        sum(decode(CMS.CMS_NODE_OS.OS_TYPE,'Linux','1',0))"Linux" FROM   ( SELECT ADD_MONTHS(TRUNC(to_date('28-FE

  • Spilled water on my MacBook Pro. What do I do?

    I spilled water on my 2010 MacBook Pro the other night. I immediately turned it off, drained the water out of the keyboard and dried the laptop. I tried turning it back on and got the apple startup white screen, but would freeze and not go anywhere.