How to disable any record in a Tabular Data Block

Hi,
I have a tabular data block having 10 records, every record has a check box(1 check box on each row). I want to disable all items in that particular record where user checks the check box(check box is UNCHECKED by default).
Is this possible in WHEN-CHECK-BOX-CHANGED trigger or any other trigger ?, if so, how, please help.
I hope that, I have illustrated the problem clearly.
Regards.

Hi,
You cannot disable a single row in detail block. Instead You can set the UPDATE_ALLOWED property to FALSE. By this the user can't change the contents.
IF :<block_name>.<check_box_name> = '<value_when_checked>' THEN
   SET_ITEM_INSTANCE_PROPERTY('<block_name>.<item_name>', CURRENT_RECORD, UPDATE_ALLOWED, PROPERTY_FALSE);
ELSE
   SET_ITEM_INSTANCE_PROPERTY('<block_name>.<item_name>', CURRENT_RECORD, UPDATE_ALLOWED, PROPERTY_TRUE);
END IF;Regards,
Manu.
If my response or the response of another was helpful or Correct, please mark it accordingly

Similar Messages

  • For disable any responsibility we are end date that from front end.

    for disable any responsibility we are end date that from front end. what nay command from backend for disable the responsibilty.?

    Refer the following thread
    delete a responsability
    Re: delete a responsability
    Regards
    -Mahesh

  • Testing status of a tabular data block

    When displaying a tabular data block, how can I tell if the user entered data into a blank row, so I know if I can issue a "create_record;" or not.
    Thanks

    Hello,
    Entering a new row fires the When-Create-Record trigger.
    Francois

  • Performing operation on tabular data block

    hello guys,
    i m designing one tabular data block in orcle 6i form builder form emploee_master table form maintaing the employee personnel details.
    i have to perform some operation on this data block like viewing existing records,updatinng the record(s),deleting a purticular record,insrting new record.
    is there a shortcut way to perform theses operations so processing shoulg be fast and data shold be updated?
    pl tell me and give some demo form to understand these operations if possible.
    With Regards
    Vishal agrawal

    Hello,
    All you have to do is to create a block based on the database table. Forms will, then, do everything for you (insert, update, delete) at commit time.
    Francois

  • Tabular data block

    I have a tabular data block (records with a scrollbar). I want to add another field (a checkbox) outside the block so that when clicked, it would change the state of all the activated records within the block (also checkbox's). I tried to get the number of existing records, but I failed and didn't understand the posts on this forum.
    Thanks in advance

    Is this a question regarding Oracle Forms? If so, you probably want to ask the question in the Forms. Make sure that you specify what version of Forms you're using if you do post the question over there.
    If this is a question regarding a GUI developed in some other programming language, you probably want to find the appropriate language/ framework/ development environment forum here on OTN to ask the question.
    Justin

  • How to disable 'Clear Record' option in Oracle Forms deployed in Orcl Apps

    Dear Members,
    I have developed a custom form which is deployed in Oracle Applications.
    In this form I want to disable the 'Clear Record' option to prevent users from clearing the record.
    Can any one please tell me how can I do it?
    Thanks in advance.
    Best Regards,
    Arun Reddy D.

    Hi,
    In your Forms---> trigger--> KEY-CLRREC-----> NULL;
    You cant clear any record.

  • How to color the records in a tabular form

    hi,
    i am using oracle 10g forms
    how to change the color of records on conditional basis in a tabular form display.
    thanks

    Well i give u item level to apply it in the whole record including...
    emp , ename & sal
    any way to do it block level u can use Current Record Attribute Property block level but if u programatically do it as mentioned u can have a lock on something resemble to ur case pls have a look at Craig's Oracle Stuff How to Select Multiple Records in a block using Record Groups just to exclude the idea u want to develop.
    Hope this helps...
    Regards,
    Amatu Allah

  • How to disable particular record?

    Hi,
    I am working with ALV List Display. After displaying the output, there is an Check Box option in the report output.
    If I check for a particular record and delete that particular record, that record only should be disabled remaining records should be enabled, So that I can check another record and delete that record.
    Please given solution for the above ASAP.
    Thanks,
    Vinay.

    Hi Vinay,
    Try the following sample code :
    REPORT  y131_alv_test.
    TYPE-POOLS : slis.
    DATA : BEGIN OF str_test,
           check,
           name,
           END OF str_test.
    DATA : it_test LIKE TABLE OF str_test WITH HEADER LINE,
           wa_fldcat TYPE slis_fieldcat_alv,
           it_fldcat TYPE slis_t_fieldcat_alv.
    it_test-name = 'NAME1'.
    APPEND it_test.
    it_test-name = 'NAME2'.
    APPEND it_test.
    wa_fldcat-fieldname = 'CHECK'.
    wa_fldcat-seltext_l = 'CHECKBOX'.
    wa_fldcat-checkbox = 'check'.
    wa_fldcat-input = 'X'.
    APPEND wa_fldcat TO it_fldcat.
    CLEAR wa_fldcat.
    wa_fldcat-fieldname = 'NAME'.
    wa_fldcat-seltext_l = 'DISPLAY NAME'.
    APPEND wa_fldcat TO it_fldcat.
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
        i_callback_program             = 'Y131_ALV_TEST'
        i_callback_user_command        = 'RETURN'
        it_fieldcat                    = it_fldcat
      TABLES
        t_outtab                       = it_test.
    * EXCEPTIONS
    *   PROGRAM_ERROR                  = 1
    *   OTHERS                         = 2
    *&      Form  RETURN
    *       text
    ***The subroutine should be of the following interface
    FORM return USING r_ucomm LIKE sy-ucomm
                      rs_selfield TYPE slis_selfield.
      CASE r_ucomm.
        WHEN '&IC1'.
          IF rs_selfield-fieldname = 'CHECK'.
            IF rs_selfield-value = 'X'.
              DELETE it_test WHERE check = 'X'.
            ENDIF.
          ENDIF.
      ENDCASE.
    ENDFORM.                    "RETURN
    This would help you, reward if convinced with the code.
    Regards

  • How can I reference records outside the two date parameters?

    Hi all,
    I have a query that fetches records based on the two date parameters defined (Startdate and Enddate).
    If the Startdate is 2014-12-01 and the Enddate is 2014-12-12, I want to pull records outside these two date parameters, that is      2014-09-01 and 2014-11-30.
    I want to add up the records from  2014-09-01 and 2014-11-30 and include them in one of the columns in my report.
    I tried using this query:
     SUM(CASE WHEN FilteredIncident.Statuscodename IN ('QUEUED', 'ASSIGNED') AND (EnteredOn >= '2014-09-01' AND EnteredOn<= @StartDate) THEN 1 ELSE 0 END) AS OpenRecords
    Please help with any ideas..thanks

    Please follow basic Netiquette and post the DDL we need to answer this. Follow industry and ANSI/ISO standards in your data. You should follow ISO-11179 rules for naming data elements. You should follow ISO-8601 rules for displaying temporal data. We need
    to know the data types, keys and constraints on the table. Avoid dialect in favor of ANSI/ISO Standard SQL. And you probably need to read and download the PDF for: 
    https://www.simple-talk.com/books/sql-books/119-sql-code-smells/
    There is no such crap as a “status_code_name” in RDBMS. It has to be a “<something in particular>_status”; think about how silly that data element name is! Want to keep going and have a “status_code_name_value_id”? LOL! 
    The name “Filtered_Incident” is also wrong. Tables are sets, so unless you have only one element in this set, the table name should be a plural or (better) collective name. But a better question is why  did you split out “Filtered_Incidents” from “Incidents”?
    Would you also split “Male_Personnel” and “Male_Personnel” from “Personnel”? 
    Get a book on data modeling and learn some basics. 
    >> I have a query that fetches records [sic: rows are nor records] based on the two date parameters defined (report_start_date and report_end_date). If the report_start_date is 2014-12-01 and the report_end_date is 2014-12-12, I want to pull records [sic]
    outside these two date parameters, that is 2014-09-01 and 2014-11-30. I want to add up the records [sic] from 2014-09-01 and 2014-11-30 and include them in one of the columns in my report. <<
    Having no DDL and no sample data makes this hard. Does your boss make you program without any documentation, DDL, etc? This spec is vague; you say to do a total, but show a count, etc. 
    One of the many nice things about DATE data types is that the BETWEEN predicate works with them, so you can quite writing 1960's BASIC predicates with primitive logic operators. 
    Here is a guess: 
    SELECT SUM(CASE WHEN incident_date BETWEEN '2014-09-01' 
               AND @report_start_date THEN 1 ELSE 0 END)
           AS open_record_cnt 
      FROM Incidents
     WHERE incident_status IN ('QUEUED', 'ASSIGNED')
        AND incident_date <= @report_end_date; 
    --CELKO-- Books in Celko Series for Morgan-Kaufmann Publishing: Analytics and OLAP in SQL / Data and Databases: Concepts in Practice Data / Measurements and Standards in SQL SQL for Smarties / SQL Programming Style / SQL Puzzles and Answers / Thinking
    in Sets / Trees and Hierarchies in SQL

  • How do you delete records from table with data in a select option

    how do you delete records from table with relevant to data in a select option..how to write coding

    Hi,
    Try
    if not s_select_option [ ] is initial.
    delete * from table
    where field in s_select_option.
    endif.
    commit work.
    Be careful though. If select option is emty, you will delete the entire table.
    Regards,
    Arek

  • Operate on a Tabular Data Block as a table?

    hi
    i was wondering if it is possible to query a tabular displayed data block like is done with tables. and do updates and inserts. so just to be clear, i dont want to query/insert/update the database table but the values in the form display items. i'm using oracle forms 9i
    the main reason im asking this is because i want to use vaules in different records in the tabular displayed data block to make validations in the same data block... before the form is commited of course
    thanks
    venom_zx

    You cannot query or manipulate blocks like table.
    But you can manually navigate to each record in the block and validate before they are commited to the base table.

  • How to find Tuple(row) size in a Data Block

    hi,
    I want to find out the size of 1 row and total size of a table in a data block in Oracle 11g. For Example I've a Employee table with 300 rows. I want to find out how much space these rows are occupying in a data block (8192 default) and also the size of 1 individual row.
    I'll appreciate the valuable suggestions.
    Thanks alot.
    Regards,
    Kamran

    Hi,
    Welcome to the forum!
    See [Calculating Oracle average row length|http://www.dba-oracle.com/t_average_row_length.htm], I hope it helps
    Regards,

  • Problem In Tabular Data Block

    Hi,
    I have to two blocks on a form (1) CONTROL----------------------------------------->CONTROL BLOCK
    (2) DETAIL-------------------------------------------->DATA BLOCK
    DETAIL BLOCK has four items referencing DETAIL TABLE COLUMNS namely ROWNUMBER, ITEMNAME, QTY, PRICE.
    In BLOCK(1) I have three text items to get input from user, and a push button . In this block(1) user inputs ITEMNAME,QTY & PRICE and presses push button.
    In WHEN-BUTTON-PRESS trigger I wrote below mentioned code
    BEGIN
    go_block('detail');
    first_record;
    for a in 1..:control.QTY loop
    create_record;
    :global.rownumber:=:global.rownumber+1; // this :GLOBAL.rownumber variable, I declared & initialized with zero, in WHEN-NEW-FORM-INSTANCE trigger.
    :detail.rownumber :=:global.rownumber;
    :detail.itemname :=:control.itemname;
    :detail.qty :=1;
    :detail.price :=:control.price;
    end loop;
    END;
    If usesr enters QTY 4,,,,, four rows are being created in detail block as four records , if user enters QTY 3, three rows are being created, and so on as per number entered in QTY text item........THE PROBLEM IS THAT, ROWS(RECORDS) ARE CREATING BUT FIRST ROW IN DETAIL BLOCK REMAINS EMPTY AND IT STARTS CREATING RECORDS FROM 2ND ROW.
    An help please.
    Regards,

    Hello,
    Well, if you think that the code you wrote with global variable its working for you then for the problem you mentioned the below code should work.
    BEGIN
    go_block('detail');
    first_record;
    clear_block;
    for a in 1..:control.QTY loop
    :global.rownumber:=:global.rownumber+1;
    :detail.rownumber :=:global.rownumber;
    -- :detail.rownumber :=:SYSTEM.TRIGGER_RECORD; -- this line should work also. So, no need for global variable
    :detail.itemname :=:control.itemname;
    :detail.qty :=1;
    :detail.price :=:control.price;
    create_record;
    end loop;
    END;-Ammad

  • How to save all records in the Tabular form page temoprarily

    Hi All,
    I am very new for HTML DB. I created 5 tabular form using HTML DB Wizard. I want that whenever I open any tabular form page and click the add row button in that page then I should add as many record as we need but it should not save in the database but want to save all the page record temporarily in the page. When save button should click then it should save in the database. Can anyone suggest how to do in stepwise. It will be a great help for me.
    Thanks.
    Amit

    Hi,
    Anyone, can help me with this scenario.
    Brgds,
    Mini

  • How to disable control records in Idoc

    Hi All,
    I've a small problem in my scenario.i have a idoc in my input and i want output as a idoc in a flat file.i m using abap class fr this.that abap class is changing idoc into idoc as a flat file.but i have to remove control records in my output.i have a very little knowlegde in abap.so can u help me regarding my scenario.FCC can't be possilbe because it is a huge idoc.
    thanx in advance
    Monika

    actually u din't understand my question fully. i dont want idoc xml..i want idoc in a flat file
    well i got solution...i've chnaged my abap mapping ..and it's wrking fine..
    anyways thanx

Maybe you are looking for

  • Animated gif don't see

    Hello: I have imported an animated GIF in Director MX and when I drag to the stage I don't see the image in the stage (only an empty square) In the cast I see the first image of the animated GIF. I imported with the Menu Insert/Media Element/Animated

  • PO creation Indicator in SRM

    Hi Experts, I have a question for you? Where can i find the PO creation indicator in SRM? We are in Extended Classic scenario. POs are created from Shopping carts either manually by Purchaser from SOCO or autmatically by the system for catalog items

  • Problem with text-indent style , select tag on IE

    Hi Developers, i tried text-indent style class for <select> <option> tag .. The following given code is working on Mozilla fire box browser, but it is not working on IE.. I am trying to build a tree structure in the list box with multiple levels with

  • Iterate Through Lists Instead of Document Libraries, Or both

    System Info: SharePoint 2010 Enterprise w DEC 2013 CU. 2 WFEs (load balanced), App Server, SSRS Server, Dedicated CA Server (All running Win 2k8 R2). Background:I have a large (5,000 user) application that is completely customized on top of SP2010. I

  • RoboHelp HTML - Trying to open any browse or explorer window causes a freeze

    Hi, I am using RoboHelp 9 HTML. Trying to open any Browsing window in the project, like the browse button in Insert Image or even a project, not through Recent, causes the application to freeze. I tried uninstalling and re-installing with no luck. Pl