Conditionaly select the physical table based on selection from prompt.

Hi expert.
we have one logical table with two LTS(LTS A and LTS B). LTS A is at day level and LTS B is at week level.
So i have created a dashboard prompt which returns as day and week in drop down(SQL Result).
So when we select Day it should run from the day table and when we select Week it should run from week table.
How to do that...

Amotoj,
This scenario is exactly what the Cascade parent is meant for.   You would define your screen to have multiple fields where if you select a value in field 1, field 2 will be automatically filtered based on the first selection.
You will need the appropriate indexes on the Complex Table to support it but it is fairly straight forward.
If there a reason you don't want to use multiple fields?
--Bill

Similar Messages

  • Physical Tables based on select with parameters

    I have a database query that receives some input parameters and it worked fine when I run this query from any sql tool, The query is very complex and the input parameters are not associated in the sql to a specific column, they are associated in the subqueries that the query has.
    Is it possible create a view using the sys_context function and establish the parameters at runtime from business intelligence 10.1.3.4.1 ?
    Thanks!
    Ramiro Ortiz

    I believe this is what you are trying to get at:
    SELECT DECODE(m.pref_type, 1, (SELECT result FROM a
                                   WHERE a.pref_value = m.pref_value),
                               2, (SELECT result FROM b
                                   WHERE b.pref_value = m.pref_value)
    FROM my_table mAlthough, if the tables are large, that might be pretty slow. Better than an outer join, but one of those correlated queries is going to be run for each row in my_table. You could lso try something like:
    SELECT m.pref_type, r.result
    FROM my_table m,
         (SELECT 'A' tbl, pref_value, result
          FROM a
          UNION ALL
          SELECT 'B', pref_value, result
          FROM b) r
    WHERE DECODE(m.pref_type, 1, 'A', 'B') = r.tbl and
          m.pref_value = r.pref_valueHTH
    John

  • Crystal Reports 2008; Can't select the certain table. Why?

    Please help me everyone!
    problem note:
    I'm using Crystal Report 2008 to access MS SQL Server 2005 Database.
    Everything was good until last month.
    But somehow when I select the table "FTABLE11C", Crystal Repors hanging-up and no more Crystal Reports works.
    If I copy the FTRAN11C to different name such as "aaa" using following statement and use Crystal Reports then I can select the "aaa" whthout problems.
    Select * into aaa from FTRAN11C.
    So, I drop the tbale FTRAN11C and copy FTRAN11C from aaa table using following statement,
    select * into FTRAN11C from aaa
    and select the FTRAN11C again on Crystal Reports 2008, Crystal Reports 2008 hanging-up again.
    I'd like to know how to solve this situation.
    Thanks.
    1. We didn't have any patch on SQL Server.
    2. I delete one field on table that named "FTRAN11C".
       That's all.
    3. I tried following steps;
       a. Copy the file to another name.
            Select * into aaa from FTRAN11C
       b. Droped the bad table.
            Drop table FTRAN11C
       c. Copy back from saved table.
            Select * into FTRAN11C from aaa
    4. Open Crystal Reports 2008
       a. Connect to database with OLD DB.
           Crystal Reports shows all the tables within database without any problems.
       b. Select the table aaa.
           No problems. It shows on right side box.
       c. Select the table FTRAN11C that is recently created from saved table.
           Now we have problems.
            It does not shows on right side box.
            Little circle displaying forever.
            If I click right side x, Crystal Reports 2008 is closed.
    5. If I use following command on SQL Server Management Studio Express, all of data shows without any problems.
           Select * from FTRAN11C

    Install all patches as you are on the original release:
    Be sure you have the keycode, used to install the product, I will not be able to get you a new one if you lose it or don't have it available.
    The easiest way to update is to uninstall CR 2008 and then install Service Pack 3 full build:
    https://smpdl.sap-ag.de/~sapidp/012002523100009989492010E/cr2008_sp3_fullbuild.zip
    Then install SP 4:
    https://smpdl.sap-ag.de/~sapidp/012002523100008782452011E/cr2008sp4.exe
    Then test your reports again.
    As for using/upgrading to CR 2011 it's not required and likely won't make any difference but you can upgrade if you want of course.
    Don

  • How can we give a placeholder to the complex table like "Please Select" in WPF

    How can we give a placeholder to the complex table like "Please Select" in WPF. Actually i have to give a default value like "please select" to the complex table in WPF. I tried with placeholder but its not working.
    Tags edited by: Michael Appleby

    Manu,
    What version of Agentry and WPF client?  If placeholder is not working, it is probably a WPF bug in your version.  There is no other way to do it.  Try it on a current release, and if still broken then file a bug ticket so this can be fixed.
    Jason Latko - Senior Product Developer at SAP

  • Logical table with data restrictions from the physical table

    Hello, I have a question about the relationships between the Logical Tables in Business Model and Mapping and The Physical table in the physical layer. The problem is the next one:
    I have a Physical Table named T1 that contains the attributes: Id, DateChangeState, State,…
    T1
    DateChangeState| ID |State     | Other columns….
    01/01/2011 | 1 | 03 |     …
    02/01/2011 | 1 |     11 |     …
    03/01/2011 | 1 |     02 |     …
    02/02/2011 | 2 |     01 |     …
    03/02/2011 | 2 |     02 |     …
    I need filter this table and extract only one row per ID. The row that I need is the row who contains the Max(DateChangeState) per ID. I don’t know how extract only the rows selected from the physical table to the Logical Table.
    I need that the logical table contains the next rows:
    T1_Logical
    DateChangeState |ID |     State     Other columns….
    03/01/2011 | 1 | 02 |     …
    03/02/2011 | 2 | 02 |     …
    How can I extract only the rows with the Max(DateChangeState) grouped by ID in the BMM?
    I thought put this condition in the column mapping (CASE WHEN DateChangeState=Max(DateChangeState)) but the Max(DateChangeState) was not grouped by ID.
    Any idea about how solve this problem?
    I can not use the group by in the answer and I can not change the physical layer.
    Thank you,
    Best Regards.

    Hi Rajeevagrl your solution is very good but I dont´t know why obiee is applying twice the max condition, The select is the next one:
    select distinct D1.c1 as c1,
    D1.c2 as c2,
    D1.c1 as c3
    from
    (select D1.c1 as c1,
    D1.c2 as c2
    from
    (select D1.c1 as c1,
    D1.c2 as c2,
    max(D1.c3) over () as c3
    from
    (select T379.ID as c1,
    T379.DATE as c2,
    max(T379.DATE) as c3
    from
    T1 T379
    group by T379.ID, T379.DATE
    ) D1
    ) D1
    where ( D1.c2 = D1.c3 )
    ) D1
    order by c2
    Edited by: 848497 on 14-abr-2011 3:58

  • How to populate data in the same table based on different links/buttons

    Hi
    I'm using jdeveloper 11.1.4. I have a use case in which i need to populate data in the same table based on click of different links.
    Can anyone please suggest how can this be achieved.
    Thanks

    I have a use case in which i need to populate data in the same table based on click of different linksDo you mean that you need to edit existing rows ?
    What format do you have the date in - table / form ?

  • I have an Adobe Flash Professionals digital classroom book for CS6 and was following all steps easily until it ask me to select the text tool and change it from classic to tfl in the property inspector. I looked and all that drops down is dynamic, static,

    I have an Adobe Flash Professionals digital classroom book and was following all steps easily until it ask me to select the text tool and change it from classic to tfl in the property inspector. I looked and all that drops down is dynamic, static, and input. Where is the TFL and Classic ? I watched adobe learning center but he was using CS5. Can anyone please help?

    Hi,
    Do you use Flash CS6 to follow the instructions in the classroom book? If yes, then you can find it under text drop down for an AS3 Document as shown below
    If you follow the instruction in Flash CC or Flash CC2014 then you will not find this option as this is deprecated.
    Thanks!
    Mohan

  • Dynamic name for the physical table

    Hi Guys,
    How to setup dynamic names for the physical table? Where it is useful?*
    Pls help me out on this.
    thanks

    Check this similar post which might be of help dynamic physical table source schema
    Cheers,
    KK

  • How to mark the physical tables as cacheable

    Hi All,
    Can someone please tell me how to mark the physical tables as cacheable.
    Thnaks a lot

    Hi,
    by default they are cacheable...
    You can see it on repository, physical layer, right clik on table, properties, on general tab, check cacheable...
    You can specify peristence time...
    See this article, you will find an image with table properties:
    http://obieeblog.wordpress.com/2009/01/19/obiee-cache-is-enabled-but-why-is-the-query-not-cached/
    Regards
    Nicoale
    Edited by: Nicolae Ancuta on 26.05.2010 09:15

  • Tcode to find the fields ,tables based on description of fields

    hi folks,
    tcode to find the fields ,tables based on description of fields,POINTS  will be awarded for the answers ,plz give reply.

    Hello Kumar
    Table DD03T contains the field descriptions.
    Regards
      Uwe

  • I am trying to free up some room on my touch and am unable to delete any songs or books from the listing.  With iTumes open and my touch listed I open the touch.  I then select the items I want to delete from the touch and press the delete button.

    I am trying to free up some room on my touch and am unable to delete any songs or books from the listing.  With iTumes open and my touch listed I open the touch.  I then select the items I want to delete from the touch and press the delete button.  Nothing happens.  I have also tried to right click on the item, but a delete option is not listed.  What do I need to do to get rid of some books?

    Open itunes, connect ipod, go to each tab, select what you want to be on the ipod, sync

  • Can I select the Storage type of Azure Backup from April, 1, 2015 ?

    Can I select the Storage type of Azure Backup from April 1, 2015 ?
    I want to select the Storage type for saving money and for purpose.
    "$10 per protected instance for each 500GB per month + Storage consumed".
    The price of Azure Backukp from April 1, 2015.
    I want to select the Storage type.
    LRS type = for client pc backup to saving money.
    GRS type = for critical server backup to protect against disaster.
    Regards,
    Yoshihiro Kawabata

    Short answer - yes, in the new pricing model, you can select LRS and GRS storage.  That being said, we are going to update this and other questions related to the pricing change with a list of FAQs hopefully by next week. Please bear with us
    Thanks
    Shreesh

  • Extracting from table based on conditions from two internal tables

    Hi,
         i to have select few records from  a table based on conditions from two different internal tables. How can I achieve this.?
    ex:
          select objid from HRVPAD25 into table t_pad25
                                                    where PLVAR = 01
                                                                OTYPE = E
                                                                OBJID = itab1-sobid
                                                                sobid = itab2-pernr.
    How can this be written? can i use "for all entries..." addition with 2 tables?

    Hi Maansi_SAP,
    you can use exactly one internal table in the FOR ALL ENTRIES clause. Consider this alternative:
    data:
      itab_sobid_hash like itab1 with unique key sobid,
      ls_pad25  like line of  t_pad25.
    sort itab1.
    delete adjacend duplicates from itab1 comparing sobid.
    itab_sobid_hash = itab1.
    select objid
      into ls_pad25
      from HRVPAD25
      for all entries in itab2
      where PLVAR = '01'
        and OTYPE = E
        and sobid = itab2-pernr..
    read table itab_sobid_hash with table key sobid = ls_pad25-objid.
    check sy-subrc = 0.
    append ls_pad25 to t_pad25.
    endselect.
    You may decide if itab1 or itab2 is better used as hashed table. Make a performance test.
    The critics will tell you that SELECT ... ENDSELECT is not performant. That was very true, back in last milleniums's 90ies
    Regards,
    Clemens

  • How to variable exit read table based on selected row on weblayout ??

    Hi All,
    Greeting,
    I have a question regarding IP.
    I have report where I can choose the line. I've already been able to catch the selected row there using ABAP Planning Function.
    The requirement is to change some value from other customized table ( not info cube ) based on selected row.
    So when user's selecting data and pressing a button, the idea is to prompt a variable where they can see the old value, and they can entry the new value. But to query that value, I need to select based on the values the row.
    My Question is how user-exit in variable can read selected row in web planning layout especially it happens when I_step = 1 ?
    Or the other idea is to get the value on that customized table and put it in text web item as the old value. How can I fetch data from table and put it in text web item ?
    Thanks a lot and have a good day,

    Hi.
    My Question is how user-exit in variable can read selected row in web planning layout especially it happens when I_step = 1 ?
    I think there is no way to do it. I_STEP=1 called before the report shows the data.
    But may be the next approach could help you:
    1. when you select line you can use command for populating variables according to selected line. let's say yohave selected line with costcenterr XXX so you can populate variable (let's say Z_CC) with selected value.
    2. create FOX that reads variable Z_CC value and calls any function module with customized table and variable value (you can use CALL FUNCTION statement within FOX and pass to it variable value).
    This is just an idea of some direction - may be you can take it and develope to required result.
    Regards.

  • Using variable in physical table of type "select"

    Hello!
    I have to use query as physical table (in Administration tool - http://file.qip.ru/file/120930377/8713693/1_online.html):
    SELECT ID, CODE
    FROM TABLE (pkg.output('1','2')) This code works well. I need to insert instead of parameters '1' and '2' session variables, which will be set from Dashboard.
    How to put variable in this query? Variants like @{test} don't work.

    Hi
    I have a working example:
    select * from table(get_emps('VALUEOF(NQ_SESSION.USER)'))
    where
    CREATE OR REPLACE FUNCTION GET_EMPS(P_USER VARCHAR2:='SUPPLIER2')
    RETURN EMP_TYPE_LIST
    IS
    EMPS EMP_TYPE_LIST:=EMP_TYPE_LIST();
    R EMP_TYPE:=EMP_TYPE(NULL,NULL,NULL,NULL,NULL);
    i pls_integer:=0;
    CURSOR C_EMP(C_USER EMPLOYEES.USER_ID%TYPE) IS
    SELECT EMPLOYEE_ID,FIRST_NAME,LAST_NAME,SALARY ,USER_ID
    FROM EMPLOYEES WHERE upper(USER_ID)=upper(C_USER);
    BEGIN
    OPEN C_EMP(P_USER);
    LOOP
    FETCH C_EMP INTO R.EMPLOYEE_ID,R.FIRST_NAME,R.LAST_NAME,R.SALARY,R.USER_ID;
    EXIT WHEN C_EMP%NOTFOUND;
    i:=i+1; emps.extend; EMPS(i):=R;
    END LOOP;
    RETURN EMPS;
    END;
    and
    CREATE OR REPLACE TYPE EMP_TYPE AS OBJECT
    EMPLOYEE_ID NUMBER(6),
    FIRST_NAME VARCHAR2(20),
    LAST_NAME VARCHAR2(25),
    SALARY NUMBER(8,2),
    USER_ID VARCHAR2(30));
    and
    CREATE OR REPLACE TYPE EMP_TYPE_LIST AS TABLE OF EMP_TYPE;
    My employees table contains an extra column, called user_id, which has different values: 'Administrator','SUPPLIER2' and so on
    Best regards
    Laszlo

Maybe you are looking for

  • When I buy iTune's music, do I have the rights to put it in my videos ? ?

    I have a contest with my city and I need to put music in my video. The problem is that I have to have rights to the music. When I buy iTune's music, do I have the rights to put it in my videos ? ?

  • BAPI Error Message

    Hi Abapers, I am using a BAPI . . and the BAPI is returning this error "Entry was not processed because there is no changing parameter available" . .Can anyone tell me why does this happen? and what is the resolution for that?

  • How can I make sure that in RAM our sql server is not facing any mermory crunch issue?

    The SQL server process always show RAM is highly used while its a default behaviour of sql server. How can I make sure that in RAM our sql server is not facing any mermory crunch issue? Thanks

  • Getting values

    hi all, consider the following data id date col col2 1 1/1/2009 aaa bb 2 1/2/2009 null cc 3 1/3/2009 bbb null 4 1/4/2009 null null the above is my data. i am trying to create a query so that 5 1/5/2009 will have the value from the latest date which i

  • Can't see my phone on "find my phone", how do I fix this please?

    I first set up my phone to be found on the "find my phone" app/feature when I got it. A few weeks later I signed in into mobile me and couldn't see my phone> It said no device set or something like that I went in my phone to made sure the app was on