Disable Check box in tabular form

Hi,
I am working on apex4.1. I have created a tabular form.There is 2 columns Approve and Cancel. if I tick on cancel check box then Approve check box column should disable and vice versa.
How can i do this ?
Thanks & Regards
Vedant

hi,
this thread maybe help you
Tabular Form: Enable/Disable a field based on the status of a check box
regards,

Similar Messages

  • How to create check box in tabular form

    Dear Friends
    i have craeaed tabular form .Recently all column are default text field but i want to change some column from text field to check box .
    i have try it with simple check box but there is no option to pass return value in to table.
    How to create check box in tabular from.
    select
    "CLAIM_ID",
    "CLAIM_ID" CLAIM_ID_DISPLAY,
    "EMPLOYEE_ID",
    "CLAIM_DATE",
    "START_FROM",
    "END_TO",
    "REIMB_NAME",
    "REIMB_AMOUNT",
    "REMARK",
    "ACTIVE_FLAG",
    "STATUS",
    "APPROVE_NO",
    "APPROVE_FLAG"
    from "EMP_REIMBURSEMENT_DTL
    {code}
    i want to change column from text field to Check box
    Cplumn Name :
    1.ACTIVE_FLAG Return value 'Y'
    2.STATUS Return Value "APPROVE"
    How to pass it with check box in tabular form.
    Thanks                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Visit this demo app:
    http://apex.oracle.com/pls/otn/f?p=31517:1
    Section VI has a lot of tabular form stuff with checkbox handling.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.apress.com/9781430235125
    https://apex.oracle.com/pls/apex/f?p=31517:1
    http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
    -------------------------------------------------------------------

  • Create Check box in Tabular form and report

    This is Marilyn. I wanted to know if anybody can help me with the following scenario.
    I created tabular form which has some LOV columns, and some check boxes. When the user clicks on "add row" button, I want to populate the row with the values from the LOV display to be selected by user, and some of the blank check box also display as empty check box in order for user to select check or uncheck them.
    If this is possible, can you provide an example?
    Thanks

    Visit this demo app:
    http://apex.oracle.com/pls/otn/f?p=31517:1
    Section VI has a lot of tabular form stuff with checkbox handling.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.apress.com/9781430235125
    https://apex.oracle.com/pls/apex/f?p=31517:1
    http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
    -------------------------------------------------------------------

  • Alert Box on tabular form

    Hi,
    I have a tabular form with only one column, and the column is NOT NULL ENABLE.
    So may I know is it possible to show an alert box in tabular form if user didn’t fulfill the required field?
    In fact, I have created a new button and hide the main button already.
    And I have already added JavaScript in region’s footer, however, the alert box still popup even when I have already key in data in the required field. It is because I can’t able point the new button to the field which is NOT NULL ENABLE.
    Any suggestions are appreciated.
    Thanks.

    Hi Gus,
    Create a normal submit button - in my example, this is called "SUBMIT". When it's created, edit it attributes and change the following:
    Target is a: URL
    URL Target: javascript:notNull('f03');
    Then add the following to the form region's Region Header:
    <script type="text/javascript">
    function notNull(fld)
    var flds = document.getElementsByName(fld);
    var f;
    var e = 0;
    if (flds)
      for (var k = 0; k < flds.length; k++)
       f = flds[k];
       if (f.value == "")
        f.style.backgroundColor = "yellow";
        e = 1;
       else
        f.style.backgroundColor = "white";
    if (e == 1)
      alert("Highlighted fields are required!");
    else
       doSubmit("SUBMIT");
    </script>In this example, the column I'm validating is "f03" but check doing a View Source on your page to get the right "name" attribute for your column.
    Andy

  • Preview not saving check boxes in PDF forms

    For some reason 10.6's preview will not save check boxes in PDF forms, you can click them but as soon as you save them they disappear.

    I'm having the exact problem. I have a fillable PDF form that has many checkboxes. Saving the pdf (doesn't matter whether it's 'Save', 'Save All', or 'Save As' under the File menu) will clear/reset the checkboxes in the file.
    Anyone know of a workaround for this? Or, is Apple fixing this soon? I really don't want to get Acrobat Pro 9 (well, I don't think it's compatible with Snow Leopard yet anyway)
    If you'd like a sample PDF file to try it out, let me know.
    Thanks.

  • How to add check box to the forms in scripts

    Hello experts,
             i got one requirement. to add a check box to the form. how can we add a check box in form. is it possible to adda check box in scripts?
    thanks in advance.

    Hi Pammi,
    In a window go for text elements & then go for change editor & use the following:
    Insert->Characters->SAP symbols->SYM_CHECKBOX
    It will not show checkbox in print preview. Take a printout.
    Ashven

  • Input disabled check box

    how to display input disabled check box in selection screen.
    plz give me sample code.i think we have to use at selection-screen output. so using it how we have to build code

    Below is the code we can use:
    REPORT zrjntrial_tree LINE-COUNT 65
    LINE-SIZE 80
    NO STANDARD PAGE
    HEADING.
    TABLES : vbrk.
    PARAMETERS : p_radio AS CHECKBOX USER-COMMAND opt1.
    SELECT-OPTIONS : s_vbeln FOR vbrk-vbeln,
                     s_fkdat FOR vbrk-fkdat.
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF screen-name = 'P_RADIO'.
            screen-input = 0.
            screen-output = 1.
            MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    Regards,
    Himanshu

  • Disabling Check Box

    HI Experts,
                   I have Selection screen where in 1st Block I have 3 Radio Button & respective input fields. In 2nd Block I have 2 Radio button & Respective Check Boxes. I used Loop At Screen for Disabling Input Fields in 1st Block whose Radio Button is not clicked. I need to do the same Functionality for 2nd Block so that I can Disable Check Box whose Radio Button is not Clicked.
    I have allready writen  USER-COMMAND ABC in 1sr Block.
    And it wont allow me to write another USER-COMMAND for 2nd block. What Would I Do.
    Plz Help. Urgent.
    Thanks.
    Khan.

    Hi,
    Refer to the following code:
    selection-screen begin of screen 100 title title.
    selection-screen begin of block b1 with frame title text-t01.
    parameter:rad1 radiobutton group rad user-command frad1 default 'X',
              rad2 radiobutton group rad .
    selection-screen end of block b1.
    selection-screen begin of block b2 with frame title text-t02.
    parameter: mtr as checkbox modif id g3 user-command chk1,
               p_matnr type eban-matnr modif id g1,
               sloc as checkbox modif id g3 user-command chk2,
               str_loc type eban-lgort modif id g4.
    selection-screen end of block b2.
    selection-screen begin of block b3 with frame title text-t03.
    select-options: matnr1 for eban-matnr modif id g2.
    selection-screen end of block b3.
    selection-screen pushbutton /20(10) name user-command ucom.
    selection-screen end of screen 100.
    name = 'FETCH'.
    title = 'Test Report'.
    call selection-screen '100'.
    type-pools slis.
    declaration of internal tables and work areas to be used
    data: begin of it_pr occurs 0,
          banfn type eban-banfn,
          bnfpo type eban-bnfpo,
          loekz type eban-loekz,
          statu type eban-statu,
          ekgrp type eban-ekgrp,
          matnr type eban-matnr,
          werks type eban-werks,
          lgort type eban-lgort,
          preis type eban-preis,
          peinh type eban-peinh,
          end of it_pr.
    data: begin of it_mat occurs 0,
          matnr type eban-matnr,
          end of it_mat.
    *DATA:BEGIN OF ITAB1 OCCURS 0,
      data: l_answer.
    data: it_fieldcat type slis_t_fieldcat_alv,
          wa_fieldcat like line of it_fieldcat,
          it_event type slis_t_event,
          wa_event type slis_alv_event.
    declaration of variables to be used
    data: r_ucomm type sy-ucomm,
          mat_no type eban-matnr,
          len type i value 1,
          count type i value is initial,
          iflag type i value is initial,
          iflag1 type i value 0.
    data :pr_id type sy-repid,
    rt_extab type slis_t_extab.
    at selection-screen output.
      if rad1 = 'X'.
        loop at screen.
          if screen-group1 = 'G1' or screen-group1 = 'G4'.
            screen-active = '1'.
            screen-input = 0.
          elseif screen-group1 = 'G2'.
            screen-active = '0'.
          endif.
          modify screen.
        endloop.
      elseif rad2 = 'X'.
        loop at screen.
          if screen-group1 = 'G1'  or screen-group1 = 'G4' or screen-group1 = 'G3' or screen-group1 = 'G5'.
            screen-active = '0'.
          elseif screen-group1 = 'G2'.
            screen-active = '1'.
          endif.
          modify screen.
        endloop.
      endif.
      if mtr = 'X'.
        loop at screen.
          if screen-group1 = 'G1'.
            screen-input = 1 .
          endif.
          modify screen.
        endloop.
      endif.
      if sloc = 'X'.
        loop at screen.
          if screen-group1 = 'G4'.
            screen-input = 1 .
          endif.
          modify screen.
        endloop.
      endif.
    clear sy-ucomm.
    This will surely sort your prob
    Regards
    Gaurav

  • Want Print Priview of check box on smart forms

    Hi Expert,
    I want  Print Priview of check box on smart forms.
    I get the checkbox symbol when i give the print out but it not show in priview.
    So pls suggest how it show in print priview.
    Thanks & Regards
    SwatantraPathak

    Hi,
    If you used the symbols then you cannot see the print preview of the checkboxes. This can seen in the print. If you want to have the print preview of checkbiex you have to create the Window of same size as check size and place it where you required. This cannot be possible with symbols

  • Check box w/validation form troubles

    hello there, I am under a major, major Deadline!
    I have a flash and php contact form with a validation made
    with all input text boxes. I need to add 1 check box to the form,
    but I don't know how to pass it to through.
    here is the code I have for my form now.
    function checkForm():Boolean {
    // this checks whether required fields have been filled in
    // initialize missing flag on assumption everything OK
    var missing:Boolean = false;
    // clear all error text fields
    error1_txt.text = error2_txt.text=error3_txt.text="";
    // check each field
    // if problem is encountered, display message
    // and set missing flag to true
    if (text_field_1.text == "") {
    error1_txt.text = "Please enter your name";
    missing = true;
    if (text_field_2.text.indexOf("@") == -1) {
    error2_txt.text = "Please enter a valid email address";
    missing = true;
    if (text_field_5.text == "") {
    error3_txt.text = "You have not entered any comments";
    missing = true;
    // if missing is true, return false
    // otherwise return true
    return missing ? false : true;
    function sendMessage():Void {
    // check whether form has been correctly filled in
    var formOK:Boolean = checkForm();
    // if no problems, process the form and send variables to
    PHP script
    if (formOK) {
    // Form processing goes here
    message.from = text_field_1.text;
    message.email = text_field_2.text;
    message.comments = text_field_5.text;
    message.sendAndLoad("feedback.php?ck="+ new
    Date().getTime(), messageSent);
    // display message informing user that email is being sent
    gotoAndStop("sending");
    function backToForm():Void {
    // send playhead back to the main form
    gotoAndStop("theForm");
    // create and apply text format for date
    var dateDisplay:TextFormat = new TextFormat();
    dateDisplay.font = "Georgia,Times,_serif";
    theDate_txt.setNewTextFormat(dateDisplay);
    theDate_txt.autoSize = "left";
    // create LoadVars instance to retrieve date from PHP script
    var getDate:LoadVars = new LoadVars();
    // initialize LoadVars to send form data
    // and receive response from the PHP script
    var message:LoadVars = new LoadVars();
    var messageSent:LoadVars = new LoadVars();
    // load date from PHP
    getDate.load("
    http://localhost/phpflash/ch02/today2.php");
    // assign theDate property of the LoadVars instance to text
    field
    getDate.onLoad = function() {
    theDate_txt.text = this.theDate;
    messageSent.onLoad = function() {
    if (this.sent == "OK") {
    gotoAndStop("acknowledge");
    } else {
    gotoAndStop("failure");
    failure_txt.text = this.reason;
    gotoAndStop("theForm");
    any help would be greatly appreciated.
    thanks,
    hutch

    if by check box you mean a radio button, you can add the
    following to your code:

  • How to disable check box (row selector) in a tabular APEX report

    I have a tabular report with check boxes that gets populated by a SQL query.  For certain rows, I want to disable (or not render) the check box, depending on the value of one of the columns for that particular row (if the value of a column defined as Date is less than sysdate, I don't want to display the check box for that row).  I tried using the Conditional Display in the Column Attribute section of the check box, but I am unable to access this Date column which is being selected from a view in the source SQL.  I used variable such as :name-of_column, V(':name-of_column'), but always get a NULL value for this Date column in the SQL that I am trying to code in the Conditional Display section.  For this reason, my condition does not work correctly.
    What am I doing wrong?  Is my approach above correct?

    Hi Ajay,
    I don't think you can handle this with a conditional display, as that works on column level rather than row level.
    The way I see it, there are two things you can do:
    1) an sql approach, where youo render the checkbox as part of your query using apex_item.checkbox, check the oracle docs for detailed info on the usage APEX_ITEM
    You'll end up with a query like
    select case when YOUR_DATE_COLUMN < sysdate
                      then null
                      else  apex_item.checkbox2( p_idx => 1
                                                               , p_value => YOUR_DATE_COLUMN
    ,      <rest of your query here>
    from YOUR_TABLE
    2) an JavaScript approach in which you create a dynamic action that check your tabular form date column and, when necessary hides and disables the checkbox for that row.
    First option is more robust, but will require a bit more work. Second option is faster to develop, but might have different effect across various browsers and browser versions.
    Regads,
    Vincent
    http://vincentdeelen.blogspot.com

  • Cascading Text Boxes in Tabular Form

    Hello Gurus,
    I have a Cascading Select List in a Tabular Form made with APEX_ITEM.
    My Tabular Form is like this: Col1[select list], Col2[select list], Col3, col4 .
    Now :- I would like Col2 to be made as a TEXT BOX as opposed to SELECT LIST. But this TEXT BOX should still be populated "On Change" of Col1 and the TEXTBOX should be editable.
    I saw another function called: TEXT_FROM_LOV_QUERY but I can not set the item_id [to use in HTML HEAD Java Script Function & Application Process] as the signature of the function does not support.
    APEX_ITEM.TEXT_FROM_LOV_QUERY (
        p_value       IN    VARCHAR2 DEFAULT NULL,
        p_query       IN    VARCHAR2,
        p_null_text   IN    VARCHAR2 DEFAULT '%')
        RETURN VARCHAR2;Please point me to any relevant examples.
    Appreciate any help in this regard. Please let me know if I could not explain my problem well.

    Hi Jari,
    Thanks a lot for your suggestions.
    I did make some changes and here is the code I have all together..
    Region Source to display the page:
    SELECT apex_item.hidden(45,LINE_NO)
      || apex_item.select_list_from_query(46, TRANSACTION_ID, 'select transaction_name,transaction_id from cap_plan_std_business_tran where technology_id=1', 'style="" '
      || 'onchange="SetTXTitem(this,'
      || 'f47_'
      || LPAD (LINE_NO, 4, '0')
      || ')"', 'YES', '0', '- Select Transaction -', 'f46_'
      || LPAD (LINE_NO, 4, '0'), NULL, 'NO' ) TRANSACTION_ID,
      apex_item.TEXT(47, SLA, NULL,NULL,'style=""', 'f47_'  || LPAD (LINE_NO, 4, '0'), NULL) SLA,
      apex_item.text(48,TRANSACTIONS_PER_PEAK_HOUR) TRANSACTIONS_PER_PEAK_HOUR
    FROM cp_std_trans_details
    WHERE cap_plan_id = 1
    UNION ALL
      SELECT apex_item.hidden(45,NULL)
      || apex_item.select_list_from_query(46, NULL, 'select transaction_name,transaction_id from cap_plan_std_business_tran where technology_id=1', 'style="" '
      || 'onchange="f_set_casc_sel_list_std_item(this,'
      || 'f47_'
      || LPAD (9900 + LEVEL, 4, '0')
      || ')"', 'YES', '0', '- Select Transaction -', 'f46_'
      || LPAD (9900 + LEVEL, 4, '0'), NULL, 'NO' ) TRANSACTION_ID,
    apex_item.TEXT(47, NULL, NULL,NULL,'style=""', 'f47_'  || LPAD (LEVEL, 4, '0'), NULL) SLA,
    apex_item.text(48,NULL) TRANSACTIONS_PER_PEAK_HOUR
    FROM dual
      CONNECT BY LEVEL = 2the below is my Javascript source:
    <script language="JavaScript" type="text/javascript">
    function f_set_casc_sel_list_std_item(pThis,pSelect){
            alert('from function');     
        var l_Select = html_GetElement(pSelect);
        var get = new htmldb_Get(null,$x('pFlowId').value,
                  'APPLICATION_PROCESS=tab_casc_txt_sla',0);
        get.add('TAB_CASCADING_ITEM_TXTSLA',$x(pThis).value);
        gReturn = get.get('XML');
        alert(gReturn);
        if(gReturn && l_Select){
             $x_Value(l_Select,gReturn);
        get = null;
    </script>I have created a APPLICATION ITEM with this name : 'TAB_CASCADING_ITEM_TXTSLA'
    and below is the application process source:
    DECLARE
       v_counter   NUMBER := 0;
       v_sla number;
    BEGIN
       OWA_UTIL.mime_header ('text/xml', FALSE);
       HTP.p ('Cache-Control: no-cache');
       HTP.p ('Pragma: no-cache');
       OWA_UTIL.http_header_close;
         SELECT COUNT (*) OVER () sla_count, sla
           INTO  v_counter,v_sla
                   FROM cap_plan_std_business_tran
                  WHERE transaction_id= :TAB_CASCADING_ITEM_TXTSLA
           IF v_counter = 1
          THEN
             HTP.prn (v_sla);
          END IF;
          IF v_counter != 1
          THEN
             HTP.prn ('un defined');
          END IF;
    END;but some thing should still be wrong and it does not work .. can you please check ...

  • "Check Box" in ADF Form is not Working in JDev11.1.1.2

    11gR1 :
    I created an ADF Form in a JSF Page and I deleted one column and draged the same column again as an "ADF selectBooleanCheckbox "
    and in Edit Boolean Binding Dialog : I entered the value selected as 'True' and unselected value as 'False'
    and when I run the Page the data did not Synchronize with the chech box item.
    Note :- although the check box Item is working with Adf Table in example #145 at link http://blogs.oracle.com/smuenchadf
    can anybody help me?
    regards
    Forakora

    Hi,
    just tried and found out that you have to set partial triggers for the af:selectBooleanCheckbox like:
                  <af:selectBooleanCheckbox value="#{bindings.Deptno.inputValue}"
                                            label="#{bindings.Deptno.label}"
                                            shortDesc="#{bindings.Deptno.hints.tooltip}"
                                            id="sbc1" partialTriggers="cb1 cb2"/>
                  <af:commandButton actionListener="#{bindings.Next.execute}"
                                    text="Next" partialSubmit="true" id="cb1"/>
                  <af:commandButton actionListener="#{bindings.Previous.execute}"
                                    text="Previous" partialSubmit="true" id="cb2"/>regards,
    Branislav

  • Disable check box in report

    Hi All,
    I have created check box in a report using APEX_ITEM.CHECKBOX
    select apex_item.checkbox(1, emp_id) , emp_id,ename,manager,skills,salary,services from employee
    In employee table each employee would have 2 records one is for Engineering and another for Research services.
    If the user selects one of the records using the check box ,lets say engineering service for emp_id 100, corresponding Research service record for the employee 100 should be disabled( or the check box in the Research service record should be disabled) and on the other hand it should be enabled when the user unselects it.
    Please help me to resolve this.
    Application Express 4.1.1.00.23
    Glass-fish server
    Thanks and Regards,
    Sasi

    This is from one of my examples:
    SELECT apex_item.checkbox (1,
                               '#ROWNUM#',
                               CASE
                                  WHEN status = 'N'
                                     THEN 'disabled=disabled;'
                                  ELSE NULL
                               END,
                               DECODE (status, 'Y', '#ROWNUM#'),
                               'f01_' || '#ROWNUM#'
                              ) check_box
      FROM employees_checkboxIt will show the checkboxes disabled if status is 'N' and enabled if stauts is 'Y'. Is this similar to your requirement?
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • Disabling Check box via SPEL

    I have a requirement where in a Message Check Box needs to be disabled. When navigated to this page the checkbox is already set.
    a. Can this be achived via Personalization?
    b. I have set the item's Required property to SPEL with the following value ${oa.AppraisalVO.disableCheckBox} but it errors?
    Please help!
    Thanks,
    Hari

    Set FND: Diagnostics profile to yes to get the complete error stack.
    --Shiv                                                                                                                                                                                   

Maybe you are looking for

  • Mount with pc - problems

    Hi, I'm trying to connect my Samsung Continuum schI400 with my PC running the 64-bit version of Windows 7.  After mounting the device, I'm prompted to open the connection on my computer.  However, wehn the connection is recognized by the device and U

  • Radio Buttons problem

    Hi i ahve developed a GUI with 2 toggle buttons options[0] and options[1],I have also created an "OK" Button.the programming is working fine ,but i now want to implement the action performed method.The user must select which option he/she wants and t

  • Delete Row in WAD layout for input ready query

    Hi All I am using WAD for planning applications.....when i execute the Web template, it is displaying the query in edit mode which is ok... i am able to edit and insert the records in layout but i didn't find any option for deleting row...i couldn't

  • CS6 upgrade

    sorry asked yesterday but would like to know what is the download size when upgrading from cs5 to cs6, thanks

  • Can I use a PXI-1033I chassis (part number 779756-01) with a desktop PC via Port PCIe as well as with a notebook via ExpressCar​d ?

    I have bought a PXI-1033I chassis (part number 779756-01) which we connect to a desktop PC via Port PCIe using a 779500-03 cable. Now we also have the requirement of using that chassis with a notebook. From NI web site we have seen that this should b