Conditionally display column report

Hello

I want to display the column report under certain conditions.

I've created a report. There are several columns as. BILL BILL NO, DATE, METHOD OF PAYMENT, CHECK, CHECQUE DATE, THE TOTAL AMOUNT

Now, I want to display only no. BILL, BILL DATE, MODE of PAYMENT, TOTAL AMOUNT when I select the MODE of PAYMENT in cash in the select an ITEM list

And

I want to display only BILL No., DATE of INVOICE, PAYMENT METHOD, CHECK number, CHECK DATE, TOTAL AMOUNT when I select the check PAYMENT METHOD in the select an ITEM list

How can I conditionally display column of the report.


Thank you
Ed

If you go to report attributes, you can specify conditions for specific columns.

As you wait to conditionally display items based on what is selected in the selection list, you now have the page to refresh. For example, change the selection list to select the list to submit.

Then you should be able to add a condition, according to the value of the selection list.

Tags: Database

Similar Questions

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

  • 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.

  • Conditionally display different images in a report

    Hello. I have a simple report. In a column of it, I have a link to another report. Display a picture using the column rather than display the value of the column, text of the link to the column binding property.

    I put in the link text field, a < img src = "#WORKSPACE_IMAGES #my_image.jpg" > tag.

    Works like a charm - on the report that the column displays the images of small icon that can be clicked take the user to another page.

    I would conditionally (based on the real value of the row of the column) show two different images. Think of a green arrow pointing at vs a red down arrow.

    How can I do?

    Or can I at least have the image above display under certain conditions and if the condition is not met, not display anything?

    I noticed that each page an attribute of the column in the report has the conditional display section. How does for a column?

    Thank you
    Boris

    Use an expression box in the query, for example

    ...
    case
      when x <= 50 then 'down.png'
      else 'up.png'
    end icon
    ...
    

    Change the link text field to

    <img src="#WORKSPACE_IMAGES##ICON#" alt=""/>
    
  • Conditional statement treated even if not displayed column?

    Hello

    I'm in Apex 3.1.2 and have a classic editable report with a conditional column that is of type "selection list (query based LOV).

    What I discovered with the help of ptrace = YES is, LOV-statement column is processed, even if the columns condition indicates that it should not be treated.
    In Page making this column does not appear, this part works fine, but the statement is executed, which in my case can be a performance problem in certain conditions (and this is why the column is not displayed, and should not be made).

    Someone has found the same problem or knows a workaround solution to prevent him from treatment?

    This applies to all the conditions in the apex? Condition only works for rendering, but not for the treatment?

    Thank you

    Peter

    Peter,

    The treaty reporting engine lines, as he runs the SQL, gets the generated HTML code and then decided the column to send to the browser based on the conditions and the authorization logic.

    You can change your query LOV to be a query that returns the function, for example, say that the condition that should prevent the displayed column is 1 = 1, then your query might look like:

    Start
    If 1 = 1
    then return "select" "a" "d" "a" "double r".
    otherwise return "";
    end if;
    end;

    This applies to all the conditions in the apex?

    N °

    Scott

  • Conditional display based on the value of line

    I have a report table with several lines on it.  I need to post a link to another page of user action if a value in the line corresponds to an attribute of the user's role, so they can act on the item.  Other display or update the document would not be able to run the link.

    The logic of nickname would go something like this:

    If user_role = role_this_line_item then

    display approval_link

    on the other

    Hide approval_link

    end if

    I know how to write pl/sql to return to the display of the correct state of true/false, but I can't find out how to reference the value on the display line.  I tried: role_this_line_item, role_this_line_item, #role_this_line_item # and none of them return one value other than false.  How to refer to an attribute on the current line of the decision to hide/show correct?

    Al

    Al Wondra says:

    I use V4.2.6 Apex in local installation of Oracle 11 g XE.  I tried with IE, Firefox and Chrome.  None has the conditional display.

    The report is a standard report created using the Apex report wizard.  I'm one of the columns (the ID of the line) changing to conditionally a link to a page to data entry.  I only need one line at a time to be the active link.  No line should have a link, if the user is not the role is required to perform this action.

    You have described my question exactly, it seems, that the conditional rendering is applied to the entire column.  I need that it is applied to specific lines.  Some lines (1) will be the active link.  All other lines does not display the link.  Is this possible?

    If you want the value of the ID to display for each row returned by the report, but only rendered as a link, if the condition is true? The values used in the State come "role_this_line_item" seems to be a value of a column in the report. "User_role" is also a column value?

    The simplest option is to modify the column attribute display as for the Standard report columnID column and conditionally generate the link in the report query:

    select
        ...
      , case
          when user_role = role_this_line_item
          then
            'where DATA_ENTRY is the 'data entry page' target number or alias of the page.

  • How to trigger a conditional display based on a dynamic Action without submitting the Page

    Hello

    Using Oracle APEX v4.2 on 11g, I have the following scenario and wanted to take other people on how to accomplish what I'm trying to do, i.e.:

    In region 1, I have a select item list page called P1_SELECTION, which contains selections from drop down to the user to choose from the following three: A1, B2 and C3

    In region 2, I have two checkbox elements:

    P1_CBOX1 I gave a conditional display of ' point value / Expression 1 column! = 2 expression, where Expression 1 = P1_SELECTION and Expression 2 = B2, so P1_SELECTION! = B2

    P1_CBOX2 I gave a conditional display of ' value of the point / column Expression 1 = Expression 2 where Expression 1 = P1_SELECTION and Expression 2 = B2, then P1_SELECTION = B2 .

    Use of dynamic Action on the evolution of the P1_SELECTION in region 1, how can I trigger the correct display of the checkbox in region 2, with the default view of the region 2 checkbox being P1_CBOX1, without submitting the entire page, just refreshing each of the elements checkbox to trigger the conditional display correct?

    For example, on the changes of P1_SELECTION = B2 then entire submission without page, only P1_CBOX2 is presented to the user in other P1_CBOX1 is displayed.

    Is this possible?

    Thank you.

    Tony.

    Hi Tony,.

    condition your dynamic action on P1_SELECTION with the following condition of javascript: this.triggeringElement.value = "B2".

    Add real actions that will show P1_CBOX2 and hide P1_CBOX1

    Add false actions and going hide P1_CBOX2 show P1_CBOX1

    Set the dynamic actions to fire on Page load

    Kind regards

    Erik-jan

  • conditional retrieval on report

    Hi I have a requirement for one of my report.
    I have data like this

    Output current

    DATE TOTAL ID
    01/01/2011 XXX 50
    01/01/2011 XXX 100
    01/01/2011 BBB 50
    01/05/2012 AAA 10
    01/05/2012 AAA 30


    I need to display the data that satisfies the condition.

    display lines only when the transactions id on this day flat > 100. waited so long, it is also lower than other lines by id by flat date not > 100

    DATE TOTAL ID
    01/01/2011 XXX 50
    01/01/2011 XXX 100


    can someone let me know how to keep the condition.


    We use BI Publisher 10g integrated with Seibel 8.1.1

    You can try like this
    <>
    for-each-group: G_1; / ID? >100 ? > DATE ID TOTAL

  • Conditional display on multiple items?

    Is it possible to use several elements in the region of the conditional display of a report? For example, I try to use the
    'Value of element in the Expression 1 = Expression 2' and when I fill 1 element with the value of the expression 2 it simply works great, but if I try to place 2 elements that would equal the two expression 2 it doesn't.

    I tried

    Term 1:
    P14_ITEM1, P14_ITEM2

    Expression 2:
    10

    Is this possible? And if yes is there a different syntax I should using the Expression 1 identify my points?

    Thank you

    Zala

    Zala,

    Use a PL/SQL Expression condition type and enter the Expression 1:

    : P14_ITEM1 = '10' and: P14_ITEM2 = '10'

    .. .for example.

    Scott

  • In ver39.0, I lost my display column of the number of messages in each of my subfolder - how can I get that back?

    When TB opens, it displays the tab file (version 39.0)
    On the left is a list of all my folders created sub - right is the list of the messages in the selected folders list.
    In my list of subfolders (left), there was a displayed column showing how many messages were in each case.
    I see is no longer this column of the counts of messages.
    That's happened?
    How can I get that back?
    Thank you
    Billy D. Reagan [email protected]

    DUUHH - I found how to restore the column Layout - VIEW - Menu - and check out pain of folder columns

  • Textarea conditional display based on the value of the checkbox.

    Hi all

    I have a question regarding the conditional display of an article based on the value of the checkbox.

    I have a checkbox in a region, which is a STATIC LOV:; Y and the text box in the same region. Now I want to show this textarea only if the check box is selected. ??

    Please suggest how to achieve this.

    Thank you

    DC

    Hello

    I guess that you are 4.2 Apex as you haven't shared the same.

    • Create a dynamic Action on change of box which should present the value of the checkbox and update the TextArea element.
    • Then continue as conditional Textarea with checkbox value.

    BR,

    Patrick

  • Help with conditional display and Validation

    Version 4.1.1.00.23

    Hello

    I'm having a difficult time with a conditional display and validation, I hope someone can help with.

    Requirements:

    When (Datepicker) Start Date or the end Date (Datepicker) change can display the reason for change (select list) and change Description (Textbox)
    If the page is saved without entering a reason change display an error message of validation that the reason for the change cannot be empty (NULL)

    What I tried

    Create a dynamic Action on the Start Date

    Event: Change

    Selection type: Article (s)

    Items (s): P51_START_DATE

    Condition: no

    Real Action Section:

    Action: Show

    Fire on Page load: Checked

    Display all the elements of the page on the same line: NO.

    Section of the elements concerned:

    Selection type: Article (s)

    Product (s): P51_CHANGE_REASON, P51_CHANGE_DESC

    I also created a dynamic Action with similar settings for the P51_END_DATE.

    I created a Validation for the P51_CHANGE_REASON as a function return error text:

    DECLARE
        v_start_date    work_items.start_date%TYPE;
        v_end_date      work_items.end_date%TYPE;
    BEGIN
        SELECT start_date
              ,end_date
        INTO   v_start_date
              ,v_end_date
        FROM   work_items
        WHERE  work_items_id = :P51_WORK_ITEMS_ID;
        IF ( (v_start_date != TO_DATE(:P51_START_DATE,'DD-MON-YYYY') OR v_end_date != TO_DATE(:P51_END_DATE,'DD-MON-YYYY') ) AND
              :P51_CHANGE_REASON IS NULL ) THEN
            RETURN 'Change Reason must have a value';
        END IF;
    END;
    
    
    

    The question

    I tried to create another dynamic Action to hide the P51_CHANGE_REASON and P51_CHANGE_DESC fields during the loading of the page, but when the date fields are changed and the validation is fired the P51_CHANGE_REASON and the P51_CHANGE_DESC are hidden again.

    There are two buttons to send the page: 'SAVE' will submit the page and stay on the page and 'SAVE_CHANGES' will present the page and creates a branch to the previous page (which is a relationship with the EDIT buttons to change recording).

    I can not loading the dynamic Action page for fires DO NOT when validation is triggered.

    I hope it is clear and if not what information can I provide?

    Thank you

    Joe

    Which the condition is failing and what browser? I tested it in Firefox and it works as it should. Can you confirm that?

  • Conditional display of HTML5

    APEX 4.2 theme 25 DB Oracle 11 GR 2 - I need to conditionally display Html5/Flash graphic areas depending on the browser compatibility, does anyone have ideas on how to do this. Thanks in advance.

    Hi rich,

    With APEX 4.2, we integrated AnyChart 6 cards that gives users the ability to create graphs of HTML5 and Flash graphics. Something to note is that Flash graphic 4.2 automatically use the AnyChart rendering type "FLASH_PREFERRED": http://anychart.com/products/anychart/docs/users-guide/migration-guide.html#from-5.1.x-to-6.x-rendering-types. This setting means that when Flash is available, the table will be rendered in Flash. However, when the Flash is not available, the table will be rendered under HTML5. It is an automatic failover with the parameter "FLASH_PREFERRED". This will therefore remove potentially your need to conditionally display the graphic regions based on browser compatibility.

    Kind regards
    Hilary

  • Field of # of phone and displayed columns.

    Hello

    I have a few requirements:

    1. I have a 'Phone' field in the list applet. I want to have it exact 10 numbers. entry less or more than 10, it must give error.
    2. in the list applet, there are five columns. But the right click and 'Display columns' and pressing 'Reset defaults', it should display only four columns.

    How can I do?
    Kindly help

    Cherkaoui

    Hello
    You are getting this error looks like
    SBL-DAT-00399: the expression of query on the field '%1' is not valid. Please review and try again.

    I presume that you hit this error to the user interface. You validate you are DVM expression? Ensure that its okay.
    If you are still encounter this error, try on another field. I worry about the phone # a class forced /bc vanilla constraints field.

    Thank you

  • Conditional display based on Web browser

    Hey,.

    Is it possible to place a conditional display on APEX elements depending on the Web browser they are using?
    I have a plugin which is extremely useful on IE7 and FF, however most of our users are on IE6, and of course the plugin does not work.

    So if I can I'd like hide the Combobox plugin and automatically fill the area of text instead.

    Thanks in advance
    Ozzy



    APEX Version - 4.0.1.00.03

    Hello

    Try the PL/SQL expression condition to detect IE6

    UPPER(owa_util.get_cgi_env('HTTP_USER_AGENT')) LIKE '%MSIE 6%';
    

    Kind regards
    Jari

