URGENT - Using a session value for query in reports

Please Reports Team or anyone....
I need to make a pdf report on the web.
The query needs to be dynamically so i can make reports on the fly in a secure manner, for example with the use of a session variable as the identifier (eg. select * from emp where id=<session>).
I know that rwservlet can be used but the id must not be displayed - so i figured to make a servlet or use a JDBC-PDS, but i cant find any coding examples anywhere.
Whats the framework ? how do i do this - i've tried an example using a new Java URLconnection and connect to the rwservlet then i'll hide the url, but how can you then stop people from using the rwservlet...
I've been working on this for a long,long,long,long time - could anybody please help !!!!!

Dunno if this wil help you, but here's what we do...
We use multiple web servers and we put our application servlets on a different box to the report server's servlet.
Users cannot access the report server directly. They must request reports from our application servlets which build the appropriate http requests and forward these onto the report server (using URLConnection). We stream the result back through our servlet so the user is completely unaware that the reports are generated on a separate box.
If you don't have the luxury of multiple servers, you may be able to configure your webserver to only accept requests to the report server's servlet from the local machines IP address?

Similar Messages

  • How to make a subscription use the default value for a parameter

    Hi everyone,
    I need to use the CreateSubscription method and have this new subscription use a default value for certain parameter. How can I do this?

    Hi Marianne,
    I have to create the subscription programatically, which is different from what you mention. To further clarify my challenge:
    I have three parameters in a report: date-interval (string), start-date (date), end-date (date). If the user selects for example "last week" as the date-interval, the DEFAULT values for the other two are as follows:
    Code Snippet
    start-date=DateSerial(Year(Today),Month(Today),Day(Today)-Weekday(Today)-6)
    end-date=DateSerial(Year(Today),Month(Today),Day(Today)-Weekday(Today)-1)
    The user can then select intervals like "today", "yestarday", "this month" etc, and the other two parameters are calculated based on that date-interval parameter. Now, If I programatically create a subscription to a report that contains these three parameters and set a value of "last week" for the date-interval parameter, the subscription stores the fixed days (say september 10 to september 16) producing a report of the same week every time the subscription is run and not updating the correct interval to LAST-WEEK!. What should I put as the value for start-date and end-date when I create the subscription to have these two params get the DEFAULT calculated value based on the third param date-interval?
    Hope to have been more clear now.

  • Custom Report Not fetching values for parameter of report (Valueset not pop

    Hi,
    I am running custom report on Oracle application R12. This report parameters used standard value set for fetching purchase order number. The value set is not populating any values for the custom report. but for the standard report where this valuse set populating proper result.
    It's bit Supprising ...the same valuset populating values for standard reports but not for custom report developed by me.
    Value set query using table valueset and getting values from po_headers (View)
    Thanks

    Hi All,
    Luckily I have been able to rectify the problem !
    I tried retrieving the output using LISTCUBE to show the SID of the InfoObject  also for which I was unable to get the data. After the report successfully gave the output for those I/O, I checked again I could see the data in the I/O maintain master data !
    It worked like magic to me !
    But I could guess that since it is a virtual I/O therefore it is not able to retrieve the data from the table directly and is able to do that only after the SID of this I/O is retrieved.
    (If a characteristic does not have any master data, the values from the SID table are displayed for the "Values in Master Data Table" mode.)
    Closing the thread !
    Regards
    Shalabh

  • Use dot matrix printers for printing text reports in Reports 10g

    In Forms 6i, customers had the option to use dot matrix printers for printing text reports.
    I believe, from 9i onwards, text based reports aren’t supported and instead HTML/PDF,DOC,RTF reports are supported which are not text based and use modern day printers.
    Is it still possible to use text printers ??
    Regards,
    Noman

    hi
    check out the following link.
    Re: Is printing to generic text printer and hand-coding the report possible?
    http://download.oracle.com/docs/html/B10314_01/pbr_uxprt.htm#1005700
    sarah

  • Using the Bursting engine for scheduling the Reports

    Hi,
    Can we use the Bursting Engine for scheduling the reports? For example I want to run a report in a scheduled time and send the mail to destination. We can do these things in the XML Publisher console. But we need to find any other way to schedule a report.
    Thx,
    Vijay.

    I am looking for the same thing.
    I believe the APIs are entirely separate from the functionality in the BIP web application. So that there is no way to programmatically initiate the scheduling of a report/template already defined in the UI via a command line or API call. Is this accurate?
    I sort of expected the APIs to have functionality that exposed the features of the web application, as opposed to just exposing the base functionality/engine of BIP.

  • Getting MIX values for Keyfigures in Report

    Hi
    Iam Getting MIX values for Keyfigures in Report, May i know why it is coming, In which cases this  MIX values are coming
    Regards
    ramu

    Hi Ramu,
    By MIX values, do you mean you are getting a * in the resultant row, and when you drill down by a certain characteristic you get multiple values of different units ? Please do give more details so that the forum can help you better.
    Regards
    Snehith

  • Get a insert session value for SQL query at report

    Hi friends
    I created a global temp table and procedure to support web search form.
    and a search result report. The procudure
    gets search result from multip tables and
    insert into temp table --recordsearch. I can get value from temp table  by call procedure
    at SQL*Plus.
    However, I can not get this value by web report.
    How can I get this insert session value and pass to SQL query for report?
    Thanks,
    Newweb
    CREATE GLOBAL TEMPORARY TABLE recordsearch
    (emp_id          VARCHAR2(200),
    ssn               VARCHAR2(9),
    fname          VARCHAR2(200),
    lname           VARCHAR2(200),
    m_name          VARCHAR2(200)
    ) ON COMMIT PRESERVE ROWS;

    it possible that your web form does not have a persistent, dedicated connection. if you have connection pooling for example, multiple sessions will see the same instance of the GTT, so if one deletes it, then nobody sees it (or you can see others data). if the connections are not persistent, then they can disconnect between calls, deleting the GTT table.

  • How to use bind variable value for table name in select statement.

    Hi everyone,
    I am having tough time to use value of bind variable for table name in select statement. I tried &p37_table_name. ,
    :p37_table_name or v('p37_table_name) but none worked.
    Following is the sql for interactive report:
    select * from v('p37_table_name') where key_loc = :P37_KEY_LOC and
    to_char(inspection_dte,'mm/dd/yyyy') = :P37_INSP_DT AND :p37_column_name is not null ;
    I am setting value of p37_table_name in previous page which is atm_state_day_insp.
    Following is error msg:
    "Query cannot be parsed, please check the syntax of your query. (ORA-00933: SQL command not properly ended) "
    Any help would be higly appreciated.
    Raj

    Interestingly enough I always had the same impression that you had to use a function to do this but found out from someone else that all you need to do is change the radio button from Use Query-Specific Column Names and Validate Query to Use Generic Column Names (parse query at runtime only). Apex will substitute your bind variable for you at run-time (something you can't normally do in pl/sql without using dynamic sql)

  • Setting multiple values for query prompt: In List...

    Dear All,
    I have used "Radio Button" component which has labels like A, B and C. If user selects A then Radio button save 10 as its value on Excel and which being used in queries prompts. If user select B then Radio button save 20 on Excel at Destination cell and all queries use this for prompt value. But when user select C which is the for both values 10 and 20. No queries executed successfully, values are in String and I tried following values for C in excel
    "10,20"
    10,20
      '10,20'
    10;20
    '10','20'
    10 20
    But when I execute this query at Dashboard Query Panel and selects both 10 and 20 as Inputs since I'm using In List operator then the query executes perfectly. See below the query:
    SELECT   Table__1."0CALMONTH",   SUM(Table__1."0INV_QTY"),   SUM(Table__1."0NETVAL_INV"),   Table__1."0DOC_CURRCY" FROM   "SD_C_ZSDIC"."PUBLIC"."IC_ZSDIC"  Table__1 WHERE   (    Table__1."0CALDAY"  BETWEEN  {d '2014-01-01'}  AND  {d '2014-06-13'}    AND    Table__1."0ACCNT_GRP"  =  'ZLOC'    AND    Table__1."0COMP_CODE"  =  '1000'    AND    Table__1."0MATERIAL__0DIVISION"  IN  ('10','20')    AND    Table__1."0CALMONTH"  <>  0    AND    Table__1."REFERENCE_DATE"  =  {d '2014-06-13'}   ) GROUP BY   1,    4 HAVING   SUM(Table__1."0INV_QTY")  <>  0 ORDER BY   1
    1. In which format I should save value of C, so that I can have '10','20' for the query prompts value?
    2. Am I missing something or my format of C values at Excel sheet is not correct on?
    I will appreciate your reply in this regard.
    Many thanks!!!
    Tariq Ashraf

    put the output of C
    in 2 cell
    for eg
    C1=10
    C2=20
    and map the 0MATERIAL__0DIVISION(prompt) to cell C1 and C2
    NOTE
    we have to write  formula in C1 and C2
    C1 = if radiobutton=b then 20 else 10.
    C2 = if radiobutton=c then 20 else ""
    map both cell c1 and c2 to the list prompt
    it will work

  • Subsequent use of cumulated value in query

    Hi All,
    We are using BEx Query Designer to create a query having one formula variable “Stock on Hand” as a cumulated value (along the columns).Now we need to use this cumulated value in another formula variable. Is this possible to do? If not could you please suggest an alternate for the same?
    Stock on hand (for any given week) = (Total Receipts – Total Demand) + Stock on Hand (for previous week).
    Inv. Carrying Cost (for any given week) = Stock on hand (cumulated values as above) * Per unit inv. cost
    Data for Total Receipts, Total Demand and Per unit Inv. Cost is present in the infocube at daily level. A sample report template has been given below:
    Product    Location       Week                      W1   W2    W3
       P1                L1        Total Demand           10     10     10
                                      Total Receipts           20      0       5
                                      Stock on Hand          10      0      -10
                                      Per unit Inv. Cost        2       2       2
                                      Inv. Carrying cost       20      0      -20
    Points assigned in advance for your replies
    Regards,
    Bansi.

    Hi PV,
    Thanks for the prompt reply. But we have already created two different formulae variables for the above requirement.
    The formula variable for Stock on hand is displaying the desired cumulative values. But the formula for Inv. Carrying cost is not able to use the display-value (cumulative value) of Stock on hand and it just uses the value corresponding to that particular week. For eg.
    for w2 if stock on hand =20 (cumulative value displayed on screen)
    and the original value of stock on hand for w2 = 0
    then the formula for Inv. carrying cost is using the original value(i.e. 0) but not the display value(i.e.20), whereas we want the cumulative value (i.e. 20) for our calculation.
    Any help in this regard would be highly appreciated.
    Regards,
    Bansi.

  • [SOLVED]How can I setWhereClause using a session value ?

    I have a session value that I want to use to pass as the bind variable to my Where clause on a View object.
    I have dragged the view from the data control pallete onto my page as an ADF form.
    I need to be able to set the Where clause of this view programmatically but I don't know where I should do this. Basically on entering this page the where clause should get set programmatically to the session value.
    I thought about creating a static block in my page's backing bean and doing it there but how would I access the view object from there ?
    Or should I create a Service method that sets the where clause and does an executeQuery and expose that to my page and execute it from my page's backing bean ?
    cheers

    Hi Dom,
    If you are using Oracle's binding layer - you could add a binding for "ExecuteWithParams" to the pagedef (right-click the bindings folder, add action binding, pick your View Object, choose execute with parameters as action); use an EL expression based upon sessionScope as the value for the bind variable.Then, add an invokeAction to the pageDef (right-click executables folder, choose invokeAction), specifying your executeWithParams binding as the binds property.
    Hope this gets you started.
    John

  • Using Select List value for building report

    I have an interactive report form. I have a "After Header" (LOAD) process that run sql commands that will populate a table with the data that the report needs for a given week.
    I have a Select List item that is run as a "Before Header" that gets a list of dates from a table. The dates only contain the first day of the week for the past two years. It is called "WEEK_OF" table and the column is called "WEEK_OF_DATE".
    The default value for the Select List is the first day of the current week. And then all of the first day of the week from the WEEK_OF table.
    I would like the LOAD process to use the value in the Select List. So at start up I would like the List to show the current week and report to begin with data from the current week.
    So I have tried to use the variable :WEEK_OF_DATE (Item name) as the beginning date for the report. However :WEEK_OF_DATE is null.
    Also, after I have the report displayed, I would like to select a new date from the list and have the report automatically refresh with that new data.
    Any Ideas what I am doing wrong?

    Hi Lyle,
    When setting a default value for a select list that is to be used to filter a report, I have found it best to do that using a computation, conditional on the item being NULL and running Before Header. If other computations rely on this value, then it should have the lowest sequence number to ensure that the value is available for those.
    Andy

  • Using unbounded item value for rendering expression in a region

    Hi there,
    I use jheadstart 11g tp2.
    I have a question about a group in application definition module which all of the items are unbounded.
    For 3 of them I use text input lov which related to lov that is bounded to a view.
    I use the return value of the lov for filling unbounded items and I want to use that filled unbounded item for rendering expression of a region.
    my problem is after using lov I can't use the binding value of the unbound item (which filled by returning value from lov) for another part of the the group
    I have a region that should be visible and invisible based on that item
    Please let me know is there anyway for doing this or not?
    Thanks for your help
    Setareh Rajaei

    the unbound item has a variable binding in the page def, so you can refer to the value of the unbound item using the expression
    #{bindings.[groupName][itemName].inputValue}
    Steven Davelaar,
    Jheadstart Team.

  • BEx Analyzer: Use Of Variable Values For Planning Sequence

    Hi experts,
    I want to start a planning sequence using a button item in a BEx Analyzer workbook. The planning sequence itself is defined with several variables, that are input ready. The same variables are used in BEx Queries that are bound to DataProviders in the workbook. Therefore the variables are filled by the user, if the workbook has been started. If the user wants to start the planning sequence, that is defined on the button item, the same variable values (which the user has already set in the beginning) should be used. But I didn't find a way to fill planning sequence variable from variables (like it is possible in the web interface using the DataBinding function). It seems, that it is only possible to set the variable with static values, that are defined in the button item. Am I erring in this point?
    Anyone here who can help me regarding this issue?

    Eitan Ohayon wrote:
    Why did you raise this question?,did you face any problem?
    Hi Eitan,
    The problem was, that the planning sequence worked fine in web but not in analyzer. The system told me in web, that several records had been read, created, changed and deleted. System messages in BEx Analyzer always indicated zero reads, creations, reads and deletions.
    Using your idea to set breakpoint in the INIT_EXECUTION method gave me the information, that all variables are not set or set with initial values (like '0000' for fiscal year). This seems to be the reason for my problem. Now I've reduced the planning sequence definition on the button only to that variables, that are really needed. Furthermore I defined the Command Range to get dynamic values for the variables from the excel sheet grid. So it seems to work.
    Thank you for your help!

  • Default search value for Query By Example Report

    Is there any way I can add the wildcard % as a default search value for text fields in the customization screen for a QBE report? The aim is to relieve the user from knowing that you have to input the wildcard % in the search field.
    Also, Is there a way to change the label of the standard 'Close' button, which is a bit misleading as it actually takes you back to the report customisation window?
    Cheers,
    Arnt

    Hi,
    You can give default values for bind variables in sql report and not for QBE reports. Also it is not possible to remove the close button.
    Thanks,
    Sharmila

Maybe you are looking for