Limit lines in an interactive report by USER ID or NAME

I'm fairly new to Apex and very vey would appreciate your help. We currently use Aplicaiton Express 3.2.1. I'm trying to limit the display of the lines in an interactive report by USER ID in my APP_USERS table, which contains the following columns:

APP_USERS

NAME
RID
E-mail
ROLE

The table my interactive report based on includes the following columns:

SC_TABLE

MONTH
NAME OF THE USE
LM_NAME
ETC... (numberical data columns)

I use an authentication scheme that verifies users RID when you access my application of our work network.

The process of information flow is the Manager of the line between data in a form and chooses his name in a LOV based on the APP_USERs table. Once submitted they can access the interactive report.

My goal here is that, when a line Manager accesses the interactive report only the emplooyes rows that match their name in a column of the report OR their identity card of the APP_USERs iarereturned. So no superiors can see or modify other hierarchical employee information.

I played adding SQL statements in the report area > Condition section but have not been able to come up with something that works. Any suggestions on how to implement this or tutorials you know that might help.

Thanks for your help,

Edited by: Ewaver February 11, 2012 15:21

Ewaver wrote:

My goal here is that, when a line Manager accesses the interactive report only the emplooyes rows that match their name in a column of the report OR their identity card of the APP_USERs iarereturned. So no superiors can see or modify other hierarchical employee information.

I played adding SQL statements in the report area > Condition section but have not been able to come up with something that works. Any suggestions on how to implement this or tutorials you know that might help.

This is known as Fine grain Access Control (FGAC) and is normally implemented using views or private virtual database (CAE) of Oracle functionality.

If you are allowed to use an Enterprise Edition database and to apply these restrictions, through the entire application, or across multiple applications, then use of private virtual database (DPV), with the VPD security attribute in APEX application security attributes to set the settings in your application. (A somewhat outdated article on the use of VPD with APEX is available.)

Should you not use EE, then you can roll your own VPD use parameterized views, once again using the security attribute VPD to set the context of the application.

I'll put up a demo application. How can I make sure that you have access to my demo app?

