problem of apex_item. CheckBox

Hi all:

I have a problem to add a checkbox control to my report, I use the api apex_item.checkbox. I've seen many examples of how do and I tried different ways, but when I run the report does not display the box, it seems * < input type = "checkbox" name = "f01" value = "1" / > *.

I think I'm doing something wrong, but I can't see it.


The SQL I use is this:
SELECT     apex_item.checkbox(1,ca.cod_caso) checkbox,
           ca.cod_caso,
           ca.codigo_alterno,
           ca.descripcion desc_caso,
           cl.nombres_apellidos cliente,
           SUM (aca.duracion / 60) duracion,
           SUM (aca.valor) valor
    FROM   act_caso ca, act_nombre_cliente cl, act_actividad_caso aca
   WHERE       ca.cod_cliente = cl.cod_cliente
           AND ca.cod_caso = aca.cod_caso
           AND aca.fecha >= '01-MAY-2011'
           AND aca.cod_prefactura IS NULL
GROUP BY   apex_item.checkbox(1,ca.cod_caso),
           ca.cod_caso,
           ca.codigo_alterno,
           ca.descripcion,
           cl.nombres_apellidos
I m using Apex 4.0.2.00.08 and Oracle XE 11 g.

concerning


Gerard

In the attributes of the report, change the column definition. Change the Type of display to Standard report column.

Tags: Database

