Creating a process with Checkbox inside interactive report

close
Edited by: mang jose on Feb 4, 2011 9:21 PM

Hi,
Create dynamic Action. Select Advanced
Event: After Refresh
Selection Type: Region
Region: {select your report region}
Condition: No Condition
Action: Execute JavaScript code
Fire On Page Load: True
Code:
$('.apexir_WORKSHEET_DATA input[name="f01"]:checked').each(function(){
$(this).parents("tr:eq(0)").children().css({"background-color":"#00FF66"})
})Selection Type: None
I did updated my sample
https://apex.oracle.com/pls/apex/f?p=40323:53
Regards,
Jari

Similar Messages

  • Creating a Cascading LOV in an Interactive Report

    version 4.1.1.00.23
    Hello,
    Would someone help me with creating a Cascading LOV in an Interactive Report?
    I'm not finding much help searching Google or the forum.
    Thanks,
    Joe

    I used this example but I cant show picture in my region using this procedure. It displays simbol for broken image. Any help. I even added grants for procedure, but it just does't work. This is how I call procedure in html region:<img src="#OWNER#.display_thumb?p_photo_id=3084374128401555434" />

  • How to create more than 21 lists in interactive reports

    hello everyone,
    I am new to ABAP as well as this site. Kindly help, I want to know how to create more than 21 lists in interactive reports.
    Also, how can i create them without using WHEN 1, wHEN 2 and so on...
    Kindly help.
    thank you

    Hello,
    Using Intracive Reports its not possible to cretate more than 21 lists.
    But its possible to create more than 21 using ALV concept.
    for sample ALV u can serch in SDN.
    Regards,
    Anil.

  • Problem with checkboxes in IR report mainly for update process please help

    Hello,
    Can anyone please help me out with this issue.
    I have an interactive report with 3 checkbox item for a single column named status. Based on the value of the column status the check box should be checked. For example:
    DECODE(status,'DEV',1,0) as DEV,
    DECODE(status,'RVW',1,0) as RVW,
    DECODE(status,'PRD',1,0) as PROD,
    So for this I have used the apex_item.checkbox item. Below is my report query
    SELECT APEX_ITEM.HIDDEN(30,0,'','f30_' || ROWNUM)
         || APEX_ITEM.HIDDEN(31,0,'','f31_' || ROWNUM)
            || APEX_ITEM.HIDDEN(01,ROWNUM,'','f01_' || ROWNUM)
         || APEX_ITEM.HIDDEN(04,CHF_DATASTORE||CHF_SCHEMA||CHF_TABLE||CHF_COLUMN,'','f04_' || ROWNUM)
            || APEX_ITEM.HIDDEN(05,CHF_STATUS,'','f05_' || ROWNUM)
         || APEX_ITEM.HIDDEN(06,CHF_STATUS,'','f06_' || ROWNUM)
            || APEX_ITEM.HIDDEN(08,CHF_STATUS,'','f08_' || ROWNUM)
         || APEX_ITEM.HIDDEN(09,CHF_STATUS,'','f09_' || ROWNUM)
            || APEX_ITEM.HIDDEN(11,CHF_STATUS,'','f11_' || ROWNUM)
         || APEX_ITEM.HIDDEN(12,CHF_STATUS,'','f12_' || ROWNUM)
            || APEX_ITEM.CHECKBOX (32,ROWNUM,'onClick="javascript:ToggleValue(this,' || ROWNUM || ','||'''f30'');"'
         ,DECODE (0,1, ROWNUM),':','f32_' || ROWNUM) DELETE
            ,CHF_COLUMN
            ,CHF_STATUS
            ,APEX_ITEM.CHECKBOX (07,ROWNUM,'onClick="javascript:ToggleValue(this,' || ROWNUM || ','||'''f05'');"',DECODE (CHF_STATUS,'DEV',ROWNUM),':','f07_' || ROWNUM) 
              DEV_EDIT
         ,APEX_ITEM.CHECKBOX (10,ROWNUM,'onClick="javascript:ToggleValue(this,' || ROWNUM || ','||'''f08'');"',DECODE (CHF_STATUS,'RVW',ROWNUM),':','f10_' || ROWNUM) 
              RVW_EDIT
            ,APEX_ITEM.CHECKBOX (13,ROWNUM,'onClick="javascript:ToggleValue(this,' || ROWNUM || ','||'''f11'');"',DECODE (CHF_STATUS,'PRD',ROWNUM),':','f13_' || ROWNUM) 
              PRD_EDIT
            FROM CHF_COLUMN WHERE
    CHF_DATASTORE  = 'DOMAIN_DEV' AND
    CHF_SCHEMA     = 'SCHEMA_DEV' AND
    CHF_TABLE      = 'EMPLOYEEE'
    ORDER BY 1;  And I have a button for the update process so that the users can check the checkboxes option for the status column either 'DEV', 'RVW', 'PRD'. The status of the column can be in either of these states or can be null.
    I have a update process, its having some problem - I don't understand whats causing the problem. Below is the error message which I encountered when trying to update.
    ORA-06502: PL/SQL: numeric or value error: character to number conversion error
    My Update process.
    DECLARE
    l_cnt BINARY_INTEGER := 0;
    l_stepid number := 10;
    l_date DATE := SYSDATE;
    BEGIN
    FOR i IN 1 .. apex_application.g_f01.COUNT
    LOOP
    IF APEX_APPLICATION.G_f05 (i)  = 1 THEN
          UPDATE  CHF_COLUMN
               SET      CHF_STATUS = 'DEV'
             WHERE CHF_DATASTORE||CHF_SCHEMA||CHF_TABLE||CHF_COLUMN = APEX_APPLICATION.G_f04 (i)
              l_cnt := l_cnt + SQL%ROWCOUNT;
    apex_application.g_print_success_message := apex_application.g_print_success_message ||
    'Successfully updated'||l_cnt ||'<br><br>';
    END IF;
    IF APEX_APPLICATION.G_f08 (i)  = 1 THEN
          UPDATE  CHF_COLUMN
               SET      CHF_STATUS = 'RVW'
             WHERE CHF_DATASTORE||CHF_SCHEMA||CHF_TABLE||CHF_COLUMN = APEX_APPLICATION.G_f04 (i)
              l_cnt := l_cnt + SQL%ROWCOUNT;
    apex_application.g_print_success_message := apex_application.g_print_success_message ||
    'Successfully updated'||l_cnt ||'<br><br>';
    END IF;
    IF APEX_APPLICATION.G_f11 (i)  = 1 THEN
          UPDATE  CHF_COLUMN
               SET      CHF_STATUS = 'PRD'
             WHERE CHF_DATASTORE||CHF_SCHEMA||CHF_TABLE||CHF_COLUMN = APEX_APPLICATION.G_f04 (i)
              l_cnt := l_cnt + SQL%ROWCOUNT;
    apex_application.g_print_success_message := apex_application.g_print_success_message ||
    'Successfully updated'||l_cnt ||'<br><br>';
    END IF;
    END LOOP;
    COMMIT;
    END;If you can please have a look at the app, you can get a better understanding of my problem.
    Workspace : orton_workspace
    username : [email protected]
    password : sanadear
    Application No: 15089 SAMPLE_CHECKBOX_APP
    Thanks,
    Orton
    Edited by: orton607 on Aug 4, 2010 9:28 AM

    I could be wrong but maybe change the hidden items to be like:
    APEX_ITEM.HIDDEN(05,DECODE(CHF_STATUS,'DEV',1,0),'','f05_' || ROWNUM)
    APEX_ITEM.HIDDEN(08,DECODE(CHF_STATUS,'RVW',1,0),,'','f08_' || ROWNUM)
    APEX_ITEM.HIDDEN(11,DECODE(CHF_STATUS,'PRD',1,0),,'','f11_' || ROWNUM)so that the values are 0/1?
    Also, you have
    DECODE (CHF_STATUS,'DEV',ROWNUM)instead of
    DECODE (CHF_STATUS,'DEV',0,1)in the checkboxes, as I would expect.
    I'm also not sure why you need to duplicate the checkboxes (f07,f10,f13) as hidden items (f05, f08, f11) if they are both 0/1 values.

  • Selecting the Checkboxes on Interactive Report

    Hello
    I have two checkboxes on a Interactive Report:
    My query is as follows:
    select
    apex_item.checkbox(1, empno, 'ENABLED'),
    apex_item.checkbox(2, deptno, 'ENABLED'),
    ename,
    sal
    from emp;
    I have a conditional button 'Check N Update' which will invoke the Pl/SQL process:
    FOR i in 1..APEX_APPLICATION.G_F01.count
    LOOP
    l_empno := APEX_APPLICATION.G_F01(i);
    UPDATE XXX ....;
    END LOOP;
    FOR i in 1..APEX_APPLICATION.G_F02.count
    LOOP
    l_empno := APEX_APPLICATION.G_F02(i);
    UPDATE XXX ....;
    END LOOP;
    What I need is I need to check a CONDITION, if BOTH the checkbox's are selected then I need to throw an ERROR saying.
    YOU CANNOT SELECT BOTH the boxes.
    Please let me know how can I get this.
    Appreciate your help.
    thanks

    Hi
    Using a RadioGroup would actually create one radio button for each line and mean that you could only select one line.
    As the submit process will only return the boxes that have been checked, you only have access to the ticked items and as these contain just the EMPNO and DEPTNO values, you have no way to check if any two are from the same row.
    This means that you will have to rethink your report slightly. You will need to have two checkboxes with ROWNUM as the value (if the report is sorted somehow, this may make this more awkward as ROWNUM is from the unsorted data) and make your EMPNO and DEPTNO hidden fields. The when the user submits the page, you will have to compare the ROWNUM values for the first column with all the ROWNUM values for the second column to see if there's a match.
    As an alternative, you could have a select list for the first item and give the user options for EMPNO, DEPTNO, Both, Neither?
    Andy

  • Dynamic Checkboxes on Interactive Report

    I have an interactive report that currently lists a row of values:
    Field1
    Val1
    Val2
    Val3
    I would like to place a text-field at the top of this interactive report with a submit button:
    [textbox] [submit button]
    Field 1
    Val1
    Val2
    Va3
    Then I would like to have checkboxes [] appear in each row:
    [textbox] [submit button]
    Field1 | Checkbox
    Val1 | []
    Val2 | []
    Val3 | []
    Then I would like to make it so that the user enters some text into the textbox and selects any number of the row checkboxes. Upon hitting submit, a procedure will run that accepts each Field1 value and inserts a record into a table containing 2 fields: the Field1 value and the textbox text.
    So the following user input:
    [Test text in the textbox.] [submit button]
    Field1 | Checkbox
    Val1 | []
    Val2 | [x]
    Va3 | [x]
    After hitting the submit button, a procedure would be called that would insert 2 records into a table:
    Field1 | Field2
    Val2 | Test text in the textbox.
    Val3 | Test text in the textbox.
    Note that there is no entry for Val1 because its checkbox was not checked when the user pressed submit.
    What can I do to make this happen? I appreciate any help you can offer.

    Thanks for sharing
    I am having exactly the same problem.
    I have an interactive report with the following SQL.
    select RSN_CD,
        DESC,
    APEX_ITEM.CHECKBOX(1,RSN_CD) "Select"
    from CAN_RSN
    I've set the 'Select' column's type to 'Standard Report Column'.  But the checkbox does not appear on the report. 
    Apex Version: 4.0.1.00.03
    Thanks.

  • Setting Value of apex_item.checkbox in interactive report

    Forum
    We need a "select all" and "unselect all" functionality in an interactive report ...
    The IR Query currently goes something like this :
    select
    OBJ_LABEL",
    "DATA_START_DATE",
    "S_ROWSTATE",
    "S_ROWVERSION",
    APEX_ITEM.CHECKBOX(1,item_id, 'Checked') "Select"
    from some_table;
    We have the checkbox selected by default .... the question now is how to have an "unselect all" and "select all" function or heading in the Interactive Report that would unset or set the checkboxes for all rows in the report.
    Any advice will be helpful ....
    Thanks
    Pierre

    Answering our own question :-)
    1) Add an unselect and select button and a hidden field
    2) modify the query to use the value of the hidden field to determine whether the checkbox is set or not.
    3) set the value of the hidden field as appropriate with for the select or unselect event when the button is selected.
    P.

  • Problem with DATE in Interactive Report

    Hello,
    In Interactive Report when I click on the header of any column with DATE datatype, nothing happens due to Javascript error:
    Line: 2
    Char: 14838
    Error: Expected identifier, string or number
    Code: 0
    Click on any other column works perfectly as well as sorting by DATE column from Action Menu.
    I tried to set different format masks for my DATE column and for Application Date Format, but it didn't help.
    Finally I found out that this error disappeared when in properties of my DATE column in "List of Values" section I set "Report Filter Date Ranges" = 'Past' instead of 'All'. In this case I get the list with values "Last 5 Years", "Last 2 Years", etc, but not with "Next Hour", "Next 2 Hours", etc...
    Can someone help me on this issue, because this functionality might be usefull and also it's not very convinient to change this property for all date columns in all Interactive Report.
    By the way, my database version is 9.2.0.5 - maybe it can cause such problem?
    Best regards,
    Vladimir

    Hi Marco,
    1) French Canada (fr-ca)
    2) This filter works
    More informations about the error when I call the function gReport.controls.widget():
    &lth;div id="apexir_DT" style="text-align: center;" onclick="gReport.controls.widget(this.id)"&gth;Date de naissance&lth;/div&gth;
    *************POST*************
    flowid     48579
    p_flow_step_id     5
    p_instance     1412541985987586
    p_request     APXWGT
    p_widget_action     SORT_WIDGET
    p_widget_mod     CONTROL
    p_widget_name     worksheet
    x01     5775894815382747091
    x02     5775899227924757464
    x03     apexir_DT
    *************RESPONSE*************
    {"dialog":{"id":"1966481623126322611","hide":["apexir_info","apexir_computation"],"coltype":"DATE","filter"
    :false,"uv":true,{"dialog":{"uv":true,"row":[{"V":"Failure<br />ORA-20001: get_dbms_sql_cursor error
    ORA-00923: FROM keyword not found where expected"}]}}
    Louis-Guillaume
    Homepage: http://www.insum.ca
    Blog: http://insum-apex.blogspot.com

  • Creating a range with Substitution Variables for Report Script

    Is it possible to create a range with substituion varables for use in a report script. For example instead of listing "Jan" "Feb" "Mar" "Apr" in the report script can I use a sub varaible like Jan:Apr that will list them all out?

    while I have not had luck with ranges in report scripts, others have. You could have a substitution variable the is "Jun" "Jul " "Aug" or whatever you want the members to be. and it will replace jusr fine

  • Help with Aggregate on Interactive Report

    I have a field that is a number but I need to convert to show as a percentage (i.e. 17.4%) in the interactive report. At the same time I need to be able to do an Aggregate on this field so I know it needs to stay a numeric and I can't convert in the SQL. Is there a way to use the number format mask on the column to add the percentage or another way that will allow me to still perform aggregates?
    Version: Application Express 3.2.1.00.12
    Thanks for your help.
    Chris

    Anyone have any suggestions?
    Thanks.

  • How to create a JTable with CheckBox(checkbox should be added to a buttong)

    hi,
    i want a JTable with checkbox or radio button with them as editable.Only one check box can be selected i.e i want to add it to button group.no of rows in the table to not fixed
    And on the click of radiobutton a text field has to be updated.
    how to do this???
    thanks
    neel

    I think this article would be helpful:
    http://www.chka.de/swing/table/columns.html
    But don't expect any thanks from the OP!Exuse me my dummy question. But I am novice at this
    forum. Who is OP and what do you mean?OP - Original Poster.
    Thanks - a response indicating that your efforts in providing a solution to a problem are appreciated!

  • How can create an email with checkboxes?

    I want to send an email with a list and has the recipients to check items in the list.  For example,  I have the following list:
    Which office applications do you use?
    Outlook
    Excel
    Word
    PowerPoint
    Access
    Instead of the dot, I want to use a checkbox and recipients can check the appropriate checkbox and reply me.
    Thanks for any help.

    Hello Max,
    I followed your instructions and I successfully created checkboxes in my email. But when I sent it to other people and everyone else failed to be able to check off the boxes (I
    cc myself and it worked for me nevertheless)... could you advise why and what have I missed
    out in the process?
    Thank you.
    Best regards.
    Harley
    Sorry Harley,
    It is proved that the ActiveX check box will not work after you send the email to the other users due to the Outlook security policy. Sorry for that.
    The easiest workaround might be using the Vote feature instead. Or send a Word document to the users, and let them send you the document back.
    Other possible alternates: 
    Create a custom Outlook form, which allows you to add such controls, but you need to distribute the form to all the users that you want them to use the checkbox, seems to be an expensive solution.
    If InfoPath is available in your working environment, using InfoPath form is another alternate. (Read
    Use InfoPath e-mail forms in Outlook) (Note the recipients also need InfoPath installed.)
    If SharePoint is available in your working environment, create a survey in the SharePoint is another alternate. (Read
    Create a survey)
    Max Meng
    TechNet Community Support

  • Create Oracle Object with array inside

    Hi
    I want create a db type with an attribute of dbms_sql.varchar2_table  type
    Example:
    create or replace type t_obj_gest_csv_h
       as object
    column_value_list dbms_sql.varchar2_table,
    It's possible?
    Stefano

    Not with dbms_sql.varchar2_table. You can't reference PL/SQL types when creating SQL type. You can create SQL nested table type and use it in object type:
    SQL> create or replace
      2    type StringList
      3      as table of varchar2(4000)
      4  /
    Type created.
    SQL> create or replace
      2    type t_obj_gest_csv_h
      3      as object(
      4                id number,
      5                s  StringList
      6               )
      7  /
    Type created.
    SQL>
    SY.

  • Getting value with checkbox inside IR

    close
    Edited by: mang jose on Feb 4, 2011 7:49 PM

    Hi,
    You welcome.
    I do not know details what you like do checked values.
    Consider also insert/update all values in one go.
    It is faster than looping , example like
    DECLARE
    BEGIN
      INSERT INTO my_tbl (empno)
      SELECT c001
      FROM apex_collections
      WHERE collection_name = 'EMP_CHK_COLLECTION'
        and c002 = 'true'
    END;Or
    DECLARE
    BEGIN
      UPDATE my_tbl SET my_col_2 = 'SOMETHING'
      WHERE EXISTS(
        SELECT 1
        FROM apex_collections
        WHERE collection_name = 'EMP_CHK_COLLECTION'
          AND c002 = 'true'
          and c001 = my_tbl.empno_col
    END;Regards,
    Jari

  • Javascript error in interactive reports  chart - 3.1

    I created an application with the new interactive reports.
    http://apex.oracle.com/pls/otn/f?p=33003:1
    When I use the Chart option in IE I get a javascript error.
    'null' is null or not an object
    It is working fine in Firefox.
    I tried with 3 different themes and it is always giving me that javascript error on the charts. I also tried on different machines.
    Thanks
    Francis.

    Francis,
    I just tried with the exact same version of IE and didn't get any errors. Do you have version 9+ of the Flash Player? I'm not sure why an earlier version would cause a javascript error, but it's worth checking. You can check by right-clicking any Flash content and clicking "About Adobe Flash Player X..."
    - Marco

Maybe you are looking for

  • How to uninstall BPC 7.5 on Windows Server 2008 R2

    Hello Everyone I have to uninstall BPC 7.5 and then perform a re installation as the Domain Name was wrongly specified in previous installation. We already have a BW server installed and on top of it the BPC 7.5 Installation was carried out. O.S: Win

  • Problem with Nokia 1208

    Hi I've had my Nokia 1208 for about a year, but an icon has appeared on the screen, out of the blue, which i dont recognise. It is a bent arrow pointing upwards. SInce this has appeared no-one is receiving my texts. I can receive them & it looks like

  • Why string type shared variable takes more time to update in the client

    I am using shared variables to share the data across a master and the client PCs connected in a network. (Network published & no buffering)  I have created an integer type shared variable(I32) and a string type shared variable (data size is 60 bytes)

  • Import maps error Prime 2.0

    Hello, I'm working to export maps from the old WCS 7.0.240.0 to Cisco Prime 2.0. Everything works fine, but from one map I receive an error. I cannot find what to do. Cisco has no workaround for it. Map Path                Message                    

  • What's the best way to extract data (a substring) from a string?

    Hi, I have a field being returned from a function call and the data looks like this: sfaqwe4|89uuuroeoi0|kjg3j90493  (It's data...pipe...data...pipe...data) What is the best technique to use to extract the middle set of data between the two pipes? Is