Create a developer of guest account in your workspace and after the workspace name and identification information sign in here.

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.

  • How to highlight the selected line in an interactive report in apex5?

    Hello

    I want to emphasize the selected line in the report by changing the background color of the line. Basically, I want to do this. I really want to do is, select a row in the report and according to the selected line, I want to retrieve other data to another interactive report on the same page. So, how can I do this?

    Hi geslin,.

    Garza says:

    But here shows a link to another page or something like that. But I don't need that. I just want to show when the user selects a specific row by clicking on this line, and it should show that it has been selected by changing the color of the line and after having extracted a few hidden field and according to those column data display data on another report on the same page.

    Check your Application-> Page 2 30870. I've set up a dynamic action to reach the line highlighted when selected.

    Here are the steps to achieve the highlighted line:

    • Changed the definition of class employee culminating point to CSS-> section of the line on the page:
    .highlight-employee
       {
        background-color: blue !important;
        color: white !important;
       }
    
    • Commented the code written in JavaScript-> Execute JS when the section of the page to load the page.
    • Edited the ROWID of your interactive report column and set the following properties for 'column link:

    Text link: #ROWID #.

    Link attributes: id = "" #ROWID # "class ="monlien""

    Target: URL

    URL: javascript:void (0);

    • Dynamic action created with the following properties:

    Name: highlight_selected_row

    Event: click on

    Selection type: jQuery Selector

    jQuery Selector: a.mylink

    Action: Run the JavaScript Code

    Fire on loading the Page: No.

    Code:

    var row_id = this.triggeringElement.id;
    $('#P2_NEW').val(row_id);
    $('#'+row_id).parent().closest('tr').find('td').addClass('highlight-employee');
    

    Scope of the event: Dynamics

    Kind regards

    Kiran

  • more than 10000 lines excellent download interactive report

    Dear all,

    I am havig a lot of data in the table and on this basis I created an interactive report. Now the user wants to download more than 10000 records in excellent.
    How to do this?

    When I tried to download, it comes only 10000 records in excel. Please help me solve this problem?


    Concerning
    Dhanush.R

    Hello

    Change the interactive report.

    Under report attributes... Select the paging tab, you will find number of Maximum lines TextBox... change of 10000 for all what you want to be maximum

    Kind regards
    Shijesh

  • Change the color of line in an interactive report in version 4.2 # Apex

    Hi team,

    I have done following things in my interactive report to reflect changes in color, but these changes do not appear. Could you please help where I'm missing.

    Apex Version 4.2 #.

    Theme-100 light blue

    1. to light under the screen if active_flag is "N", then the entire line, I would like to show in a different color.

    2. then create a dynamic action like this

    Name: Give the appropriate name

    Event: After refresh

    Selection type: region

    Region: select your region classic report

    Condition: No strings attached

    Action: Run the JavaScript Code

    Fire on loading the Page: Yes

    Code

    $('td[headers="Active_Flag"]').each(function() {  
      if ( $(this).text() === 'N' ) {  
        $(this).closest('tr').find('td').css({"background-color":"#FFFF99"});
      } else if ( $(this).text() === 'Y' ) {  
        $(this).closest('tr').find('td').css({"background-color":"#EEA196"});
      } else {  
        $(this).closest('tr').find('td').css({"background-color":"#C6EA91"});
      }  
    });
    

    But it does not reflect anything, you can offer me if I wrong anywhere.

    Kind regards

    Sruthitamiri

    Sruthi Tamiri wrote:

    I have done following things in my interactive report to reflect changes in color, but these changes do not appear. Could you please help where I'm missing.

    Apex Version 4.2 #.

    Theme-100 light blue

    1. to light under the screen if active_flag is "N", then the entire line, I would like to show in a different color.

    2. then create a dynamic action like this

    Name: Give the appropriate name

    Event: After refresh

    Selection type: region

    Region: select your region classic report

    Condition: No strings attached

    Action: Run the JavaScript Code

    Fire on loading the Page: Yes

    Code

    1. {$('td[headers="Active_Flag"]').each (function ()}
    2. If ($(this) () .text = ' don't) {}
    3. $(this) .find ('td').css({"background-color":"#FFFF99"});).closest('tr')
    4. } ElseIf ($(this) () .text = 'Y') {}
    5. $(this) .find ('td').css({"background-color":"#EEA196"});).closest('tr')
    6. } else {}
    7. $(this) .find ('td').css({"background-color":"#C6EA91"});).closest('tr')
    8. }
    9. });

    But it does not reflect anything, you can offer me if I wrong anywhere.

    Interactive report region that model is set to Model No.? If so, that means that is missing an ID attribute that is required to bind a dynamic action after refreshing the report. Use a region template that contains id="#REGION_STATIC_ID#" , as the region without buttons or title.

    The number of standard theme for the theme of blue light is 15. Have numbered it 100 would indicate that it has been customized, exported and re-imported. In an application updated through previous versions of APEX, it can actually be an older version of this theme earlier at APEX 4.x, when a number of models in legacy issues, missing this attribute altogether.

  • Line emphasizing the interactive report

    Apex 4.2

    Theme 21

    Can I change the line by highlighting a standard report using the highlighted options in the model line

    How can I do this, with an interactive report

    See you soon

    Gus

    Gus C wrote:

    Apex 4.2

    Theme 21

    Can I change the line by highlighting a standard report using the highlighted options in the model line

    How can I do this, with an interactive report

    This is controlled by CSS theme. APEX 5.0 theme 21, the rules are:

    .a-IRR-table tr:hover td, .a-IRR-table tr:nth-child(even):hover td {
      background-color: #F0F0F0;
    }
    .a-IRR-table tr:hover td, .a-IRR-table tr:nth-child(odd):hover td {
      background-color: #F0F0F0;
    }
    

    However, the classes and IR HTML are different in 4.2, so the substitution to be applied through CSS Inline attributes page or template would be something like:

    table.apexir_WORKSHEET_DATA tr:hover td,
    table.apexir_WORKSHEET_DATA tr:nth-child(even):hover td,
     table.apexir_WORKSHEET_DATA tr:nth-child(odd):hover td {
      background-color: #CFCC00 !important;
    }
    

    (I have not access to a 4.2 installation at the present time. You can check it using your web browser Inspector.)

  • How to change the lines in the interactive report?

    I want to change the lines in interactive reports before and after filtration. I added "edit_link in SQL and the column in the region but settings I don't know how to load data into the page with form created for editing data in line.

    There are examples in the sample applications, but the steps are.

    Create a new page which, with the right ID available, select the database details and allow you to edit the details and save them in return. A positive result of the Save (or cancel) arange the page with a branch back to your interactive report.

    On your interactive report, for your chosen link column, set it to branch to the page you created above and set the item of page ID on the page to the value of the ID in your crrent folder.  Selection lists will help here.

    Now, by clicking on your link edit show open the new page and select the details of the database preparation n for any update, you choose to make and record.

    Stewart

  • How to set the height of the line of the line in the interactive report?

    Some of the values in the columns of my interactive report are wrapped to alter the height of the line to 2 or 3 characters.

    Is it possible to change it? I would like to have all the lines 2-digit height.

    Robert

    Add the following style sheet in the header HTML page.

    
    
  • 65 000 record limit downloading .csv on interactive report

    Does anyone know if Apex 4.0 always has 65 000 record limitation when downloading interactive .csv report?

    Hello

    created an interactive report on apex.oracle.com with the following SQL statement

    select level
      from dual
    connect by level<=70000
    

    and removed the value 10000 'maximum lines number. Export to CSV and got 70000 lines in the CSV export.

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

  • Background color of the current line in the interactive report

    Hello
    Sobebody could tell me if there is anyway simple changing of style in IR to set up the background color of the current line. In the Standard report, it is easy. Just click for the shared components > models > modify a report model
    and in the section line pointing out it is an attribute to change a color.

    Can someone tell me how to do in interactive report?

    I want to just split one row of the other using a line color.

    Thanks :)

    Published by: rafix 2009-11-23 09:42

    Cool. Where is my correct score then: P

    Mike

  • Several radio buttons per line in the interactive report

    I added the code by radio buttons using Vincent Deelen "in a report of the APEX.

    Vincent Deelen: Using radio buttons in a report of the APEX

    It works exactly like his blog says that it will be a problem.

    My interactive report has more than one page of data. Whenever I click to go to the

    second page of data, the click event on the radio buttons in the dynamic action no longer works.

    I leave the page elements that stores my key no hidden values, and they do not change, once I have change the pages in my interactive report.

    Any ideas as to what to do or something I'm missing.

    Apex 4.2.1

    Oracle 11g Server

    theme of blue reagent 25

    Here's my query

    *********************************************************************************************************

    Select q_cev,

    apex_item. RadioGroup (p_idx = > rownum,)

    p_value = > 'Y ',.

    p_selected_value = > gmpick_flag01,

    p_display = > 'yes ', he said.

    p_attributes = > "class ="gmpickflag01 flagY"") "

    as RBYES,

    apex_item. RadioGroup (p_idx = > rownum,)

    p_value = > 'n',.

    p_selected_value = > gmpick_flag01,

    p_display = > 'no ', he said.

    p_attributes = > "class ="gmpickflag01 flagN"')"

    as RBNO.

    apex_item. RadioGroup (p_idx = > rownum,)

    p_value = > "U."

    p_selected_value = > decode (gmpick_flag01, null, 'U',

    'U', 'U', gmpick_flag01),

    p_display = > "undecided."

    p_attributes = > "class ="gmpickflag01 flagU"')"

    as RBUND,

    sort_qkey1, sort_qkey2, sort_qkey3,

    q_key1_trans, q_key2_trans, q_key3_trans

    from cts_ajha_q_ref LEFT OUTER join cts_gen_multipick

    on (cts_ajha_q_ref.q_cev = cts_gen_multipick.gps_cev

    and cts_gen_multipick.gmpickcode = 'CTS551HZGRCKLIST01. '

    and cts_gen_multipick.op_cev =: P155102_OP_CEV)

    where cts_ajha_q_ref.cts_no_show is null

    and cts_ajha_q_ref.cts_showflag01 is not null

    *********************************************************************************************************

    I created a dynamic Action

    Event:Click
    Selection type:jQuery Selector

    jQuery Selector: .gmpickflag01

    Run the JavaScript Code

    var rbyes = $("#radioreport_.apexir_worksheet_data_tbody_tr_td_[headers_="rbyes"]_{entree_:_checked').map (function)

    ({return $(this) .parent () .parent ().find('td[headers="Q_CEV"]').html ()}) .get (.join(':'))

    var rbno = $("#radioreport_.apexir_worksheet_data_tbody_tr_td_[headers_="rbno"]_{entree_:_checked').map (function)

    ({return $(this) .parent () .parent ().find('td[headers="Q_CEV"]').html ()}) .get (.join(':'))

    var rbund = $("#radioreport_.apexir_worksheet_data_tbody_tr_td_[headers_="rbund"]_{entree_:_checked').map (function)

    ({return $(this) .parent () .parent ().find('td[headers="Q_CEV"]').html ()}) .get (.join(':'))

    Send the Q_CEV bounded on the hidden page to submit items.

    $s ('P155102_RBYES', rbyes)

    $s ('P155102_RBNO', rbno)

    $s ('P155102_RBUND', rbund)

    Also have the code to step through the elements of the page to be inserted in the database.

    Try to define the scope of the event on the dynamic action to "dynamic".

  • Referring to a field value of line in an interactive report using jquery

    I have an interactive relationship with a select_list of line level:

    Select ename "Employee name",
    Bishop "Manager."
    EmpNo,
    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".
    from emp e, Dept. d
    where e.deptno = d.deptno;

    When a user selects "Delete", I would delete the EMPNO based on the line where the user has selected to 'delete '. I tried warning on the following, but may not know how to capture the EMPNO at the level of the lines:

    Alert ($v ('apexir_EMPNO'));
    Alert ($('#apexir_EMPNO'). Val());

    Can someone tell me how to reference the specific EMPNO by line?

    Thanks in advance!
    John

    What about this:

    Dynamic action
    Event: change
    selector: jQuery selector:

    Select [name = "f21"]

    Real action

    JS exec code

    var line = $x_UpTill (this.triggeringElement, 'TR');
    var otherElement = $(' input [nom = "f20"]', ligne) [0];
    Console.log (otherElement.value);

    http://Apex.Oracle.com/pls/Apex/f?p=45448:11 (lower half)

  • Interactive report lines order number

    I'm working on an interactive report. The main problem is that the lines in the interactive report do not appear in order.

    It's like query: select (list passes) from table order by ID;      ID = 1, 2, 3...

    When I run this code in sql commands, the result is displayed in perfect order, but when I use the same code in my interactive reports lines appear no y-intercept. any solution?

    Apex version: 4.2

    Topic: Productivity Applications

    Model: Report IR Region.

    Virat Praveen-Oracle wrote:

    I'm working on an interactive report. The main problem is that the lines in the interactive report do not appear in order.

    It's like query: select (list passes) from table order by ID;      ID = 1, 2, 3...

    When I run this code in sql commands, the result is displayed in perfect order, but when I use the same code in my interactive reports lines appear no y-intercept. any solution?

    Interactive reports are sorted using the sort IR functionality. This allows you to specify the required sort order and save it as the default report. If you need a fixed sort order that is not editable by users, clear the sort options in the Search bar of IR and the column headers.

  • Get total control of interactive reports paging lines

    I use APEX 4.2.5 on a 11g R2 database, and I'm trying to use jquery to get the total of the lines in an interactive report (user wants to see it is separate pagination control).  We use the X - Y of Z as a paging configuration.  I got the idea to use the following to get the value and assign it to a page element in a dynamic action.

    $('#apexir_DATA_PANEL.fielddata').text ();

    (Monday morning and I am facing a brainfart, OK...) Should be a simple question and answer, but this is not the case...)

    Thank you

    Tony Miller
    Software LuvMuffin
    Ruckersville, WILL

    Found answer here its backlog of the forum: first and last pages of the interactive report

    Thank you

    Tony Miller
    Software LuvMuffin
    Ruckersville, WILL

  • After the upgrade to 5.0 APEX, DB is EE 11.2.0.4, interactive report calendar overlays header line.

    After the upgrade to 5.0 APEX, DB is EE 11.2.0.4, when I click the icon calendar to choose a date, the line of my interactive report overlays in the calendar header.

    snap001.png

    Hello

    There is a conflict between the modal calendar positioning and table headers.

    To fix it, please write the CSS in your body of the page:

    .js-stickyTableHeader {}

    z index: 1! important;

    }

    A bug filed for this issue and will be treated properly in 5.0.1.

    Thank you

    Tim

Maybe you are looking for