How to disable certain rows

I have table which has 10 rows .
I want to disable rows from 6 to 8 . It should display only 1 to 5 and 9 to 10. I think table structure is not needed for this query.
Thanks

weird question... this?
SQL> create table t
  2  as
  3  select rownum rn
  4    from all_objects
  5   where rownum <= 10
  6  /
Table created.
SQL>
SQL> select *
  2    from t
  3  /
        RN
         1
         2
         3
         4
         5
         6
         7
         8
         9
        10
10 rows selected.
SQL>
SQL> select *
  2    from (select rownum r, rn
  3            from t
  4         )
  5   where r not between 6 and 8
  6  /
         R         RN
         1          1
         2          2
         3          3
         4          4
         5          5
         9          9
        10         10

Similar Messages

  • How to disable certain keys in Macbook's keyboard

    How to disable certain keys in Macbook's keyboard? My keyboard is break down. It always type "\" key and disturb me!
    Dealer says internal keyboard need cost $120 to replace.
    So, I think can i disable "\" key? i don't want to disable keyboard, just \" key.
    Thanks for help!

    This posting shows how to remove a default Action;
    http://forum.java.sun.com/thread.jspa?forumID=57&threadID=657819

  • How to disable certain form fields from a calculation with a check mark fields.

    How to disable certain form fields from a calculation with a check mark fields.
    In Canada we have to taxes
    I create a form that calculate them to a total
    I need to be able to turn off any of those to taxes to participate to the calculation and their visibile field should become 0
    I was thinking using a checkbox (when checkbox is on (Yes) the tax is calculated, Not ticked (Off) the tax is not calculated and the visible field should show 0 or nothing....
    I really need help on this one — I’m a complete newbie....
    Remark that the second tax is calculated on the sum of what the first tax add (first tax is pan-canadian tax (all provinces).
    The second tax is never use alone (Quebec only (on top of the Canadian one)
    Sometime for outside Canada sell - No tax at all is calculated....
    What should I do?

    I want to tank you to help, really appreciate —>
    This is the code and order... I just trow the checkbox in there (they have, so far, no purpose...)
    The code use is
    var a = this.getField("pricehorstx");
    event.value = Math.round (a.value * 7.25) / 100
    I guess -If the checkBox are check - The tax should be calculate — If “Off” the tax should be not calculated and PriceHST and /or PriceQST should show zero or be empty — The HST is always calculated in Canada, but the QST is added only in Quebec.
    I need to turn both to Zero for international sale.
    Message was edited by: Chacapamac

  • How to make Certain rows in the structure to be displayed as bold

    I have two structures in the query. There is a requirement that all values in Certain rows should be bold  I am talking about values and not the headers. The users are going to use the query through BEx Analyzer.
    I tried the Highlighted Display but it makes it only that row values BLUE. (this change makes them bold only on web).
    Please let me know if there is any way to display perticular row values in a structure in Bold.
    We have both versions 3.5 and 7.0 of BEx analyzer. The Query is on 7.0
    Thanks in Advance.
    2. I also have a requirement that all values from a perticular selection from column structure to be displayed as bold.
    ........................................Company Code1 Company Code 2 Comapany Code 3
    No Of Male Employees..................10.....................200........................30
    No Of Female Employees...........500.................70........................77
    So here All values in the row Female Employees should be bold and All values under Company Code 3 should be bold
    Edited by: Abhijit N on Dec 23, 2008 11:54 PM

    Hi Abhjit,
                 Please check formating option in bex analyzer for this.
    Plz check here......
    http://help.sap.com/saphelp_nw04/helpdata/en/f1/0a55d2e09411d2acb90000e829fbfe/content.htm
    Regards,
    Vijay.

  • How to exclude certain rows in the ALV display from the total?

    Hi,
    May I know is there a way to exclude certain rows that are shown in the ALV control from the calculation of grand total?
    Thanks much.

    See, if
    function module REUSE_ALV_TRANSFER_DATA 's
    IT_EXCLUDING   .... param
    works for you.

  • How to disable some rows in a matrix

    Hi experts
    I have a matrix
    i want to do set line/rows disable and can't edit in rows
    please post example code
    thank you

    As far as I know there is no direct way to do this - you can only set columns editable or non-editable.
    A workaround could be:
    catch the "got_focus" event on the beforeaction=true; check if it is your matrix (pVal.ItemUID) and if it is your row that you want disabled (pVal.row) - if it is, set bubbleevent = false to stop it (and maybe display a status bar message to users so they don't think its a bug)
    Additionally for a visual clue, maybe put some sort of field at the start of the row that says "open" or "closed" or something, this way the user wont be confused when they cant enter the row.
    If got focus doesn't work properly (I havent tested) maybe try some other event like click or keypressed.

  • How to disable certain text fields in second tab based on the drop down selection from first tab?

    My first tab contains a drop down menu which has two options
    1. Personal info
    2. Office info
    The second tab contains all the information regarding Office and Personal Information. But I need to selectively disable certain fields based on the drop down in first tab.
    For example,
    The second tab consissts of all fields like
    Name,
    Age
    Job title,
    Office Location, etc.
    And i dont want office related details to be displayed if I am selecting personal info in the first tab.
    It would be really great if someone could send me the code for achieving this.
    Thanks in advance.

    Hi Vishnu
                  Can you check the List component in foundation/components ? I think "Build list using" works he same as your requirement. Check the listener they have used in dialog/items/list/items/ listFrom/listeners
    "selectionchanged"  : function(box,value){box.findParentByType('tabpanel').manageTabs(value);}
    here the ExtJs will find the tabpanel with value you are selecting fromdropdown. The title of each panel should match with the dropdown values
    Some queries
    Disable values means you have to remove it from your CRX?
    "values should become mandatory". for tab2? or tab3? - if tab2 and if it is a customized widget then u have to write it in your js only i think.
    Thanks
    Veena

  • How to disable entire row in JTable?

    Hi to all,
    I have a JTable where i added JCheckboxes to single column.
    The Checkboxes automatically increments when new row is added.
    My problem is that i need to disable the row of which the checkbox is selected.
    when i used
    setEnabled(false);
    the entire column is disabled.
    plz any one can help me out.
    Thanks In advance.

    Override JTable#isCellEditable to return false for the row.
    db

  • How to disable delete row in sales order

    Hi
    Is possible to disable the functions to delete row in Sales Order and Purchase Order.
    How can we made that? by SDK or exist anything else?
    Regards
    VS
    Edited by: Vasco Silva on Jan 8, 2009 8:24 PM

    There is no out of the box solution to disable row deleting function.  The alternative can be used would be approval procedure.  If the documents are subject to approval, all rows will be locked from any changes.
    Thanks,
    Gordon

  • How to disable certain columns of a Table?

    hi all,
    I wish to fill a pattern of 8 digital signals (only 1's & 0's) in a Table.
    Is there any way to restrict the user from typing char or num other than a 1 or a 0?
    Since the table is a string, I'm having confusion how to do this.
    Secondly, the table would have by default 12 columns visible on the Front Panel, excluding both the headers.
    But the No. of Columns is based on a parameter called Duration that ranges between 4 & 256.
    What I want the user to do is to key in 1's & 0's for the Duration chosen.
    Since it'll be tedious to key in for large values of Duration, I've given the option of Set Row(s) & Reset Row(s),
    that will fill with either 1 or 0 respectively for the chosen Row Value.
    Is there any way to disable the remaining columns of the Table, ie, those unfilled columns,
    when the user scrolls horizontally? I don't know how to achieve this.
    I went thro' the Properties of the Table, I don't understand some of their functionalities,
    like SelStart, SelSize etc.
    I wonder why a Property like Disable Array Elements for Arrays is not provided for a Table
    to Disable the columns we want to do so, or is it my gross ignorance, I don't know.
    Experts pls clarify me & help me out.
    Regards,
    Partha.
    - Partha
    LabVIEW - Wires that catch bugs!
    Attachments:
    Set Eventframe1.vi ‏409 KB

    Another option is to do this:
    Slightly more elegant, but also more potential for bugs (e.g. the users can tab into the column).
    craigdobis wrote:
    You can lower your overhead by using these "professional" looking indicators and controls. They are limited in functions and properties, thereby causing a smaller VI in file size.
    Nice. I didn't think about that. Looks like a VI with a single system boolean takes ~20% less space than one with a standard boolean.
    P.S. In general, I would say there are considerably better arguments for using system controls than memory issues.
    Try to take over the world!
    Attachments:
    Disabled Column.png ‏5 KB

  • Disable certain rows of data to be displayed.....

    I have a program in which the table will display data fed from the server .
    I would have a function in which user have the freedom to select which data he wants to be display on the next refresh page.
    How do i prevent the other data that user does not require to be displayed on the table ??
    by the way all these will affect the rows in the table , so how do i go about manupilating the rows?
    Thank YOu anyone . .

    If you mean that the user will enter a kind of scan, like myitem* or item using as a wildcard, I would create a class called ScanType where you have diiferent return values. In your main code you can use if..else depending on the scantype.
    public final class ScanType
         /** The types are:
         *  -1: source
         *   0: *ource
         *   1: *ourc*
         *   2: sourc*
         *   9: s*urce
         private ScanType()
              super();
         public static final int getScanType(String source)
    // Default is not valid. scan type : 9
              int returnValue = 9;
    // Check scan type -1: source
              if(source.indexOf("*") == -1)
                   returnValue = -1;
    // Check scan type 0
              else if((source.charAt(0) == '*') && (source.charAt(source.length()-1) != '*'))
                   returnValue = 0;
    // Check scan type 1
              else if((source.charAt(0) == '*') && (source.charAt(source.length()-1) == '*'))
                   returnValue = 1;
              else if(source.charAt(source.length()-1) == '*')
                   returnValue = 2;
              return returnValue;
    }You can test this with this code:
    public class ScanTypeTest
         public static void main(String[] args)
              String kalle = "source";
              System.out.println("Scan type: -1 " + kalle + " " + ScanType.getScanType(kalle));
              kalle = "*ource";
              System.out.println("Scan type:  0 " + kalle + " " + ScanType.getScanType(kalle));
              kalle = "*ourc*";
              System.out.println("Scan type:  1 " + kalle + " " + ScanType.getScanType(kalle));
              kalle = "sourc*";
              System.out.println("Scan type:  2 " + kalle + " " + ScanType.getScanType(kalle));
              kalle = "s*urce";
              System.out.println("Scan type:  9 " + kalle + " " + ScanType.getScanType(kalle) + " is invalid");
    }The rest of the code you have to create yourself as I don't know how you will retrieve the data to be displayed.
    Klint

  • Disabling certain rows in editable oo alv ?

    Hello Experts ,
                             I am having internal table of type z table. i am using oo alv to display data using this internal table. I am making my alv editable using field catalog. I want to keep  entire row non editable on the basis of one fields value. so how to do this? i dont want to define seperate 'types' in my program. is it possible?

    Hi Bhushan,
    there is no other way.
    1, Define structure ZTABLE_ALV is SE11 with fields
    field           type
    .INCLUDE        ZTABLE
    STYLES          LVC_T_STYL
    2. Define ALV data table and update table in your program with workareas
    data: xt_data   type table of ztable_alv.
    data: xt_updat  type table of ztable.
    data: xs_data   type ztable_alv.
    data: xs_updat  type ztable.
    3. Data selection directly into  data table
    SELECT * FROM ZTABLE
             INTO CORRESPONDING FIELDS OF TABLE xt_data
    WHERE...
    4. Loop at ALV data table and update STYLES table
    5. Show ALV DATA table in editable Grid
    6. Update (after button or something else).
    * Build update table
    loop     at  xt_data
           into  xs_data.
      move-corresponding xs_data to xs_updat.
      append xs_updat            to xt_updat.
    endloop.
    update ztable from  table xt_updat.
    That's alle

  • How to make certain rows editable in hierachy alv

    HI,
    i have called one alv function module where i have done certain fields editable by making fieldcatalog-edit = 'X' and fieldcatalog-input = 'X'.But i have to make the selected rows (based on checkbox in the output list) editable.any idea?

    Hello Priya,
    1) If u want to make fields of an ALV to be editable based on certain conditons then see the following code.
    First create an extra field in ur internal table.
            celltab TYPE lvc_t_styl,
    After that pass this field to the layout.
      gw_layout-stylefname = 'CELLTAB'.
    Here the layout structure is defined as
    gw_layout TYPE lvc_s_layo
    now based on the condition u can set the fields editable or non editable.U can check the following code.
      DATA: ls_celltab TYPE lvc_s_styl.
      ls_celltab-fieldname = 'CHK'.
      ls_celltab-style = cl_gui_alv_grid=>mc_style_disabled.
      MODIFY gw_final-celltab FROM ls_celltab
      TRANSPORTING style
      WHERE fieldname = ls_celltab-fieldname.
      IF sy-subrc NE 0.
        INSERT ls_celltab INTO TABLE gw_final-celltab.
      ENDIF.
    Now if ur using OO-ALV then pass the layout to the method.
    If ur going by Function modules then u need to call the following function module.
      gw_layout-stylefname = 'CELLTAB'.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY_LVC'
        EXPORTING
          i_callback_program       = sy-cprog
          i_callback_pf_status_set = 'PF_STATUS'
          i_callback_user_command  = 'USER_COMMAND'
          is_layout_lvc            = gw_layout
          it_fieldcat_lvc          = gi_fieldcat
        TABLES
          t_outtab                 = gi_final
        EXCEPTIONS
          program_error            = 1
          OTHERS                   = 2.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    2) If u want to read the changed contents from ALV grid back to ur program then use the following function modules.
        CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
            IMPORTING
              e_grid = l_ref1.
          CALL METHOD l_ref1->check_changed_data
            IMPORTING
              e_valid = lv_valid.
    Shafi

  • How to disable first row selection in a table

    Hi,
    I have three tables which have master child relationship. I need to enable a button for each table based on row selection of corresponding table.But first row is being selected automatically and the buttons are enabled.
    what should i do in order to avoid first row selection in a table.I tried by removing selected Row Keys.But still i am getting the same problem.can anyone suggest on this.
    Thank You,
    Sukumar

    I know a hack but I don't recommend it, anyway here it goes:
    Remove selected Row Keys
    Change selectionListener from the default and create a custom action listener (You can call the default one inside of it) (Tip: use makeCurrent function in this PDF
    This will make sure that there is no selected row highlighted for the first time, but it actually means that the first row is selected, it's just not shown.
    This method is tested with 11.1.1.7

  • How to hide certain rows of data?

    I am creating a table where there is an option for the particular to be hidden. What do I do in HTMLDB to make that particular row to stay hidden "forever"?
    Ex:
    ID Name Hide
    1 joe N
    2 john N
    Now after I edit the data of joe to Hide=Y I want the table to display:
    ID Name Hide
    2 john N
    anyone know what statements i need to do? thanks

    Views do not stop you from being able to update your data. You can use instead of triggers like others mentioned. However, if your view is simple enough, you can do updates, inserts and deletes directly against the view. For example, using your table above create the following view. This view allows inserts, updates and deletes.
    CREATE VIEW TESTER_VIEW
    (ID, NAME, HIDE)
    AS
    select "ID","NAME","HIDE"
    from tester
    where hide = 'N';
    VPD stand for Virtual Private Database. It enables you to put row-level security on your data. Look at this white paper for a good introduction: http://otn.oracle.com/deploy/security/pdf/twp_security_db_securityoverview_10r1_1203.pdf

Maybe you are looking for