Insert prompt value as column in report...

Hello,
We use reports to populate the recipient list of our campaigns (the segmentation wizard does not meet our needs). The source code assigned to each campaign is as follow, 'YYYYQX', with YYYY being the year of the campaign and X being the quarter of the campaign. During the creation of the report, the year of the campaign is specified by the user through a prompt. The same applies to the quarter. I am trying to build the report in such a way that the data can be downloaded as a .csv file and reimported directly into Siebel, without manual editing, to populate the recipient list for the campaign. This means that I would need to extract values provided by the user through the prompt to automatically populate the source code column in my report. For instance, if the user picked year 2008 and quarter 3 as prompt values, the source code column should be "2008Q3" for each record included in the report.
Any thoughts?
Thanks in advance,
JP

Thom,
Thanks for the quick answer! This helps me with the formatting part of the problem. The part which still remains to be answered is how to obtain the value specified by the user as a prompt. I use a prompt with a "less than" condition on the field which records when our contacts gave their consent to be entered into our system (we refer to it as consent date). I also use a prompt to filter contacts based on the quarter of the consent date.
For illustration purposes, if the user runs the report for the 2008 Q1 campaign (i.e. prompt for year set to 2008, and prompt for quarter set to 1), the report will include all contacts who were entered in the system during Q1 of year 2008, 2007, 2006, 2005 and so on. In this specific instance, I would like to see "2008Q1" as a constant column labeled "source code" since it will be the corresponding source code for the campaign in which we will later on import the output of the report to create the recipient list. Right now, the only way I can think of getting the information to populate the "source code" column is to obtain data directly from the prompt, if at all possible. If not, any other way to get there would be great.
I hope this makes sense!
Thanks,
JP

