Default value of prompt based on another request

Hello:
I have a requirement where I need to set default values of prompts based on another request.
The prompt is a Date Prompt.
I tried it using presentation variable, and writing sql query, where is says " WHERE promo_id= @{variable}"
but it is still not working.
Please let me know the workaround for this issue.
Thank you.
- Vinay

How is the End Date determined for your BETWEEN operator? I would assume that is variable. Also, is the second report on another dashboard page or on the same page? Assuming both reports are on the same page, do the below. If not, you can use the same prompts on the second dashboard page. Set the scope to "dashboard" and the selection the user makes carries to the second page.
The easiest way is to have 3 Dashboard prompts: Promo_ID, Start_Dt, and End_Date. Set these prompts to PVs: pvPromoID, pvStartDate, and pvEndDate, respectively.
Filter report one on pvPromoID and pvStartDate.
Filter the second report on pvPromoID and use pvStartDate in the filter of the Date column of report two. Assuming the BETWEEN values are variable, then you can write the following on the Date column of your second report:
"Table Name"."Date ColumnName" <= '@{pvStartDate}' AND Table name"."Date Column Name" <='{EndDate}'
And on your Promo column, use the filter "Table Name".Promo = '@{pvPromoID}'
When the user selects the Promo ID, Start Date and End Date from the prompts, both the first and second reports will be filtered accordingly.

