How to change Reports where clasue

Hi
How can I change Report's where clause If I'm calling it from Oracle Forms.
Oracle Version 9.0.2.9.0
Any ideas please?
Thanks!

I guess this questions belongs to Reports Forum?
But anyways, you can create a host/bind variable, and emmbed it into your query definition statement like this:
SELECT columns
FROM yourtable
&WhereVariable
.. where wherevariable is the name of your bind variable.

Similar Messages

  • How to change report region fields in read only mode?

    How to change report region fields in read only mode?
    skud.

    add the following javascript fuction to page header(or Javascript function and variables section)
    function disableItems(pRegionStaticId,pDisableFlag) {
      $('#'+pRegionStaticId).find('[name^=f]').each( function(){ /* matches fxx */
        if( $(this).attr('name').match(/f[0-9][0-9]/) ){
          return $(this);
      }).attr('disabled',pDisableFlag);
    pRegionStaticId is the region's static Id+
    Note that this code specifically disables only application arrays. Disabled items are not available after submission (and hence are different from readonly) . But any page javascript can modify disabled or readonly items(client side), so you must check at the server side to validate the data.
    You can disable items using
    disableItems('MY_REGION_ID' ,true);and enable them by passing false
    disableItems('MY_REGION_ID' ,false);

  • How to change report displayname at runtime when run from the report server?

    hi all,
    with the reportviewer widget in a winforms app, i'm able to change report displayname at runtime by handling thesubmittingparametervalues event like so:
            private void reportViewer1_SubmittingParameterValues(object sender, ReportParametersEventArgs e)
                string po = e.Parameters["Order"].Values[0];
                this.reportViewer1.ServerReport.DisplayName = "Load Out - " + po + " - " + DateTime.Now.ToShortDateString();
    question: how do i achieve the same thing when the report is run via the ssrs reportserver website?
    thanks for any tips,
    sff

    Hi sherifffruitfly2,
    According to your description, you want to change the display name of report in Report Manager. Right?
    In Reporting Services, we can't make the report file name dynamically. But we have Build-in Fields to show report name and execution time in a report. We can add a textbox and put in the expression below:
    ="Load on- "+Globals!ReportName+" "+Globals!ExecutionTime
    It will show the report name with execution time when we run the report:
    Reference:
    Built-in Collections in Expressions (Report Builder and SSRS)
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • How to change report query dynamically in Oracle APEX?

    Hi,
    I want to dynamically change the where condition in APEX report query. Can anyone help me solve my this problem?
    (Just want to change the query which we change in Oracle Reports using lexical parameter to change &Where, &Order by etc. dynamically!!)
    Thanks, Praful

    Hi
    I've been using flexible queries in APEX for a few years now, and your question just added a whole new dimension to the flexible and powerful nature or writing reports in APEX.
    While APEX Interactive reporting has almost completely removed the need the equivalent of Lexicals in Oracle Reports, I thought it might be fun to try and use lexicals in an APEX report.
    Before we start I should summarise the powerful capability of APEX reporting to have oprtional parameters (lots and lots of them if this is needed).
    For each parameter, you simply add a page item which will hold the value of the parameter.
    The item/parameter can be populated by typing in the value, defining an LOV, using a date-picker etc.
    To make the parameter optional simply use an OR in the where clause.
    So for a apge item P200_PARAM1.....include
    WHERE (:P200_PARAM1 IS NULL
    OR COLUMN1 = :P200_PARAM1)
    This way you can either leave the page item null or type in / select a value from a LOV.
    There is a small quirk in APEX LOV's which sometimes returns a value of '%' or '%null%' - depending on the version - when no value is selected.
    See Patrick Wolf's solution for this at Re: Null value handling in LOVs
    I include this Application Process in all my APEX applications ;)
    Now let's look at using the equivalent of Oracle Reports Lexicals......
    First-off - this is based on the APEX SQL report - NOT Interactive Report.
    It relies on the fact that you can let the query be parsed only at runtime.
    1. Define an SQL report entering the 'core' of your query.
    With a query like SELECT ENAME, JOB FROM EMP
    Select 'Generic Columns' option in the 'Column Headings' section
    Finish the report creation
    2. Define a page item - say P200_LEXICAL - type text on the page
    3. Edit the report and update the SQL query to include your lexical page item
    SELECT ENAME, JOB FROM EMP &P200_LEXICAL. (REMEMBER THE '.' AT THE END)
    Ensure that the option "Use Generic Column Names (parse query at runtime only)" is selected at the bottom of the query
    4. Add a button to the page -using 'Create a button displayed among this region's items' the will submit the page.
    5. Run the page - you will see all the employee names and job desdriptions
    6. Enter a where clause into the 'Lexical' textbox - say "WHERE ENAME LIKE 'K%'" and click the 'Go' button
    Voila! your where clause is magically applied.
    Try any variant you like adding an ORDER BY clause etc...... this is FUN!
    7. Clear the value of the LEXICAL and click go.
    Edit the report and move the &P200_LEXICAL. into the selected columns (or add another one)
    SELECT ENAME, JOB &P200_LEXICAL. FROM EMP
    8. Run the page
    Enter ",SAL" in the textbox and "Go"
    We can add as many columns as we like (subject to the "Maximum number of generic report columns:" set below the SQL query in the report edit section)
    Now because we have all the flexibility in APEX of setting page items using SQL or PLSQL you can set the value of the lexical programatically, or just pre-set a few values in an LOV - the options are limitless.
    While I've never had the need to use lexicals - you can see that APEX provides the most Flexible Lexicals in town.
    Eat your heart out "Oracle Reports"!!!
    Have fun
    Mike

  • How to Change Report Font Size in 11i

    Hi,
    Please let me know how to change font size of an existing report in Quick steps.
    Basically the printed report font size is too small. We change the font size from the printer but still it dose not change.
    We have 11i on Unix Server and a dot matrix printer.
    The report is character based and Report Builder shows Courier 10, print style is Portrait. We need it to be 12-14.
    Thanks!

    Hi,
    Refer to the following document.
    Note: 467568.1 - How To Change The Font, Size, or Page Layout of Standard and FSG Reports
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=467568.1
    Regards,
    Hussein

  • How to change Report Server Name???

    How can I change my reports server name which is normally generated according to Server Name_OracleHome combination. But can I use a different name for my report server and which configuration files I'll have to change???

    How can I change my reports server nameSee Paulo Esteves answer in How to change the Report Server Name?

  • How to change report filepath in custom TS UI?

    I have made a custom TestStand UI (use  TS  API) with CVI. Now i want to change my report filepath in my   UI.What should i do?
    I  have known  one way,use  Report Option Callback !!!
    Is there another way???
    Solved!
    Go to Solution.

    If it's before an execution then why wouldn't you use the Configure>>Report Options..?   Unless of course you aren't using an NI provided process model, in which case you will have to create something like they have in their models. Just create a Configuration Entry point and call some code that changes the path, or better yet- Call it through the modelsupport2.dll like they do in the Sequential Model. 
    I'm trying to picture your UI and where you would have this option if not in the Configure menu.  Doesn't really make sense to me.
    I do know that the report path is saved in the TestStandModelReportOptions.ini file.  This is in your Cfg directory which is linked in the <TestStand> directory.  So really all you need to do is change the value in there somehow. Not only would you have to change the Directory but the DirectoryType would have to be set to "SpecificDirectory" as well. I'm guessing that's what the modelsupport2.dll is doing under the hood.  You could browse through it's code if you know C and see how it's done.  All the source code is there.
    Hopefully this can help get you on the right path a bit.  This seems like an interesting project but you are really getting into the guts of TestStand.
    Good luck,
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~

  • Need to make report "printable" How to change report look (template?)

    We are using Theme 2 and it's the only one installed (that I can see anyway) and we aren't going to be installing anything else. I can't do anything that causes a major upheaval in the application because it has 104 pages and is in production. We are using 3.0 and 10g. We don't have BI (and can't afford it) so I'm trying to make some reports printable.
    With theme 2, the column headers are shaded and text is blue - this shows up funny when printing so I want to modifiy a template that leaves all the lines in, changes the shading to grey, text to black and removes the "region" shading/decoration. I tried this by just modifying just the region template (and leaving the report alone) and it works other than the title is small and all I can do with it is center or bold, no matter what I try, it doesn't increase in size.
    So I tried to modify an existing template but every line has a reference to theme 2
    i.e. class = t2header and I don't know what to put there instead of the t2 that will make it stop using that theme and yet still show the lines, etc, that I want in the report.
    Obviously I don't have a clue what I'm doing, and anything I find to help - I've been playing with Firebug and can figure out where to make changes, I just don't know what I'm supposed to change things to.

    Just one more question ;-)
    if I put <style> th.t2header { color:red; }</style> in the Region Definition Header on a page the text in ALL regions on that page (not just the region in which I put this style) turn red. How can I make it only turn the region it's in red, not all of them?
    I would prefer to put it in the Template but I don't know how... this is my code but if I try to reference th.t2header it just pushes everything to one side, or does nothing, so I guess I'm not putting it in the right place?
    <table cellpadding="0" border="0" cellspacing="0" summary="" id="#REGION_ID#" class="htmldbRegion">
    <td class="t2RegionHeader" style="color:black;" valign="bottom">#TITLE#</td>
    <tr>
    <td class="t2RegionBody" valign="top" colspan="2">#BODY#</td>
    </tr>
    </table>

  • How to change report server name in 80 forms at once????????

    Hi All
    i am migrating my application 9i to 10g.
    i have 80+ report parameter forms in my application. now i need to change the report server name in following two locations.
    1. Report Server Property of Report Object
    2. RP2RROREPORTSERVER Parameter property under Parameters node in object navigator.
    HOW CAN I CHANGE IT AT ONCE?
    Regards,

    there is property search option, but it shows only file name only.
    i downloaded jform but its not working error is "Could not find the main class. Program will exit!!

  • How to change report size from A4 to A3 in Report 6i

    I want to change the size of an existing report in Report 6i from A4 to A3 size. How to go about it? Thank in advance.
    Anil chopra

    Hello Anil,
    Have you tried to click on the property palette of the 'Main Section' under 'Layout Model'. There you can set the Report Width and Height.
    -Marilyn

  • How to change Report Server 10.1.2 from GMT to EST

    We have the 10.1.2 Oracle Application Server up and running but the time on the Report Server is GMT. How can the time be changed to EST? Oracle suggested changing a value in a parameter file and a Windows environment variable, neither of which worked. Now, they are saying reinstall the Web Server. Is there any other way? How is this set during the install?
    Thanks,
    Dave

    hi
    it was better if you created table first.
    now create table for your server name and use select into statment.
    and after this if any happend you will be able to change the server name easily by
    modifying table.
    hope this helps u.
    sarah

  • How to change report layout to "Landscape"?

    Hi,
    I am using oracle 6i in window 98. I want to change my report layout to "Landscape"? How do I do it?
    Thanks.
    Jun

    May I assume you're using Oracle Forms/ Reports 6i? If so, you probably want to post in the Forms or Reports forum.
    Justin

  • If database field increases in size, how to change report to display this increase?

    Hello Everyone,
           I'm working with Oracle Reports 10g and have a report that was already created.  I need to increase the size of a field from 50 to 200 in width to accomadate a database change.  When i click on the field and choose properties, the width value is locked.  How do i change this?
    thank you,
    steven

    Hi,
    Change your properties of horizontal/ vertical elasticity of the frame enclosing that object to Variable instead of fixed... Now try to define the width of your field .. It can be varied now... 
    Regards,
    Archana

  • How to change report attributes like heading, sort etc programmatically

    Some of the columns from a classic reports using pl/sql as region source should be sortable. Is it possible to change this attribute (sort = yes) using JavaScript or APEX API?
    David
    Edited by: david on Sep 6, 2011 11:56 PM

    There is something I don't understand here. Why do you need to point at the sxd? What is changing? Like I mentioned before. If the contents of the xsd change, all the report will do is - at best - drop the changed fields so you will be missing data. Perhaps some of the following will help;
    [Crystal Reports Guide To ADO.NET|http://www.sdn.sap.com/irj/boc/go/portal/prtroot/docs/library/uuid/401c4455-a31d-2b10-ae96-fa57af5aec20?quicklink=index&overridelayout=true]
    [Crystal Reports For Visual Studio .NET Reporting Off ADO.NET Datasets|http://www.sdn.sap.com/irj/boc/go/portal/prtroot/docs/library/uuid/2091d0c3-da1d-2b10-22be-a3426b183f75?quicklink=index&overridelayout=true]
    [Crystal Reports For Visual Studio 2005 Walkthroughs|http://www.sdn.sap.com/irj/boc/go/portal/prtroot/docs/library/uuid/2081b4d9-6864-2b10-f49d-918baefc7a23?quicklink=index&overridelayout=true] (page 332 on).
    Ludek

  • How to change report title dynamically??

    Hi,
    I need to change the report title dynamically. The report title must contain the value of a particular culumn in the same report.
    ex:
    col1----col2
    123----abcd
    Report title should be report123
    Thanks

    Hi BIPUser,
    Thanks for your answer.
    @1 in title view is not working. It shows @1 in the title view.
    But Narrative view is working fine.
    Thanks again
    Have great weekend
    Edited by: bob123 on Apr 2, 2010 8:41 AM

Maybe you are looking for

  • ESS error while entering Leave Request

    Hi Gurus , When I am trying to open ESS->Working time->Leaverequest It is giveing following error ,please help us java.lang.IndexOutOfBoundsException: Index: 0, Size: 0      at java.util.ArrayList.RangeCheck(ArrayList.java:507)      at java.util.Arra

  • Can't add row using table sorter

    I had a jtable with my own mytableModel that implements AbstractTableModel. In mytableModel, I have addRow, removeRow... so I can delete/add row dynamically by calling mytableModel.addRow(..). Everything works fine. However, after I added the table s

  • Subunit of time below a second in PE11?

    Hi folks, I notice that PE11 has a unit of time below a second, which is divided into 30 parts. I had always assumed one would simply use decimals if they need subdivsions of a second, such as 4.5 seconds. So that a timepoint of 2 hours, 3 minutes an

  • How can I set my safari to default to private browsing?

    How can I set Safari to use Private Browsing as its default?

  • App World Billing Error

    Everytime I try too download a 99p app get too billing purchasing and  i select purchase but then it comes up with a message saying "null (error : billing identity unknow) rang my provider 3 times and they say that need too post on here for an answer