Check box in apex

There is a checkbox in an apex form. When user clicks the checkbox it will call a javascript to update the another field.
Name of the check box is P1_CK.
When i View the page source of the front end screen the ID of the check box is displayed as P1_CK_0.
I am calling the following javascript function in onClick event.
if (document.getElementById('P1_CKD_0').checked)
document.getElementById('P1_FIELD1').value='1000000';
----few more code
else
document.getElementById('P1_FIELD1').value=' ';
But when we migrate this code into other environment. The above is failing saying 'Object required'. When i view the page source, the ID of the check box is showing as P1_CK instead of P1_CK_0.
Will the item ID (DOM object) be changed when we migrate the application?
Can any one please suggest me how to make the ID name constant in both environment or suggest me how to overcome this issue.
I am using Oracle apex 3.2 and IE6.
Thanks,
Ravi

This forum is named "Database - General." There is a forum at OTN specifically devoted to APEX. You might wish to delete this post and repost there.

Similar Messages

  • POP up LOV with check boxes for APEX 4.0

    I'm using APEX 4.0 on Oracle 11g and I will like to be able to select multiple selections when the POP UP dislplays. Is there a way to add check boxes?
    Thanks In Advance
    Jenice

    Hallo to all,
    again i can't find any turnaround for having a pop up, working with the technique I mentioned.
    Did anybody know a turnaround / can point to a good link?
    I'm very frustrated because with select list based on query works without problem... (but using this object is not the case such the user have to insert new value as well directly from the tabulare form).
    Thanx
    Message was edited by:
    Marcello Nocito
    Message was edited by:
    Marcello Nocito

  • Radiogroup check box

    Hey, I'm trying to create a radiogroup check box in APEX 4.0, so that I will be able to delete columns just by selecting the box. I having troubles showing the boxes.. I keep getting this <input type="radio" name="f12" value="M0025" />
    The code that I am using is
    SELECT APEX_ITEM.radiogroup (12, et.mrc_number) "SELECT", et.* from (select * from ebcadmin.assembly_kits@gwnebc et
    where et.item = :p41_text) et
    Any help would be nice.
    Thanks
    Edited by: Swens on Sep 7, 2010 7:10 AM

    Hi,
    Edit the Radiogroup Column from Report Attributes - Edit Column and change the Display as to Standard Report Column. This should fix your problem.
    It will fix your display problem. Now I am not clear of what you mean Radiogroup checkbox, perhaps you mean Radio button.
    How do you plan to trigger the event? Using onchange in Element Attributes? If so, you need to deal with two states, select and unselect.
    Regards,
    Edited by: Prabodh on Sep 7, 2010 7:58 PM

  • Apex 4.0: Change the Search Field to a Multi Value Check Box IR

    I am new here, but hoping to be active :)
    Well, now I am focusing on Apex 4 and I find really new things here. And even new order to develope needs time to get used.
    Still, I am trying to change the Search Field to a Multi Value Check Box in IR. I have found how to make it in Apex version 3, but not at 4 any more.
    Tutorials for apex v.3 write:
    1.Click Edit Page 1 on the Developer toolbar.
    The Page Definition for page 1 appears.
    2. Under Items, click P1_REPORT_SEARCH.
    3. From Display As, select Checkbox ans so on...
    But I do not find any word "Items" in IR and especially P1_REPORT_SEARCH (I assume this should be by default). Under "Report Atributes" I find "Search bar" region, just there is no option for that. Is here any way to make search with checkboxes in v4?

    Hi,
    Tutorial you have check for APEX 3.x probably works still in APEX 4.x if you use classic report.
    As I understand you have now create interactive report that provide out of box search features.
    There is no option to change IR search text field to multi select item.
    What you can do with IR, is hide/disable search field.
    Then you create multi select item and use it in report query where clause.
    Regards,
    Jari
    My Blog: http://dbswh.webhop.net/htmldb/f?p=BLOG:HOME:0
    Twitter: http://www.twitter.com/jariolai

  • Apex with dynamic check box....

    hi to all:
    i have report emp.it contain data like eno,ename,sal,record .
    example:eno ename sal record
    100 a 100
    200 b 3000 going on...
    using this column i am making report by using apex and report contain one submit button also.
    1)in this report i am creating dynamic check box depend on eno..see my coding
    declare
    str varchar2(3000);
    begin
    str:='select htmldb_item.CHECKBOX(10,eno,DECODE(record,1,''CHECKED'')) "SELECT" ,eno,ename,sal ,record from emp where 1=1';
    return str;
    end;
    2)in process created after  submit
    iam created pl/code like ..this code for
    declare
    i number;
    str varchar2(2000);
    emp_id number;
    begin
    FOR i in 1..HTMLDB_APPLICATION.G_F10.count
    LOOP
    IF HTMLDB_APPLICATION.G_F10(i) is not null then
    SELECT htmldb_application.G_F10(i) INTO emp_id from dual;
    --insert into my_log values(emp_id);commit;
    update emp set record=1 where eno=emp_id ;
    commit;
    else if HTMLDB_APPLICATION.G_F10(i) is null then
    update emp set record=0 where eno=emp_id ;
    commit;
    else
    null;
    end if;
    end loop;
    end;
    my requirenent:
    a)if check box checked then -update -record column -1
    b)if check box uncked then -update - record column -0
    in process coding--
    eno alway is not null only..
    so i want to do check box with update the record column..like this
    a)if check box checked then -update -record column -1
    b)if check box uncked then -update - record column -0
    pls give solution.
    output i want like this example:
    chebox eno ename sal record
    checked(X) 100 a 300 1
    checked(x) 200 b 300 1
    next time i am trying to make uncheck first row like
    chebox eno ename sal record
    unchecked 100 a 300 0
    checked(x) 200 b 300 1

    Hi VKR,
    Please try this,
    <cfform name="frmTest"  format="Flash" action="test.cfm" method="post"  >
    <cfscript>
        qryCountry = queryNew("Country,CountryID");   
          queryAddRow(qryCountry);  
          querySetCell(qryCountry, "Country", "India");  
          querySetCell(qryCountry, "CountryID", "1");  
          queryAddRow(qryCountry);  
          querySetCell(qryCountry, "Country", "England");
           querySetCell(qryCountry, "CountryID", "2");    
          queryAddRow(qryCountry);  
          querySetCell(qryCountry, "Country", "Kenya");
           querySetCell(qryCountry, "CountryID", "3");      
    </cfscript>   
        <cfformgroup type="repeater"  query="qryCountry">                       
            <cfinput type="checkbox" value="{qryCountry.currentItem.CountryID}" name="chk" Label="{qryCountry.currentItem.Country}">                               
        </cfformgroup>
        <cfinput type="submit" name="submit" width="100" value="Submit"  >
    </cfform>
    Hope this will help

  • Oracle apex check box with update column

    hi to all:
    i have report emp.it contain data like eno,ename,sal,record .
    example:eno ename sal record
    100 a 100
    200 b 3000 going on...
    using this column i am making report by using apex and report contain one submit button also.
    1)in this report i am creating dynamic check box depend on eno..see my coding
    declare
    str varchar2(3000);
    begin
    str:='select htmldb_item.CHECKBOX(10,eno,DECODE(record,1,''CHECKED'')) "SELECT" ,eno,ename,sal ,record from emp where 1=1';
    return str;
    end;
    2)in process crated after  submit
    iam created pl/code like ..this code for
    declare
    i number;
    str varchar2(2000);
    emp_id number;
    begin
    FOR i in 1..HTMLDB_APPLICATION.G_F10.count
    LOOP
    IF HTMLDB_APPLICATION.G_F10(i) is not null then
    SELECT htmldb_application.G_F10(i) INTO emp_id from dual;
    --insert into my_log values(emp_id);commit;
    update emp set record=1 where eno=emp_id ;
    commit;
    else if HTMLDB_APPLICATION.G_F10(i) is null then
    update emp set record=0 where eno=emp_id ;
    commit;
    else
    null;
    end if;
    end loop;
    end;
    my requirenent:
    a)if check box checked then -update -record column -1
    b)if check box uncked then -update - record column -0
    in process coding--
    eno alway is not null only..
    so i want to do check box with update the record column..like this
    a)if check box checked then -update -record column -1
    b)if check box uncked then -update - record column -0
    pls give solution.
    output i want like this example:
    chebox eno ename sal record
    checked(X) 100 a 300 1
    checked(x) 200 b 300 1
    next time i am trying to make uncheck first row like
    chebox eno ename sal record
    unchecked 100 a 300 0
    checked(x) 200 b 300 1

    I'm not really sure what your problem is but if you are trying to update/save data when a checkbox is checked I would use javascript to call an application process to do the update/save.
    /Daniel

  • Apex Question: Check Boxes

    How do you choose multiple check boxes from a set of them?

    How do you choose multiple check boxes from a set of
    them?There is an apex forum you know...
    http://www.rittmanmead.com/2004/03/31/adding-checkboxes-to-report-rows-using-html-db/ will show you that behind the scenes APEX sets up a collection that you can inspect the members of in code.
    Niall Litchfield
    http://www.orawin.info/

  • 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

  • Extracting values from multi select check boxes delimeted by ":"

    A set of check boxes in an Apex form produces "V1:V2:V3" in the target field, these are the key fields from a dynamic selection lists based on a table that contains the key and value fields. Does anyone have a sample SQL fragment that will produce a record for each one of the values ?
    FORM_TABLE
    ID (1)
    CB_TARGET (V1:V2:V4)
    LIST_TABLE
    KEY_F (V1),(V2),(V3),(V4) etc.
    VALUE_F (Value 1), (Value 2), (Value 3), (Value 4 ...)
    Even though there is only a single row in this example in the "FORM_TABLE", how can this be transformed to :
    1, V1
    1, V2
    1, V4
    Regards
    H

    Does anyone have a sample SQL fragment that will produce a record for each one of the values ?Does it have to be SQL? The simplest approach is probably PL/SQL, using the <tt>apex_util.string_to_table</tt> function.
    For a purely SQL-based solution, use whatever string-to-row technique is appropriate to your situation.

  • How to insert check box value in table?

    Hi all
    kindly help me how to insert check box value in database. what code i have to use as i am new in programing.
    thanx in advance

    Hi,
    There is no "Check box" in a table, a check box is a GUI (Graphical user interface) item.
    What you want is to store a boolean value in a table. For that you can use the varchar2(1) datatype and store Y or N. (or anything else)
    (you cannot define boolean as a datatype for a column).
    If you're using a front-end application like apex then it might be useful for you to read the documentation about chekc boxes :
    http://download.oracle.com/docs/cd/E10513_01/doc/appdev.310/e10497/check_box.htm#CHDDFBFH
    (for the rest if it's Oracle Forms then everything is already said).
    Edited by: user11268895 on Aug 17, 2010 10:44 AM

  • 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
    -------------------------------------------------------------------

  • How to put Check Boxes in a SQL Report?

    Hi All,
    I have a SQL Report in my application. I want to put check box for each row of the report. How can I achieve that in APEX?
    Here is my application page.
    http://apex.oracle.com/pls/otn/f?p=20420:4:
    Under the "Select" column heading I want to add the check box for each row of the report.
    So that User select that row and when he clicks on Generate report It should generate its report.
    The report should generate if user selects multiple rows also.
    Workspace : alaka
    username : [email protected]
    Password : earth
    Thanks
    Alaka

    Hi,
    But I could not able to find whether the check box is checked or not.
    In the apex page , button is provided and the checked rows "empno" should pass to next page hidden item when the button is clicked.
    I tried apex_ITEM.CHECKBOX(1,empno,'CHECKED') by passing in the URL on click of the button. But it passes the test " apex_ITEM.CHECKBOX(1" to the item in the next page. And not checked values.
    Here is my application page.
    http://apex.oracle.com/pls/otn/f?p=20420:4:
    Workspace : alaka
    username : [email protected]
    Password : earth
    Application: TEST 20420
    Page : 4
    The button "Generate Report" is provided in the page. On click of this button the checked values should pass to the next page.
    Please help me in this.
    Thanks
    Alaka

  • 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
    -------------------------------------------------------------------

  • Check Box Tree.

    Hi All,,
    Unfortunately, I knew that the Check box Tree was removed from the final release of Apex, but I have a problem and I do need to implement this functionality in my application. What I have tried so far is :
    1- I tried to use Apex_Item.Check Box in the ICON parameter of the tree query, but nothing happened.
    2- I tried to concatenate Apex_Item.Check Box in the Text parameter of the tree query, but it displayed as a normal text and the browser doesn't interpret the html text <input type="check box".....>.
    Does anybody now any solution or work around for this problem?
    Any help will be appreciated.
    Thanks in Advance,,
    Ola

    Hi,
    Not sure if this hack will get the checkboxes to work for you (may be worth a shot):
    {message:id=4549167}
    {message:id=8313970}
    Ta,
    Trent

  • Check box - text at the bottom of the check box

    Hi Apex folks,
    I came across a different requirement where as i need to place the check box text in break line at the bottom of the check box. Say I have a check box item X . which having following items
    STATIC:
    A - I am good;1
    B - I am ok ;2
    C- I am bad;3
    D- I am confused;4
    I have to display the text in the bottom of the check box and the text like "A" at the first line and " I am good" at the second line . Is there any possibility to achieve that.
    Thanks
    Karthik

    Karthik C wrote:
    I came across a different requirement where as i need to place the check box text in break line at the bottom of the check box. Say I have a check box item X . which having following items
    STATIC:
    A - I am good;1
    B - I am ok ;2
    C- I am bad;3
    D- I am confused;4
    I have to display the text in the bottom of the check box and the text like "A" at the first line and " I am good" at the second line . Is there any possibility to achieve that.I have to pick option D...
    Do you mean like this?
    [ ]        [ ]       [ ]        [X]
    A          B         C          D
    I am good  I am OK   I am bad   I am confusedIf so, why? If not, show us the required layout.
    Help us to help you. When you have a problem you should provide as much relevant information as possible upfront. This should include:
    <li>Full APEX version
    <li>Full DB/version/edition/host OS
    <li>Web server architecture (EPG, OHS or APEX listener/host OS)
    <li>Browser(s) and version(s) used
    <li>Theme
    <li>Template(s)
    <li>Region/item type(s) (making particular distinction as to whether a "report" is a standard report, an interactive report, or in fact an "updateable report" (i.e. a tabular form)
    With APEX we're also fortunate to have a great resource in apex.oracle.com where we can reproduce and share problems. Reproducing things there is the best way to troubleshoot most issues, especially those relating to layout and visual formatting. If you expect a detailed answer then it's appropriate for you to take on a significant part of the effort by getting as far as possible with an example of the problem on apex.oracle.com before asking for assistance with specific issues, which we can then see at first hand.

Maybe you are looking for

  • Converting to PDF: Page Size varies

    I have to turn a spreadsheet in to a report. Numbers is doing the business until I export to PDF. One page is not coming out as A4 even though I have set it to be A4, reduced font size, dragged the custom size slider etc it still comes out the way it

  • Server on isolated network

    Question is: what's a good configuration for multiple ethernet ports, i.e. four in a Mac Pro, with OS X Server with Open Directory that does not cause the Open Directory pane of Server Admin to hang eventually. I was using three ports for my cluster:

  • Sharepoint Site returns a blank page

    Hi, I am working on a project with my professor and for it I need to set up SharePoint 2013. The installation process worked out fine. I created a new Application Pool, and also a Site collection associated with it. Central Admin page is working fine

  • Editing Chart Text in WAD

    Hi Guys, Chart : X-axis  -   years   --->  2001,2002,2003,2004,2005 y-Axis: Quantity    - > QUAN1,Quan2,quan3,quan4. In the graph display i am getting as  2001/ QUAN1,2002/ QUAN2,2003/ QUAN3 ...... My requirement : is to show as only : 2001 ,2002,200

  • IWeb, RapidWeaver, or GoLiveCS2?

    If I ugrade to iLife06 from 05, I'll get iWeb, right? Is RapidWeaver worth the extra money? As an academic, I can get GoLiveCS2 from www.campustech.com for $75. This is a $399 retail program, and Adobe says it is "easy to use". Is this true? Will I g