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

Tags: Database

Similar Questions

  • case where the condition

    Hello
    I want to use the case (or decode etc.) in which a part of sql.
    I want to find the number of rows depending on where the conditions.
    For example, I have a table b, d, e, p and s are fields of this table.
    If the value of the field b is 1 then my condition clause that will be value fields d, e value fields
    If the value of the fields of b is 2 then my condition clause where the declaration will be p field value < s value fields.


    Select count (*) of A
    where
    (if b = 1 then) d, e
    (if b = 2 then) p < s

    How can I achieve this?
    where (b = 1 and d		   
  • Enable 3G on GPO Access where the USB mass store is blocked

    How can I go on the activation of 3G access to users where the strategy of corporate domain blocking massive store USB devices?

    I am running Windows Server 2012 as our DC and workstations are Windows 7 and Windows 10.

    Hello

    Post your question in the TechNet Server Forums, as your question kindly is beyond the scope of these Forums.

    http://social.technet.Microsoft.com/forums/WindowsServer/en-us/home?category=WindowsServer

    See you soon.

  • pass the parameter in pl/sql block

    Hello

    I have to call anonymous pl/block block with the shell script parameter. It works fine as indicated below, the problem is - generated email after the creation of the table in step contains
    list of all directories and files, instead of "select * from". When I change * to the values of columns, everything works well, but I need to use ' * ' in select statement.
    Please let me know which remedy.
    set serveroutput on
    @${CREATE_STAGE_SQL} ${i}
    COMMIT;
    QUIT;
    EOF
    CREATE_STAGE_SQL. SQL
    declare
    begin
    ### some other processing###
     execute immediate 'create table T1_&1._STG as select * from t1_rpt_tmt where 1=2';
    end 
     
    Thank you
    Sandy

    Sandy310 wrote:

    Question - how to select * on my application, how to use * (special character) bulk pl/sql call?
    I used & 1. (dot) to pass parameter.

    Example:

    // the script
    /home/billy/sql> cat show-employees.sql
    --// usage: show-employees.sql 
    --//
    --// where:     sql-projection = comma delimited column list
    
    set verify off
    set define on
    define PROJECTION=&1
    
    select &PROJECTION from emp order by 1;
    
    exit
    
    // running script for single column
    /home/billy/sql> sqlplus scott/tiger @show-employees.sql ename
    
    SQL*Plus: Release 11.2.0.2.0 Production on Thu Apr 18 08:01:10 2013
    
    Copyright (c) 1982, 2010, Oracle.  All rights reserved.
    
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    With the Partitioning, Real Application Clusters, Automatic Storage Management, Oracle Label Security,
    OLAP, Data Mining, Oracle Database Vault and Real Application Testing options
    
    ENAME
    ----------
    ADAMS
    ALLEN
    BLAKE
    CLARK
    FORD
    JAMES
    JONES
    KING
    MARTIN
    MILLER
    SCOTT
    SMITH
    TURNER
    WARD
    
    14 rows selected.
    
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    With the Partitioning, Real Application Clusters, Automatic Storage Management, Oracle Label Security,
    OLAP, Data Mining, Oracle Database Vault and Real Application Testing options
    
    // running script for all columns using asterisk - and to prevent bash from processing
    // the asterisk as a file/dir listing parameter, we escape the character using a slash
    /home/billy/sql> sqlplus scott/tiger @show-employees.sql \*
    
    SQL*Plus: Release 11.2.0.2.0 Production on Thu Apr 18 08:01:17 2013
    
    Copyright (c) 1982, 2010, Oracle.  All rights reserved.
    
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    With the Partitioning, Real Application Clusters, Automatic Storage Management, Oracle Label Security,
    OLAP, Data Mining, Oracle Database Vault and Real Application Testing options
    
         EMPNO ENAME      JOB              MGR HIREDATE                   SAL       COMM     DEPTNO
    ---------- ---------- --------- ---------- ------------------- ---------- ---------- ----------
          7369 SMITH      CLERK           7902 1980/12/17 00:00:00        800                    20
          7499 ALLEN      SALESMAN        7698 1981/02/20 00:00:00       1600        300         30
          7521 WARD       SALESMAN        7698 1981/02/22 00:00:00       1250        500         30
          7566 JONES      MANAGER         7839 1981/04/02 00:00:00       2975                    20
          7654 MARTIN     SALESMAN        7698 1981/09/28 00:00:00       1250       1400         30
          7698 BLAKE      MANAGER         7839 1981/05/01 00:00:00       2850                    30
          7782 CLARK      MANAGER         7839 1981/06/09 00:00:00       2450                    10
          7788 SCOTT      ANALYST         7566 1987/04/19 00:00:00       3000                    20
          7839 KING       PRESIDENT            1981/11/17 00:00:00       5000                    10
          7844 TURNER     SALESMAN        7698 1981/09/08 00:00:00       1500          0         30
          7876 ADAMS      CLERK           7788 1987/05/23 00:00:00       1100                    20
          7900 JAMES      CLERK           7698 1981/12/03 00:00:00        950                    30
          7902 FORD       ANALYST         7566 1981/12/03 00:00:00       3000                    20
          7934 MILLER     CLERK           7782 1982/01/23 00:00:00       1300                    10
    
    14 rows selected.
    
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    With the Partitioning, Real Application Clusters, Automatic Storage Management, Oracle Label Security,
    OLAP, Data Mining, Oracle Database Vault and Real Application Testing options
    
  • Need help with the condition join in SQL

    Hi all -

    I need to ask for help with this query:

    Create table user_tab_col_test (varchar2 (30) from table_name, column_name varchar2 (30), data_type varchar2 (30));

    Insert into user_tab_col_test (table_name, column_name, data_type) values ('table1', 'column1', 'varchar2')
    Insert into user_tab_col_test (table_name, column_name, data_type) values ('Column2', 'table1', 'varchar2')
    Insert into user_tab_col_test (table_name, column_name, data_type) values ("Column3", 'table1', 'varchar2')
    Insert into user_tab_col_test (table_name, column_name, data_type) values ('column4', 'table1', 'varchar2')
    Insert into user_tab_col_test (table_name, column_name, data_type) values ("column1", "table2", 'varchar2')
    Insert into user_tab_col_test (table_name, column_name, data_type) values ('table2', 'column2', 'varchar2')
    Insert into user_tab_col_test (table_name, column_name, data_type) values ('table2', "Column3", 'varchar2')
    Insert into user_tab_col_test (table_name, column_name, data_type) values ('table2', 'column4', 'varchar2')
    Commit;

    Create table all_cons_columns_test (varchar2 (30) from table_name, column_name varchar2 (30), constraint_name varchar2 (30))

    Insert into all_cons_columns_test (table_name, column_name, constraint_name) values ("table1", "column1", "primary")
    Insert into all_cons_columns_test (table_name, column_name, constraint_name) values ("table1", "column1", "secondary")
    Commit;

    This is my query and the current result:

    Select u.table_name, u.column_name, c.constraint_name
    Of user_tab_col_test u
    Outer join all_cons_columns_test c left
    On (u.table_name = c.table_name
    AND U.COLUMN_NAME = C.COLUMN_NAME
    AND C.CONSTRAINT_NAME IN ('main'))
    order of U.table_name, U.COLUMN_NAME;

    TABLE_NAME COLUMN_NAME, CONSTRAINT_NAME
    ------------------ --------------------- ----------------------------
    Table1 primary Column1
    Table1 Column2
    Table 1 Column3
    Table2 Column1
    Table2 Column2


    Three questions:
    (1) I don't want to return results where table_name = "table1". I can't get this to work.
    (2) is my proper request and this is the best way to return my desired results? For example, I want all of the columns of user_tab_col_test and I want to only display the constraint_name from all_cons_columns_test argument if the argument constraint_name = 'primary '.
    (3) will be the synatx be the same if I need to join a third table to all_cons_columns_test?

    Any advice/suggestions are appreciated-
    John

    Published by: user703358 on January 11, 2013 20:57

    Published by: user703358 on January 11, 2013 21:48

    Hi, John,.

    user703358 wrote:
    Hi all -

    I need to ask for help with this query:

    Create table user_tab_col_test (varchar2 (30) from table_name, column_name varchar2 (30), data_type varchar2 (30));

    Insert into user_tab_col_test (table_name, column_name, data_type) values ('table1', 'column1', 'varchar2')
    Insert into user_tab_col_test (table_name, column_name, data_type) values ('Column2', 'table1', 'varchar2')...

    Thanks for posting the CREATE TABLE and INSERT.
    It is more useful if you post the code that can be run without modification. You did not semicolons after INSERTION instructions.

    Three questions:
    (1) I don't want to return results where table_name = "table1". I can't get this to work.

    What have you tried? Post your best attempt.
    Here's one way:

    SELECT    u.table_name
    ,        u.column_name
    ,        c.constraint_name
    FROM             user_tab_col_test      u
    LEFT OUTER JOIN  all_cons_columns_test  c
                            ON    u.table_name     = c.table_name
                   AND   u.column_name     = c.column_name
                   AND   c.constraint_name IN ('primary')
    WHERE       u.table_name     = 'table1'          --  *****  NEW  *****
    ORDER BY  u.table_name
    ,            u.column_name
    ;
    

    You would not put this condition in the clause; who controls what is considered as a match between the tables, and "u LEFT OUTER JOIN c" means show all lines of u, even if they do not have a match in the c.

    (2) is my proper request and this is the best way to return my desired results? For example, I want all of the columns of user_tab_col_test and I want to only display the constraint_name from all_cons_columns_test argument if the argument constraint_name = 'primary '.

    Basically, this application is very well.
    It displays all the columns of user_tab_col_test; missing data_type. Just add u.data_type to the SELECT clause, or change the SELECT clause

    SELECT    u.*
    ,         c.constraint_name
    

    (3) will be the synatx be the same if I need to join a third table to all_cons_columns_test?

    Do you mean "" * add * one-third * column * to all_cons_columns_test '? "
    It depends on what results you want. Post new CREATE TABLE and INSERT and instructions the results you want new data.
    Most likely, the basic structure of what you've written will remain exactly the same.

  • pass parameters to treat the flow of pl / sql block

    Hello

    I integrate with Warehouse Builder 10.2, a process named PF_1 flow and a PL/SQL procedure that calls this workflow process using the WF_ENGINE API.
    This process flow, call a large number of mappings of Warehouse Builder. The question is, if I can pass a value get in the PL/SQL block for the process flow and then use it for calls of mappings.

    Example:

    DECLARE
    w_value INTEGER.
    BEGIN

    -Get the value that I need to go to deal with the flow, but I don't know how
    SELECT column1
    IN w_value
    FROM table1;

    -Start the process
    WF_ENGINE. LaunchProcess ('PF_PACK ',' PF_CALL_01 ',' PF_1, 'PF_CALL_01', 'OWB102');

    -Commit final
    COMMIT;

    END;

    Thank you in advance.
    Francisco F.

    Published by: franciscof on Apr / 03/2009 0:06

    Hello

    Have you seen the script below to run any object OWB, including process flow:
    owb\rtp\sql\sqlplus_exec_template. SQL
    in the installation.

    This use and API that has an example of using here;
    http://blogs.Oracle.com/warehousebuilder/2007/07/publishing_process_flow_as_a_w.html

    You can pass parameters to it and bind the mapping of input parameters for process flow settings to the settings, this might help:
    http://blogs.Oracle.com/warehousebuilder/2009/01/process_flow_parameters_1.html

    See you soon
    David

  • Go to dynamic WHERE the condition in the slider accordingly.

    Hi all

    I am facing a problem with the cursor with dynamic WHERE condition in a function.

    Here's the FUNCTION:
    CREATE OR REPLACE FUNCTION EXCEPTION_MERGE(TABLE_NAME IN VARCHAR2, TAB_NAME IN VARCHAR2)
    RETURN VARCHAr2
    IS
    stmt_tabcols VARCHAR2(32767);
    v_columnname VARCHAR2(32767);
    CURSOR C1 IS 
    SELECT 'A.'||A.COLUMN_NAME ||' = '|| 'B.'||B.COLUMN_NAME COLUMN_NAME 
    FROM 
    (
    SELECT COLUMN_ID, COLUMN_NAME 
    FROM USER_TAB_COLUMNS 
    WHERE TABLE_NAME  = TABLE_NAME 
    AND COLUMN_NAME NOT IN ('ERROR_TAB_ID','ERROR_LOAD_DATE')
    ) A, 
    (
    SELECT COLUMN_ID, COLUMN_NAME 
    FROM USER_TAB_COLUMNS 
    WHERE TABLE_NAME = TAB_NAME
    ) B 
    WHERE A.COLUMN_ID = B.COLUMN_ID;
    BEGIN
    
    
    FOR TABCOL IN C1
    LOOP
        stmt_tabcols := stmt_tabcols ||TABCOL.COLUMN_NAME||',';
        
    END LOOP;
        stmt_tabcols := RTRIM(stmt_tabcols, ',');
        RETURN stmt_tabcols;
    END;
    SELECT EXCEPTION_MERGE('WC_W_TEST_FS','WC_W_TEST_FS_GBL') FROM DUAL;
    She throws, below error:
    ORA-06502 : PL/SQL : Numeric or value error : character string buffer too small
    If I REPLACE TABLE_NAME table_name with hard coded values, it works fine. Can someone look at the code and let me know the question.

    Published by: ace_friends22 on Sep 9, 2012 13:08

    The first function TABLE_NAME parameter has the same name as the column of USER_TAB_COLUMNS...
    Change the names of the parameters to say nom_table_p...

    Concerning

    Etbin

  • DBMS_XMLGEN. GETXML confusing WHERE the condition of clause?

    I can't quite wrap my head around that, but I found the following query

    Select * from user_views
    where dbms_xmlgen.getxml ("select text from user_views where view_name =" "|") view_name | ') like '% view_table_name % '.

    I am totally confuse everything, that's what makes the WHERE condition in the query?

    When I run the game "highlight text" it returns nothing

    If anyone knows why the WHERE clause is necessary?

    Thank you

    rodneyc8063 wrote:
    I don't understand why there are extra, extra quotes | and the "solomon_is_cool".

    Additional citations have nothing to do with dbms_xmlgen. In string literals Oracle must be in quotes by acronym. So what do you do if literal contains a quotation, for example O'Reily? The rule is, apostrophe inside the quoted string must be preceded by a second single quote. Thus, to produce the O string literal 'Reily, one must use 'O' Reily'. Now, back to dbms_xmlgen.get_xml. She waits for the SQL statement as a parameter. What SQL statement we want to produce? It would be:

    Select the text from user_views where view_name = "some-view-name."

    Right? Then, how the chain of the SQL statement above should look like? One way is to double single quotes:

    "Select the text from user_views where view_name =" some-view-name "'.

    But some-name-of-view is stored in the column of our query view_name. We have therefore concatenate the piecies which are:

    (1) text select lieral user_views where view_name = '
    (2) column view_name
    (3) literal '

    If we end up having:

    "Select the text from user_views where view_name ="' | view_name | ''''

    Now, you have replaced with solomon_is_cool view_name. This will not work because there is no solomon_is_cool column is user_views. What you probably wanted was:

    "Select the text from user_views where view_name ="solomon_is_cool"'.

    Then:

    dbms_xmlgen. GetXml ("select text from user_views where view_name ="solomon_is_cool"'") would look like to display user named solomon_is_cool text is tiny, which again could be a problem since the names, except between quotes, are stored in the data dictionary for uppercase. In any case, the counting of single quotes in string literals can be confusing. In the new versions of oracle introduced then Q-literals,

    dbms_xmlgen. GetXml ("select text from user_views where view_name =" "|") view_name | '''')

    could be replaced by more readable:

    dbms_xmlgen. GetXml (Q'[select text from user_views where view_name = ']' | view_name |) Q'[']')

    For example:

    SQL> select Q'[select text from user_views where view_name = ']' || view_name || Q'[']' from user_views where rownum < 3;
    
    Q'[SELECTTEXTFROMUSER_VIEWSWHEREVIEW_NAME=']'||VIEW_NAME||Q'[']'
    ------------------------------------------------------------------------------
    select text from user_views where view_name = 'EMP_VW'
    select text from user_views where view_name = 'REMOTE_DDL_VIEW_TEST'
    
    SQL> 
    

    SY.

  • Select without where the condition

    Hello

    Is there is no why select lines of two albums without using a where condition.

    -
    Animesh

    Animesh Tripathi says:
    Hello

    Is there is no why select lines of two albums without using a where condition.

    -
    Animesh

    Without a doubt.

    There are only two lines in your table and then just a Select will do the job. (I'm kidding ;-))

    If you have a hierarchical data in your tables, it might be possible:

    with employee as
    (
      select 1 emp_id, 'ABC' ename, to_date('01-02-2013', 'DD-MM-YYYY') doj, null mgr_id from dual union all
      select 2 emp_id, 'ABC1' ename, to_date('02-02-2013', 'DD-MM-YYYY') doj, 1 mgr_id from dual union all
      select 3 emp_id, 'ABC2' ename, to_date('03-02-2013', 'DD-MM-YYYY') doj, 1 mgr_id from dual union all
      select 4 emp_id, 'ABC3' ename, to_date('04-02-2013', 'DD-MM-YYYY') doj, 2 mgr_id from dual union all
      select 5 emp_id, 'ABC4' ename, to_date('05-02-2013', 'DD-MM-YYYY') doj, 3 mgr_id from dual
    )
    select emp_id, ename, mgr_id manager_id, prior ename manager_name
      from employee
     start with mgr_id is null
    connect by prior emp_id = mgr_id
           and level <= 2;
    
    EMP_ID                 ENAME MANAGER_ID             MANAGER_NAME
    ---------------------- ----- ---------------------- ------------
    1                      ABC
    2                      ABC1  1                      ABC
    3                      ABC2  1                      ABC 
    
  • Case where the Condition when Clause Condition use

    Hello

    How can I use case in the where condition and in when I need to use a condition, be clearly
    I need to get the following
    and (case WHEN :PROMT = 'Closed' then
     status_date >= trunc(sysdate))  end)
    When I run the present, I'm missing keyword error.

    How can I solve this?

    I think you can do it just like this:

    ...
    and ( :PROMPT != 'Closed' or status_date >= trunc(sysdate) )
    ...
    
  • How to use the NAME OF THE MONTH where the condition in the date column?

    Hi guys,.

    He comes to the table.
    SQL > desc ACMINUTESPDFTEST;
    Name Null? Type
    ----------------------------------------- -------- ----------------------------
    DATE OF ACDATE
    TYPE VARCHAR2 (10)
    Here, I tried 2 following queries, but I couldn't get the correct result

    Select the types, seqno, acdate of ACMINUTESPDFTEST, where acdate like to_date ('NOV', 'MY');
    or
    Select the types, seqno, acdate from ACMINUTESPDFTEST where acdate = to_date ('NOV', 'MY');

    (for both the query, the result is the same)
    TYPES ACDATE
    ---------- ------------
    ROSE NOVEMBER 1, 10

    but the table with the following data:
    TYPES ACDATE
    ---------- ------------
    ROSE NOVEMBER 14, 10
    WHITE NOVEMBER 15, 10
    ROSE NOVEMBER 1, 10


    Any suggestion why I could not get a good result.

    You can do this:

    where to_char(acdate,'MON') = 'NOV'
    
  • Where the conditional statement

    Hello

    I'm trying to reuse this page so that it can be used by different areas of my request. Currently, it displays all tables in a particular schema. I would like to reuse so that it could be used by another page that displays only the tables of a particular schema with a particular value set to 'Y' or 'n'. I have tried using if / case identified in SQL and PL/SQL, but none work. My PL/SQL statement gives the error:

    Query cannot be parsed, please check the syntax of your query. (ORA-06550: line 1, column 9: PLS-00103: encountered the symbol "" when expecting one of the following: begin function package pragma procedure subtype type use form current cursor symbol "" has been omitted.) Ora-06550: line 2, column 18: PLS-00103: encountered the symbol "" when expecting one of the following: begin function package pragma procedure subtype type use form current)
    -----
    The code is:
    declare 
    q varchar2(4000);
    
    begin 
    q:= 'select UNIQUE_ROWID, 
    OET_TBL_NM,
    OEP_ACTIVE_IN
    from #OWNER#.VIEW_EDIT_DB
    where oeu_id = :P21_DB and OET_TBL_OWN_NM = :P21_SCHEMA ';
    if :P21_Repl != null then
    q:=q|| ' and OEP_ACTIVE_IN = :P21_Repl ';
    end if;
    q:=q|| ' group by OET_TBL_NM, oeu_id, OET_TBL_OWN_NM, OEP_ACTIVE_IN, UNIQUE_ROWID
    order by OET_TBL_NM, OEP_ACTIVE_IN ';
    The key is the: P21_Repl comparison, which is where I try to reuse this page (: P21_Repl would take a 'Y' or the value "n" of a page or be null on the other). Is that what the problem/solution any idea? Thanks for any help.

    Mike

    Published by: Gerd June 22, 2009 00:34

    Hello

    What about

    SELECT "UNIQUE_ROWID"
         , "OET_TBL_NM"
         , "OEP_ACTIVE_IN"
    FROM "#OWNER#"."VIEW_EDIT_DB"
    WHERE     oeu_id = :p21_db
          AND oet_tbl_own_nm = :p21_schema
          AND NVL( :p21_repl, 'X' ) = DECODE( :p21_repl, NULL, 'X', oep_active_in )
    GROUP BY oet_tbl_nm
           , oeu_id
           , oet_tbl_own_nm
           , oep_active_in
           , unique_rowid
    ORDER BY oet_tbl_nm
           , oep_active_in
    

    See you soon

    Ben
    http://www.munkyben.WordPress.com
    Don't forget to mark the answers useful or correct ;)

  • Forms 11 g-error during the compilation of pl/sql block having retained a procedure call

    Hello

    I'm getting following error in trying to compile a when the button trigger pressed with a stored procedure call forms 11g R2

    Error on line 0...

    Declaration ignored

    Forms a button trigger (when the button pressed)

    ----------------------------------------------------------------

    do_nothing;

    Stored procedure: (10g R2 database)

    ----------------------------------------------------------------

    create or replace procedure do_nothing AS

    BEGIN
    NULL;

    END do_nothing;

    Note: This procedure works for sql as SQL Developer or plu sql tools.

    Concerning

    user10503016 wrote:

    After validation of this request, I did some tests more and found Forms 11g R2 need a minimum version of database - 10.2.0.4. Is that the reason?, because my version of the database is 10.2.0.1.

    Yes, one of the reasons.

    Hamid

  • APEX 5.0 Interactive report (nopadding, how to set the line height)?

    APEX 5.0.

    Theme: 26. Productivity applications

    Interactive report region

    Where and how can I global set Dimensions height of the line and policies, etc., lines in interactive report?
    I use standard interactive report.

    Thank you

    user555867 wrote:

    Please help me in detail.

    The best way to get detailed help is to create an example on apex.oracle.com and share credentials of developer comments in the workspace here.

    I have:

    1 created a (= external CSS style sheet) file with the name 'ir_css_padding.css' local on PC (C:\tmp).

    2 added "Shared components"-> 'Static Application files'-> 'Download the file statistics Appl.': 'c:\tmp\ir_css_padding.css '.

    3. under "attributes of User Interface:

    (General properties)

    The value 'Statistics file prefix': ' #APP_IMAGES #ir_css_padding.css.

    'Media Type' value: text/css

    Why have you changed these settings? They are not relevant to the addition of static CSS files in the repository database. Read the help on line for these properties:

    Static file prefix

    Determines the virtual path of the Web server uses to point to static files when you use the #APP_IMAGES substitution string #.

    Do not specify what to do refers to files that are stored with your application definition in the database.

    For performance reasons, you can also store your application files on your Web server. Use a valid URL to refer to them.

    Media type

    Enter the Internet media type. An Internet media type is identifier into two parts for the formats of files on the Internet. A media type is composed of at least two parts: a type and a subtype and one or more optional parameters. This type of media used in the HTTP Content-Type header when the page is rendered.

    If both the values of page-level and the level of the application for the media Type are NULL, text/html is used.

    Two of these parameters must be null in your current environment.

    (The User Interface definition)

    "CSS File URL' value: 'text/css/ir_css_padding.css '.

    This parameter must use the static text of APP_IMAGES substitution string:

    &APP_IMAGES.ir_css_padding.css

    After that, I can't jerome in application. (See the only CSS text in the browser)

    --> WHAT IS THE PROBLEM?

    APEX is serving pages using the type of text/css media according to the incorrect media Type parameter described above. Remove and the app will return to normal.

    4. WHERE and HOW VALUE / reference the CSS file?

    I need this change for all interactive reports in my application, self think I can change my model that I use: 'interactive report Region '.

    Interactive report region isn't just a region container designed for use with interactive reports. It does not control the appearance of the interactive reports somehow. Not there at - it a report model for interactive reports. Their appearance can be changed using CSS.

  • Is it possible to make the condition depending on the sql statements in the data models

    Hi all

    Is it possible to include the condition based on sql statements in the data models.

    For example
    if (some parameter is not null)
    <sqlstatement name="STATEMENT_1">
    ...
    </sqlstatement>
    else
    <sqlstatement name="STATEMENT_2">
    ...
    </sqlstatement>
    Is something like this? Also, the good doc is available for ' how to take full advantage of the "data models" in BI Publisher?

    Thank you
    -Sookie

    Hello Sookie,
    I couldn't find the time to get a data model of demonstration of work for you, but I'll try to explain.

    First, write a PL/SQL package. Make sure that you set all the parameters of model of data such as a global variable in the default PL/SQL package.

    CREATE OR REPLACE
    package as employee
    function BeforeReportTrigger return Boolean;
    query_text varchar (2000);
    number of p_DEPTNO;
    END;
    /

    CREATE OR REPLACE
    package as body employee
    function BeforeReportTrigger return Boolean IS
    Start

    IF (p_DEPTNO = 10) THEN
    query_text: = select col1, col2, col3 from HR.
    elsif (p_DEPTNO = 20) THEN
    query_text: = select col1, col2, col3 hr_history.
    on the other
    query_text: = select col1, col2, col3 hr_history1.
    end if;
    Returns true;
    end;
    /

    Use this package in the default package in your data model. Check the "defaultPackage ="employee"in the following data model header.

    Sample data model
    ------------------------------












    --
    --
    --
    --

    Before running the query SQL, data engine reads the "before the release of the report" and all the texte_requete argument based on the p_DeptNo value. When executing the Q1, engine sqlQuery analyze the query ' & quert_text and replace it with the actual value. For example if the p_deptno = 10, the query will be "select col1, col2, col3 from HR.

    Try it...

Maybe you are looking for

  • Why-AirPlay stop working after updating IOS 9.3.1?

    I have I have Pioneer receiver SC75 of home theater feature AirPlay. We threw iTunes music on it over the airtime from my iPad, my iPhone the iPhone to my wife 6 and 6. Recently, I've updated my iPad and iPhone iOS 9.3.1.  Since then, I have not been

  • enable/disable serial port

    Hi all I'm using Labview to communicate with a virtual serial port to PIC de Microchip. Occasionally the comms set is lost. To retrieve the connection I open Device Manager then right click the defective comm port, then select Disable (a red cross ap

  • Impossible to Trigger list items

    Hello I use Listview with GroupDataModel. I used StandardListItem to display rows. My Xml looks like this. import bb.cascades 1.0 Page { Container { layout: StackLayout { } ListView { objectName: "photoslist" topPadding: 5 leftPadding: 5 bottomPaddin

  • Application for Smartphones CDMA/GSM blackBerry 9650 on

    Hi all I am interested in buying a 9650, but am confused about one thing: http://NA.BlackBerry.com/eng/devices/blackberrybold/bold_specifications.jsp BlackBerry Bold 9650: Networks GSM/GPRS/EDGE quad-band: 850/900/1800/1900 MHz Single band: 2100 MHz

  • exetnsion files have changed

    All program files and shortcut have changed the extension .lnk and icon changed to microsoft word7, clicking on it files cannot open word 7 is open corupetdly.