Is it possible to use the default value as sql expression in obiee 11g report?

Hi all

Is it possible to use the default value as sql expression in obiee 11g report?. Actually what I'm trying to make is that we send an ibot users. They want the same default values that are assigned in the command prompt in the report. So when we send the ibot it shows the report for default values assigned in the report criteria which is obsolute. As a solution, I kept the report in a dashboard page and send the dashboard like ibot page. But the problem here is that I can send only pdf format. Is it possible to do so at the level of the report (without using session variables). I want something like that

Date between Date ' @{PV1} {Timestampadd (SQL_TSI_DAY,-90, CURRENT_DATE)} and Date ' @{PV2} {CURRENT_DATE}

Thanks in advance

Thank you

AJ

http://www.w3.org/2001/XMLSchema-instance"container ="http://www.w3.org/2001/XMLSchema"xmlVersion ="201201160' xmlns:sawx="com.siebel.analytics.web/expression/v1.1" > "

"Question time '." Date '.

"Question time '." Date '.

BOX WHEN (DAYOFWEEK (cast (max (CURRENT_DATE) date)) = 1) THEN TIMESTAMPADD (SQL_TSI_DAY,-2, cast (max (CURRENT_DATE) as date)) WHEN (DAYOFWEEK (cast (max (CURRENT_DATE) date)) = 2) THEN TIMESTAMPADD (SQL_TSI_DAY,-3, cast (max (CURRENT_DATE) as date)) WHEN (DAYOFWEEK (cast (max (CURRENT_DATE) date)) = 3) THEN TIMESTAMPADD (SQL_TSI_DAY,-4, cast (max (CURRENT_DATE) as date)) WHEN (DAYOFWEEK (cast (max (CURRENT_DATE) date)) = 4) THEN TIMESTAMPADD (SQL_TSI_DAY-5 (, cast (max (CURRENT_DATE) date)) WHEN (DAYOFWEEK (cast (max (CURRENT_DATE) date)) = 5) THEN TIMESTAMPADD (SQL_TSI_DAY,-6, cast (max (CURRENT_DATE) as date)) WHEN (DAYOFWEEK (cast (max (CURRENT_DATE) date)) = 6) THEN TIMESTAMPADD (SQL_TSI_DAY, 0, cast (max (CURRENT_DATE) as date)) WHEN (DAYOFWEEK (cast (max (CURRENT_DATE) date)) = 7) THEN TIMESTAMPADD (SQL_TSI_DAY-1, cast (max (CURRENT_DATE) date)) END

Tags: Business Intelligence

Similar Questions

  • Using the default values in INSERT INTO... SELECT...

    Hello
    I want to do after insertion in Oracle 10 g

    INSERT
    IN tab1
    (
    x 1,
    x 2
    )
    SELECT
    NVL (Y1, default)
    Y2
    Of THE tab2

    but oracle throws missing expression error. I do not want to override the default values because it involves changing the code for any change of default. I guess Oracle transforms that SELECT tab2 while context, but is possible to carry out the INSET above?

    Published by: ponn_raj on January 14, 2009 04:52

    If you are going to need indeed a' by default-getter "function, I would probably go something like this."

    SQL>  create or replace function get_default(p_table varchar, p_column varchar2)
       return anydata
    is
       l_data_default_char    long;
       l_data_default_num     number;
       l_data_default_date    date;
       l_data_type            user_tab_columns.data_type%type;
       l_data_default         long;
       l_any                  anydata;
    begin
       select data_default, data_type
         into l_data_default, l_data_type
         from user_tab_columns
        where table_name = upper(p_table)
          and column_name = upper(p_column);
    
        if l_data_type in ('CHAR', 'VARCHAR2') then
          execute immediate 'begin :1 := ' || l_data_default || '; end;' using out l_data_default_char;
          l_any := anydata.convertvarchar2(l_data_default_char);
        elsif l_data_type in ('NUMBER') then
          execute immediate 'begin :1 := ' || l_data_default || '; end;' using out l_data_default_num;
          l_any := anydata.convertnumber(l_data_default_num);
        elsif l_data_type in ('DATE') then
          execute immediate 'begin :1 := ' || l_data_default || '; end;' using out l_data_default_date;
          l_any := anydata.convertdate(l_data_default_date);
        end if;
        return l_any;
    end get_default;
    /
    Function created.
    
    SQL>  create table t (
       a varchar2(5) default '',
       b varchar2(5) default 'null',
       c varchar2(5) default null,
       d varchar2(5) default '''',
       e date default sysdate,
       f integer default 1+1,
       g varchar2(3) default upper('a')
     )
    /
    Table created.
    
    SQL>  select column_name,
           get_default(table_name, column_name).accessvarchar2() c,
           get_default(table_name, column_name).accessnumber() n,
           get_default(table_name, column_name).accessdate() d
      from user_tab_cols
     where table_name = 'T'
    /
    COLUMN_NAME C              N D
    ----------- ---------- ----- -------------------------
    A
    B           null
    C
    D           '
    E                            15.01.2009 22:14:51
    F                          2
    G           A                                         
    
    7 rows selected.
    
  • I can't have my Subvi simply use the default values for some of its entries?

    I use the code for a DS345 machine, using the sample code from here: http://sine.ni.com/apps/utf8/niid_web_display.download_page?p_id_guid=E3B19B3E9149659CE034080020E748...

    I use version 7.0 (because I'm in 7.1).

    Anyway. I managed to get the proper waveform I wanted, just stored waveform in the default values and frequency input, so I can some frequency I want input. When I run the example VI itself, it displays the waveform for the machine just that very well, however, when I use this example VI as a Subvi, it didn't come out of the machine data.

    Any ideas?

    Thank you

    Edit:

    When I say defaults for some of its entries, I mean the values that are usually connected by a user, controls that are not 'inputs' in VI.

    I understood the question, and I must say that I am embarrassed. If you look at the code, I'm feeding a resource VISA name, when the Subvi needs just a chain with the GPIB address number.

  • How to use the default value of a column in a table in insert or upda

    Hello

    I try to use the values by default so that the user should not have to enter data, but when I select default type and a default, I see an error message if I try to add a new line.

    How can I use a default value to a column in a tabular presentation?

    Gouri

    Published by: user1046395 on April 3, 2009 09:58

    Gouri,

    You can change simply to attribute each report column. For example,.

    To set the default date.
    Default type: PL/SQL Expression of function
    Default: sysdate

    To set the default text,
    Default type: PL/SQL Expression of function
    Default: * "CLERK."

    If you still get an error, what is the error message?
    Tarraf

  • Use the default values of the parameters when calling FND_REQUEST. SUBMIT_REQUEST

    Hello
    I submit a program concurrent with FND_REQUEST. SUBMIT_REQUEST in pl/sql.
    The simultaneous program settings are attached to sets of value and have default values.

    I want to give these parameter values only, which do not have the default when sending the request of pl/sql.

    That doesn't seem to work. Is it possible that I can get the defaults settings kick when I submit pl/SQL?

    Thank you
    SITA

    Published by: user451773 on December 3, 2012 05:05

    Published by: user451773 on December 3, 2012 05:06

    You will have to code a "preliminary stage" for it... aka... a function that calls your conc.req.

    the FND_REQUEST. SUBMIT_REQUEST will ask you to provide all the necessary at the start of the conc.req parameters. It's also what happens when you start through forms. So, you will need to code something that checks the settings which are given by you and for those not given not check LOV configuration and query by default.

    This is how you can solve this problem. It will need an additional coding.

    Kind regards
    Johan Louwers.

  • ERR 126 cannot load "" DLBAPRP. "» DLL. Using the default values. This message keeps me from printing some forms of online sites.

    For example, when I do my banking online, it keeps me print my statements.

    This happens on other browsers? Please see http://support.microsoft.com/kb/918730 this should help with your problem.

  • Remove the default value drop-down list

    I am currently working with Acrobat Pro XI version. I want to know if it is possible to remove the default value in a drop-down list.

    When the list less than 4 elements, it is possible to deselect the default value by pressing the spaces below. However, when there are no more elements, it is more possible.

    I read that you need to include white space as a component in the list of elements, however, then you will see an empty list item when people work with the pdf that is not preferable.

    So, nobody how to remove the default value in a drop-down list?

    Thank you!

    OK, I found a perfect solution to my problem by using FormsCentral for Acrobat. Here's what you need to do:

    Step 1:

    -Open FormsCentral

    -Create new form (choose the blank form)

    -Click the drop-down menu to create a new drop-down list

    -Fill out the items in the list by clicking on the timeline (you can also add a label if you want)

    -Click on: file > save as PDF form...

    Step 2:

    -Open the PDF saved (you will now see a blank pdf with a menu drop-down)

    -Click on: Tools > forms > Edit Form (when a pop-up window indicates that you should save a copy of the document in order to make changes, press 'Save a copy' and open the file with Acrobat pdf copy)

    -Select the drop-down list, the drop-down list to copy and paste it into the desired document

    Now you have a drop down without a default choice. Remember that you can not change the items in the drop-down list, because we will choose a default choice and you must use the copy pdf file once again. As long as you do not click on a list item, it is not choose a default choice.

    It is not a perfect solution, but it works for me.

    Good luck and thanks!

  • How to set the default value of a column from the value of the 2 columns given

    Is it possible to set the default value for a column A, as the concatenated values of columns B and C of the create table statement itself without using the trigger.

    for example, in a line, if column B is 'James' and column C is "smith" then the column has must be "james Smith".
    in another line if column B is 'Bob' and column C is "Taylor" then column should be "Bob Taylor"

    Thank you
    YG

    Yes, it is possible. But what is your version of the database? Try to use "virtual column. Search for a virtual column in the following link.
    http://www.Oracle.com/technology/pub/articles/Oracle-database-11g-top-features/11g-schemamanagement.html
    http://download.Oracle.com/docs/CD/B28359_01/server.111/b28286/statements_7002.htm

  • Application of interactive report of apEx using the last value of the point

    My interactive report is based on a field, but the value of the field is not applied when executing the query

    SELECT *.

    MyTable FROM A

    where A.registration_year =: REGISTRATION_YEAR_ITEM

    I created an item in the page REGISTRATION_YEAR_ITEM

    When I run the query, I want the user to type in a year, and then run the query and display the corresponding results.

    The query always seems to use the default value of points instead of the current value

    How can I do use the value of the current field?

    I also tried the V method, but produce the same results

    where A.registration_year = v('REGISTRATION_YEAR_ITEM')


    The environment is ApEx 312, 10.2.0.4 database

    Unfortunately, the upgrade is not an option


    Thanks for any help you can offer

    S.Bovin wrote:

    My interactive report is based on a field, but the value of the field is not applied when executing the query

    SELECT *.

    MyTable FROM A

    where A.registration_year =: REGISTRATION_YEAR_ITEM

    I created an item in the page REGISTRATION_YEAR_ITEM

    When I run the query, I want the user to type in a year, and then run the query and display the corresponding results.

    The query always seems to use the default value of points instead of the current value

    How can I do use the value of the current field?

    Add the REGISTRATION_YEAR_ITEM to the IR Page elements to submit property. He will submit the current value in session state.

    Why bother with the page element at all? Why users can't create just an IR filter?

    I also tried the V method, but produce the same results

    where A.registration_year = v('REGISTRATION_YEAR_ITEM')

    For performance reasons, use bind variable notation when you reference values from session state in SQL queries.

    The environment is ApEx 312, 10.2.0.4 database

    Unfortunately, the upgrade is not an option

    Why not? That it will provide you with a safe and supported environment and your users with a much better life.

  • Set the default value to select the list

    Hello
    I have a question about the page, which is a selection list
    And I have a LOV associated with this issue, which is a database query.

    How one of the values of this LOV to a default value of this selection?
    I need this value that appears first, instead of a Null value.

    Thank you!

    That's right - use the default value of your definition of the element box.
    Take a look at this post:
    Re: previous option selected as default

    Maybe you will find it useful...

  • Display the default value for POPUP LOV

    Hello

    How to display the default value for the element whose type is LOV POPUP?

    Version 4.2 of the apex

    Thank you.

    Hi Sunil,

    Sunil Bhatia wrote:

    Change the default value to "SQL query"

    And set the default value:

    SELECT PERSON_ID PEOPLE WHERE USER_NAME = lower(:APP_USER);

    -Sunil Bhatia

    There is no default Type-> "SQL query".

    BO123 :

    Change the default value--> "Body of the PL/SQL function" Type and value by default to:

    DECLARE
    
      L_PERSON_ID PEOPLE.PERSON_ID%TYPE;
    
    BEGIN
    
      SELECT PERSON_ID
        INTO L_PERSON_ID
        FROM PEOPLE
       WHERE USER_NAME = lower(:APP_USER);
    
      RETURN L_PERSON_ID;
    
    EXCEPTION
      WHEN NO_DATA_FOUND THEN
      RETURN NULL;
    
    END;
    

    Better make a packaged function and just call that work instead of writing all the code by default the value of the item.

    Kind regards

    Kiran

  • How to set the default value of the attribute with a sequence number? Is it possible to add a string to seq.no. like abc0001?

    Mr President.

    How to set the default value of the attribute with a sequence number? Is it possible to add a string to seq.no. like abc0001?

    Concerning

    For the date, you can use groovy expression adf.currentDate to set the current date. reference http://adfgouravtkiet.blogspot.in/2012/11/how-to-set-default-values-for-entity.html

    You already have ways to use the sequence.

    How do you add a new value in the form. You're creating a new line of your page (user interface) and by engaging with validation operation? Unless you commit you will not be able to see anything in the table.

    Thank you

  • my firefox keeps reseting whenever I close all the options, I changed to this topic to reset to the default values, why? is this some kind of error? IM using windows xp

    Well whenever I use firefox I have watch some youtube vids watch stuff on jtv, maybe even play some runescape and then after that I have quit firefox everything resets to the default values, and I don't know why it does this I have scanned my computer with anti virus/malware/spyware and nothing seemed

    These steps help?

    • Rename the * prefs.js in the profile folder in * prefs_2.js (for backup, but Firefox would not be able to see them).
    • Exit Firefox via file - Exit menu;
    • Restart Firefox, look for the question.
  • Is it possible to change the default channel strip settings?

    Is it possible to change the default channel strip without having to depend on models?

    For example, I always wish to have:

    • Follow the value Name = 3 lines instead of the default line 1.
    • 'Follow the icons' checkbox deselected
    • Always follow box color
    • Control surface Bars always deselected

    Stuff like that... This apples to any screen that is affected by the Configuration of channel strip window. (View mixer or titles).

    Thank you!

    Is it possible to change the default channel strip without having to depend on models?

    NO.

    But why not use a template? You use a template of this moment anyway, the default value of project. Just change and set the Start Action that you configured

    Fact

    Edgar Rothermich - LogicProGEM.com

    (Author of "Graphically improved manuals")

    http://DingDingMusic.com/manuals/

    "I could receive some form of compensation, financial or otherwise, my recommendation or link."

  • change the default values of a secondary vi

    I want to initialize multiple devices connected via gpib using several secondary school (one for each device). Each type of device (temperature monitor, meter) has its own sub - VI (or better a vi model) for the configuration. The Subvi takes an address gpib only as a parameter. The vi is loaded in the secondary, the user is able to change the configuration via the controls on the front panel. Then he pulls the "init" button and the vi is executed (which writes the data to the front of the device).

    Currently, these config vi charge their default values for the file vi itself (current brand of default values). Is it possible to change this default value before running the Subvi, without losing flexibility?


Maybe you are looking for