Similar Messages

  • How to pass prompt value to columns with formula?

    Hello guys
    I have a situation:
    I have a report with 1 column name 'product' and in this column it has a case statement like 'case when item is ('a','b','c','d') then 'Men' else 'women' end'
    Then I have created a dashboard prompt of the exact same column, and I defined the same case statement in the prompt's column formula as the same.. Then I tested the prompt and it is returning only 2 values 'men', 'women'..
    However, when putting the prompt and report on the same dashboard, the report is not accepting the prompt values..
    Then I set the presentation variable on the prompt and call it 'Product', then in the report I created a filter on 'product' column as equal to presentation variable 'product'--- I tried with and without single quotes.. So the filter itself looks like : case when ...... is equal to / is in @{product}
    However, when I then return back to the dashboard, I am getting the error:
    State: HY000. Code: 388918336. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 27005] Unresolved column: "Product". (HY000)
    Could anyone help?
    Thanks

    Hola
    is possible that are you using a BINS agrupation into the Column Formula?
    if you form a CASE statement using a Bins agrupation, in the column Formula, this must be disabled to match statements between columns and DB Prompt
    if you are using a BINS agrupation to form the CASE statement, you have to delete the bins agrupation in the Column but keep the CASE statement
    Regards

  • Error while passing prompt value in Column Formula

    Hi All,
    I have created a dashboard and added a dashboard prompt on that with a presentation variable named "promptdyn" that is basically showing bank names.
    Now i want to calculate the market value based on this prompt selection, so i edited the column formula as
    "WM FACT Sec"."MARKET VALUE" * EVALUATE('getBankBaseCurrencyValue(%2)' As Double,@{promptdyn},"Industry Type".INSTRUMENT_CCY)
    But it is throwing this error:
    \nQSError: 10058] A general error has occurred.
    \nQSError: 22051] The argument number 1 is not referenced in this evaluate expression: getBankBaseCurrencyValue(%2). (HY000)
    SQL Issued: SELECT "Industry Type".INDUSTRY_NAME, "Industry Type".INDUSTRY_TYPE, "WM FACT Sec"."MARKET VALUE" * EVALUATE('getBankBaseCurrencyValue(%2)' As Double,0,"Industry Type".INSTRUMENT_CCY) FROM WMAdHocReportingBMMSec
    I don't know what is wrong here.Here i tried to pass the value of the prompt to the function.
    Basically I have created a function in the database with two parameter as "bank name " and "Currency" and calling it with the help of evaluate function.
    How could we store the prompt value and pass it to some other function?
    Pls help me as it is urgent for me to solve.
    Thanks

    He Solved.
    Just i missed out to write %1,%2 in the evaluate function.
    But one thing i need to know that how can we store the value that is selected in a prompt say in dashboard prompt so that it can be used in query. Because i need to select a value first from the prompt and based on that i need to manipulate the values of the other request of the dashboard.
    Please Reply.
    Thanks

  • Need to clear last selected prompt values while refreshing webi report

    While using ALL within cascading prompts its  still showing the last prompt values selected  in infoview and not while editing and trying to run webi reports.
    Is there any way to clear this?
    I have implemented following options to resolve but did not work
    1) Delete the .lov files of universe.                                                                               
    2) Delete the contents in data folder by going into storage directory
    3) Implemented the non_persistent concept in prompts
    Code is as follows for the filter with in universe
    @Select(Customised LOV\State) = @Prompt('Select State','A','Customised LOV\State',mono,free,Not_Persistent,,)
    or
    'ALL' = @Prompt('Select State','A','Customised LOV\State',mono,free,Not_Persistent,,)

    Hi,
    In Web Intelligence, the Query Filter Condition consists of 3 parts:
    - Object on which condition is applied
    - Operator (=,<,>,matches pattern, etc)
    - Operands (constant, LIst of Values, etc)
    You will find a button with a "?" sign which is also called as Prompt properties. When you click on this button, a new window will open and in this you have an option for "Keep last values selected" which is checked by default.
    Uncheck this check box --> Click OK. Run the report and save --> Relaunch InfoView to avoid any caching problems.
    Hope this works for you
    Sheeba

  • Export Dashboard Prompt Values to excel with reports

    I have a dashboard prompt. When I export the report, there is no prompt values download with it. Please help.

    I dont think we can get that. If you want to see the filters (which are applied using prompt or report level filters) in the spread sheet
    Try this:
    In Answers->Result tab->Compound Layout->Add View->Filters
    Save
    Edited by: svee on Jul 26, 2012 3:53 PM

  • Passing prompt value to column header

    Hi experts
    I'd like to change the column header dynamically.
    the report is using presentation variable so it's displayed after the user had selected a value in the dashboard prompt and clicked on go.
    I'd like to have in the column header the value that the user had selected in the dashboard prompt.
    Is there anyway to do that??
    Regards

    Hi,
    Yes. you can do that by creating presentation variable.
    What you have to do is , create the presentation variable like LOCATION_NBR in the prompt, like this you can create as many as you want to display it in the header.
    The next step is to display the value the user selects in the prompt that should display in the header, for that , you can create narative and like the following things and achieve it.
    <table>
    <tr>
    <td bgcolot ="#00080" width="1500" height="25" align="center">
    The location No is @{LOCATION_NBR}
    </td>
    </tr>
    </table>
    Since we define the presentation variable in Prompt and use it narative view we able to display the header based on the customer choose it from prompt
    I hope the above explanation will resolve your requirement
    Regards
    Raj

  • How to display multiple prompt values selected, in the report

    Hi,
    I have a LOV : SELECT DISTINCT CO.V_MOVEMENT.ORIGIN_BRANCH_CODE FROM CO.V_MOVEMENT ORDER BY 1
    and a parameter associated with it which is multiple selection enabled. The parameter name is P_BRANCH.
    When I am displaying P_BRANCH at the top of my report (RTF), it's showing only one value whereas I need to display all the selected value as Comma Separated.
    Please help.
    Thanks & Regards,
    Antara

    The other option to fetch all the selected values to the report (RTF) is to create a dataset for the field and in the template create a repeating group for each value.
    Eg:
    1) The SQL is : ( In SQL Server, where :P_S_ORIGIN_BRANCH_CODE is Prompt )
    SELECT DISTINCT
    :P_S_ORIGIN_BRANCH_CODE as P_BRANCH
    2) XML is :
    <DATA_DS>
    <G_1>
    <P_BRANCH>RTM</P_BRANCH>
    </G_1>
    <G_1>
    <P_BRANCH>ABC</P_BRANCH>
    </G_1>
    </DATA_DS>
    3) In report we can display the values as below:
    RTM,
    ABC
    But The Required Output in RTF is : (Values seperated by ",")
    RTM, ABC
    Your help would be highly appreciated.
    Thanks & Regards,
    Antara
    Edited by: user450412 on Oct 10, 2011 4:11 PM

  • Pass value of column when report has only one row

    Hello everyone,
    Sorry for not being very accurate with the title of the thread.Here's my situation:
    I have an item that, when modified(key pressed) refreshes an interactive report. All the report column have link to a javascript function, so when the user clicks the row it passes a value to another item on the page.
    To be more specific it goes like this: the user enters a numer in the item, and as he presses a key the report is shrinked down based on the number that it's made.(asynchronous search like google)
    Here's my problem:
    I have made all this working(using dynamic actions and a little javascript), but, for the sake of making it user-friendly i want that when the report is shrunk to only one line, the value of a column in that line to be auto-passed to a page item.(or a javascript function)
    Thanks a lot!
    Kind Regards,
    Cearnau Dan
    PS: APEX 4

    I am currently work on something similar, sort of, unless it's not.
    Anyway, the first function called by the action, onChange in my case, returns a count of items. If there is an exact match, meaning a one is returned, the function branches one way. Otherwise, it branches another way.
    In the case of an exact match, I run some other JS/AJAX to populate other details on the line. If not an exact match, in my case, I show a <div id="searchCriteria"> for the user to refine their search or accept what they typed in the first box and get a list of all possible matches. Obviously yours would behave differently.
    Hope this helps,
    Gregory

  • Manipulating Dashboard Prompt value in Column Labels

    Guys,
    I have a bit of strange requirement and I was wondering if anyone resolved this before
    Users select month value called 06_12 in the prompts, I need to extract 12 out of that and display it in column labels
    So if 06_12 is selected then my measure label should display Actual 12
    So if 06_11 is selected then my measure label should display Actual 11
    Any ideas??
    Edited by: Prash11 on Jul 23, 2012 4:36 AM

    Combining with similar request really doesnt work for me so well becuse there is a lot of conditional formatting on my measures which i lose them when i use that approach
    Now if u set a variable and define it at session it will still be the same as it doesnt give me the flexibility to manipulate the value.
    So any other suggestions?

  • OTBI  - Prompt value disappears after running report

    Hello All,
    Fairly new to the cloud work-space with its reporting tools.
    When we try to run the report, the prompts are visible for the first time the report. Upon selecting the values, and running report, the prompts disappear. I tried setting the prompts on the side of the page as well as top of page. Both times, the prompts disappears.
    Any thoughts?
    Many thanks!

    Hi,
    We need to add a tag in the instanceconfig.xml file to achieve this.
    Stop the services and place the below given tag in instanceconfig.xml
    <PersistPageState>FALSE</PersistPageState>
    The tag can be placed anywhere between the server instance tags in instanceconfig.xml.
    Restart the services and login into the application and check by setting some values in the prompts.
    Hope this helps.
    Thanks,
    Balaa...

  • Displaying Prompt values in webi report

    Hi,
    How to display prompt value in my webi report.
    For one prompt value I can user Userresponse function.
    In one of my report, I have a prompt for Date, which also should be displayed in the report under one field. I am using the below formula: =UserResponse("Enter Date:")
    But my new requirement is User wants a Date Range for a particual trasaction date. I created a report level prompt like
    Transaction Date Between "Enter Tran Date(Start):" and "Enter Tran Date(End):"
    I need to display the start date and end date user selected under one field Date in my webi report.
    how should I do that.
    Please share your thoughts.
    Thanks,
    Ven Men

    Hi Ven,
    You have created a report level prompt like
    Transaction Date Between "Enter Tran Date(Start):" and "Enter Tran Date(End):"
    1.Drag two blank cell on report.
    2.click on one blank cell and on formula editor type following formula.
    =UserResponse("Enter Tran Date(Start):" )
    This will show you start date in the cell.
    3.Similarly in another cell type the following formula
    =UserResponse("Enter Tran Date(End):" )
    This will show you End Date in respective cell.
    Do revert in case of any queries.
    Thanks,
    Sandeep B. Singh

  • APEX post restful service inserts null value

    Oracle APEX 4.2.5
    Oracle Rest Data Service 2.0.7
    Apache Tomcat 7
    Oracle database 11.2.0.4
    Oracle APEX PUT web service inserts null value into column. This is either a bug or the documentation does not properly cover how to correctly set PUT restful services. 
    GET web services works fine. 
    I have granted the role of apex_rest_public_user to both apex_public_user and the schema owner. 
    The payload is a small xml document, but even a text document will yield the same result. 
    I am using the Oracle REST Data Service 2.0.5
    Web service code: 
    RESTful Service Module: software_details/
    URI Template: xml_parser
    Method: POST
    Source Type: PL/SQL
    MIME: Types Allowed: application/xml
    Requires Secure Access: NO
    Source :
    begin
    insert into clob_test (x)
    values (blob_to_clob(:body)); ## according to some online post,  :body is where APEX places any data being transferred through a web service. I have yet to find any official  ##documentation on it. 
    commit:
    end;
    ##Blob_to_clob function code
    CREATE OR REPLACE FUNCTION blob_to_clob (blob_in IN BLOB)
    RETURN CLOB
    AS
          v_clob    CLOB;
          v_varchar VARCHAR2(32767);
          v_start      PLS_INTEGER := 1;
          v_buffer  PLS_INTEGER := 32767;
    BEGIN
          DBMS_LOB.CREATETEMPORARY(v_clob, TRUE);
          FOR i IN 1..CEIL(DBMS_LOB.GETLENGTH(blob_in) / v_buffer)
          LOOP
             v_varchar := UTL_RAW.CAST_TO_VARCHAR2(DBMS_LOB.SUBSTR(blob_in, v_buffer, v_start));
                DBMS_LOB.WRITEAPPEND(v_clob, LENGTH(v_varchar), v_varchar);
               v_start := v_start + v_buffer;
          END LOOP;
        RETURN v_clob;
    END blob_to_clob;
    #Table code 
    create table clob_test(
    x clob));
    Thank you,

    I am experiencing the same issue.
    I implemented the 'chunked file loading' example from Kris Rice's blog at Kris' blog: August 2013 in y workspace at the Oracle hosted APEX site and everything works fine.
    However, I get a null value for 'data' when I implement the same example at my work site.
    Work Site config is
    Apache Tomcat 7
    Oracle REST Data Services version : 2.0.6.27.18.06
    Application Express 4.2.2.00.11
    Oracle RDBMS 11.2.0.3
    I am NOT using SSL at my work site. However this does not seem to affect a POST with form values.
    Varad.

  • How to use the prompt value in the report column

    Hi
    I have a report prompt column which is 'Adj Type' which holds values 10,20,30 and when user selects Adj Type = 10 then this value should be passed to report column.
    For Eg. Column 1 value is 10 and this should multiple with prompt value and the output should be 10* 10.
    Any thoughts how to capture the prompt values in report column for calculation.

    hi hsekar,
    1) Declare a presentation variable in prompt under the Set Variable section -->Presentation Variable -->P_var
    2) In Fx Table_name.Your_column * @{P_Var}
    @{P_var}{20} ( 20 is default value it will override when a user selects value in prompt
    Thanks,
    Saichand.v

  • HFR - Getting the value from a member prompt to render in a report

    I have need to see the value or values selected from an HFR report prompt on the report once the report renders.
    The prompt value is desired to be placed in the Header of the report but ultimately as long we can see the prompt value rendered/placed any where on the report that will be good.
    Is there a function or other means to capture the selected dimension value stemming from a prompt selection?
    The more complex piece to this questions is that the row member where the prompt resides is using an advanced member selection which takes the value of the member prompt AND the Lev0 list of members to display on the report. Doing the level 0 "AND" of the advanced member selection removes any chance of getting the original prompt value select.
    If any one has any ideas or tried and true techniques, please share.
    Thanks in advance.
    Cheers,
    Christian
    http://www.artofbi.com

    Hi Christian
    It sounds like you are familiar with the text functions that can get you member names / aliases from cells.
    Have you thought about retrieving the member from the prompt and then simply hiding the column/row,
    e.g. in column A select 'Prompt for Dim'
    in column B select 'Descendants of Same Member as Col A' AND 'Level 0 Dim'
    hide column A
    use the text function to get you the name/alias from column A
    Hope this helps
    Stuart

  • Inserting a link to BI Publisher report and passing the dashboard prompts

    I have an answers dashboard where there are various prompts (say P1, P2, P3, P4  -all these are date prompts )and various  reports.
    These Prompts are stored as Presentation variable say var1, var2, var3, var4.
    I need to insert a Link on this page to a BI Publisher Report.  BI Publisher report also has some prompts say D1, D2, D3 , D4, D5, D6
    The link should take the values from the prompts of this page and open the BI Publisher report with D1= value of Prompt P1,
    D2= value of prompt P2, D3= value of Prompt P3, and D4= value of Prompt P4.
    I was easily able to use an action link -> "Navigate to Web Page" option.  I gave the URL for this BI Publisher report and clicking on that link takes me to the report.
    But I am still figuring out out to send the values of the prompts.
    The BI Publisher Report is :
    - built from an RTF template.
    - uses a SQL Query with Bind variables to get the value of its prompts D1, D2, D3, D4, D5, D6.
    - Suppose D1 is bind variable :date1, D2 is bind variable :date2, D3 is bind variable :date3 and D4 is bind variable :dat4.
    So my first try was to append the value of bind variable to the URL
    https://xxname.server.com/analytics/saw.dll?bipublisherEntry&Action=open&itemType=.xdo&bipPath=%2FSurvey%2FPhoneCount%20Record.xdo&path=%2Fshared%2FSurvey%2FPhoneCount%20Record.xdo.xdo&date1=var1
    Can someone suggest the steps I need to take to make this work.
    Thanks

    Hi, I am facing the same issue (OBIEE 11g version0
    Please let me know if you found any solution or workaround for this?
    Thanks!!

Maybe you are looking for