Can we set the dynamic data source when using getReportParameters() ?

Hello!
I have a report where one of its parameters refers to a list of values (LOVs). This list of values is an SQL Query type. When the data source used in the report is defined in the BI Publisher server, I'm able to get the report parameters using the getReportParameters() function in my application. However, if the data source is not defined the function throws an exception, which is understandable.
I decided to dynamically set the data source so that even if the data source used by the report is not defined in the BI Publisher server, it still will be able to get the LOVs for the parameter. I tried setting the JDBCDataSource of the dynamicDataSource for the ReportRequest object that I passed to the getReportParameters() function. Please see the sample code below:
reportRequest.dynamicDataSource = new BIP10.BIPDataSource();
reportRequest.dynamicDataSource.JDBCDataSource = new BIP10.JDBCDataSource();
setReportDataSource(reportRequest.dynamicDataSource.JDBCDataSource, connectstr, jdbc, dc); //function to set the values for JDBCDataSource object
reportParams = webrs.getReportParameters(reportRequest, uid, pwd); //call the getReportParameters
I was expecting this to work as this is what I did to dynamically set the data source before calling the runReport function. So, my question is -- can we set the dynamic data source when using getReportParameters() ? I tried this both in versions 10g and 11g. It does not seem to work on both versions.
Regards,
Stephanie

report_id column of apex_application_page_ir_rpt can help us uniquely identify each saved report.
We can assign this report_id value to a page item and this page item can be put in the Report ID Item text box of the Advanced section of the Report Attributes page of the IR.
This should load the saved report identified by report_id and you can get rid of javascript
Regards,
Vishal
http://obiee-oracledb.blogspot.com
http://www.packtpub.com/oracle-apex-4-2-reporting/book
Kindly mark the reply as helpful/correct if it solves your problem

