Conditional display for interactive report columns

The APEX 4, one of the options in the conditional displays for the columns was 'PL/SQL function body returning Boolean ". I had a function that returns a Boolean value, and I stuck my function call in the text like this:


return DISPLAY_FIELD (: APP_USER( )

"I don't see" ""PL/SQL function body returning Boolean " option 5 APEX. What should I use to call the same function to hide and show the column in the report?

bobmagan wrote:

Thank you. Using PL/SQL Expression will give best performance? Some of my reports have 80 + items, which must undergo this check.

Probably not what you have seen. Have less well.

And if I use PL/SQl Expression, what is the syntax I need?

this:

DISPLAY_FIELD(:APP_USER) = TRUE

For functions that return a Boolean value, just use the function call:

display_field(:app_user)

Tags: Database

Similar Questions

  • Conditional display of interactive report based on the different SQL query

    Hello

    I have two drop-down list at the top of my page and below I have an interactive report.
    Based on the selection of the user from the drop-down list values, interactive report should change based on different SQL queries.

    Is it possible to have different SQL queries based on the drop-down list values and generate interactive report based on that?

    Thank you

    Hello

    You can't have IR based on function returning the query as you can have classic report

    But here is a workaround
    http://www.oracleapplicationexpress.com/tutorials/71

    Kind regards
    Jari

  • ToolTip for interactive reports

    Hi, how can I add ToolTip for interactive report column headings...


    Thank you
    Nihar Narla

    Hello

    This might help
    http://dbswh.webhop.NET/HTMLDB/f?p=blog:read:0:article:2311800346467196

    Kind regards
    Jari
    -----
    My Blog: http://dbswh.webhop.net/htmldb/f?p=BLOG:HOME:0
    Twitter: http://www.twitter.com/jariolai

  • Using the page as a condition for interactive report item value

    Hello. I add a button named edit in one of the interactive report column. This button should be displayed under certain conditions. Conditions are 1) If the user is Mencis and 2) value of the page called P2_DUMMY is 2. The value of P2_DUMMY is to 2 when a button is clicked. I defined a dynamic action for this. The problem is that I don't know what the condition of being added to the interactive report query.


    I tried

    CASE WHEN: APP_USER IN ('Mencis"). WHEN BOX: P10_DUMMY = 2 THEN ' < button type = "button" class = "button-default"; ">

    < span > edit </span > < / button > ' END I just get errors.

    If I just put the condition as

    CASE WHEN: APP_USER IN ('Mencis") THEN ' < button type ="button"class ="button-default "; "> < span > edit </span > < / button > ' END

    button is displayed in the report. If I add the second condition, all I get is error. I don't know how Add an element value of the page as one of the interactive report conditions. Please help me on this.

    Mencis Joe wrote:

    Hello. I add a button named edit in one of the interactive report column. This button should be displayed under certain conditions. The conditions are 1) if the user is Mencis and 2) value of the page called P2_DUMMY is 2. The value of P2_DUMMY is set to 2, when a button is clicked. I defined a dynamic action for this. The problem is that I don't know what the condition to be added to the interactive report query.

    I tried

    CASE WHEN: APP_USER IN ('Mencis"). WHEN BOX: P10_DUMMY = 2 THEN '' END I just get errors.

    If I just put the condition as

    CASE WHEN: APP_USER end of '' ('Mencis") THEN

    the button is displayed in the report. If I add the second condition, all I get is error. I don't know how to add a value to the page element as one of the interactive report conditions. Please help me on this.

    Combine the predicates in the CASE expression by using an AND condition:

    case
      when    :app_user = 'Mencis'
          and :p10_dummy = 2
      then
        ''
    end
    

    Hardcode a condition like the :app_user = 'Mencis' is likely to prove problematic for all sorts of reasons, not least including the value of APP_USER is uppercase by default, unless otherwise during authentication.

    Note that the semicolon and extra double quotes in are not valid.

  • How to remove the link to the interactive report columns!

    Hi all

    I'm building an interactive report based on pl/sql block.

    In the report, I get the columnnames with link (underlined). I'm confuse when I have the chance to see the names of columns like AGE_SEX, AGE_SEX_

    When I see these columns of interactive report, it seems to be as same as the underline covers underscore.

    Is their anyway I can remove the link to the interactive report columns.


    I selected the link column exclude from the column heading in the report but still attack link gets the link in the column.

    Appreciate your help.

    Thank you/kumar

    Published by: kumar73 on May 5, 2010 14:32

    Hello

    Try the place for HTML page header

    
    

    Hope that I did not understand what you are trying

    BR, Jari

  • Questions about the icons for interactive report

    When I created an interactive report, rectangular icons were created automatically on the left side of the report on each line.
    When you click on one of the icons, it displays the details of the line in vertical order.

    Here are my questions:

    1. when I hid a few columns in the interactive report and clicks on the icon, it does not display the details of the hidden column. But I want to hide these columns in the report but displays all the details when you click the icon. How can I do this?
    2. How can I hide the icons?
    3. How can I use the icons don't not to view the details of a line, but towards a modifiable page to edit the same details?

    Thank you
    Guy

    Hello

    1. when I hid a few columns in the interactive report and clicks on the icon, it does not display the details of the hidden column. But I want to hide these columns in the report but displays all the details when you click the icon. How can I do this?

    You can create another region, or the page that will show you your line of description of identifier, or rowid. You can do this by changing the column type of link to "target of the link to Custom.

    2. How can I hide the icons?

    Access the interactive report-> column-> change of link column link (link column exclude)

    3. How can I use the icons don't not to view the details of a line, but towards a modifiable page to edit the same details?

    The same as answer 1.

    Best regards, Kostya Proskudin!

  • When I try to change the interactive report columns, then triggers the error: "unable to change column attributes. "ORA-01403: no data found. Pls tell me why?

    When I try to change the interactive report columns, then triggers the error: "unable to change column attributes. "ORA-01403: no data found. Pls tell me why?

    You use listener EA3 ADR?

  • Model of User Interface for interactive report region

    3.2 where we establish the model of user interface for interactive reports region?

    No matter what on the theme of the box I go to, the region of interactive reports shows the same. What and where do I change the model so that alternate lines use two different colors?

    There is no model for interactive reports as for a 'normal' report You need to edit the CSS and provide your own for this purpose.

    I think that most of the things are marked with the #apexir - firebug with combustion chamber is priceless. This thread may help:

    Re: changing the appearance of the interactive report.

  • 2 conditional display for link column

    Hello

    I use Oracle Apex 5.0.2 and I have a report that contains a link to the column. The report contains various user_ids and shows some qualities of these users. I want to make the link in the column of conditional display based on two conditions.

    1. If the user who is viewing the page is an administrator

    2. If the user who visits the page is not an administrator, but sees its own information in this report.

    The 1st condition, I know how to implement it using PL/SQL expression. I stored the role: APP_USER in a P1_USER_ROLE and check if P1_USER_ROLE = "administrator."

    For condition 2, I know how to implement it using the "value of the element / the expression 1 column = Expression 2.» And I put just expression 1 #USER_ID # and expression 2 P1_USER ID (an element which stores: APP_USER).

    I was wondering if there is a way to simultaneously implement these two conditions together. Thank you!

    kevinsun91 wrote:

    I use Oracle Apex 5.0.2 and I have a report that contains a link to the column. The report contains various user_ids and shows some qualities of these users. I want to make the link in the column of conditional display based on two conditions.

    A "report"? Always tell exactly what you mean by this term: standard report, interactive, component report shared report query or some sort of tabular form?

    1. If the user who is viewing the page is an administrator

    2. If the user who visits the page is not an administrator, but sees its own information in this report.

    The 1st condition, I know how to implement it using PL/SQL expression. I stored the role: APP_USER in a P1_USER_ROLE and check if P1_USER_ROLE = "administrator."

    For condition 2, I know how to implement it using the "value of the element / the expression 1 column = Expression 2.» And I put just expression 1 #USER_ID # and expression 2 P1_USER ID (an element which stores: APP_USER).

    Here are the two different requirements. The first is a restriction on the level of columns that can be implemented with the help of a condition on a column in report or a link. The second is a restriction on the level of the lines who cannot. It is not possible to report using #COL_ALIAS # overrides row values in the State of the reference column. It would be unwise to do so: how APEX can determine if the column should be included or not until all rows are retrieved?

    The conditions of type 'values in the column"referred to value of element / column expression... are those generated by the tabular form wizard, which can be referenced in these expressions for run level row and process validation conditionally based on the submitted values. An example might be triggering a validation not Null in COMMISSION when JOB = 'SELLER '.

    Conditional display of level line in the reports always is possible by including the necessary logic to the report using CASE or other expressions query.

    I was wondering if there is a way to simultaneously implement these two conditions together.

    It is not possible to do in a State of the column. It must be made in the report query using a CASE expression:

    ...
    case
      when    :p1_user_role = 'Administrator'
           or user_id = :p1_user_id
      then
        ... --- Construct link URL
    else
      null
    end col_link
    ...
    

    In other circumstances where it is possible to combine several conditions, use a PL/SQL Expression condition with several predicates and required Boolean.

  • Create null values in the database for interactive report link column values

    Hello

    I'm pretty new to APEX and tries to create an interactive report with the form. This report examines essentially for more information for a particular employee. If the employee has any information in the table, the report presents information with a button change beside him. If there is no record in the table for this employee, a create button appears. Now when you click create, a new creation page. This page contains the employee number as a single display field with the value from the previous page. This value is displayed in the page, but it is not in the database. Create the page has view-only number and a couple of other columns. The other columns get inserted into the table with an empty number!

    Can someone please? Looks like the page keeps the value zero for the number of the employee who came during the search of the interactive report. Hope I made myself clear, being the newbie hope I haven't used any incorrect terminology.

    Thank you!
    Robet

    Without the DB column, apex will not determine which DB column the data in this field are mapped to (it would be quite impossible to guess the destination since the name of the element column).

    If you want to assign to the previous element of the page, use the default section

    return: P1_EMP_NUM

    By default the value Type: body of the PLSQL function

    and configure the attributes of source as I said before

  • Apex 5 - where can I configure the link column for interactive report?

    Using APEX 5 on apexea.oracle.com

    I can't work where the attributes of column layout link for an interactive report using the interface of the designer of the Page?

    Thanks in advance

    PaulP

    Paul,

    the customer_id column is defined as a hidden at the Start column, and then there is no attribute of link for this column type. You must define the type 'Link' to get the attributes. There is no attribute of link on "Plain text" either.

  • ToolTip for the interactive report column data item

    I have a report that includes the column (CURRENT_UNIT). I would like to be able to add a "ToolTip". I did it before using a classic report by the following (borrowed from another one of the APEX):

    Add this CSS

    {a.rapxxx}

    position: relative;

    z index: 24;

    {text-decoration: none}

    a.rapxxx:hover {z-index: 25; background-color: #ff0}

    a.rapxxx span {display: none}

    duration of a.rapxxx:hover {/ * poster only over time: hover state * /}

    Display: block;

    position: absolute;

    top:-20px;

    Left: 20px;

    Width: 20em;

    border: 1px blue solid dark;

    text-align: center;

    background-color: lightyellow;

    color: Blue;

    }

    And on the SHAPE of COLUMN layout, add this:

    < a href = "#" class = "rapxxx" > #CURRENT_UNIT # < span > #UNIT_NM # </span > < /a >

    But when I try it on the interactive report, I don't get the hover tooltip.  The href attribute is displayed correctly, just, I don't get the value of the span.

    Can someone help me please?

    Using APEX 4.2.3

    Internet Explorer version 9

    Thank you

    -Seattle

    Oh, if the column is not a link, just the URL target value #.

  • contains the clause in the search for interactive report of a clob column

    Hello

    I use the Version APEX 4.2.4.00.08

    How to use an interactive report contains the when searching a clob column so that it uses the CONTEXT index?

    Thank you

    Chandra.

    I wrote it in the SQL used for IR

    I created an APEX application that stores all our it's the HOWTO documents. (word, excel, pdf)

    ctx_doc.snippet creates the HTML code.

    select D.doc_id
      ,D.doc_filename
      ,dbms_lob.getLength( D.doc_blob ) as download
      ,decode( :P12_SEARCH, null, '-- nothing --',
             ctx_doc.snippet( 'IT_DATA.DOC_CTX_IX' -- my Oracle Text index name
                                 , D.doc_id, :P12_SEARCH )
       )
       as snippet
    from it_data.documents D
    where :P12_SEARCH is null
    or contains( D.doc_blob, :P12_SEARCH ) > 0
    

    MK

  • Conditional display for the links in the column?

    Hi all

    For a report, if you configure a column under the 'attributes of column' binding so that the report has a link to turn an edit form, is it possible to set a condition on this somewhere so that only certain LINES has an icon link (or text)?

    NT

    You can use a case statement?

    select case
              when column1 = 'x' then '' || column2 || ''
              else column2
           end
    from table
    

    Minh

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

Maybe you are looking for

  • Change my Firewire PCMCIA card IRQ

    Hi guys,. I need to assign a free IRQ address to my PCMCIA firewire card, a card ADAPTEC AFW-1430, because irq 16 is also assigned to the ATI video card and when I save or any audio file, it is responsible for reading my sequecer (cubase sx3) click o

  • FireWire card?

    What is the best for my HP Envy 700-027c firewire card? Should which slot I use for the installation?

  • Stick of memory 2 GB Toshiba failed - how to activate the warranty?

    I have a Toshiba 2 Gb memory Stick that does not today. How to activate the guarantee to be exchanged or repaired?

  • pause button on the front panel

    Hello. I try to run synchronous, continuous analog conversion of 2 cards of PXI-6259, and capture the State of the several digital at the same time.  I managed to get everything is configured and working properly, however I have a problem if the user

  • Printer cannot print black

    Original title: device I have a printer HP Officejet 6500 Wireless. Saturday night I rearranged my office furniture, but do not unplug the printer from the tower. However, my printer will not print black but it will print all other colors. When I pus