Display conditional interactive report

I have a group of buttons radio with two options:

1. display the timeline X table

2. display the records in the table Y

And a display button

According to the selection of the option button (option 1 to say) the user will be display and click on I want my Interactive report to display (in this case, chronogram X table).

If the user chooses the second option and click the Display then interactive to display report (in this case Records of table Y).

Please help me solve this problem.  I am new to Oracle apex.

Thanks in advance.

You can manage this with two select statement. Here's the logic

Select * from table where 1 =: RADIO_PAGE_ITEM

Union

Select * from table where 2 =: RADIO_PAGE_ITEM and your condition

Note: Your option 1 must return 1 so the first select statement will be executed in this case second statement can't and vice versa.

Tags: Database

Similar Questions

  • Download the conditional interactive report

    Hello

    I created a region conditional interactive report that appears when the button is clicked.

    Initially, in the State of the interactive area, I chose request = Expression1 and expression I gave the name of button, it didn't work.

    Then I had an idea of community to set a branch on the same page by setting the request for the name of the button when the button is clicked.

    The report is displayed conditionally the click of the button, but when try to download the report by clicking on download when the region itself is removed from the action menu.

    Any guidance will be of great help.

    Thank you

    Rakesh

    Hello

    Thanks for your advice, I had thought of it, sorry I missed marking the question as answered.

    Thanks again for the response.

    Take care

  • 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

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

  • How can I rearrange the columns in the not displayed section of the interactive report.

    Hello

    My interactive report contains 185 columns and requieres users to build its reports with some columns, but he gets lost between this amount of columns, it would be easier if the columns in the do not display the interactive report section would be automatically sorted, is it possible?

    Thank you very much

    Hi Eva,

    A solution would be to order the column names in alphabetical order. You can create a dynamic JavaScript action to manage the sort.

    The shuttle of the attribute IR "Select columns" have the ID "apexir_SHUTTLE_LEFT" or hidden columns and 'apexir_SHUTTLE_RIGHT' to the displayed columns.

    The function that you create might look like:

    var options = $('select#apexir_SHUTTLE_LEFT option');
    var arr = options.map(function(_, o) { return { t: $(o).text(), v: o.value }; }).get();
    arr.sort(function(o1, o2) { return o1.t > o2.t ? 1 : o1.t < o2.t ? -1 : 0; });
    options.each(function(i, o) {
      o.value = arr[i].v;
      $(o).text(arr[i].t);
    });
    
    var options = $('select#apexir_SHUTTLE_RIGHT option');
    var arr = options.map(function(_, o) { return { t: $(o).text(), v: o.value }; }).get();
    arr.sort(function(o1, o2) { return o1.t > o2.t ? 1 : o1.t < o2.t ? -1 : 0; });
    options.each(function(i, o) {
      o.value = arr[i].v;
      $(o).text(arr[i].t);
    });
    

    You need to find the right timing for dynamic action to run, I suppose the click on the button "Select columns" would do the trick.

    Kind regards

    Vincent

    http://vincentdeelen.blogspot.com

  • paging on interactive report - how to move on my layout

    well, I work with the basic interactive report, no settings. My final user does not seem to worry much horizontal scrolling, although it goes against my standards of web dev personal to do without important need. But with the models as they are, the paging for Recordset next/previous is WAAAY more to the right. I find it annoying, and in the interest of my user, I want to left-align it. I looked on Google, did a search in this forum and checked the docs of the APEX, not much leaping out of me. I think I can change a div on some model class, not having is not an easy, concluding that period.

    useful thoughts on this? TYIA and points for an idea of work.

    Hello

    Did you try to change the "Pagination display Position" interactive report attributes?

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

  • Interactive report, conditional display of the column binding

    Hello

    We have obligation to disable editing in case this field is 1 (1 = closed).

    Is it possible to disable it on interactive report.

    -case when status = 1 link in the column should be disabled (not visible) in order to prevent future changes on the payroll.

    SELECT payroll_no, status

    OF hr_payroll

    ORDER BY payroll_no DESC;

    I tried the link below, but it does not work in my case.

    http://nerd.NET.au/24-Apex-application-express/report-layout/92-conditionally-show-report-link-column-based-on-value-of-...

    Oracle Database 11g Express Edition Release 11.2.0.2.0 - Production

    Request Express 4.2.2.00.11


    Thank you in advance,

    Best regards, FM

    Status of the INCIDENT WHEN 'ACTIVE' = then


    '
    OTHER END null deactivate_employee.

    Of

    EMPLOYEES

    What exactly is the error you get? What HTML is displayed in the HTML source code?

    Just by looking at it, I would say that you need to remove the "/" before the f? p

    Don't forget not this way could cause problems if you start using the checksum, then you might want to look at the use of APEX_UTIL. PREPARE_URL to create your URL.

  • Problem with the display of the icon in the interactive report

    Hello

    for several days I am looking for a solution on the web, but I have not found the right article.

    I can't display images in the display of the icon of interactive report.

    I tried to understand with an example of implementation of the SUMMIT.

    I work with the same component without success.

    IN MY PAGE:

    first region

    P1O_IMG1: File Explorer to download image

    P10_TITRE: text box: title

    P10_LIBELLE: area of tex: topic

    P10_CANCEL: button cancel

    P10_submit: button to submit

    in this area, I upload a picture and create a row in the CG63_IMG table

    ID_IMGNUMBER
    FILE NAMEVARCHAR2 (400 BYTE)
    MIME_TYPEVARCHAR2 (50 BYTE)
    CHAR_SETVARCHAR2 (128 BYTE)
    IMAGE_CONTENTBLOB OBJECT
    DATE_MAJDATE
    LIB_IMGVARCHAR2 (400 BYTE)
    THE TITLEVARCHAR2 (100 BYTE)

    and everything is OK

    second region with interactive report

    Select

    cg63_IMG.ID_IMG ID,

    CG63_IMG.ID_IMG as ID_IMG,

    CG63_IMG. Name of the FILE as FILENAME,

    CG63_IMG. Mime_type like MIME_TYPE,

    CG63_IMG. CHAR_SET as CHAR_SET

    CG63_IMG. DATE_MAJ as DATE_MAJ,

    CG63_IMG. LIB_IMG as LIB_IMG,

    CG63_IMG.titre,

    Decode (NVL (DBMS_LOB. GetLength (IMAGE_CONTENT), 0), 0, NULL, apex_util.get_blob_file_src (ID_IMG, NULL, 'P10_PHOTO', 'inline')) detail_img_no_style;

    apex_util.prepare_url ('f? p ='|: APP_ID |) » : 20 :'|| : APP_SESSION |': P20_ID_IMG :'|| ID_IMG) icon_link

    of CG63_IMG CG63_IMG

    in my report, detail_img_no_style, icon_link are hidden


    in attributes of reports

    the normal display mode is ok

    the detail view is ok

    display the icon: problem no picture

    I would like this (in the order of the lines of the "icon view" attribute)

    YES,

    NO,

    ICON_LINK,

    DETAIL_IMG_NO_STYLE,

    TITLE,

    HEIGHT = "140" WIDTH = "140"

    #TITRE #.

    '',

    ""


    third region

    I defined a P10_PHOTO point: File Explorer, hidden

    Like this

    Parameters:

    NO,

    BLOB type column specifies in the attribute of the source point,

    MIME_TYPE,

    FILE NAME,

    ' ',

    DATE_MAJ,

    YES,

    ' ',

    Inline


    Source:

    Still, replacing everything,.

    Databas column,

    Per session.

    Value of source = IMAGE_CONTENT,

    ' ',

    ' '


    It is difficult to get information: how the element such as P10_PHOTO must be created.


    APEX 4.2.5 WITH ORACLE HTTP SERVER


    Concerning


    MARC







    user_fr_cg63 wrote:

    Hello

    for several days I am looking for a solution on the web, but I have not found the right article.

    I can't display images in the display of the icon of interactive report.

    I tried to understand with an example of implementation of the SUMMIT.

    I work with the same component without success.

    IN MY PAGE:

    first region

    P1O_IMG1: File Explorer to download image

    P10_TITRE: text box: title

    P10_LIBELLE: area of tex: topic

    P10_CANCEL: button cancel

    P10_submit: button to submit

    in this area, I upload a picture and create a row in the CG63_IMG table

    ID_IMG NUMBER
    FILE NAME VARCHAR2 (400 BYTE)
    MIME_TYPE VARCHAR2 (50 BYTE)
    CHAR_SET VARCHAR2 (128 BYTE)
    IMAGE_CONTENT BLOB OBJECT
    DATE_MAJ DATE
    LIB_IMG VARCHAR2 (400 BYTE)
    THE TITLE VARCHAR2 (100 BYTE)

    and everything is OK

    second region with interactive report

    Select

    cg63_IMG.ID_IMG ID,

    CG63_IMG.ID_IMG as ID_IMG,

    CG63_IMG. Name of the FILE as FILENAME,

    CG63_IMG. Mime_type like MIME_TYPE,

    CG63_IMG. CHAR_SET as CHAR_SET

    CG63_IMG. DATE_MAJ as DATE_MAJ,

    CG63_IMG. LIB_IMG as LIB_IMG,

    CG63_IMG.titre,

    Decode (NVL (DBMS_LOB. GetLength (IMAGE_CONTENT), 0), 0, NULL, apex_util.get_blob_file_src (ID_IMG, NULL, 'P10_PHOTO', 'inline')) detail_img_no_style;

    apex_util.prepare_url ('f? p ='|: APP_ID |) » : 20 :'|| : APP_SESSION |': P20_ID_IMG :'|| ID_IMG) icon_link

    of CG63_IMG CG63_IMG

    in my report, detail_img_no_style, icon_link are hidden


    in attributes of reports

    the normal display mode is ok

    the detail view is ok

    display the icon: problem no picture

    I would like this (in the order of the lines of the "icon view" attribute)

    YES,

    NO,

    ICON_LINK,

    DETAIL_IMG_NO_STYLE,

    TITLE,

    HEIGHT = "140" WIDTH = "140"

    #TITRE #.

    '',

    ""


    third region

    I defined a P10_PHOTO point: File Explorer, hidden

    Like this

    Parameters:

    NO,

    BLOB type column specifies in the attribute of the source point,

    MIME_TYPE,

    FILE NAME,

    ' ',

    DATE_MAJ,

    YES,

    ' ',

    Inline

    Source:

    Still, replacing everything,.

    Databas column,

    Per session.

    Value of source = IMAGE_CONTENT,

    ' ',

    ' '


    It is difficult to get information: how the element such as P10_PHOTO must be created.


    APEX 4.2.5 WITH ORACLE HTTP SERVER

    Instead of all that typing it would have been easier to download the application at apex.oracle.com and share the problem here...

    Why does P10_PHOTO exist when there is already an article for the download of files in P10_IMG1?

    Is there a process to look for automatic line (ARF) DML defined to fill the first area? If not, create one and its the Nevervalue condition.

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

  • Interactive report performance with conditional link

    Apex 3.2

    I have an interactive report.

    The underlying sql return 127000 lines

    The sql is

    Select

    LDE.ods_system,

    LDE.ldekey,

    Msg.sendersystem,

    Msg. MessageType,

    Msg. MessageVersion,

    Msg.msgseqnumber,

    Msg. AlternateKey,

    Msg.crudmarker,

    Msg.clrbookdate,

    Msg.clrbookresult,

    lower ('udf_' | MSG button.) MessageType),

    LDE.ldekey |'. ' | Msg. AlternateKey |'. ' | Msg.msgseqnumber udm_key

    Of

    clr_esbmessageheader msg,

    clr_adm_systemmessage SMA,

    lde udm_lde

    where

    ADM.ldeid = lde.ldeid and

    Msg.sendersystem = adm.system and

    Msg. MessageType = adm.messagetype and

    Msg. MessageVersion = adm.messageversion and

    Msg.receiversystem = "SCIPS.

    msg.clrbookdate desc order

    This report takes a second to display.

    I need to add a conditional link to another page, so I used

    case

    When lower ('udf_' | msg.) MessageType) = "udf_distreceipt" then

    "' < a class ="type"href =" "|" apex_util.prepare_url ('f? p ='|: APP_ID |) » : 52 :'|| : APP_SESSION |': ' | : D EBUG |': RIR' | ': I R_MSG_KEY, P52_PG :'|| LDE.ldekey |'. ' | Msg. AlternateKey |'. ' || Msg.msgseqnumber | «, » || 50, null, 'SESSION') | «"title ="Go α report udf_distreceipt"> udf_distreceipt < /a > '»»

    Another 'no link' don't end table_link

    The sql seems to be ok, because the report was accepted, but by selecting the new column and save the report back for always (2 min)

    Now, the report takes more than 2 minutes to run and I still need to add more conditions.

    I coded the link incorrectly?

    Gus

    Well either force them to filter everything first or actually withdraw the appeal prepare_url of your sql. Can you not just use the link of apex column feature? All your links seem to differ in is in the display text for the anchor and not the actual url. If your link is perhaps not as accurate, but at least going to session state protection and be fast and everything will be pretty standard. You could delete SSP of course, but who are better than a more generic link text? The call is of course to you.

  • Interactive report - display negative sum in red

    APEX 4.0.2 RDBMS 11G R2

    I have an interactive report (IR) that generates multiple columns in the report. Infrared, (FORMAT > AGGREGATION) I added some of these columns. On columns that represent monetary values, I would like to see all the negative values in red.

    Using FIREBUG, I'm able to identify and inspect one of these values but cannot determine the best way to conditionally displays this value (when it is negative) in red.

    Thanks in advance.

    Hello

    When I run the page, sum 'A value' column shows <33.25>on the red letters.

    If you change the number in S999G999G999G999G990D00 format there is no need to parse number of string in JavaScript.
    Please note that separator decimal must be dot (.)

    Kind regards
    Jari

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

  • Where the conditional, or PL/SQL block as a source for an interactive report?

    I have this situation: my app's main screen displays a list of documents. For now, there must be a quick way to 'security' integrated, so that administrators can see all documents, but only other users can see what documents, they created (connection of the creator is stored in the table of documents). In the future we will use probably VPD to enforce certain rules, but for the moment we need a quick solution.

    So I stored administrators in a separate table. Now I want the interactive Act report on the homepage as follows:
    -If an admin is connected, it must have this query: select field 1, 2, 3 area in documents
    -For all other users: select the field 1, 2, area 3 documents where creator =: app_user

    Is this possible in a single interactive report? I could do two reports with different queries, and make conditional depending on who is connected, but this gives me two interactive reports to maintain. Is it possible to use a PL/SQL block as a source for the report? I tried, but I get a syntax error. Is it possible to do where proviso on somehow?

    Hello

    Install the demo application to your workspace:
    Home > create an Application and select Demo Application.

    Check page 1 interactive report. This should give idea how.

    BR, Jari

  • edit interactive report based on APP_USER link conditional

    I have a users table with standard information, including a user_id column which is what is used by my access control page to connect. I have a screen of user management with an interactive report I want everyone to see all users, but I want only the link modify to display the line that represents the user who is logged on. I know there is a conditional parameter on the link change, and I tried to develop in exp1 = exp2, with & APP_USER. exp1 and exp2 user_id, but who do not seem to work. Any other ideas, or I'm doing something wrong with the way I tried to make it work?

    HI -.

    It really bothers me, this forum has a problem with the code examples, so for a while at least I posted quick example on Google:

    [Conditional column | http://docs.google.com/Doc?id=dd2tkvv6_212dbzw2ftq]

    Not to complicate too much, but if you want without empty column except a line, you could of course apply this trick to the column that contains actually the user name in your table... in other words, the user can right click on their name to go to the Edit screen, but any other name user, but they would not be a hyperlink. But it is as they say an exercise for the reader :)

    Good luck.

  • Interactive reports: how to change the display mode (details, group by, chart, pivot) programmatically?

    Hi guys,.

    is it possible to control the display mode of the interactive reports, i.e. display icon, list, view detail, group by, chart, pivot?

    Produkte.png

    As I understand the current setting is stored as a preference of the user for each user... and again when his connection. A settings of the rules them all (all the stored report parameters).

    The display mode switchable using a javascript, the api package apex_ir or via a link?

    Thank you
    ~ Dietmar.

    Hi Dietmar,

    It is not a supported way to change the display interactive report mode.  With the device connected by Anthony internally, we will consider adding this because part of apex_ir or a link to the future.

    Kind regards

    Christina

  • Get an interactive report to change what it displays

    Hello world

    I have a table which have multiple values in a column, separated by semicolons, for example: "Architecture: Application: Software»

    I have an interactive report that displays data, and by default it displays exactly as above: "Architecture: Application: Software»

    I can get it to wrap so that it fits in narrow width, I put to this column of the report, but I can't seem to break properly - it just treats it as a value and stops at the width of the column in the report.

    If I get: "Architecture: app

    cation: Software'

    What I would like to get is three words, one on each line.  Is there a way to do this?

    Ideally, I would like to replace it with a supply for each settler line - but only in the report.  I'm not actually change the data in the table.

    Thank you!

    John Ramuta

    Of course, you can use in SQL

    Replace (my_col, ': ',')
    ')

    then, set the column for rendering HTML

    You can also try to replace by ': ', that is to say including a space. The browser should then decide on best time to wrap.

Maybe you are looking for