Similar Messages

  • How to make default value for region based on city?

    Dear Experts,
    When city is selected in TRIP or PR05, how to make the default value of city based on region?
    The standard search help givenfot citydoesnt contain any enhancement point?
    Pls suggest how to resolve this!!!
    Thanks In Advance
    Rgrds,
    Sravan

    Hello Sahil
    Account and CC/PC are 2 different entity types. For PC and CC there is dependency. First you have to load Cost centers and then load PC.
    For CC - load CC master data first. Then load hierarchy file then group file and finally assignment file.
    Follow same process for PC.
    GL you can load independently but you have first load group GL then operational GL and then GL at company code level,
    Kiran

  • HOW TO CREATE PROMPT BASED ON ANOTHER PROMPT IN OBIEE

    HOW TO CREATE PROMPT BASED ON ANOTHER PROMPT IN OBIEE.
    Requiremenst is as follows.
    Year ,Qtr columns in first prompt.Based on selection on these prompts second prompt should display corresponding prompts
    Second prompt will have Month ,Week and Day columns.Second prompt should be hidden and based on first prompt selection second prompt should display with constraint based on first prompt.
    Any help would be highly appriciated!!!

    hi,
    Using Guided navigation it is possible,
    Please refer the below links.
    http://gerardnico.com/wiki/dat/obiee/dashboard_prompt_1_eq_0
    http://businessdecisionsystems.com/blog/?p=448
    Hope this help's
    Thanks,
    Satya

  • How to show value from another Object as Default value from Prompt

    Hi,
       I am creating a web Report with the following filter :
    Enrollment Date FROM :   01/01/2011 12:00:00 AM  (Default 1st day of previous month)
    Enrollment Date TO :     01/02/2010 12:00:00 AM    (Default: 1st day of current month)
    There are values for Enrollment date from 01/01/ 2004 till today but user want to have a default value as in brackets above.
    When I select prompt option for 'Enrollment Date' all the dates (from 01/01/ 2004 till today) are shown as usual. Database is Oracle and I am able to create Objects in Universe that show the default required dates, but not sure how I use them in the prompt. Is there any way or workaround?
    Nanda Kishore.

    If i Understand Correctly you requirement you want to set a default value for date in prompt but user should have the ability to change these values if the want ?
    In order to implement this you can create a Object in Universe with definition
    Date Choice - @prompt('Default or Custom Date','A',{'Default','Custom'},mono,constrained)
    Then use this along with the date prompt in query filter as follows.
          Set Data choice =Default
            Date1= Default Date
            and
            Date2= Default Date
      OR
           Set Date Choice=Custom
            Date1 = Prompt
            and
            Date2= Prompt

  • Give a default value to prompted column

    Hi Experts,
    In one of my reports I added a filter on a column (col 1 possible values Y or N).
    The request is embedded in a dashboard page that has a prompt for 'col1'.
    I would like when the user doesn't select anything from the prompt that the value Y is applied as a filter to the report
    Is it possible?
    Regards

    Yes, if in your report you set col1 = Y then it will return Y's UNTIL the user selects another value in the dashboard prompt. This is default behaviour, if on the other hand you didnt want the 'Y' to be over-ridden by the dashboard prompt, you would use 'protect filter' to prevent this behaviour.

  • Map default values in Header based on multiple values in the line item

    Hi
    I have a scenario in which the Header field of an IDOC should be populated with some default values based on some mixed mvt types in the line items.
    eg:
    Header -
    > Delivery type -
    > needs to be mapped to A (for X of line item 1)or B (for Y of line item 2) or C (for Z of line item 3 )
    based on line items field
    line item1---> mvt type---> X
    line item 2-->mvt type----->Y
    line item 3 -
    > mvt type -
    > Z
    mvt types doesnt necessarily have to come in that order and even the same mvt type can repeat in multiple line items.
    Can we achieve this logic in XI ?

    I think if you include removeContext, Sort, SplitByValue (on Value Change), CollapseContext to mvt type in all line items and then use ifelse condition to achieve your result.
    I will give an example of line Item1
    mvt type --->RemoveContext ->Sort>SplitByValue(on value change) --> CollapseContext
    Use the above mapping to IF function and check if it is having X, Y or Z then map the appropriate value to target field.
    Do the same for rest of the line items.

  • How to default value on bet01 based on ansal

    Dear Freinds
                i would like to know how to default the value for bet01 based on the
    calculated on ansal
    i want is
    q0008-bet01 = p0008-ansal /100.
    Can i default the value using the user exit ZXPADU01 or ZXPADU02. . As my ueser exit is not triggering  without me entering to bet01 .
    how can i do defaulting the value on bet01 ,
    regards
    shanti

    Dear  Chritisn
                 in my code i have done same thing what you have said as follows
    i have written the coding in ZXPADU02 as below
    data : wa_p0008 like p0008,
            i0008 like p0008,
           l_v_ANSAL type ANSAL_15,
           l_v_amount type PAD_AMT7S.
    CASE innnn-infty.
    when '0008'.
    MOVE-CORRESPONDING  innnn to wa_p0008.
    if wa_p0008-lga01 = 'MFPY'.
    l_v_ansal =  wa_p0008-ansal.
    l_v_amount = l_v_ansal / 100.
    if l_v_amount ne wa_p0008-bet01.
    move l_v_amount to wa_p0008-bet01.
    MOVE-CORRESPONDING wa_p0008  to innnn.------ at this point
    endif.
    when others.
    endcase.
    I have used move corresponding because i am getting the error as the strucutr eof INNNN to that WA_P0008 is different (unicode compatability error) ...
    now i can see the data in wa_p0008 and when i have move into innnn ..... i can see all the data in debuggin except  the bet01 value as below
    in wa_p0008 the data in debugin is as follows
    PERNR     N     8      00000004
    INFTY     C     4      0008
    SUBTY     C     4      0
    OBJPS     C     2                                                                               
    SPRPS     C     1                                                                               
    ENDDA     D     8      99991231
    BEGDA     D     8      20070716
    SEQNR     N     3      000
    AEDTM     D     8      00000000
    UNAME     C     12                                                                               
    HISTO     C     1                                                                               
    ITXEX     C     1                                                                               
    REFEX     C     1                                                                               
    ORDEX     C     1                                                                               
    ITBLD     C     2
    PREAS     C     2                                                                               
    FLAG1     C     1                                                                               
    FLAG2     C     1                                                                               
    FLAG3     C     1                                                                               
    FLAG4     C     1                                                                               
    RESE1     C     2                                                                               
    RESE2     C     2                                                                               
    GRPVL     C     4                                                                               
    TRFAR     C     2      01
    TRFGB     C     2      01
    TRFGR     C     8      E1
    TRFST     C     2      08
    STVOR     D     8      00000000
    ORZST     C     2                                                                               
    PARTN     C     2                                                                                WAERS     C     5      HKD
    VGLTA     C     2                                                                               
    VGLGB     C     2                                                                               
    VGLGR     C     8                                                                               
    VGLST     C     2                                                                               
    VGLSV     D     8      00000000
    BSGRD     P     3      100.00
    DIVGV     P     3      165.00
    ANSAL     P     8           1000.00  -
    value  entered on the screen
    FALGK     C     10                                                                               
    FALGR     C     6                                                                               
    LGA01     C     4      MFPY
    BET01     P     7              10.00  ---after calculation the value(1000/10)
    ANZ01     P     4          0.00
    EIN01     C     3                                                                               
    innn structure in debuggin  as follows:
    PERNR     N     8      00000004
    INFTY     C     4      0008
    SUBTY     C     4      0
    OBJPS     C     2                                                                               
    SPRPS     C     1                                                                               
    ENDDA     D     8      99991231
    BEGDA     D     8      20070716
    SEQNR     N     3      000
    AEDTM     D     8      00000000
    UNAME     C     12                                                                               
    HISTO     C     1                                                                               
    ITXEX     C     1                                                                               
    REFEX     C     1                                                                               
    ORDEX     C     1
    PREAS     C     2                                                                               
    FLAG1     C     1                                                                               
    FLAG2     C     1                                                                               
    FLAG3     C     1                                                                               
    FLAG4     C     1                                                                               
    RESE1     C     2                                                                               
    RESE2     C     2                                                                               
    GRPVL     C     4                                                                               
    DATA1     C     250     0101E1      0800000000    HKD                00000000#&#5644;&#3152;###&#3072;                MFPY######        ######        ######        ######
    DATA2     C     250
    we can see in the debuggin for the DATA1 it is having the MFPY value  but i dont find the value for bet01 ..........
    and iam not getting the value on the screen in PA30 for the bet01.
    please let me know what i have to do , and let me know where i went  wrong.
    regards
    shanti

  • How to set column value to blank based on another column's condition in validation settings in sharepoint 2010?

    I need to set a field to be blank when another field is blank:
    when [Return Date] is blank [when item has not been returned]
    [Received by]  should be set to blank
    I tried this:
    =IF(ISBLANK([Return Date]),ISBLANK([Received by]),TRUE)
    But it failed.
    Is this possible through list validation settings?

    Hi
    you cannot reference another column in a formula that creates a default value for a column.
    PF below link for the same.
    http://ricardoramirezblog.wordpress.com/2013/05/02/calculated-field-formulas-for-default-value/
    Regards,
    Rajendra Singh
    If a post answers your question, please click Mark As Answer on that post and Vote as Helpful
    http://sharepointundefind.wordpress.com/

  • Setting a default value for SQL based LOV

    Hi There,
    Is there a way to set the default value in an LOV. Like lets say the LOV gets distinct to_Char(date_field,'YYYY') from a table. I want that the highest year is the default value. Currently, since I have the null option also, when the page loads, the lov is always null. I need to change it manually.
    Thanks,
    Sun

    You can easily set the dynamic item defaults
    http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21674/bldapp_item.htm#HTMDB28287
    for example select the default type as PL/SQL Function Body and enter the following code
    declare
    v_return date;
    begin
    select max(date_field) into v_return from your_table;
    return to_Char(v_return,'YYYY');
    exception when others then
    return null;
    end;

  • Defaulting value from one Attribute to another.

    Hi,
    I am trying to add a new item (Message Text Input), to the iExpense Header (/oracle/apps/ap/oie/entry/header/webui/GeneralInformationPG), and default the value of this filed to the 'Justification' field, at line level ( /oracle/apps/ap/oie/entry/lines/webui/CashAndOtherLinesPG).
    I am trying to use Personalization to copy the value from the new field. So for the 'Justification' field, I set the initial value as: ${oa.ExpenseReportHeadersVO.field1}.
    However, I cannot see the initial value appear when i try to enter an expense report.
    1) Is this not the correct way of setting/defaulting values?
    2) Expense Lines is a multi-record page. I want the above defaulting logic to apply ONLY when a user enters a new line. Can this be handled through personalization? Or will it require any programming?
    We are on 11.5.10CUP4, 11i.OIE.K
    Thanks,
    Ashish

    Yes.. that's exactly what I'm trying to achieve. The user enters the 'Project Name' at expense Header level, and this value defaults to the 'Project Name' field at line level. Also, at line level, this field should NOT be updateable by the user.
    To minimize customization, I was thinking of using DFF at the Header level to capture the Project Name, and then default this value at line level.
    Is there any way I can do this using Personalization? Reason being I need to put the estimates accordingly.
    Thanks for you suggestions.
    Ashish

  • Preset default value of DropDown based on Content Type selection in the SharePoint 2010 library

    Hi,
    I have three site content types (Admin, Technical & Well) derived from base content type "Base" and added this content types to "Documents" library. I also have one site column "Category"(Dropdown) with values (Admin, Technical
    & Well) which is available in all the content types.
    Now, when i try to create a document based on "Admin" content type then "Category" value should be preset to "Admin", similarly when i select "Technical" content type then "Category" should be preset to "Technical"
    and same with "well".
    Can some one provide me how i can achieve this?
    I am working in the SharePoint 2010 environment.
    Regards,                                                                      
                                          Chakradhar

    My understanding is that , you have to display the category in all the content types.
    So in that case create a content type like
    Create a base content type -- with column category.
    Create a Admin content type based on base content type as parent. By default ,the category column is available in admin content.
    Create a Technical content type based on base content type as parent. By default ,the category column is available in Technical content type.
    Create a Well content type based on base content type as parent. By default ,the category column is available in Well content type.
    Do you want to create using sharepoint ui or code(visual studio)?

  • Auto populating a column prompt based on another column prompt

    Hi,
    Is it possible to auto-populate a column prompt, using the value of another column prompt?
    My situation is described as below.
    I have created a new dashboard prompt. This contains 2 column prompts, for example say col1 and col2. Both are multi-select prompts.
    col1 values - a,b,c,d.....
    col2 values - 5,2,8,7.....
    col1 and col2 values are picked from different tables. Also we have a mapping table which maps col1 and col2. Say a-5, b-10, c-1, d-3 etc...
    My requirement is, if a user selects values "a,d" for col1 prompt, col2 prompt must be automatically populated by values "5,3".
    Is this possible? If so, please help.
    Thanks,
    kc.

    If the actual filter criteria is only col1 the instead of displaying the values in the second prompt, make a separate report and only choose only the 2nd col in that report and make col1 as prompted and select appropriate title for that report.Place the report above the actual report in dashboard. So it will display only those records which are chosen in col1 from the prompt.

  • Default value on prompt

    Hello Experts !
    User wants Previous period (one period before to current period) and Year to be defaulted on the fiscal year period prompt selection.
    Can we do this?
    Thanks
    Jason

    There is a standard variable for fiscal period called Previous Period of Current Fiscal Year (SAP Exit) 0P_PRFP1 . Activate this variable and use this variable in the report. Also, activate the variable current fiscal year and use it in the report.
    Thats it.
    Ravi Thothadri

  • I want to select value in combox  based on another combox in matrix

    Please answer frequently

    Hi
    You van use the follwing code.
      Case BoEventTypes.et_COMBO_SELECT
                                If pVal.ItemUID = "Matrix" And pVal.ColUID = "Combo" Then
                                    Dim oCombo, oCombo1 As SAPbouiCOM.ComboBox
                                    Dim oMatrix As SAPbouiCOM.Matrix
                                    oMatrix = Me.m_SBO_Form.Items.Item("Matrix").Specific
                                    oCombo = oMatrix.Columns.Item("Combo").Cells.Item(pVal.Row).Specific
                                    oCombo1 = oMatrix.Columns.Item("Combo1").Cells.Item(pVal.Row).Specific
                                    If oCombo.Selected.Value = "Value" Then
                                        oCombo1.Select("Value1", BoSearchKey.psk_ByValue)
                                    End If
                                End If
    Regards
    Rupinder

  • How to use SQL import to set the attribute value based on another?

    Hello all,
    I want to set an attribute of a dimension based on another attribute (if matches). Let's say I have a dimension PRODUCT. And I have defined two user defined attributes MANAGER and ISVISIBLE.
    Now within a PERMIT_READ program I want to set the ISIVISIBLE to true where the MANAGER Value is selected from a table.
    Something like
    <define a cursor c1 to select all the Manager values>
    sql import c1 into -
    :MATCHSKIPERR PRODUCT_MANAGER then <PRODUCT_ISVISIBLE (PRODUCT MANAGER) = true>
    <etc>
    Obviously the above is not correct. But I am stuck as to how this can be done? Can some one on this forum please help me with correct syntax/ approach please?
    Thanks a lot.
    Pxsheth
    This statement assigns true to the isvisible attribute for every gc_dim_bu dimension (selected as part of cursor c1).
    SO FAR SO GOOD.. NOW -
    If I want to change the above so that the attribute value gets assigned based on another attribute for the dimension (say a flag). i.e.
    Set the isvisible to true where attribute flag has a certain value. How do I code this in OLAP DML?

    There are a number of ways to do this. If you want to use an attribute that has been defined within AWM as an attribute of Product then simply using the mapping tool to populate the attribute as part of the normal dimension load procedure.
    Alternatively you could create an attribute at the DML level, and assuming you are not using surrogate keys, you can then define a cursor to read the relational table to populate your attribute. Something like this:
    sql declare MKT_BASKET cursor for -
    select PRODUCT_ID, PROD_MGR , PROD_VISIBLE -
    from PRODUCT_DIM
    if SQLCODE ne 0
    then goto ERROR
    sql open MY_CURSOR
    sql fetch MY-CURSOR loop into :append PRODUCT, :PRODUCT_MANAGER, :PRODUCT_ISVISIBLE
    sql close MY_CURSOR
    sql cleanup
    update
    commit
    If you want to create a complex PERMIT function using OLAP DML then personally I would create a formula and assign a program of type BOOLEAN and have the program return a YES or NO depending on the outcome of your test. Then your PERMIT_READ still references a dimension object. For example:
    DEFINE PROD.ISVISIBLE BOOLEAN FORMULA <PRODUCT>
    EQ PRG.ISVISIBLE(PRODUCT)
    DEFINE PRG.ISVISBLE PROGRAM BOOLEAN
    The program will then return Yes or No depending on the processing you need to do.
    Hope this helps
    Keith Laker
    Data Warehouse Solution Architect
    Oracle EMEA Consulting
    BI Blog: http://oraclebi.blogspot.com/
    DM Blog: http://oracledmt.blogspot.com/
    BI on Oracle: http://www.oracle.com/bi/
    BI on OTN: http://www.oracle.com/technology/products/bi/
    BI Samples: http://www.oracle.com/technology/products/bi/samples/

Maybe you are looking for

  • TS1506 How do I close an attachment in an email on my iPad?

    How do I close an attachment in an email on my iPad?

  • FindBy method for reference entities

    hi, I have created an entitity(Relation) which contains references of other 2 entities(address, person).I have created findBy methods(FindByCity,FindByLastName,etc) in Relation entity for attributes in those refernce entities(Address-city,state)(Pers

  • Sequence File Hierarchy Sequence Name Resize

    Hello, Is there a way to resize the sequence name in the Sequence File Hierarchy Call Graph? I have a need to make the sequence names long and it does not fit in the file hierarchy. Thanks.

  • Verizon VCast on a Mac

    I just bought a phone from Verizon. To put music onto the phone, I am suppossed to have windows XP which will then allow me to run Windows Media Player 10. Can I do this?? I plug my phone into the computer with a usb cord that specially fits the phon

  • Regarding SSN Number in Personal data

    Hi All, In ESS, if we change the SSN number of an employee in the Personal Data, it is not getting reflected in the SAP R/3 data and the SSN Number is reset to Space. Did anyone experienced the same problem, if yes can you please suggest the solution