Datagrid result value

Hi all,
I have a datagrid pulling data from SQL... Data looks like
ID          Michigan_Produce      Item
1           F                               Tea
2           T                               Apples
3           T                               Coffee
Now i have a data grid to show this uising flex front end.
The issue is where it says F or T i have to say False or True.
Is there a way to do that in datagrid itself or i have to write some function...
private   
{function produceResult(event:ResultEvent):void
if  
(event.result.length != 0){
produceResults = event.resultas ArrayCollection;
returnData.dataProvider = produceResults;
else
Alert.show(
"No records exists ");
<mx:DataGrid  
id="returnData" width="814" height="282" fontWeight="bold">
<mx:columns>
<mx:DataGridColumn headerText="ID" dataField="ID" width="75"/>
<mx:DataGridColumn headerText="Michigan Produced" dataField="Michigan_Produce" width="75"/>
<mx:DataGridColumn headerText="Item" dataField="Item"/>
</mx:columns> 
</mx:DataGrid>
Final product should look like:
ID          Michigan_Produce      Item
1           False                            Tea
2           True                             Apples
3           True                             Coffee
Any help is appreciated...

A: Datagrid result value

I really appreciate your reply. I did the follwoing but still don't see the populated nothing shows up under Michigan Produce. Am i doing something wrong...
I need that produceResult function as I'm pulling more data for text input columns. Please help...
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Script>
    <![CDATA[
        import mx.collections.ArrayCollection;
        privatevar returnData:ArrayCollection;
     [Bindable] private var acModified : ArrayCollection = new ArrayCollection(); 
      private function produceResult(event:ResultEvent):void {
               if(event.result.length != 0)
                {     dg.dataProvider = returnData;}
               else {Alert.show("No records exists ");}
        private function onCC() : void
            for each (var obj: Object in returnData )
                if(obj.Michigan_Produce == "T")
                    obj.Michigan_Produce = "True";
                else if(obj.Michigan_Produce == "F")
                    obj.Michigan_Produce = "False";
                acModified.addItem(obj);
    ]]>
</mx:Script>
    <mx:DataGrid id="dg" dataProvider="{acModified}" creationComplete="onCC()">
           <mx:columns>
                   <mx:DataGridColumn dataField="ID" width="150"/>
                   <mx:DataGridColumn dataField="Michigan_Produce" width="150"/>
                   <mx:DataGridColumn dataField="Item" width="150"/>
           </mx:columns>
    </mx:DataGrid>
</mx:Application>

I really appreciate your reply. I did the follwoing but still don't see the populated nothing shows up under Michigan Produce. Am i doing something wrong...
I need that produceResult function as I'm pulling more data for text input columns. Please help...
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Script>
    <![CDATA[
        import mx.collections.ArrayCollection;
        privatevar returnData:ArrayCollection;
     [Bindable] private var acModified : ArrayCollection = new ArrayCollection(); 
      private function produceResult(event:ResultEvent):void {
               if(event.result.length != 0)
                {     dg.dataProvider = returnData;}
               else {Alert.show("No records exists ");}
        private function onCC() : void
            for each (var obj: Object in returnData )
                if(obj.Michigan_Produce == "T")
                    obj.Michigan_Produce = "True";
                else if(obj.Michigan_Produce == "F")
                    obj.Michigan_Produce = "False";
                acModified.addItem(obj);
    ]]>
</mx:Script>
    <mx:DataGrid id="dg" dataProvider="{acModified}" creationComplete="onCC()">
           <mx:columns>
                   <mx:DataGridColumn dataField="ID" width="150"/>
                   <mx:DataGridColumn dataField="Michigan_Produce" width="150"/>
                   <mx:DataGridColumn dataField="Item" width="150"/>
           </mx:columns>
    </mx:DataGrid>
</mx:Application>

Similar Messages

  • Sum datagrid column values

    I am looking for a way (action script code?) to sum datagrid
    column values.
    I am using Flex2 with Cold Fusion MX7.
    I populate a DataGrid by setting dataprovider to the result
    of a Coldfusion query.
    (this.masterList.dataProvider = event.result as
    ArrayCollection;)
    This all works fine.
    The masterList datagrid has debit, credit, and unitcost
    columns. I want to sum those columns individually, and display the
    results in text boxes in another panel.
    I could run a Coldfusion query to return the sums, but would
    like to do it on the client side with action script.
    I want to sum them everytime I update the datagrid, so need
    action code that I can put in the result function.
    I am new to ActionScript, and not sure how to loop through
    the array collection(and/or) dataprovider and sum the items.
    Any help would be appreciated.
    Thanks.

    Loop through your array..if the arrayCollection was named
    myArray;
    private sumFunction():Number{
    var sum:Number=0;
    for(var i:uint=0;i<myArray.lenght;i++){
    sum+=myArray
    .debitValue;
    return sum;

  • Display of OVERALL RESULT value in any particult CELL in Workbook???

    Hi,
    is it possible to display the OVERALL RESULT value of a report in a particular cell in the workbook?
    Here is the scenario: When i run a workbook, say the overall result is $1000. i want to display this value in cell D7 of the workbook.
    is this possible using macros????
    Thanks
    Krishna

    Thanks Mayanak.
    I am running the workbook in this case and i dont see any "convert to formula" option when i right click. Is this a option in 7.0 or 3.5. we are in 3.5.
    Krishna

  • IDOC to JDBC scenario: Does INSERT command expect a result value?

    Hello,
    we have an IDoc-to-JDBC-scenario configured on our XI 3.0, which uses the INSERT command to put a dataset coming from R/3 into a SQL database. This works fine.
    Now a trigger has been activated on the database, which sets a flag to each dataset after inserting.
    Because of this a system error occurs in the Adapter Engine and I found in the AuditLog (logSQLStatement=true), that the INSERT command is processed correcty, but in the next step an error is shown up: 'SQLServerException. A result set was generated for update.'
    Could it be, that the trigger returns a result value, which can't be handled on the XI ?
    If yes, how can I solve this issue? I have read something about the different methods execute(), executeUpdate() and executeQuery(), but I don't know how and where this has to be configured...
    Thanks in advance,
    Juergen

    Hi Upendra,
    I got some more information from the database adminstrator:
    He used the following command 'exec xp_cmdshell @ExportCmd , no_output'
    whereas @ExportCmd contains the command.
    With the no_output option, the xp_cmdshell does not return a recordset.
    I hope this will be helpful to you.
    Grtz,
    Juergen

  • How we can sort subtotal results value in abap alv report

    Hi, How we can sort subtotal results value in abap alv report

    Thanks a lot for your code
    but i am still getting double and weird results.
    Subtotal     IN     PARTY              KGS        TOTAL VALUE
         1     40008     3,141.20     192,799.00
         1     40008     16,681.06     1,908,659.00
    Subtotal     1          19,822.25     2,101,458.00
         10     40022     4,590.60     531,228.00
         10     40022     3,448.27     377,173.00
    Subtotal     10          8,038.87     908,401.00
         100     40010     270.172     19,852.00
    Subtotal     100          270.172     19,852.00
         101     40036     752.898     61,051.00
         101     40036     207.586     19,431.00
    Subtotal     101          960.484     80,482.00
         102     40048     325.936     32,154.00
         102     40048     264.32     19,364.00
    Subtotal     102          590.256     51,518.00
         103     40066     216.134     18,088.00
    Subtotal     103          216.134     18,088.00
         104     40001     231.96     16,986.00
    Subtotal     104          231.96     16,986.00
         105     40021     585.918     65,461.00
         105     40021     108.683     15,825.00
    Subtotal     105          694.601     81,286.00
         106     40046     209.777     15,341.00
    Subtotal     106          209.777     15,341.00
         107     40043     167.353     14,755.00
    Subtotal     107          167.353     14,755.00
         108     40046     153.023     14,343.00
         108     40046     342.348     32,223.00
    Subtotal     108          495.371     46,566.00
         109     40008     184.085     13,483.00
    Subtotal     109          184.085     13,483.00
         11     40011     5,275.63     524,232.69
         11     40011     6,723.28     643,911.82
    Subtotal     11          11,998.90     1,168,144.51
         110     40067     142.113     13,333.00
         110     40067     492.883     44,428.00
    Subtotal     110          634.996     57,761.00
         111     40040     118.961     13,190.00
         111     40040     492.433     60,029.00
    Subtotal     111          611.394     73,219.00
    Edited by: Timaji Sawant on Feb 16, 2012 12:16 PM
    Edited by: Timaji Sawant on Feb 17, 2012 9:27 AM

  • User exit for rounding off result value

    Hi Gurus,
    Is there any user exit available or std. functionality by which we can round off the result value. My client wants if the value is 192.5 or 191.8 then this value should be rounded off to 195. That means rounding in multiples 0f 5. Is there any exit available?
    Regards
    Amit

    If in QM just specify the correct number of decimals for the characteristic, in your case 0. In config under plant settings you can set up the results recording settings to allow you to record one additional decimal then specified by the characteristic. The result is rounded to 0 decimals when displayed.
    FYI - there should be no reason to have to use user exits to round off decimals in QM.
    Craig
    I didn't read the initial posting correctly.  To round the whole number portion by 5 you will have to provide that logic yourself via the user exits already posted.
    Craig
    Edited by: Craig Snyder on Jan 13, 2010 2:56 PM

  • Result Values

    I have query with output:
    Column1   Column2  Column1 * Column2
    KF11         KF21      KF11 * KF21
    KF12         KF22      KF12 * KF22
    SUM(Column1) SUM(Column2) SUM(Column1) * SUM(Column2)
    My result row is coming as multiplication of result's of other columns, but I want it as sum of all the values of (Column1 * Column2).
    Since I have some blank values in Column2 which is resulting in additional value in my result values.
    I want output like this:
    Column1   Column2  Column1 * Column2
    KF11         KF21      KF11 * KF21
    KF12         KF22      KF12 * KF22
    SUM(Column1) SUM(Column2) SUM(Column1 * Column2)

    Solved it by changing the Calculated As value as summation of rounded values.

  • Add datagrid column values

    hello every one.
    this is IBRAN, i am using datagrid in my flex application now i want to add only one column data and i want to display it in textinput,
    please help me i am trying this from last 7 days please please help me,
    this is my datagrid that how i defined-
    <mx:DataGrid id="neworderdetails" width="839" height="400" editable="true" visible="false" itemClick="editablefunc(event)" variableRowHeight="true"
                                                       draggableColumns="false" sortableColumns="false" >
                                  <mx:columns>
                                            <mx:DataGridColumn headerText="Product Barcode" dataField="ABarcode"/>
                                            <mx:DataGridColumn headerText="Product Description" dataField="BDescription"/>
                                            <mx:DataGridColumn headerText="Ordering Quantity" dataField="COrderingQty"/>
                                            <mx:DataGridColumn headerText="Max Quantity" dataField="DMaxQty"/>
                                            <mx:DataGridColumn headerText="Current Quantity" dataField="ECurrentQty"/>
                                            <mx:DataGridColumn headerText="Cost" dataField="FCost"/>
                                            <mx:DataGridColumn headerText="MRP" dataField="GMrp"/>
                                            <mx:DataGridColumn headerText="Total Discount" dataField="HDiscount"/>
                                            <mx:DataGridColumn headerText="VAT" dataField="IVat"/>
                                            <mx:DataGridColumn headerText="Amount"  dataField="GAmount" labelFunction="{Amount}"/>
                                  </mx:columns>
                        </mx:DataGrid>
    and one more thing, I am using labelFunction Amount i am calculating amount by multiplying two columns of datagrid this is working fine
    now i want to add the only Amount column values one by one and i want to display result as total amount in one textInput.
    please please help me for this problem.
    thank you.

    Hey
    to get the multiple selected row use the property datagrid.selectedindices this will return a string with all the selected index with (,) separated .
    then get the data of selcted index and put it in to database.
    regards.
    gajanan hiroji | [email protected] | www.isacglobal.com

  • How to display the Overall result value at the top of work book

    Hi,
      How can i display the value of  Overall result(Sum of the Total) column at the top of the work book in Text field.
    Thanks
    Sreadhar

    Go to Query Global properties in Query designer and you can find a setting to show result rows on top. This setting will show overall result as first row in the report. But I don't think you can show it in Text field in WB.

  • Changing a datagrid column image according to the datagrid column value

    Flash Builder 4.5 / SDK 4.5.1.
    Fairly new to Flash Builder & Flex
    Application targets tablets so it's a "mobile" project.
    Been beating my head up against the wall on trying to figure out how to do this. Watched videos on Lynda.com.  Read Adobe "docs" till my eyes glaze over.  Takes me about 2 lines of code in my corresponding .NET project doing the same thing.....
    Tried numerous examples.  Inline rendering, external rendering files per the examples.
    I have a response field in the database and corresponding column in the s:datagrid.  If the "reportInfoResponse" field is null (not answered), show an image with a question mark.  If yes show an image with "Yes" on it.  Same for a no answer.
    I get errors of:
    1120:Access of undefined property negativeAnswer.
    1120:Access of undefined property affirmativeAnswer
    1120:Access of undefined property reportInfoResponse
    1120:Access of undefined property showResponseImage
    If I put this in an external rendering file I also get an error where it can't access the datafield (reportInfoResponse).  I've tried data.reportInfoResponse, {data.reportInfoResponse}, {reportInfoResponse} and just plain reportInfoResponse the external rendering file with no luck.  I've tried single and double quotes around Y and N.  According to all the examples (not to say there aren't more!), I should be able to reference data.reportInfoResponse in the external file and things should be fine.  Of course, the examples are bare bones code and I don't have a clue if any importing of classes or other items need to take place.  I never see any references of such.  The examples also show the image embedding and changing the image by using imageID.source=...  In my code it tells me it can't find it.
    I have put (ERROR HERE...) on the lines where I'm getting the error messages.  I've eliminated a lot of database scripting and such cause that's all working. 
    Any and all suggestions would be appreciated as I'm pulling out what little hair I have left.......and that's not much at my age........  And yes, I probably could do it by just show text in the column, but that's not what the customer wants... There are other columns I need to do this for so I figure if I can get 1 done and working, the rest are a snap.  I CAN use inline or external rendering to show an image.  It's the changing it that is the catch.........
    Thanks in advance!
    <?xml version="1.0" encoding="utf-8"?>
    <s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
    xmlns:s="library://ns.adobe.com/flex/spark"
    xmlns:mx="library://ns.adobe.com/flex/mx"
    creationComplete="onCreationComplete()"
    title="{whichCategoryName} > {whichSubCatName} > Questions">
    <fx:Script>
    <![CDATA[
    import com.adobe.serializers.utility.TypeUtility;
    import flash.data.SQLConnection;
    import flash.data.SQLMode;
    import flash.data.SQLResult;
    import flash.events.StatusEvent;
    import flash.filesystem.File;
    import flash.net.URLRequest;
    import flash.net.URLVariables;
    import flash.net.navigateToURL;
    import flashx.textLayout.tlf_internal;
    import mx.collections.ArrayCollection;
    import mx.core.BitmapAsset;
    import mx.events.FlexEvent;
    import spark.events.GridEvent;
    import spark.events.IndexChangeEvent;
    ...(lots of database coding left out here)
    <s:DataGrid id="showQuestions" width="100%" height="100%"
    creationComplete="Grid_creationCompleteHandler(event)" fontFamily="_sans"
    gridClick="gridClickEvent(event);" horizontalScrollPolicy="off"
    selectionColor="#8AD8EF" selectionMode="singleRow" sortableColumns="false"
    variableRowHeight="true" verticalCenter="middle">
    <s:columns>
    <s:ArrayList>
    <s:GridColumn visible="false" dataField="id_report" headerText="id_report" resizable="true" sortable="false"></s:GridColumn>
    <s:GridColumn visible="false" dataField="id_question" headerText="id_question" resizable="true" sortable="false"></s:GridColumn>
    <s:GridColumn id="col_reponse" visible="true" dataField="reportInfoResponse" headerText="Response" resizable="true" sortable="false">
    <s:itemRenderer>
    <fx:Component>
    <s:GridItemRenderer>
    <fx:Script>
    <![CDATA[
    [Embed(source="assets/unknown.png")]
    [Bindable]
    public var unknownAnswer:Class;
    [Embed(source="assets/yes.png")]
    [Bindable]
    public var affirmativeAnswer:Class;
    [Embed(source="assets/no.png")]
    [Bindable]
    public var negativeAnswer:Class;
    (ERROR HERE - 1120:Access of undefined property reportInfoResponse)
    if(reportInfoResponse == "Y")
    (ERROR HERE - 1120:Access of undefined property showResponseImage)
    showResponseImage.source = affirmativeAnswer;
    (ERROR HERE - 1120:Access of undefined property reportInfoResponse)
    if (reportInfoResponse == "N")
    (ERROR HERE - 1120:Access of undefined property showResponseImage)
    showResponseImage.source = negativeAnswer;
    ]]>
    </fx:Script>
    <s:Image id="showResponseImage" source="{unknownAnswer}" verticalCenter="0" horizontalCenter="0"/>
    </s:GridItemRenderer>
    </fx:Component>
    </s:itemRenderer>
    </s:GridColumn>
    <s:GridColumn id="col_question" visible="true" dataField="question" headerText="Question" resizable="true" sortable="false"></s:GridColumn>
    </s:ArrayList>
    </s:columns>
    <s:AsyncListView list="{showTheseQuestions}"/>
    </s:DataGrid>
    </s:View>

    Ioan Thanks for the reply.
    Probably my previous explanation of the problem was a little incomplete. Let me give a better description.
    The situation is something like this.
    I have a requirement in which the customer wants the column header to reflect the 'keep filter value' restriction that he does dynamically in the query report.
    i.e:
    -- usually the kf column header shows 'sales volume'
    -- column header with text variable of the Calender year / month variable -- 'sales volume for 2000 oct'
    -- but when the report is run, if the user wants to go and change the filter:   calender year / month > rt clk > keep filer value > select Jan 2003.
      The kf column header still shows 'Sales Volume 2000 Oct'
    How to make the column header change to 'sales volume for Jan  2003' ?
    Any suggestions greatly appreciated.
    Thanks,

  • Why I cannot get payroll result value ?

    Expert,
    In EBS Payroll R12, I define two elements A and B. A has priority 1500, B has priority 3500. So A will be processed ahead of B. I write a pl/sql package to calculate B, and attach the package to B through formula result. In the package, I will use "Pay value" of A, the logic can be abstracted as " A-Pay value * 0.05". However, the result of B is not my expected. I track my package and find the program doesn't get the Pay Value. I am sure my sql statement is right. So my conclusion is for one assignment calculation, these elements payroll result will be written back to DB together rather than one by one, right?
    For my case, it I want to use the pay value of elements which have been calculated, how to do? Please give me some advice.
    Thanks in advance.

    Dear thierry,
    Thanks for your kindly help. I follow your hints to modify my fast formula of B as below:
    Cal_B:
    dummy=A_BALANCE_ASG_RUN /* A_Balance will contain element A*/ /* a new line added here */
    v_rtvl=CAL_B_external_F /* It is formula function, which will contain external PLSQL call. The plsql will use the Pay value of A */
    return v_rtvl
    Per my understanding, after calling statement "dummy=A_BALANCE_ASG_RUN", the relevant pay result of A should be flushed to DB.
    unfortunately, when I process my payroll, the result still remains unchange. It seems that CAL_B_external_F cannot get the "Pay value" of A
    If I modify fast formula as below:
    Cal_B:
    v_rtvl=A_BALANCE_ASG_RUN
    return v_rtvl
    I can get v_rtvl whose value is equal to A_BALANCE_ASG_RUN. It seems the value of A_BALANCE_ASG_RUN can be captured in the fast formula.
    So, How do I understand your hints as below:
    "A element_A_asg_run in your second fast formula, before calling the plsql, can do the trick, eventually."
    I am eager to your help.
    Regards,
    Michael
    Edited by: Gang2 on Mar 22, 2009 10:45 PM

  • Result values are coming as total instead of average.....

    Hi Experts,
         In my query i have three key figures and three calulated key figures.....In the output except for one key figure the values for others wont change for an employee... so the total for the other key figures should not come as the sum of the individual ones...except for one key figure ...
    emp id   wage type  leavestart date  leave enddate      amount    lengthofservice  age  noof leavedays
    101         2440          01.01.2009        03.01.2009        1000           45                50         3
    101         2440          06.01.2009        07.01.2009        1000           45                50         2
    so in my output for total for amount it should be 1000 ..length of service 45 ..age 50....no of leave days 5...
    so i made for these three key figures in calculations tab
               calculate single value as hide....
               calculate result as  average........  for amount,length of service,age....
    for noofleave days
           calculate single value as nothing defined
           calculate result as  nothing defined....
    in the output for result rows for these three key figures result is coming as 2000,90,100..........indiviuda key figures are hided properly but the result rows are getting summed ....instead of average....
    for no of leave days it is coming correct.............
    when i executed the query in rsrt ..i am getting warning 'calculate result as ...not executed'.......why this is not comign... i have done similar thing in another query ..........there it is workign fine...........
    In the aggregation tab for these key figures at query level...exception aggregation is key to standard.....
    please through some light..
    Regrads
    vamsi
    Edited by: vamsi talluri on Apr 2, 2009 12:13 PM

    Hello,
    You can try the following:
    Remove the calculate result as setting for the three KFs.
    In exception aggregation set property to average with ref char as leave start date.
    Check if it works.
    If the above dosent work, set reference char to emplyee ID and check.
    Either one of them has to work
    REgards,
    Shashank
    Edited by: Shashank Dighe on Apr 2, 2009 9:03 AM

  • How to add the resultant value in a double

    Hay guys
    I am adding two vectors (each vector has 3000 values). I want to add them together and store in a double variable. But when i compile i have an error. (incompatible type found, Object required.)
    How can i store the values of two vector in an object
    here is my peice of code
      public void result (){
            double temp1;
            for(int i=0; i<=  3000;i++){
            temp1 = (double)v.elementAt(i) + (double)v1.elementAt(i);
      NOTE: i already have 3000 values (or objects) in my vectors
    Thanks alot in advance

    Okay guss. i Used (Double) in my vectors as object because with lowercase (double) it throws error. Asbestos you said (What are the objects in the vectors? Are they Doubles (with a capital 'D')? If so, use the methods found in the Double API to change the Doubles into doubles, instead of trying to cast them.) i tried but i didnt able to findout how to use that API. Can anybody show me
    Here is my full code.
    public class Simple {
        public long c=0;
        public long a = 16807;
        public long m = 2147483647;
        public long  XO = 238640;
        public long  XO1 = 248921;
        public Vector v = new Vector();
        public Vector v1 = new Vector();
        public Vector vLast = new Vector();
        public double x = 0, R = 0;
        public double LCDx (){
        for(int i=0; i<= 3000;i++){
        x = (((a)*(XO))+c)%m;
        R = x/m;
        XO = (long)x;
        v.addElement(new Double(R));
        System.out.println(i+" Value: "+R);
        return R;
        public double LCDy (){
        for(int i=0; i<=  3000;i++){
            x = (((a)*(XO1))+c)%m;
            R = x/m;
            XO1 = (long)x;       
            v1.addElement(new Double(R));
        return R;
      public void result (){
            double temp1;
            for(int i=0; i<=  3000;i++){
    // PROBLEM PART
             double temp = (double)v.elementAt(i) + (double)v1.elementAt(i);
              vLast.add(temp); 
      }Thanks alot in advnacee

  • Results Values displyed as Stars in the out put Cell

    Hi Gurus. I have one question for you.
    After execution of my query, in the results columns the values are displayed as Stars () instead of values.But when we place the cursor on the particular cell (Star ()),The values are displaying in the formula bar of the excel sheet.
    How can I get the direct values in the results area?
    What I need to do?
    Regards,
    Uma.

    Thanks Anil,
    Yes, I have applied the NODIM & NDIV functions as well. But still it's giving the same, I guess the about functions will be used when we will get the values of "X".
    Can I use any other functions to solve this issue?
    I think the definition is correct at query level; we can deliver the same to the user.
    Please suggest me, if wrong.
    Regards,
    Uma.

  • DataSet/DataGrid/Null values

    Strange thing - when I bind a dataset to a datagrid and the
    dataset column has null values, I cannot edit it. If I try to edit
    the value, it just returns to the previous value when I press the
    Enter key.
    If all the rows start out with a non-null value, I can edit
    them without any problem. Any thoughts?
    TIA

    Hello
    While that is true for a unique index on columns where all values are null, it is not the case where one of the values is not null:
    SQL> CREATE TABLE dt_test_nulls (id number, col1 varchar2(1))
      2  /
    Table created.
    SQL> CREATE UNIQUE INDEX dt_test_nulls_i1 on dt_test_nulls(id)
      2  /
    Index created.
    SQL> insert into dt_test_nulls values(null,'Y')
      2  /
    1 row created.
    SQL> insert into dt_test_nulls values(null,'N')
      2  /
    1 row created.
    SQL> create unique index dt_test_nulls_i2 on dt_test_nulls(id,col1)
      2  /
    Index created.
    SQL> insert into dt_test_nulls values(null,'N')
      2  /
    insert into dt_test_nulls values(null,'N')
    ERROR at line 1:
    ORA-00001: unique constraint (BULK1.DT_TEST_NULLS_I2) violated
    SQL> insert into dt_test_nulls values(null,null)
      2  /
    1 row created.
    SQL> insert into dt_test_nulls values(null,null)
      2  /
    1 row created.I just thought it was worth pointing out.
    HTH
    David
    Message was edited by:
    david_tyler

Maybe you are looking for

  • How to verify input field value at run time

    Hi all, I have a input text field (username) on my jsf page and while entring username i have to verify that input provided by me is correct or not. For example- I started entering Test in username and error message occurs at the same time after vali

  • Excise Amount is not coming automatically.

    Hi, I have done the configuration for Excise but system is not calculating the Excise duty, automatically. I have done configuration as Condition type JM01 in tax procedure, asssigned value in FV11 and tax code 100% and given the 16% in J1ID. 1) When

  • Can't see home sharing library on new PC

    I have a 7 year old Windows XP PC, and a brand new Windows 7 PC. I would like to move my iTunes files from the old PC to the new one, so it looks like Home Sharing is the sensible way to do it. I have made sure that Home Sharing is enabled on both PC

  • Ipod problems...once again. *sigh*

    ok here goes. i got my ipod last christmas. its a 40 g ipod. a few months after i got it, it started skipping songs, and humming, and makign weird noisees. and then it stopped working. i sent it into your little apple sotre, and eventually they sent

  • Question on using NI-DAQ6.9.x

    Hi. I am a freshman in this field. Last year, we uesd lab-PC+ with NI-DAQ4.8.5 by using C++ and windows95 as the working platform.But, recently, I have downloaded and installed the newest version NI-DAQ6.9.x.After that, I cannot drive a machine (no r