Similar Messages

  • Problem during the setting the query data source name in forms 6i

    We are now doing assignments in forms 6i actually there is a problem during setting the query data source name in run time.
    The problem is
    declare
    v_query varchar2(200),
    begin
    v_query :='(select empno,ename,deptno from emp where hiredate =' || control .value1 ||')';
    go_block('emp');
    set_block_property('emp',query_data_source_name,v_query);
    end;
    that bolded area is the problem that ia varchar value the single qoutes embedded with that value.how can i embedded single qoutes in that concatenation.
    That is now query will run like select empno,ename,deptno from emp where hiredate =control.value
    But we need like select empno,ename,deptno from emp where hiredate ='control.value'
    Message was edited by:
    Punithavel

    Thanks for your response
    We fixed the error
    and the answer is
    declare
    v_query varchar2(200),
    begin
    v_query :='(select empno,ename,deptno from emp where hiredate = ' ' ' || control .value1 ||' ' ' ) ' ;
    go_block('emp');
    set_block_property('emp',query_data_source_name,v_query);
    end;

  • How can I set the insert date to auto update in Pages 5.2.2

    how can I set the insert date to auto update in Pages 5.2.2
    I am attempting to have the date in header auto update in a Pages file.
    I can insert it, but where is the AUTO UPDATE selection
    OS10.9.4
    thank you

    Apple never included the auto-update feature for dates in Pages v5.2.2. You would have to single-click the date, and deliberately update it.
    If you have Pages ’09 v4.3 in /Applications/iWork '09, then it will allow you to configure auto-update of the date field. Right-click on the date, set the format, and click the selection for automatically update on open.

  • Can barely hear the results in SpaceDesigner when used as Sidechain??

    Hey guys I have a question, when I slap a Space Designer in an Aux channel and use it as a send effect to a track why is it that I can hardly hear the difference? But when I put a compressor on the Aux channel right after the Space Designer I can then hear the difference?
    So ya. I'm sure something is not right, I shouldn't have to put a compressor everytime i wanna use a Reverb....right??

    What might be going wrong is if you also set space designer to an amount of 'dry' signal (upper right 1/4 circular fader). Normally, if you set the amount of reverb in SD to -10 dB and the dry amount to -∞ dB, and the send level between -10 and 0, you'll get a noticeable amount of reverb.
    So there are three ways to increase the amount of reverb: increasing the send level, increasing the ampount of 'wet' in SD, or upping the fader on the bus itself. I tend to use that initially, as it keeps the reverbs proportional when multiple tracks send to it. The 'wet' fader in SD basically does the same, but I like to park that around -6dB and balance it by using the AUX fader and of course the different send levels.
    O, and another tip: listen to reverb levels thru speakers, not thru headphones. It can sound okay via headphones, but then the monitors can reveal you are actually drowning things in reverb. I treat it as a spice: you should only notice it when it is gone, it should (generally) not dominate the mix.
    hope this enlightens a little,
    regards, Erik.

  • How can i set the dynamic text box to show variable value?

    In AS2, I can make a dynamic text box set a var name, when i
    use button set/change the var value, this textbox can show the
    value also.
    but In AS3, dynamic text box can't add var name. than how can
    i do it now?

    Set an instance name for the dynamic textfield. Then, to
    populate the textfield with the value of a variable, use:
    textFieldInstanceName.text = variableName

  • How can I define the Oracle data source flexible so that I can change?

    Dear all:
    I have a problem in define the crystal report file(.rpt) in Crystal report desinger 9 by using Oracle database.
    Since in the "Control Pancel" -> "ODBC" ->, I can't find the oracle DNS definition in order to define the ORACLE database's IP address, port etc. So I can't allocate the Datasource in "Data base" -> "Define Data source" of Crystal report 9 desinger.  Finally, I have to explicitly define the Data source by browsing the Oracle DB in "Define Data source" function. It is not flexible while I want to switch the DB server by change its IP adress.
    But in contrast, I can easily define a MS SQL server DNS and allocate it to .rpt file.
    Is that something I was wrong?  Any reference or answer are appriciated!

    Hello,
    Moved to Crystal Reports Database forum.
    CR needs an Oracle Client installed. Once it is installed then you'll find a driver to create a DSN and then you can set location to another Oracle Server.
    You have to first install the Oracle Client.
    It's also better to create your reports off of Oracle, it's easier to then set location to MS SQL Server.
    Thank you
    Don

  • Set the retrievel date from when i using OCI drivers.

    Hi Raffi,
    I used till now the jdbc:oracle:thin driver.
    I replaced the driver to the OCI driver because I needed to support Russian language.
    Now the date is retrieved differently from the table.
    the sql sentence is : Select LOGICAL_DATE From LOGICAL_DATE Where LOGICAL_DATE_TYPE ='O' AND EXPIRATION_DATE IS NULL;
    The results of the two runs are:
    With thin driver: 2001-06-10 00:00:00.0
    With OCI driver: Sun Jun 10 00:00:00 GMT 03:00 2001
    How can I cause the OCI driver to return the date as it was with the thin client without changing the code?
    Thanks For the help.

    Yaakov Lifshitz wrote:
    I used till now the jdbc:oracle:thin driver.
    I replaced the driver to the OCI driver because I needed to support Russian language.
    Now the date is retrieved differently from the table.
    the sql sentence is : Select LOGICAL_DATE From LOGICAL_DATE Where LOGICAL_DATE_TYPE ='O' AND EXPIRATION_DATE IS NULL;
    The results of the two runs are:
    With thin driver: 2001-06-10 00:00:00.0
    With OCI driver: Sun Jun 10 00:00:00 GMT 03:00 2001
    How can I cause the OCI driver to return the date as it was with the thin client without changing the code?
    Thanks For the help.Hi. You can't. You are probably calling getString() for the date value, and that depends on what the
    driver creates or has by default for the underlying datum. For the thin driver, it must directly
    create a java.sql.Timestamp object, from which it will just sent you the toString() output. The
    OCI-based driver can/will use OCI calls to get the datum as requested, and OCI will format date
    objects as you see.
    If you want to normalize your code to get the same for all drivers, you should do a
    getTimestamp(),
    and then to a toString() on that object.
    Joe

  • Can I disable the audio pitch adjustment when using frame rate conversion?

    We have a mov file containing digitized film material with audio scanned at 25 fps (1 frame film for 1 frame video) while the film should be 18 fps.
    So both video and audio are too fast.
    Compressor provides the framerate conversion so source plays at x frames per second.
    This works well for video but the audio slowed down remains the pitch it has in the original speed. A great feature but an unwanted result in this case.
    Audio should be at a lower pitch since it was recorded too fast.
    Can we disable the pitch adjustment, when using rate conversion, so the pitch is corrected (lower) as well?

    Hi Jason
    This does sound tricky - the only other suggestion that I can add to David's is to use the smallest GOP setting you can, I'm in PAL land so the default is 12frames but I push it down to 7, this forces more I-frames into your mpeg. It makes the file size higher but in a project your length it doesn't matter. Make sure you encode your audio to .ac3 (use the Dolby 2.0 preset in compressor). Although David's limit is 7.4, if I'm not playing back on a laptop I'll set my CBR to 8Mbps (in Compressor CBR is called 'one-pass').
    Once you create your mpeg, play it back in Quicktime first to make sure there are no artifacts full screen (with Simulators reduced size sometimes artifacts exist in your orig mpeg that you may not notice).
    Also as David said, DVDSP doesn't re-encode an existing mpeg so something else must be going on. Before you re-import your new mpeg, delete your DVDSP prefs and any menu mpegs that it has created.
    If you have Toast, try just doing a Build, instead of Build & Format. This will give a VIDEO_TS folder that you can then burn in Toast. Use the Data tab and select DVD-ROM/UDF.
    If this doesn't work I don't know what will.
    Good luck!
    B

  • How can I disenable the EXCEL field format when use ALV download to excel ?

    Dear friends,
         I have a problem with the ALV download to EXCEL. One field Value in ALV is like u2018-abcdeu2026u2019.the character u201C-u201Cis the first   position  in field value.when I download  the value to EXCEL,the field value u2018-abcdeu2026u2019 changed u2018=-abcdeu2026u2019 in EXCEL.how can I remove u2018=u2019 in EXCEL when I down to excel used ALV.
    I add a space in u2018  -abcdeu2026u2019,So this value can be download to Excel .
    Have you any solve method?
    User does not use excel logo button to download.
    User use Local fileu2026 button to download
    Thanks
    Sun

    add a single quote to the beginning of the field.
    like:  '-abcde
    in excel it will be shown as : -abcde

  • How can I change the screen time out when using the notification screen in zoom on the IPhone?

    To clarify, when I am using Zoom and using three fingers to move around on the notification screen.  The screen goes blank even if I am actively moving my fingers across the screen to read the screen.  Why does the notification screen not recognize active movement and go blank after a peiord of time.  I have very limited sight and rely heavly on SIri, text speak, and Zoom.

    Hi BlindmanJay,
    Thanks for using Apple Support Communities.
    iPhone: About General Settings
    http://support.apple.com/kb/ta38641
    Set the amount of time before iPhone locks
    Choose General > Auto-Lock and choose a time.
    Hope this helps,
    Mario

  • How can I set the java Date not greater than the day inputed?

    When I would input the date, I don't want it to be after this day because it would violate some business logic in my program. I am allowed to input date latter than this day like yesterday, last week etc. but not after this day.....Can anyone give me a concrete example or logic on how to do this?THANKS!

    tr3k wrote:
    Can you explain it by code?I could, but I won't. I pointed you in the right direction. Now it's up to you to make the effort. Give it your best shot and post a more detailed question if you have problems.
    http://www.javaworld.com/jw-12-2000/jw-1229-dates.html
    http://www.javaalmanac.com/egs/java.text/FormatDate.html
    http://www.javaalmanac.com/egs/java.text/ParseDate.html
    http://java.sun.com/javase/6/docs/api/java/util/Date.html
    http://java.sun.com/javase/6/docs/api/java/util/Calendar.html
    http://java.sun.com/javase/6/docs/api/java/util/GregorianCalendar.html
    http://java.sun.com/javase/6/docs/api/java/text/SimpleDateFormat.html

  • How can I customize the auto-generated WSDL when using a PL/SQL webservice?

    My webservice returns a refcursor as an ArrayOfString. (I followed the sample code.) Instead of everything being returned in one large array, I need to create a correct record hierarchy, like <rec1><fld1></fld1></rec1>, etc.
    As far as I know, this grouping has to be done in a WSDL file. However, following this sample, the WSDL is auto-generated and overwritten with each launch of the webservice.
    Am I missing something, or are there other secrets/tips?
    thanks

    Very Nice:) Thanks!
    1. I added this to my HTM HEADER:
    <script language="JavaScript" type="text/javascript">
    function test_javaprompt () {
    var Hours = prompt("How Many Hours?");
    $x('P142_HOURS').value = Hours;
    doSubmit()
    </script>
    2. I Created an Item:
    P142_HOURS
    3. I Created a Button:
    TEST_JAVA
    a. In the Button area for, Optional URL Redirect, I selected- Target is a URL
    b. URL Target- javascript:test_javaprompt();
    When I press the Button then it does Exactly what I want it to do.
    Except....
    Ultimately, I do not want this javascript assigned to the button.
    I would like to run this javascript when the value of a DatePicker Item, (P142_DROPS_SUBMITTED) is changed.
    If you can help me with that then I'll be forever grateful:)
    -Gary

  • How can I set the foreground/background color after using CSPickColor()?

    Hello all,
    Is there any one who has experience on changing foreground or background color using Photoshop Plug-in SDK?
    Currently I can get a returned color from CSPickColor(), but have no idea how to use it.
    Thanks!

    You can try a linear-gradient that starts at gray 0% and ends at white <whatever the percentage the thumb is at>.
            final Node track = slider.lookup(".track");
            slider.valueProperty().addListener(new ChangeListener<Number>() {
                public void changed(ObservableValue<? extends Number> ov, Number t, Number t1) {
                    double pct = (t1.doubleValue()-slider.getMin())/(slider.getMax()-slider.getMin())*100;
                    track.setStyle("-fx-background-color: linear-gradient(to right, gray, gray " + pct + "%, white" + pct + "%, white);");
            });Edited by: dgrieve on Apr 12, 2012 12:19 PM

  • Why can not find the G/L document when use mr8m reverse .

    Dear all,
    I want to reverse a document use MR8M trans code, but the message tell me the document is not exists. but I can find the document in FB03 . why?
    This document type is RE.
    Please help me.

    sorry ,the document is error.

  • Can we get the L7 data for packet using jpcap

    Hi ,
    I am new to jpcap library. I want to retrieve the layer information from the Pcap file. I captured the packets on my interface and saved as pcap file. Now I want to retrieve the Layer 7 data (like http request and responses) from the pcap files. Is it possible using jpcap library???
    I am really strucked at this point in my project...:(

    Hi,
    You try ur logic in
    do                      ---endo.
    after describing the table .
    Do the loop for the number of records available.
    i.e. as per your logic.
    describe table i_hdr line h_lines.
    do h_lines times.
    put your above code and enddo.
    Hope this will work.

Maybe you are looking for