Maybe you are looking for

  • Certificate error when you try to install add-ons

    I'm unable to install the extensions from past to version 13. Ive tried almost everything. Safe mode, uninstall, reinstall, delete my profile etc. All whenever I get is a certificate error. Even if I go to the Mozilla Add - ons of the his site blocke

  • Unable to connect to the internet via the Time Capsule 2 TB router

    Hello I can't connect wireless to the internet using my Time Capsule (see 7.7.3 running). I mainly use a macbook air (so no ethernet jack) running El Capitan 10.12.2 but the problem also occurs with our iPad and iPhone. The system has worked for a fe

  • of HP Pavilion laptop webcam problem

    I have a hp Pavilion dx6665ca with Vista and all the service packs and updates of the firmware & bios.  In recent months, every time I have open or close the lid, I get a notification on the toolbar by saying: "unrecognized usb device".  It looks lik

  • bugs in firmware for the photo frame digital df800b2

    http://h30434.www3.HP.com/PSG/board/message?board.ID=Other1&thread.ID=47> I have the same frame and the same question!   I tried the solution and it did NOT solve my problem.  Pictures are not displayed in sequential order (they jump around a bit in

  • using scxi 1303 and 1100 to measures of pressure

    Hello I use the scxi 1303 and 1100 to measure the voltage inputs. Specifically, I have 8 voltage at 0 - 10 v and 9 measures of pressure to 4-20mA, converted to signals 1 - 5V with a 250 Ohm resistor. My arrises now question about pull upward resistan