Interactive report select all lines

I have an I / R report that a user can select the columns, and then update > 1 rank a moment with the other page element values.
I SELECT ALL and CLEAR ALL buttons page.
The report runs slowly, due to a very complicated sql statement.

I'm trying to select or clear the column 1 without the 'submission' of the page and re-run the 'slow' report again.
At present, the SELECT ALL:
(1 submits the page 2) sets Pxx_SELECT_ALL_ROWS = 'Y' 3) reruns the report with a decoding 'control' of all lines.

Is there a way to do this WITHOUT submitting the page?

The box is column 1 of each row by using:
HTMLDB_ITEM. CHECKBOX
(1, R.RESEARCH_ID,
decode (: Pxx_SELECT_ALL_ROWS, 'Y', 'CHECKED',)
decode (instr (nvl (:Pxx_SELECTED_IDS,0),R.RESEARCH_ID),0,NULL,'CHECKED'))
)
AS select_flag,

Use * $f_CheckAll * JavaScript API

Just run this JavaScript to check all your column f01

  $f_CheckAll('', true, $('input[name="f01"]'));

OR create a JavaScript function

function checkall() {
   $f_CheckAll('', true, $('input[name="f01"]'))
}

Call this function in your button with URLS of the target type and URL value javascript:checkall();

Tags: Database