Similar Questions

  • Problem with apex_item.checkbox

    Dear friends,

    I m create a checkbox in interactive report through the query below.

    Select apex_item.checkbox(1,EMPNO,'UNCHECKED') "', ENAME from EMP '"

    But the result is < input type = "checkbox" name = "f01" value "7369" UNCHECKED = / > instead of the check box.

    I use apex 4.1 with oracle 10g, considering that this query works perfectly in the apex 3.2

    Can any1 please help me about this?

    Concerning
    Kamran

    Hello

    Go change your report and then change this column. Change ' display as ', 'report type Column.

    Kind regards
    Jari

    http://dbswh.webhop.NET/dbswh/f?p=blog:Home:0

  • read apex_item.checkbox in a javascript script

    Hi people,

    I have a page of report of popup with a report of checkbox

    Select apex_item.checkbox(1,empno) tur,

    Ename,

    job

    EMP;

    The user can click on the checkbox and give the button submit. I need to pass the value of the checkbox on the page parent via JavaScript. I know that the way to get the value of the item through JavaScript

    Text1 = $v ("P4_COMMENTS");

    But I don't know how to get all the item clicked is a Java variable. I even tried

    < script >

    function i() {}

    AV = document.getElementById ("G_F01");

    Alert (AV);

    }

    < /script >

    Document.GetElement does not work in this case.

    Please let me know how to extract the

    Article apex_item. CheckBox checked in a JavaScript rather than PL/SQL block.

    Thank you in advace

    knockaert

    Hello

    Place the following script on the popup page to get the values back to page 1. Make sure that you call the javascript returnCheckedVals function by clicking on the submit button.

  • Increase the size made of apex_item.checkbox?

    Hello
    I display a SQL report, including an apex_item.checkbox, this is for use on a Tablet, so I would like to be able to increase the size of boxes that are displayed, to make them easier to select. Can I do this with the help of p_attributes or another way?

    Thank you

    Mike

    Mike, UK says:
    I display a SQL report, including an apex_item.checkbox, this is for use on a Tablet, so I would like to be able to increase the size of boxes that are displayed, to make them easier to select. Can I do this with the help of p_attributes or another way?

    You can try:

    ...
    p_attributes => 'style="width: 2em; height: 2em;"'
    ...
    

    or use a sheet of style with a selector for the box or column:

    /*
      Not IE6 or IE7/8 in quirks mode
    */
    input[type="checkbox"] {
      width: 2em;
      height: 2em;
    }
    

    Note, however, that support for the style box size varies greatly between browsers/versions.

  • Dynamic element appears in the reports - apex_item.checkbox

    Hi all

    I want to add a Checkl box to a report, and then select columns. So I used under query for this report.
    SELECT apex_item.checkbox(1,Cus_ID) DELROW,
    Cus_ID Customer_Id,
    Cus_Name Customer_Name
    FROM Customer_List
    But when I use top query and run the report, rather than view the check box on the report it shows simple HTML code for the box under column DELROW.

    This is an example
    <input type="checkbox" name="f01" value="2000" />
    Any idea?

    change the region of reoport, then change to standard column.

  • Problem with the checkbox and 'if' statement 'else if '.

    Hi, I had something like this:

    if (this.rawValue=="0" ){
      app.alert("0");
      this.resolveNode("Circle1").presence = "hidden";
      this.resolveNode("cross").presence = "visible";
     }  
    
    
    else if (this.rawValue=="1"){
      app.alert("1");
      this.resolveNode("Circle1").presence = "visible";
      this.resolveNode("cross").presence = "hidden";
      }
    
    else{
      app.alert("2");
       this.resolveNode("Circle1").presence = "hidden";
      this.resolveNode("cross").presence = "hidden";
     }
    

    I put a default position on the neutral State. The values are default: on = 1, off = 0, neutral = 2.

    When I'm clicking my button to check it works only 'market' (1) and (2) State "neutral." 'off' State does not work and I do not know why.

    Please help me with this.

    Hello

    Here is the form to the you: https://acrobat.com/#d=qiBnkcpRnPWxA5hokFXvQw.

    I shook the script, but it wasn't the main problem. The issue was that the box is on the Master Page and had a default value of the neutral. Some objects on the Master Page, as with the values by defect and buttons, checkboxes can behave badly when the form is reparqué (layout: ready event).

    If you take a look at the form, you will see the objects on the design Page behave as expected. However, similar objects on the Master Page by default returns every time that the layout event: loan fires. It has already been noted with Adobe.

    I recommend that you move the objects in a design Page or perhaps use a drop-down list instead of the check box.

    Niall

  • Add lines to the slot table with apex_item.checkbox form?

    Hello

    I created a data manipulation process to add a line in a tabular presentation. The problem is that I have a few boxes and when I click on the button to call the procedure for adding line is not
    create one of the only text fields. Is anyway for me to create the checkboxes in this way?

    Thanks in advance!

    Hello

    Take a look on Re: Add a line in the detail table when the checkbox is enabled on a table of master report clone an entire line so it should include check boxes. Just make sure that ypu run updateInputs() or something similar to make sure that all the boxes have unique attributes "name".

    Andy

  • Problem with the checkbox

    I created a form in Acrobat. There are two checkboxes next to each other. When you check one, the other also automatically checks. They are supposed to be either / or options.

    How can I change this?

    Thank you

    totallockout

    Make sure they have the different export value.

  • Problem using a checkbox in an update of the DB. Help, please

    Hello;
    I am writing a small application as a type of control. I use a box like lets say a switch off market. All my pages work well until you turn the check, or removing so the table BD field is empty. I get an error when I uncheck the box and click Update. Can someone help me? I will attach my code, here is the error I get:

    Run database query error.
    [Macromedia] [SequeLink JDBC Driver] [ODBC Socket] [Microsoft] [ODBC Microsoft Access driver] Syntax error in UPDATE statement.

    The error occurred in C:\websites\108392zj7\sound\sound_RecordAction.cfm: line 9

    7: < cfif ParameterExists (Form.btnEdit_OK) >
    8: < cfif ParameterExists (Form.RecordID) >
    "9: < cfupdate datasource =" "#sitedatasource #" username = "#siteUserID #" password = "" #sitePassword # "tableName = 'his' = formFields" #Form.FieldList # ">"
    10: < cflocation url = "sound_RecordView.cfm" >
    11: < / cfif > < / cfif >



    --------------------------------------------------------------------------------

    SQL update sounds on = (param 1) where ID = (param 2).
    DATASOURCE ETUCE
    VENDORERRORCODE-3503
    SQLSTATE 42000

    attached is the code for the 3 pages that I use to run this little app for now. (Will be condensing it down to 1 or 2 pages soon.)

    Please help, I looked at this code for 2 days now and can't get it to work properly.

    Phoenix

    This code sets!

    checked>

    It works now!

    Maybe you can help me with a more difficult question?

    I want to do this for each user who logs on the site, always on sound, (Session management that I believe) they need to turn it off during their session using this little app. It is possible to write code for managing session making this happen for all users have to disable it?

    Phoenix

  • apex_item. CheckBox validation

    Hi team,

    I had created an interactive report in which I had created to check by using apex_item.checkbox.

    I need a validation in Java script, could you please help me on this.

    Validation required.

    In my form, I have a button, if they do not selected the check box and click on the button, so I have to manage based on java script to select at least one check box and click the button for treat more.

    Could you please help how we can achieve this.

    Kind regards

    Sruthitamiri

    Hi Nanoo Tamiri,

    You can do this by using javascript

    assuming that f40 is the id of your checkbox field

    replace the f40 with your own

    Gives you sample code, change according to your requirement.

    1. change your page-> header HTMl

    function f_check() {
        var count = 0;
        count = $('input[name="f40"]:checked').length;
        if (count == 0) {
            alert('No checkbox is selected, please select atleast one checkbox.');
        } else {
            apex.submit({ request:"SUBMIT"});
        }
    }
    

    2. change your button

    Action : Redirect to URL
    URL : javascript:f_check();
    

    Hope this helps you,

    Kind regards

    Jitendra

  • apex_item. CheckBox

    Hi all

    I use APEX 4.2 and IE8.

    I need a little help. I am trying to disable a check box value below is my code, but the question is always enabled. Am I missing something?

    apex_item.checkbox(1,imm_document_type.id,'disabled=disabled;','CHECKED',NULL)
    Thank you

    In my view, that the value of your property is false. Try this:

    apex_item.checkbox(1,imm_document_type.id,'disabled="disabled"','CHECKED',NULL)
    

    Edit:
    Try the following code

    apex_item.checkbox(1,2,'disabled="disabled" checked="checked"','CHECKED',NULL)
    

    Prime does not box set to checked, but the other does.

    Published by: chrdei on 10.12.2012 12:54

  • Issue of Apex_item. CheckBox

    Hello
    I created a report of the apex using apex_item.checkbox and apex_item.hidden, the source code looks similar to below:

    Select
    apex_item. Hidden (3, article_site).
    apex_item. CheckBox (1, article_id, "onchange = 'spCheckChange (this)' ',: f_article_id, ' :') checkbox,")
    article_id,
    article_site,
    article_creationdate
    a articles
    where article_id = decode (v ('P2_article_id'), cm, article_id, v('P2_article_id'))
    and article_site = decode (v ('P2_article_site'), ", article_site, v('P2_article_site''));

    Example of report looks at below

    checkbox article_id, article_site, article_creationDate
    1 yahoo.com 20/10/2010
    Google.com 2 10/21/2010
    MSN.com 3 22/10/2010

    what I want, this is when a user selects the check box to select the records, insert selected article_id, article_site to another table called articles_2, so I created a process:

    Begin
    Because me in 1.apex_application. G_F01. Count
    Loop
    Insert into articles_2 (article_id, article_site)
    Values (apex_application. G_F01 (i), apex_application. G_F03 (i));
    End loop;
    End;

    If I check all items, the process will loop through each record and insert the selected records in the table of articles_2 properly.

    But if I check only article 2, the article_id 2, then the process gets the right article_id but bad article_site values, for example.
    It inserts article_id = 2 and article_site = yahoo.com in the articles_2 table.

    Does anyone know what was wrong with my code?
    Thanks in advance.

    Hi user8870431 (please tell us your name).

    I don't know how your current process can work, but you must specify an index in the tables of G_Fxx, like this:

    BEGIN
      FOR i IN 1..apex_application.G_F01.count LOOP
        INSERT INTO articles_2 (article_id, article_site) VALUES (apex_application.G_F01(i), apex_application.G_F03(i));
      END LOOP;
    END;
    

    Hope this helps,
    John

    If you find this information useful, please do not forget to mark the 'useful' or 'correct' post so that others benefit as well.

  • Trying to put an APEX_ITEM. CHECKBOX with JavaScript

    I have a PL/SQL region that gives the user five blank lines. When the user enters an item # I have JavaScript validate the item # against our current list of products. If the item # is not found the user has the possibility to indicate that the element # entered must become a new element. In this case, I want to put a checkbox in the area to check.

    The box is created as an apex_item.checkbox and each of them (in each row) has a identifier unique, e.g. new_item_1, new_item_2, etc. In the JavaScript code, I can see the value of a check box specified using alert ("checkbox value is" + $v (new_item_1)); or something similar. However, $s (new_item_1, "CHECKED"); does not the box to checked as expected.

    What is the correct syntax for 'check' a dynamic check with JS?

    Thank you

    Gregory

    Gregory,

    You can use normal JS to check the box...

    document.getElementById("itemID").checked = true;
    
    or
    
    $x("new_item_1").checked = true;
    

    See you soon,.
    Hari

  • apex_item. CheckBox on a report

    Hi all
    I use apex_item.checkbox for a column in my report. But during the execution of the page, I see that we can change the check box on the report. I want "* show only *" on the reports so that users cannot modify.

    Thank you
    Lucy

    I personally recommend investing in a query builder that has syntax highlighting. I bet that sql Developer (free Oracle) has it as well. If you look at a query in one of these tools, you will immediately see the issue.

    Within a string, the strings must be escaped - the traditional way is to put the 2 single quotes for each regular single quote. There is also a feature called q introduced in 10G that you could use, but I personally never got the hang of it.

    It work?

      v_sql :=  v_sql || 'DECODE(column, '''||v_y||''', '''',
                          null, '''') as Hotline, ';
    
  • checkbox on enabling/disabling problem

    Hello friends!

    I have problems with two checkboxes. Initially, the first is turned on and off while the second is disabled and also unchecked. When you click on each the sysdate is entered in the corresponding columns in the table of my database. I want to make clickable only once and remains active after that.

    The problem: when I click on the first the sysdate is inserted in my table and the box is checked, but it is not be disabled. After the click on the second box is checked, as it should be and becomes chekable. Then I click on the second, the sysdate is inserted in my table, the first checkbox is disabled, but second still remains clickable. Bottom line: current box does not respond to disabled (I tried two ways, through FAKE PERMITS and DISABLED TRUE, property of disabled was actually more "convenient").

    The two boxes are on WHEN-BOX-CHANGE triggers.
    CODE for the first checkbox (CHECK_SOSIRE):
    Start
    UPDATE think I PUT i.sosire = sysdate WHERE the i.cnp_vizitator =:bloc_portar.cnp; commit;
    SET_ITEM_PROPERTY ('CHECK_PLECARE', ACTIVE, PROPERTY_TRUE);
    end;

    CODE for the second checkbox (CHECK_PLECARE):
    Start
    UPDATE think I PUT i.plecare = sysdate WHERE the i.cnp_vizitator =:bloc_portar.cnp; commit;
    SET_ITEM_PROPERTY ('CHECK_SOSIRE', ACTIVE, PROPERTY_FALSE);
    SET_ITEM_PROPERTY ('CHECK_PLECARE', ACTIVE, PROPERTY_FALSE);
    end;

    THX,
    Iulian

    Hello

    You can't disable the same element for which you wrote the trigger. So, you might want to issue a go_item before disabling the current item.

    Arun-

Maybe you are looking for