Filter using the variable of presentation: null problem

I have a report with filter based on a variable presentation.

"CLIENT_NAME = ' @{VAR_CUSTOMER}"

How can I make the filter select all lines when my presentation variable is not initialized or initialized with a constant such as ' * all CUSTOMERS *'?

Thanks in advance,
Alex

Hello

Try

CLIENT_NAME = ' @{VAR_CUSTOMER}' OR @{VAR_CUSTOMER} {'* GUESTS *'} = ' * ALL CUSTOMERS

Concerning
John
http://obiee101.blogspot.com/

Tags: Business Intelligence

Similar Questions

  • You should have seen the date using the variable of presentation

    Hi all

    I am facing a problem in the display of the selected date of the guest in the report using the variable of presentation. I have a guest of data (calendar prompt), where the user selects the value. I take this value in the variable RBAP of presentation and report when I try to display this value using the same presentation variable, I get my date in the following format

    "TIMESTAMP 2010-10-22 00:00:00 '.

    I'm just using ' @{RBAP}' in the formula in the column.

    I want to show my date in the format DD/MM/YYYY. How to do this?

    I have used CAST (' @{RBAP} {' as DATE} and tried to change the data to dd/mm/yyyy format, but it does not work.)

    Please suggest

    Thank you
    Ronny

    in the default section to write the SQL...

    Select the OPTION case SENSITIVE WHEN 1 = 0 THEN AnyExistedDateColumn CURRENT_DATE of OTHER END OF SubjectArea

  • Report not loading - using the variable of presentation

    Hi all

    I use a variable presentation in the guest of my dashboard and going to the filter in the report. The report will give me no result even when it meets the criteria. I have to purge the cache and then it will display the results. I do 20 - 30 times a day and I don't know what the problem is. Can someone guide me what needs to be done to solve this problem.

    Thank you.

    Hello
    Yes like angelique suggests trying to create the same report in another page with variable presentation online. I do not have that we might have this problem with cahce. Even try to make protected filter (click the filter option, you can see it).

    Kind regards
    Srikanth

  • Capture selected vales of Date dates invite you using the variable of presentation

    We have an obligation to display the date on the text of the report / whatever the user selects the date from the command prompt.
    We have a date called created and used operator is between.
    Can someone help me in this area, the use of variable presentation to capture the values of a single Date column of creation?

    In the criteria to add more than 2 columns for Date of creation
    and use these expressions foreach and hide them
    MAX (RMAX (creation Date))
    MIN (RMIN (creation Date))

    In your story view we will call @1 and @2. assuming that these 2 columns are first from left to right.

    No need to use variables of the presentation.

    Mark as correct

    Thank you

    Published by: Srini VIEREN on April 22, 2013 16:47

  • Date format changes in the variable of presentation

    Hello
    I have a problem with the date stored in the variable of presentation.

    I have simple guest with the calendar control (default value date is set to session or deposit to the current date variable). Selected date is stored in the variable of presentation PP_DATE.
    I have a simple report with the title to view the contents of the variable PP_DATE.

    And now the problem.

    When I navigate to the page of dashboard with this report, I will get date of variable PP_DATE in a format (there are difference when I use the variable session or repository). After that I have will push the Start button, I get a different date format of variable PP_DATE.

    Screenshots are stored and described in this PDF file: [PDF with screenshots: https://docs.google.com/uc?export=download & id = 0B2LOPOBteIShMDRmYTJlYTItNmYyZC00ODdkLWE5NjktNzI1N2RlNWMwZjBk]

    There is difference between session variable and repository. When I use the reference variable I'll get "TIMESTAMP."... "the variable PP_DATE, which is the default initialization in variable Repository Manager. I tried to remove the boot by default, but I automatically added after saving changes.
    What is the default value of crimped guest of session variable, I get another date variable PP_DATE format that refers to DATE_TIME_DISPLAY_FORMAT = "yyyy-mm-dd hh:mi:ss.mss" (from NQSConfig.ini). I changed standard value DATE_TIME_DISPLAY_FORMAT ' yyyy/mm/dd hh' to "yyyy-mm-dd hh:mi:ss.mss" because I am reading data from excel, where dates are stored in the format MSSQL. But this isn't the reason for my problem. I have the same problem also with standard DATE_TIME_DISPLAY_FORMAT.

    The result of this strange behavior is that I get errors when I do some calculations (e.g. TimeStampDiff) to the variable PP_DATE. I get the error when I am accessing the dashboard page. Everything is ok after that I will push the Start button.

    You have some tips?

    Thank you

    Kishore Guggilla wrote:

    But I need sometimes current day default value in the command prompt, sometimes first day of the month etc...

    How do you manage that using variables to repository then?

    I have a block of initialization to initialize a few variables to repository.
    Initialization block a 1 day refresh interval.

    Select trunc (sysdate, 'mm'),
    LAST_DAY (trunc (sysdate, 'MM')),
    trunc (sysdate, 'DD'),
    trunc (sysdate, 'YYYY'),
    TO_DATE (' 31,12' | to_char (sysdate, 'YYYY')),
    TO_NUMBER (to_char (sysdate, 'YYYY')),
    TO_NUMBER (to_char (sysdate, 'MM')),
    TO_NUMBER (to_char (sysdate, 'DD')),
    trunc (ADD_MONTHS (sysdate-1), 'MM'),
    trunc (LAST_DAY (ADD_MONTHS (sysdate-1))),
    trunc (ADD_MONTHS (sysdate-2), 'MM'),
    trunc (LAST_DAY (ADD_MONTHS (sysdate-2))),
    trunc (ADD_MONTHS (sysdate,-3), 'MM'),
    trunc (LAST_DAY (ADD_MONTHS (sysdate,-3)))
    of the double

  • How to change the value of string clustered, to implement using the node value of property instead of writing directly on the flow of data or using the variable

    new to labview :-) and I have a problem when I want to change the value of a string in bunches, and I want to implement this using the node value of property instead of writing directly to the stream or by using the variable, enclosed is the picture.   No matter, I have change in cluster (control) or value of Popery out (indicator) cluster, the value (sensor 7) dataflow keeps unchanged even I gave the new value by value of property node. Thank you to give me some advice about this.

    Hi GerdW

    Thanks a lot for your answer. The reason I'm stubbornly tring to break the flow of DATA is: we have a test system that have about 100 screws, they have a few connected flow, some of them will be unbundling a cluster dataflow chain to check the value in order to make the different cases.  Now I want to insert user event by changing the control and influential cases during run time.

    As I initially uses a global variable (to control cases) instead of unbundle string data flow, it works well.  But then, I found there are a lot of screws that are using the string unbundle.  One of the 'lazy' means, I tried is to change the value via the property node (because that way, I did not need to find all the places where using the unbundle string and replace them with the global variable), then I noticed a problem with "dataflow", the value in the stream of cluster in fact will not be changed by changing the value of the property node.

    I did a test with VI simple (like the picture in last post), and after reading your advice, I tell myself that I need to understand the concept of "DATAFLOW" in labview, it seems that my "lazy" way can not work in this scenario.

    I have attached the criterion VI here, have you furthur suggestions on what I can do in this case?

    Mant thanks!

    Minyi

  • Dynamically create a file using the variable

    HI, I am facing a problem in creating file on the time of execution using the variable.
    I have a variable file name. In the tab refresh, I wrote a query SELECT TO_CHAR (SYSDATE, 'YYYY, MM, DD') | 'TEST' FOR DOUBLE. I tested the variable and its value is correct.

    I've created an interface allowing to extract the data in the table and store it in the file. I assigned the variable file name in the file.

    Now when I run the interface... the file is created, but the header is created in different file and its name is ambiguous, g (19) and the data are placed in the other file with the name that matches the value of the variable filename...

    It is two ODI creates two files a single header and other data...

    When I run my interface in a package of the file created perfectly... but one i want to use package I want to create a file via the interface only running

    What is the name of the second file? (the file that does not have the name of the variable)

  • Execution plan will change if I use the variable binding instead of the literal value?

    Hi guys,.

    Suppose I have a select "... Of... WHERE ID = 2 and... "if I go to use the variable binding instead of the literal value 2," SELECT... " Of... WHERE ID =: p_id and... ", the execution plan change?
    I test multiple statements, the plan does not change, but I don't know if it would even as well as in some other cases.
    Someone at - it ideas?

    Thank you very much.

    Anneso wrote:
    Hi, sorry for the unclear post, it's 11 GR 2.

    As Sybrand already mentioned, there are a lot of change that came in the implementation of the bind variable in some versions of Oracle db. Since you're on 112, it is still true with the introduction of Adaptive Cursor Sharing . Please have a read on it since the post below written by the development of Oracle optimizer group.
    http://blogs.Oracle.com/optimizer/entry/why_are_there_more_cursors_in_11g_for_my_query_containing_bind_variables_1

    Aman...

  • How to use the variable in the path of the source of an image in flex

    Hello
    I just want to know that how to use the variable in the path of the source of an image in flex

    Hello
    I just want to know that how to use the variable in the path of the source of an image in flex

  • Date show invites by using the calendar and presentation Variables

    Hi all

    That's what it takes...

    I need to create a two prompts (from_date and to_date) on a date column so that I can filter the data by using a condition. This is how I do

    I created two guests (edited the formula) and passing values to two variables var_from and var_to presentation. In the report, I limit the query on assistance between motor coaches for both the presentation variable. Everything works fine but the problem is I need display var_from and var_to in my report also.

    I'm referencing variables like ' @{var_from}' and ' @{var_to}' but I get two columns as white. I don't really know why I get empty values for these two columns only when I am able to filter my report with success on the basis of the date values in the guests...

    Just to metion... in my database, I have values in m/d/yyyy format only. So I am able to use the calendar successfully

    Any help on this would be much appreciated...


    Thank you
    -Ronny

    Ronny,
    Drafts of answers do you see? ID wait, but on the dashboard when you set filters, you should see values that crosses?
    You can extend the syntax of the variable closely and provide a default value, so when you work in the answers you can see what it looks like,

    something like @{var_from} {January 1, 2010 ""}

    Also you can reference variables in the title, the subtitle or the narrative views if you want.

  • Parameter IN or OUT to missing index: 1 using the variable date ODI.

    Hello

    I created the variable of data type date as EXTRACT_FROM_TS and also the default value for this.
    Now I use this variable as a filter in the source table in the design of the Interface as below...
    LAST_UPDATE_DATE > = #p_extract_from_ts where LAST_UPDATE_DATE is the field in the source database with date data type not null not forced...
    I have lkm hv used SQL for Oracle...

    Above variable refresh and interface scenario running one after another in ODI package...
    Variable gets refresh every time successfully, but Interface fails at the step of loading data... error message as below...


    ODI-1227: SrcSet0 (load) task fails on the source of ORACLE R12DEV connection.
    Caused by: java.sql.SQLException: parameter IN or OUT to missing index: 1
    + oracle.jdbc.driver.OraclePreparedStatement.processCompletedBindRow(OraclePreparedStatement.java:1890) +.


    If we remove the filter LAST_UPDATE_DATE > = #p_extract_from_ts, then it works well...

    I do not know why this error pops up on adding filter... Please help on this...


    Thank you
    Roshan Y

    Hello

    put a step DECLARATION above all. After that in my opinion, it is better to put a TO_CHAR().

    Try putting your variable in text mode and change your filter in

    TO_CHAR (LAST_UPDATE_DATE, 'YYYYMMDDHHMI') > = TO_CHAR(#PROJ.) P_EXTRACT_FROM_TS, "YYYYMMDDHHMI")

    In your operator if you click on the variable whose value you see?

  • In a table by using the Collection update of nulls

    I use collections to create a form in a table. However, I can't get the code to work. Could you please look at my logic and let me know what I am doing wrong?
    Apex version: 4.1
    1 process name: load Collection
    a. process Point: On Load - before the header
    Condition (b) process:
    i. the condition Type: PL/SQL expression
    + ii.     Expression:
     not apex_collection.collection_exists(p_collection_name => 'STAKEHOLDERS_COL')
    +
    c. code:
    if apex_collection.collection_exists('STAKEHOLDERS_COL') = TRUE then
       apex_collection.delete_collection(
             p_collection_name =>'STAKEHOLDERS_COL');
    end if;
    apex_collection.create_collection_from_query(
        p_collection_name => 'STAKEHOLDERS_COL',
        p_query => 'select id
                   , stakeholder_name
                   , stakeholder_role_id
                   , primary_contact_yn
                   , receive_notification_yn
                   , ''O'' original_flag
                   , wwv_flow_item.md5(stakeholder_name, stakeholder_role_id, 
                     primary_contact_yn, receive_notification_yn) 
                   from eba_prjv_proj_stakeholders,
       p_generate_md5 => 'YES'
    );
    * 2.     Report on the collection:
    a. query:
    select 
    apex_item.hidden(1,c001) id,
    apex_item.popupkey_from_query(2,c002,'select user_name d, user_name r from eba_prjv_app_users order by 1', 10) name,
    apex_item.select_list_from_query(4,c003,'select role_description d, id r from eba_prjv_stkhlder_roles order by role_code', 10) role,
    apex_ITEM.SELECT_LIST(5,c004,'N','Yes;Y,No;N') primary_contact_yn,
    apex_ITEM.SELECT_LIST(6,c005,'N','Yes;Y,No;N') receive_notifications_yn,
    apex_item.hidden(7, c006) status,
    apex_item.checkbox(8, seq_id) chkbx,
    apex_item.hidden(9, seq_id) seq_id
    from apex_collections
    where collection_name = 'STAKEHOLDERS_COL'
    AND c006 IN ('O','N','U')
    * 3.     I have a button 'Add a line' add a blank line for inserts. The button "submit page" REQUEST As "ADD". *
    * 4.     The process of adding new line: *.
    a. process Point: after submit - by the calculation and Validation
    b. process of Condition: what key - add row
    c. code:
    begin
    apex_collection.add_member(
    p_collection_name => 'STAKEHOLDERS_COL',
    p_c006 => 'N',
    p_generate_md5 => 'YES' );
    end;
    * 5. I have a button Delete who submits the request page = 'DELETE '. *
    * 6.     Collection update process:
    a. process Point: after submit - by the calculation and Validation
    + b.     Condition of process:
    REQUEST != 'ADD'
    +
    c. code:
    DECLARE
    l_status VARCHAR2(1);
    l_seq_id NUMBER;
    l_original_md5 VARCHAR2(4000);
    l_array_md5 VARCHAR2(4000);
    
    BEGIN
    
    FOR i IN 1..apex_application.g_f01.count LOOP
    
    -- Check previous status of Collection Member
      
       SELECT c006, c007 INTO l_status, l_original_md5
       FROM apex_collections
       WHERE 
       collection_name = 'STAKEHOLDERS_COL'
       AND seq_id = apex_application.g_f09(i);
    
    IF l_status = 'N' THEN
       l_status := 'N';
       
    ELSE
       SELECT wwv_flow_item.md5(apex_application.g_f02(i)
       , apex_application.g_f04(i)
       , apex_application.g_f05(i)
       , apex_application.g_f06(i))
       INTO l_array_md5
       FROM DUAL;
       
       IF l_original_md5 != l_array_md5 THEN
          l_status := 'U';
       END IF;
    END IF;
    
    
    IF l_status IN ('N','U') THEN
       
       apex_collection.update_member(
       p_collection_name => 'STAKEHOLDERS_COL'
       , p_seq => apex_application.g_f09(i)
       , p_c001 => apex_application.g_f01(i)
       , p_c002 => apex_application.g_f02(i)
       , p_c003 => apex_application.g_f04(i)
       , p_c004 => apex_application.g_f05(i)
       , p_c005 => apex_application.g_f06(i)
       , p_c006 => l_status
       , p_c007 => l_original_md5
     );
    END IF;
    END LOOP;
    IF :REQUEST = 'DELETE' THEN
       FOR i IN 1..apex_application.g_f08.count LOOP
       -- Check previous status of Collection Member
     
      SELECT seq_id, c006 INTO l_seq_id, l_status
      FROM apex_collections
      WHERE collection_name = 'STAKEHOLDERS_COL'
      AND seq_id = apex_application.g_f08(i);
    
      IF l_status = 'N' THEN
         apex_collection.delete_member(
         p_collection_name => 'STAKEHOLDERS_COL'
         , p_seq => l_seq_id
        );
      ELSE
        apex_collection.update_member_attribute(
        p_collection_name => 'STAKEHOLDERS_COL'
        , p_seq => l_seq_id
        , p_attr_number => '6'
        , p_attr_value => 'D'
       );
      END IF;
     END LOOP;
    END IF;
    
    end;
    * 7.     Update the collection table
    a. process Point: present - according to calculation and Validation
    b. process of Condition: If the key (APPLY_CHANGES)
    c. code
    DECLARE
    l_table_md5 VARCHAR2(4000);
    l_collection_md5 VARCHAR2(4000);
    BEGIN
    
    FOR c1 IN (SELECT c001, c002, c003, c004, c005, c006, c007,seq_id
    FROM apex_collections
    WHERE collection_name = 'STAKEHOLDERS_COL'
    ) LOOP
    
    IF c1.c006 = 'N' THEN
       insert into eba_prjv_proj_stakeholders
                ( STAKEHOLDER_NAME,
                 STAKEHOLDER_ROLE_ID,
                 PRIMARY_CONTACT_YN,
                 RECEIVE_NOTIFICATION_YN
                 )
                values
                (c1.c002,
                 c1.c003,
                 c1.c004,
                 c1.c005            
                );
    ELSIF c1.c006 = 'D' THEN
       DELETE FROM eba_prjv_proj_stakeholders
       WHERE id = c1.c001;
    ELSIF c1.c006 = 'U' THEN
       -- Check the record hasn't been updated since the query
       -- Get MD5 checksum from the Table
      
     SELECT wwv_flow_item.md5(STAKEHOLDER_NAME, STAKEHOLDER_ROLE_ID, PRIMARY_CONTACT_YN, RECEIVE_NOTIFICATION_YN)
       INTO l_table_md5
       FROM eba_prjv_proj_stakeholders
       WHERE id = c1.c001;
       -- Compare the checksum values and if they are different, raise an error.
       IF l_table_md5 != c1.c007 THEN
          raise_application_error( -20001
          , 'Current version of data in database has changed '||
            'since user initiated update process.');
         return;
      END IF;
    
      UPDATE eba_prjv_proj_stakeholders set
      STAKEHOLDER_NAME = c1.c002,
      STAKEHOLDER_ROLE_ID = c1.c003,
      PRIMARY_CONTACT_YN = c1.c004,
      RECEIVE_NOTIFICATION_YN = c1.c005
      where id = c1.c001;
    end if;
    end loop;
    apex_collection.delete_collection( p_collection_name => 'STAKEHOLDERS_COL' );
    END;
    At the end of the process, I see null values inserted in my table. The report also displays null values.

    Published by: jaouad khalifi on August 17, 2012 04:26

    Published by: jaouad khalifi on August 17, 2012 04:42

    Published by: jaouad khalifi on August 17, 2012 04:46

    Published by: jaouad khalifi on August 18, 2012 02:03

    Hello

    I changed and then brought back to the State that you had.

    The problem here is that you have status and Seq_id returned with APEX_ITEM. HIDDEN, but you have not selected the Show check box for those columns attribute report tab.

    Thus there is no f06 and f09 only named elements in your HTML DOM and therefore no APEX_APPLICATION. G_F06 and G_F09. If your processes

    FOR correct here is what you do

    1. mark the status and Seq_id as indicated in the report attribute tab columns
    2. change the ACE status display hidden to report column Standard. Change display of the Seq_id also report Standard column

    Note that when a column is not marked to show in the report he becomes any and you don't see the associated items in the DOM HTML.

    See you soon,.

  • Cannot use the variable in the Interface.

    Hello

    I create a variable in the reference to 11g odi below

    V_name = FTClient

    DataType = alphanumeric

    default value = "BANK 1"

    I create a filter on the source table to pull records only for 1 BANK and talk CELL_SRC_TBL1. CLIENT = #FTClient in the filter.

    But when I try to execute its error display interface.

    "Caused by: java.sql.SQLSyntaxErrorException: ORA-00936: lack of expression.

    Thank you

    Paul

    You use ODI 11? If so the name of the variable must bee all uppercase and when you pass too!

    I hope this can help you!

  • If var! = NULL or if the variable is not NULL which is more correct?

    Hello Experts

    Which of the following is better?


    Also when assign us a variable (type nvarchar) null including notation should we use?

    new_address = NULL;

    or

    new_address = ";

    declare
    new_address ADDRESS. ADDRESS TYPE %;
    Start

    new_address: = 'a ';
    If new_address! = NULL then
    dbms_output.put_line(new_address||) e DO ');
    end if;

    end;

    declare
    new_address ADDRESS. ADDRESS TYPE %;
    Start

    new_address: = 'a ';
    If new_address is not NULL then
    dbms_output.put_line(new_address||) e DO ');
    end if;

    end;

    Thank you

    NULL is unknown.

    NULL = false NULL

    NULL! = NULL also false

    ----

    Ramin Hashimzade

  • Can we use the AGO on presentation columns that is in the formula for the column

    Hello

    I use obiee 10g

    I tried to use the AGO in the formula in the column and using the columns of the presentation but the error.

    Please suggest.

    Pull the measure in the criteria and fx-> Filters-> pull date column-> Advanced button-> convert this filter in SQL
    and use something like below

    Time.Date<= current_date="">
    Time.Date > = TIMESTAMPADD (SQL_TSI_DAY,-(365), CURRENT_DATE)

    So that any point of time this measure see the last 365 data.

    If brand aid

    on the other
    Thank you
    Published by: Srini VIEREN on 10 April 2013 08:51

    Try updating all your messages to get a suggestion for your new future/post

    Published by: Srini VIEREN on 29 April 2013 07:21

Maybe you are looking for