Similar Questions

  • Adjust the height of the line in an interactive report for all lines

    Hello
    I have an interactive report with lots of data in certain cells. The height of the heights of lines varies, so that all data is visible in the cells.
    I want to correct or to limit the row height to a specific value, so that all lines are displayed with the same height.
    Do anyone knows how to win this? Thanks in advance.

    Published by: kps204020 on 26.12.2012 20:27

    kps204020 wrote:
    Thanks a lot for your answer.
    I tried your proposal, but it has no effect. The cells in the report show all their content using as many lines as you need for this.

    This is the default behavior for the HTML table data (tables and cells grow to fit their content).

    So I have always with lots of lines, lines and lines with only a few mixed lines in my IR dependant on the contents of the cell. Because some lines almost filling the whole screen, it is difficult to get an overview with regard to adjacent lines.
    I use the Application Express 4.1.1.00.23. with the theme 21. Scarlet and Firefox 17.0.1.

    All users using Firefox?

    In fact, I'm working on my first APEX Solution for use in my business and demanding customers a solution for this topic. So I'm very keen to find a solution.
    I am very looking forward to your reply.

    I have been involved in similar questions in the past. My first reaction is simple: these data must be included in the report? The offending column can be removed from the primary report? They will always be visible in the display of the row and the detail view when it exists.

    The second option is to create a detailed view of the report with a structure that is better suited to the data concerned and make it the default view. (For an example, see the treatment of the PRODUCT_DESCRIPTION column in the detail view of the report in the sample database Application: click the show details on the product page.)

    The third possibility is some sort of customization of the presentation of the data. It will be using a combination of HTML/CSS/dynamic of the Actions/Plug-ins/JavaScript that you may not be familiar with: do you have any experience of these? To go this route, you must describe in detail how you want to present data, or what behavior is required when the data is too long and share a sample of the report on the apex.oracle.com we can work with.

  • Dynamic action function Interactive report select value list

    I want to perform an Action when a user selects one of the 3 options in a selection list in an interactive report:

    Select APEX_ITEM. SELECT_LIST)
    p_idx = > 3,
    -p_value = > deptno,.
    p_list_values = > ' copy; Copy, delete, delete, export to PDF format. Export to PDF ',
    -p_attributes = > "style =" color: red; ' " ',
    p_show_null = > 'YES ', he said.
    p_null_value = > NULL,
    p_null_text = > "- Select -",
    -p_item_id = > ' f03_ #ROWNUM #'.
    p_item_id = > 'P6_IR_SELECT_LIST ',.
    p_item_label = > ' label for ROWNUM f03_, #
    p_show_extra = > 'YES') "Actions".
    Double;

    When you generate the dynamic Action, I chose the following values of the Advanced Wizard
    Event: select
    Selection type: DOM object
    DOM object: P6_IR_SELECT_LIST
    Condition: Equal to
    Value: 'delete '.

    Action: Run the Code JavaScript: Alert ('Here');

    Does not seem to be shooting... can anyone help?

    Thanks in advance,
    John

    The problem is the type of event.

    'Select' fires when text is selected in a text field, not when an option is selected in a list...

    Try instead "change."

  • Problem with the cascading for interactive report selection list

    Hi all.

    I'm trying to implement the solution of cascading to the tabular presentation list.

    https://Apex.Oracle.com/pls/Apex/f?p=31517:176:103661090335568:

    But instead of the form of paintings, I use interactive report. After executing the query, I get the error:

    ORA-06550: line 1, column 147: PL/SQL: ORA-00936: lack of expression ORA-06550: line 1, column 13: PL/SQL: statement ignored


    My Sql query for the report:

    select 
    apex_item.hidden(1, a."DATA_ID")DATA_ID,
    apex_item.select_list_from_query(10,
      b.WAVE_GROUP,
     'select GROUP_DISPLAY, GROUP_RETURN from dwd_wave_group',
     'onchange="f_set_casc_sel_list_item(this,f11_'||LPAD (a.DATA_ID, 4,'0')||')"',
     'YES',
     '',
     '- Select Group -',
     'f10_' || LPAD (a.DATA_ID, 4, '0'),
      NULL,
     'NO'
     )WAVE_GROUP,
    apex_item.select_list_from_query(11, b."WAVE_USER",
    'SELECT username d, '
    ||'username r FROM dwd_user where groups = '||b."WAVE_GROUP",
    '',
    'YES',
    '', 
    '- Select User -',
    'f11_' || LPAD (a.DATA_ID, 4, '0'),
     NULL,
    'NO'
    )WAVE_USER
    from "DWD_WAVE_MASTER" a, dwd_wave_assignment b
    where a.data_id = b.data_id
    and b.wave_id = 'wave_1'
    

    If I exclude the condition 2nd selection list query and change as below then everything works fine. Query does not give error on sql developer.

    Use: APEX 4.2.6 with Database 11g.

    apex_item.select_list_from_query(11, b."WAVE_USER",
    'SELECT username d, '
    ||'username r FROM dwd_user',
    '',
    'YES',
    '', 
    '- Select User -',
    'f11_' || LPAD (a.DATA_ID, 4, '0'),
     NULL,
    'NO'
    )
    

    Can someone please help!

    Thank you

    Nabila

    The nabila Islam wrote:

    I'm trying to implement the solution of cascading to the tabular presentation list.

    https://Apex.Oracle.com/pls/Apex/f?p=31517:176:103661090335568:

    But instead of the form of paintings, I use interactive report. After executing the query, I get the error:

    ORA-06550: line 1, column 147: PL/SQL: ORA-00936: lack of expression ORA-06550: line 1, column 13: PL/SQL: statement ignored

    My Sql query for the report:

    1. Select
    2. apex_item. Hidden (' 1, a. "DATA_ID DATA_ID").
    3. apex_item.select_list_from_query (10,
    4. b.WAVE_GROUP,
    5. "select GROUP_DISPLAY, GROUP_RETURN from dwd_wave_group,"
    6. "onchange =" f_set_casc_sel_list_item (this, f11_'|) LPAD (a.DATA_ID, 4, '0'). ") » ',
    7. '' YES. ''
    8. '',
    9. -Select Group «-»,
    10. "f10_" | LPAD (a.DATA_ID, 4, '0'),
    11. NULL,
    12. 'NO '.
    13. ) WAVE_GROUP,.
    14. apex_item.select_list_from_query ("11, b.") WAVE_USER,"
    15. "SELECT user name d.
    16. |' username r FROM dwd_user where group = ' | b."WAVE_GROUP."
    17. '',
    18. '' YES. ''
    19. '',
    20. "- Select user -",
    21. "f11_" | LPAD (a.DATA_ID, 4, '0'),
    22. NULL,
    23. 'NO '.
    24. ) WAVE_USER
    25. of 'DWD_WAVE_MASTER' a, b dwd_wave_assignment
    26. where a.data_id = b.data_id
    27. and b.wave_id = 'wave_1. '

    If I exclude the condition 2nd selection list query and change as below then everything works fine. Query does not give error on sql developer.

    Use: APEX 4.2.6 with Database 11g.

    1. apex_item.select_list_from_query ("11, b.") WAVE_USER,"
    2. "SELECT user name d.
    3. |' username r FROM dwd_user ",
    4. '',
    5. '' YES. ''
    6. '',
    7. "- Select user -",
    8. "f11_" | LPAD (a.DATA_ID, 4, '0'),
    9. NULL,
    10. 'NO '.
    11. )

    What is the data type of DWD_WAVE_ASSIGNMENT. WAVE_GROUP? If it is not a number, then it must be enclosed in quotes when it is used as a literal:

    apex_item.select_list_from_query(11, b."WAVE_USER",
    'SELECT username d, '
    
    ||'username r FROM dwd_user where groups = ' || dbms_assert.enquote_literal(b."WAVE_GROUP"),  
    
    '',
    'YES',
    '',
    '- Select User -',
    'f11_' || LPAD (a.DATA_ID, 4, '0'),
    NULL,
    'NO'
    )
    
  • Interactive report with alternating lines - 5 APEX

    Heyho guys.

    I got a task to set alternating line colors in my interactive report.

    IM using Oracle 11 g Database XE with APEX 5.0.0.00.31 2.

    I searched current debates and following this thread:

    https://community.Oracle.com/thread/912414?TSTART=0

    I followed the comments written there and I tried with javascript, they spoke aboud (I'm a newbie using javascript)

    I pasted the following in my page header:

    < script type = "text/javascript" >

    IT IS THE INTERLACING

    function decorateDataGrids (strClass) {}

    var tables = document.getElementsByTagName ("table");

    for (var i = tables.length; i-;)) {

    If (tables.className == strClass) {}
    var gridRows = tables [i] .getElementsByTagName ("tr");
    for (var j = gridRows.length; j-;)) {If (j %2) {gridRows [j] .className = "even" ;}}
    }
    }
    }
    < /script >

    < style >
    / * THIS REPLACES THE DEFAULT STYLES OF THE APEX * /.
    table.apexir_WORKSHEET_DATA tr.even td {}
    background-color: #F1F5FA! important;
    }

    table.apexir_WORKSHEET_DATA td {}
    background-color: #FFFFFF! important;
    border: 1px solid #B3B3A7! important;
    padding: 4px 8px! important;
    }
    < / style >

    And called in my link to my column ID text field via:

    "< img src =" "#IMAGE_PREFIX #edit.gif" alt = "" onload = "decorateDataGrids ('apexir_WORKSHEET_DATA'); ">

    If I start the page now, nothing happens.

    In the thread, we talk about bad SEO of the IR:

    "OK here's why the code does not work." When you use getElementsByTagName, you get a collection, not a single item.

    So when you make the comparison to see if the class of the table is an ApEx IR type, you need to reference the current table, not the entire collection. As follows... »

    But I don't understand how I'm doing the right reference.

    Someone at - it an idea to get this race?

    Thank you

    pleNn

    pleNn wrote:

    Heyho guys.

    I got a task to set alternating line colors in my interactive report.

    IM using Oracle 11 g Database XE with APEX 5.0.0.00.31 2.

    I searched current debates and following this thread:

    https://community.Oracle.com/thread/912414?TSTART=0

    I followed the comments written there and I tried with javascript, they spoke aboud (I'm a newbie using javascript)

    I pasted the following in my page header:


    for (var j = gridRows.length; j-;)) {If (j %2) {gridRows [j] .className = "even" ;}}
    }
    }
    }

    And called in my link to my column ID text field via:

        

    If I start the page now, nothing happens.

    In the thread, we talk about bad SEO of the IR:

    "OK here's why the code does not work." When you use getElementsByTagName, you get a collection, not a single item.

    So when you make the comparison to see if the class of the table is an ApEx IR type, you need to reference the current table, not the entire collection. As follows... »

    But I don't understand how I'm doing the right reference.

    Someone at - it an idea to get this race?

    It's all totally obsolete with respect to the 5.0 APEX where interactive reports have been completely redesigned and rebuilt.

    To complete the full version number of APEX, always indicate what theme and browser (s) / version (s) you use when asking questions of shape/layout visual layout.

    To go from rank (Zebra) when you use the universal theme distribution in interactive reports, see Re: interactive report - no line scratched?

  • Check box in the header of the classic report: select all the report Archives

    Hi friends,

    I use Apex 4.2 worm.

    I've created a classic report and create the check box (apex_item.checkbox (1), EMPNO, 'DISABLED' tick,) in this report.

    My Code

    Select * from)

    Select

    apex_item. CheckBox (1), EMPNO, "DISABLED" tick.

    "EMPNO', 'ENAME', 'JOB', 'MGR', 'HIREDATE',"SAL","COMM","DEPTNO. "

    from EMP)

    where)

    InStr (upper ("ENAME"), upper (nvl (: P6_REPORT_SEARCH, "ENAME"))) > 0 or

    InStr (upper ("JOB"), upper (nvl (: P6_REPORT_SEARCH, "JOB"))) > 0

    ) and

    (nvl(:P6_ENAME,'0') = '0' or ENAME =: P6_ENAME) and

    (nvl(:P6_JOB,'0') = '0' or JOB =: P6_JOB) and

    (nvl(:P6_MANAGER,'0') = '0' or MGR =: P6_MANAGER)

    and

    (nvl(:P6_DEPT_NO,'0') = '0' or DEPTNO =: P6_DEPT_NO)

    I need to create the checkbox in the header of the classic as tabular report where if I click in the header box then all archives should be checked.

    How can I do this with classic report.

    If you want to see this issue in the workspace, then you can use the workspace details below

    Workspace: APEX_ISSUE

    User name: [email protected]

    Password: kaushik1@34

    Page no.: 6

    Thank you

    Hi Maxence,

    The above problem is solved. Please check the same.

    I added the following code in the header of the first column:

    
    

    NOTE: I used Carl Backstrom solution for this: Blog of Carl Backstrom: Mini check all HowTo

    But this solution works only when the first column in your report / table is a checkbox.

    If you have more columns rather than the first column where you want to check and uncheck all the features then follow the solution of Jeff Kemp:

    http://jeffkemponoracle.com/2012/11/15/select-all-Unselect-all-checkbox-in-interactive-report-header/

    I hope this helps!

    Kind regards

    Kiran

  • How to create a parameterized report - select "- ALL -" for the Department and manager does not.

    I downloaded the app OEHR sample of objects and followed the steps in Oracle® Application Express Advanced Tutorials
    Version 3.2.

    The report and the settings seem to work fine except when I get 'everything' for service or manager I get no corresponding success.

    What is the way most effective to get 'everything' if the user selects all for dept and mgr - so we would like to return all records in the table.

    Snipprt region

    Enter search Edit   
    Edit
    Edit
    Edit

    Here is the sql code that was provided as part of the turitoral.

    SELECT

    'OEHR_EMPLOYEES '. "" EMPLOYE_ID ""EMPLOYE_ID"

    'OEHR_EMPLOYEES '. "" NAME ""FIRST NAME",

    'OEHR_EMPLOYEES '. "" LAST_NAME ""NAME,"

    'OEHR_EMPLOYEES '. "" ""E-MAIL. "

    'OEHR_EMPLOYEES '. "' PHONE_NUMBER '"PHONE_NUMBER. "

    'OEHR_EMPLOYEES '. "' HIRE_DATE ' 'HIRE_DATE ',.

    'OEHR_EMPLOYEES '. "" JOB_ID ' "JOB_ID,

    'OEHR_EMPLOYEES '. "" TREATMENT ""TREATMENT. "

    'OEHR_EMPLOYEES '. "" COMMISSION_PCT ""COMMISSION_PCT. "

    'OEHR_EMPLOYEES '. "" MANAGER_ID ""MANAGER_ID. "

    'OEHR_EMPLOYEES '. "" DEPARTMENT_ID ""DEPARTMENT_ID ".

    Of

    "#OWNER # '." OEHR_EMPLOYEES' 'OEHR_EMPLOYEES '.

    WHERE

    (lower (first_name) like '%' | lower(:P1_NAME) |) '%' OR

    Lower (last_name) like '% "| Lower(:P1_NAME) | '%')

    AND department_id = decode(:P1_DEPT,'%null%',department_id,:P1_DEPT)

    AND manager_id = decode(:P1_MGR,'%null%',manager_id,:P1_MGR)

    Hello

    Use this...

    SELECT

    'OEHR_EMPLOYEES '. "" EMPLOYE_ID ""EMPLOYE_ID"

    'OEHR_EMPLOYEES '. "" NAME ""FIRST NAME",

    'OEHR_EMPLOYEES '. "" LAST_NAME ""NAME,"

    'OEHR_EMPLOYEES '. "" ""E-MAIL. "

    'OEHR_EMPLOYEES '. "' PHONE_NUMBER '"PHONE_NUMBER. "

    'OEHR_EMPLOYEES '. "' HIRE_DATE ' 'HIRE_DATE ',.

    'OEHR_EMPLOYEES '. "" JOB_ID ' "JOB_ID,

    'OEHR_EMPLOYEES '. "" TREATMENT ""TREATMENT. "

    'OEHR_EMPLOYEES '. "" COMMISSION_PCT ""COMMISSION_PCT. "

    'OEHR_EMPLOYEES '. "" MANAGER_ID ""MANAGER_ID. "

    'OEHR_EMPLOYEES '. "" DEPARTMENT_ID ""DEPARTMENT_ID ".

    Of

    "#OWNER # '." OEHR_EMPLOYEES' 'OEHR_EMPLOYEES '.

    WHERE

    (: P1_NAME IS NULL OR)

    (: P1_NAME IS NOT NULL AND)

    (

    (lower (first_name) like '%' | lower(:P1_NAME) |) '%') OR

    (lower (last_name) like '%' | lower(:P1_NAME) |) '%')

    )

    )

    ) AND

    (: P1_DEPT IS NULL or department_id =: P1_DEPT) AND

    (: P1_MGR IS NULL or manager_id =: P1_MGR)

  • interactive report - highlight a line based on the date column in the past

    We have an interactive report that shows an expiration date. We want to emphasize the lines when this date is in the past.

    How is that possible?

    Best regards, Nann

    Hi Nann,

    Add the below css in the HTML of the page header

    
    

    Kind regards
    Shijesh

    You can reward this answer marking it as useful or Correct ;)

  • Region report show all lines?

    Hello

    I have a report of region in which I want to show all lines. Affecting the system of paging paging No. don't
    seem to do the trick. I put the number of lines and the number of lines Maximum two null. Nothing seems to work.
    Y at - there a trick to getting all the rows to display?

    Thanks in advance!

    You must define Number of Rows, and maximum number of lines = 9999999. If you set null APEX uses the default value, probably 10 paging and 500 maximum number of lines.

  • BUG? Interactive report select other results of the tab of Page not found

    Hi all

    I have recently updated our installation of the Apex to version 4.0.1 on Oracle 11.2. There, I found the following problem, for which I don't know if it of a bug or not:
    Steps to reproduce:
    1. Select a sample application and open a page that contains a report interavtive
    2 run the page
    3. click on "Actions" and select "filter".
    4. wait for the filter to display, and then select another tab.

    The result is a page not found. The address bar displays the link: http://apex.oracle.com/pls/apex/wwv_flow.accept with no parameters.

    I tried to use a different model and finally I turned to the sample applications. It ends up that question.

    My questions:
    1. is it already known issue
    2. is there a work around? because this can be very annoying for our client.

    Thank you!

    Select this option.

    Published by: user13295208 on 25-Oct-2010 02:54

    Hi Mark,

    I was able to reproduce the problem based on your steps. Thank you! I I produced bug # 10238450 that has already been set for 4.0.2

    Concerning
    Patrick
    -----------
    My Blog: http://www.inside-oracle-apex.com
    APEX 4.0 Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • Select all lines under a special value of columns... Help.

    Hello

    Sorry for posting my query again...

    Knani replied, but I have little more to change out put...


    Table structure:
    CREATE TABLE T_20 (CONTROL NUMBER(10) NOT NULL,
                           PO NUMBER(10) NOT NULL,
                           AMENDNO NUMBER(3) NOT NULL,
                           FACTOR VARCHAR2(3) NOT NULL,
                           COMMENT_X VARCHAR2(40),
                           FLAG VARCHAR2(1))
     
     
    SQL> alter table t_20 add constraint t_20_pk primary key (control, po, amendno, factor);
    INSERT orders:
    SQL> INSERT INTO T_20 VALUES(101,1000,01,'MSC','NO COMMENT','Y')
      2  / 
     
    1 row created.
     
    SQL> INSERT INTO T_20 VALUES(101,1000,02,'MSC','NO COMMENT','Y')
      2  / 
     
    1 row created.
     
    SQL> INSERT INTO T_20 VALUES(101,1001,00,'NDP','NO COMMENT','Y')
      2  / 
     
    1 row created.
     
    SQL> INSERT INTO T_20 VALUES(101,1001,01,'NDP','NO COMMENT','Y')
      2  / 
     
    1 row created.
     
    SQL> INSERT INTO T_20 VALUES(102,1002,00,'ABC','NO COMMENT','Y')
      2  / 
     
    1 row created.
    out put:
    SQL> SELECT * FROM T_20
      2  / 
     
       CONTROL         PO    AMENDNO FAC COMMENT_X                                F 
    ---------- ---------- ---------- --- ---------------------------------------- - 
           101       1000          1 MSC NO COMMENT                               Y 
           101       1000          2 MSC NO COMMENT                               Y 
           101       1001          0 NDP NO COMMENT                               Y 
           101       1001          1 NDP NO COMMENT                               Y 
           102       1002          0 ABC NO COMMENT                               Y
    Now, I want to select only the control number that have several acht.

    In above example only control 101 with several PO 2 PO with 1000 and 1001
    So I need to select only this 101 related lines...

    for 102 having in. sinple folders then it will have to be removed... because I have millions of records in the primary table...

    If one of the members (knapen in this forum) suggested query below:
    select *
      from (
    select t.*, count(distinct po) over(partition by control) cnt
      from t20_ t
          )
     where cnt > 1
    This gives the right output select only controls that have several PO - this satisfied requirment...

    Yet again others want to dig the out put with the condition as:

    Select only controls with multiple PO AND WHERE EACH '' HAVE SEVERAL AMENDNO

    So I modified the query knani as
    select *
      from (
    select t.*, count(distinct po,amendno) over(partition by control) cnt
      from t20_ t
          )
     where cnt > 1
    But I get the error message: invalid number of arguments...

    any help please...


    Thanks in advance
    Prasanth

    Like this?

    WITH tbl AS (select *
                   from (
                         select t.*, count(distinct po) over(partition by control) cnt
                         from t_20 t
                        )
                   where cnt > 1
                  )
    SELECT * FROM
               (SELECT tbl.*, COUNT(amendno) OVER (PARTITION BY control,po) cnt2
                FROM tbl
               )
    WHERE cnt2>1;
    
  • IFF select all lines satisfy the condition

    Hello

    I am not able to understand how to go about this requirement of mine. I use APEX 3.1.

    I have a table of expiration dates. I want to select only the company_id, all with dates were expired (to_date(sysdate,'DD-MON-YY') < = to_date(expiration_date,'DD-MON-YY').)

    Table:

    table_id | COMPANY_ID | correspondents

    1. 2. 10 APRIL 09
    2. 3. 10 APRIL 09
    3. 2. AUGUST 10, 10
    4. 1. 10 APRIL 09
    5. 1. 10 APRIL 09

    power required:
    table_id | COMPANY_ID
    2. 3
    4. 1
    4. 1

    Thank you
    Monpetit

    Published by: user11267485 on August 18, 2009 11:31

    Published by: user11267485 on August 18, 2009 11:32

    Frank & I posted two queries return the expected results for the data set, that you posted.

    SQL> ed
    Wrote file afiedt.buf
    
      1   with x as (
      2     select 2 table_id, 2 company_id, date '2009-04-10' exp_date from dual
      3     union all
      4     select 1226, 2, date '2010-08-06' from dual
      5     union all
      6     select 1265, 1348, date '2009-04-09' from dual
      7     union all
      8     select 1266, 1348, date '2009-04-09' from dual
      9   )
     10   select table_id, company_id
     11     from (select table_id,
     12                  company_id,
     13                  max( exp_date ) over (partition by company_id) last_exp_dat
    e
     14             from x)
     15*   where last_exp_date < sysdate
    SQL> /
    
      TABLE_ID COMPANY_ID
    ---------- ----------
          1265       1348
          1266       1348
    

    Are you sure that the data in your table are all of the years 2009 and 2010? You post only here two-digit year. I bet if you look at the full 4-digit year that you will eventually discover that TABLE_ID 1226 has an expiration date of August 6, 0010, i.e. approximately 1999 years.

    Justin

  • Interactive Reporting - why all the graphic elements are set Enabled = true?

    Hello

    I have another question about Hyperion IR. When I put one of the widgets on the dashboard, Im not able to set enable = false (or disable = true) on this element. As the code
    textLabelElement.Disabled = true;
    has no effect.
    When I look at the properties of this element, there activate checked and grayed out on the first tab. It is not interchangeable.
    Why is it so and there at - there a work around?

    Kind regards
    Paul

    A textlabel can technically be "enabled" or "disabled". If you need a control that has this feature, use a command button.

    If you don't like the way the command buttons are, you can use lines and rectangles of textlabels to build your own, but you will need to write code to manage their behavior. An example would be a textlabel with a black font on top a textlabel with a cast iron grey. When you want to 'disable' button, just to hide (textlabel. Visible = false ;) the black police.

    If your users require frequently buttons that look or behave differently from the standard ones, you can design an object that generates your custom Help button and defines its properties and methods. I did this to make a progressbar and it works very well.

  • In the form of NO_DATA_FOUND by selecting all the lines.

    Hi all

    I asked Express 4.1.1.00.23 running on a database of Oracle 10 g Enterprise Edition Release 10.2.0.4.0 - 64 bit.

    I have a report with a tabular form that was created using APEX_ITEM.checkbox (G_F01) and APEX_ITEM.text (G_F02).

    To make it more user-friendly, I added a check box in the header of the column of the box which the user can use to select all lines.

    This example uses jQuery to check/uncheck all boxes in the rows and toggle the text boxes in the lines. I use the class to do this.

    My JS code looks like this.

          $('.HwSelectChkBox').attr('checked', 'checked');
          $('.txtNewHWName').removeAttr('disabled');
    

    Check/uncheck the checkbox is going very well but the toggle to the text boxes seems to have some display problems. It is a minor inconvenience, but the real problem is something else.

    When the process that is running on page - submit loops through all selected lines, I found the code generates a NO_DATA_FOUND error at the entrance to the loop ONLY if all rows are selected.

    It's really weird. Let me give you an example of the code.

    DECLARE
    -- declarations
    BEGIN
    
    
       FOR i IN 1 .. APEX_APPLICATION.G_F01.COUNT
       LOOP
         
          BEGIN
                -- NO_DATA_FOUND error here
                -- NO SELECT STATEMENTS OR ANYTHING
    

    It's confusing because there is no select statement or whatever it is here! There is only a function call and I checked using DBMS_UTILITY. FORMAT_ERROR_BACKTRACE that the error is indeed after the inner BEGIN.

    This code works perfectly well when all lines are not selected.

    Tried to search the internet a lot. But can't find anything.

    Can anyone provide guidance? I can give more information if necessary.

    Aalami

    It might be interesting to use prop instead of .attr and see if that helps. There are differences between attr and prop usage and properties on elements such as a checkbox, as can be read in the documentation for jquery .attr both prop and extension attributes:

    . prop() | jQuery API Documentation

    $('.HwSelectChkBox').prop('checked', true);
    $('.txtNewHWName').prop('disabled', false);
    

    By extension, if you try this, I would also like to change this

    document.getElementById(vTxtID).disabled = false;
    

    TO

    $('#'+vTxtID).prop('disabled', false)
    

    (and for real, too, of course)

    (you could probably shorten this code something like

    $('#'+vTxtID).prop('disabled', !$(pCheckBox).prop('checked'));
    

    )

    Making a few guess here, of course - but worth a try. I have not even at hand an IE8 - it's turns off (slowly, finally).

  • Hide the box 'Select all' of line selector

    Hello
    I created a tabular presentation by using a wizard. I have this checkboxr select all in the title. I need to hide (only in this position). This is just to avoid users to select all lines. I want the users to select one at a time. Any help/tips would be great. Thank you

    Hi Alexander,.

    Place this code in the page header.

    Run when the page loads

    $('#check-all-rows').hide();
    

    Kind regards
    Jitendra

Maybe you are looking for