Using Sysdate in Reports Formatting Conditions

hi,
we want to create a portal report that highlights a row whose date column is today's date. in the formatting conditions tab page we've tried settin the value to sysdate and #sysdate. this results in the following error when you run the report ...
ORA-01858: a non-numeric character was found where a number was expected
Error: Unable to execute query (WWV-10201)
This is a very valuable feature to have. Any ideas? Tx.

Hi,
This is not supported. You can #sysdate only in the customization parameter values. It is not allowed anywhere else.
Thanks,
Sharmila

Similar Messages

  • Report Formatting Conditions

    I have a report based on a table that has 2 columns (start_time and end_time). I would like to change the background color
    if the systime is between start_time and end_time. I don't see a way to specify multiple conditions in the formatiing options.
    Any ideas?

    You can specify multiple conditions, by default you get an option of entering four conditions, you can enter more by clicking on the more button.
    Right now I don't think there is any way we can specify a sysdate or time for the formatting conditions like you need.
    I have a report based on a table that has 2 columns (start_time and end_time). I would like to change the background color
    if the systime is between start_time and end_time. I don't see a way to specify multiple conditions in the formatiing options.
    Any ideas?

  • SQL-based Reports: Formatting Conditions

    I need to format a line based on comparing 2 columns to each other.
    for example if col1 >= col2 then format
    I only see a way to compare col1 to a static value. Is what I am trying to do possible and if so how?
    Thanks in advance

    Hi,
    This is not supported. You can #sysdate only in the customization parameter values. It is not allowed anywhere else.
    Thanks,
    Sharmila

  • Report formatting in my way

    I want to make a report which will show my DB table data the way I want.Most report tools just fetch the data and format it in a typical row. But I want to display my row data in a way that I want.For example, I want to show each cell data of a row in a particular place in a report. like- id, top-left, name,top-right
    and so on. I use Jasper report and QBEspress but can they format data this way.if so, can anybody give me a link for the tutorial.

    Hi Meenu
      I'm using the EPM report formatting and excel.
    I tried to make a macro run too.
    But when updating loses the reference.
    Following code:
    Private Sub Worksheet_Change (ByVal Target As Range)
    'Validates that was enacted i4 cell
    If Target.Address = "$ I $ 4" Then
         'Colours range from white
         'Record a macro with its original formatting and replace this snippet
         Range ("I11: T11"). Select
         with Selection.Interior
             . = Pattern xlSolid
             . PatternColorIndex = xlAutomatic
             . ThemeColor = xlThemeColorDark1
             . TintAndShade = 0
             . PatternTintAndShade = 0
         end With
         Range ("I12: T20"). Select
         with Selection.Interior
             . = Pattern xlSolid
             . PatternColorIndex = xlAutomatic
             . ThemeColor = xlThemeColorAccent2
             . TintAndShade = 0.799981688894314
             . PatternTintAndShade = 0
         end With
         'Sets the last column to be colored
         Order = Replace (Format (Target, ">"), "V", "") + 8
         'Tests whether the final column is greater than 8
         End If> 8 Then
             'Colours range.
             'In this case the first line is 11 and the last line is the 20, but can be changed according to the need
             For Each C In Range (Cells (11, 9), Cells (20, End))
                 C.Select
                 with Selection.Interior
                     . = Pattern xlSolid
                     . PatternColorIndex = xlAutomatic
                     . ThemeColor = xlThemeColorAccent1
                     . TintAndShade = 0.399975585192419
                     . PatternTintAndShade = 0
                 end With
             Next
         end If
    end If
    Range ("$ I $ 4"). Select
    end Sub
    Regards
    Thaís

  • How to use SYSDATE as a default value of a bind variable in a query report?

    Hi,
    I want to use SYSDATE as default value for a bind variable in Query based report.
    I don't see any way to do it, someone helps?
    Thanks a lot.
    Paulo.

    You can aslo use #sysdate directly.
    Hi,
    The way I'm doing in my report is, I have a database function (f_ret_sysdate) with the following code
    create function f_ret_sysdate return varchar2
    begin
    return to_char(sysdate,'mm/dd/yyyy');
    end;
    Now, in the 'Customization Form Display Options' section of the report I'm calling this function as #f_ret_sysdate in the default value field of corresponding bind variable to display SYSDATE with the format.
    Hope this helps!...
    -Krishnamurthy

  • Issue in using presentation variable as filter condition in the reports

    Hi,
    I have an issue in using presentation variable as filter condition in my reports the details are as follows:
    Details :
    We want to implement the Max and Min variables through Presentation variables only.we do not want to implement it through session variables in this case.
    We have two variables MIN and MAX to be used as Presentation Variables,for a column of the report (which is a quantity),so that the user wants to see the data for this column within a particular range.i.e the Min and the Max.This part has been implemented well . The issue is when the user wants to see the full data.In that case we will not pass any values to these two Presentation Variable or in other words we are not restricting the report data so we are not passing any value to the variables,this is when the report is throwing the error. we want to leave this variables blank in that case.but this is giving error.
    Please suggest how can I overcome this issue.
    Thanks in Advance.
    Regards,
    Praveen

    i think you have to use guided navigation for this. create two reports first is the one you are having currently and second is the one in which remove the presentation variable from the column formula. i.e. the same report with no aggregation applied.
    Now create a dummy report and make it return value only when the presentation variable value is not equal to max or min. guide the report to navigate between the first and second report based on the result of the dummy report.

  • Report with custom layout - formatting conditions

    Hi,
    There's a report with custom layout. What I need is to format some cells depending on the data they contain(like different background color). There's a tab named "Formatting Conditions" which should be meant for doing this and it works perfectly when report has tabular layout. But nothing happens in case of custom layout. Should this be done then in the "Report Layout Editor" and with Javascript? Portal version is 3.0.9.8.0.
    Thanks in advance,
    Madis

    Hi,
    Some condtions like background color do not work in custom mode reports. This is because in case of custom reports the table html is specified by the user and the report renderer has no control over it.
    Hope this helps.
    Sunil.

  • SQL Query (updateable report) Region - Conditionally Hide and Set Values

    SQL Query (updateable report) Region - Conditionally Hide and Set Values
    Outline of requirement :-
    Master / Detail page with Detail updated on same page using SQL Query (updateable report).
    The detail region has the following source
    SELECT item_id,
           contract_id,
           CASE WHEN hardware_id IS NOT NULL THEN
                   'HA'
                WHEN backup_dev_id IS NOT NULL THEN
                   'BD'
                WHEN hardware_os_id IS NOT NULL THEN
                   'HS'
           END item_type,
           hardware_id,
           backup_dev_id,
           hardware_os_id
    FROM   "#OWNER#".support_items
    WHERE  contract_id = :P26_CONTRACT_IDThe table support_items implements arced relationships and has the following columns
    CREATE TABLE SUPPORT_ITEMS
      ITEM_ID         NUMBER                        NOT NULL,
      CONTRACT_ID     NUMBER                        NOT NULL,
      HARDWARE_ID     NUMBER,
      BACKUP_DEV_ID   NUMBER,
      HARDWARE_OS_ID  NUMBER
    )A check type constaint on support_items ensures that only one of the fk's is present.
          (    hardware_id    IS NOT NULL
           AND backup_dev_id  IS NULL
           AND hardware_os_id IS NULL
    OR    (    hardware_id    IS NULL
           AND backup_dev_id  IS NOT NULL
           AND hardware_os_id IS NULL
    OR    (    hardware_id    IS NULL
           AND backup_dev_id  IS NULL
           AND hardware_os_id IS NOT NULL
          )    Hardware_Id is a FK to Hardware_Assets
    Backup_dev_id is a FK to Backup_Devices
    Hardware_os_id is a FK to Hardware_op_systems
    The Tabular Form Element based on item_type column of SQL query is Displayed As Select List (based on LOV) referencing a named list of values which have the following properties
    Display Value     Return Value
    Hardware Asset    HA
    Backup Device     BD
    Computer System   HSThe Tabular Form Elements for the report attributes for hardware_id, backup_dev_id and hardware_os_id are all Displayed As Select List (Based on LOV).
    What I want to do is only display the Select List for the FK depending on the value of the Select List on Item Type, e.g.
    Item_Type is 'HA' then display Select List for hardware_id, do not display and set to NULL the Select Lists for backup_dev_id and hardware_os_id.
    Item_Type is 'BB' then display Select List for backup_dev_id, do not display and set to NULL the Select Lists for hardware_id and hardware_os_id.
    Item_Type is 'HS' then display Select List for hardware_os_id, do not display and set to NULL the Select Lists backup_dev_id and hardware_id.
    There are properties on elements to conditionally display it but how do we reference the values of the SQL query Updateable region? they are not given a page item name?
    Also on the Tabular For Elements there is an Edit tick against a report item - however when you go to the Column Attributes there is not a property with which you can control the Edit setting.
    What's the best way of implementing this requirement in APEX 3.1?
    Thanks.

    >
    Welcome to the forum: please read the FAQ and forum sticky threads (if you haven't done so already), and update your profile with a real handle instead of "user13515136".
    When you have a problem you'll get a faster, more effective response by including as much relevant information as possible upfront. This should include:
    <li>Full APEX version
    <li>Full DB/version/edition/host OS
    <li>Web server architecture (EPG, OHS or APEX listener/host OS)
    <li>Browser(s) and version(s) used
    <li>Theme
    <li>Template(s)
    <li>Region/item type(s) (making particular distinction as to whether a "report" is a standard report, an interactive report, or in fact an "updateable report" (i.e. a tabular form)
    With APEX we're also fortunate to have a great resource in apex.oracle.com where we can reproduce and share problems. Reproducing things there is the best way to troubleshoot most issues, especially those relating to layout and visual formatting. If you expect a detailed answer then it's appropriate for you to take on a significant part of the effort by getting as far as possible with an example of the problem on apex.oracle.com before asking for assistance with specific issues, which we can then see at first hand.
    I have a multi-row region that displays values and allows entries in a number of fields.Provide exact details of how this has been implemented. (An example on apex.oracle.com is always a good way to do this.)
    I should like the fields to be conditional in that they do not permit entry, but still display, if certain conditions apply (e.g. older rows greyed out). Can this be done? Almost anything can be done, often in multiple ways. Which are appropriate may be dependent on a particular implementation, the skills available to implement it, and the effort you're willing to expend on it. Hence it's necessary to provide full details of what you've done so far...

  • How to use interactive internal report in alv

    hey expert i want to know who i will used interactive internal report in alv report by various tables in my one assingment.
    They have told us to do the various steps which i was giving down:
    1) In first step they have told me to use of call transaction 'XD03' in the report .I have got that problem solved.
    2)  In second they have told in this assingment to use of interactive internal report you have to prepare in alv format.
    a)I  want to know about this .They have told in assingment that in the customer details we have to click to the net value field record and go to the details of sales order detail in which it show the detail of all the details related net values .
    b) I want to know about this lines also from you:
    Qty field refers to the Target Qty field in the table VBAP.
    To get Price in the unit divide the price by Condition Pricing Unit.
    If SHKZG field is set, then multiply the amount by -1, making it negative. (understand why?).
    3) In the third step they have told to used of drill down which it is in the at line selection ,when i click to the list order of sales it go to  the next report and show me the detail of all the list order details. 
    But i have to use the  '2.b' condition there .
    cna u please send me reply for all this step.
    Edited by: AjaySAPmumbai on Nov 28, 2011 8:55 AM
    Moderator message : Spec / requirements dumping is not allowed, search for available information, read forum rules before posting.  Thread locked.
    Edited by: Vinod Kumar on Nov 28, 2011 1:26 PM

    hey expert i want to know who i will used interactive internal report in alv report by various tables in my one assingment.
    They have told us to do the various steps which i was giving down:
    1) In first step they have told me to use of call transaction 'XD03' in the report .I have got that problem solved.
    2)  In second they have told in this assingment to use of interactive internal report you have to prepare in alv format.
    a)I  want to know about this .They have told in assingment that in the customer details we have to click to the net value field record and go to the details of sales order detail in which it show the detail of all the details related net values .
    b) I want to know about this lines also from you:
    Qty field refers to the Target Qty field in the table VBAP.
    To get Price in the unit divide the price by Condition Pricing Unit.
    If SHKZG field is set, then multiply the amount by -1, making it negative. (understand why?).
    3) In the third step they have told to used of drill down which it is in the at line selection ,when i click to the list order of sales it go to  the next report and show me the detail of all the list order details. 
    But i have to use the  '2.b' condition there .
    cna u please send me reply for all this step.
    Edited by: AjaySAPmumbai on Nov 28, 2011 8:55 AM
    Moderator message : Spec / requirements dumping is not allowed, search for available information, read forum rules before posting.  Thread locked.
    Edited by: Vinod Kumar on Nov 28, 2011 1:26 PM

  • Oracle Portal Report - Formatting Excel output

    We are using Oracle Portal 10.1.4.1 and we are using the Locally built providers create new report function.
    The report data itself is working as expected. You click the report it prompts to open the excel file and it opens.
    We are attempting to find a way to better format what is passed to Excel.
    When we add header and footer information in the "Additinal PL/SQL" boxes it shows up on the HTML version of the report, but this does not however show up in the excel version. The excel version seems to be pretty much a raw dump of whatever columns and rows you selected.
    Is there a way to add a header or footer to what Oracle Portal outputs to excel?
    Thanks for the help!

    I remember seeing a Bug that formating conditions do not get saved for number and Date fields when sent to excel.
    That might be the cause.
    Thanx,
    Chetan.

  • Error in using a variable in filter condition in an Interface

    Hi All,
    I am using a variable in my interface in a filter condition. I have an EMP table of scott schema and want to pull all the records wiht hiredate date lying between 2 dates, incremental pull.For this I have created 2 variables and using them in the filter condition. I am getting an error inthe interface when I run in a package after declaring and refresing the variables.
    com.sunopsis.sql.SnpsMissingParametersException: Missing parameter
         at com.sunopsis.sql.SnpsQuery.completeHostVariable(SnpsQuery.java)
         at com.sunopsis.sql.SnpsQuery.updateExecStatement(SnpsQuery.java)
         at com.sunopsis.sql.SnpsQuery.executeUpdate(SnpsQuery.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execStdOrders(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSqlI.treatTaskTrt(SnpSessTaskSqlI.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(DwgCommandSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
         at com.sunopsis.dwg.cmd.e.i(e.java)
         at com.sunopsis.dwg.cmd.g.y(g.java)
         at com.sunopsis.dwg.cmd.e.run(e.java)
         at java.lang.Thread.run(Unknown Source)
    Regards,
    Krishna

    Hi Krishna,
    What is the datatype of the Variable lastupdate ?
    In my case
    Variable
    Name : LastUpdateDate
    Datatype : Alphanumeric
    Action : Historize
    Query : select to_char(to_date(sysdate,'DD-MON-YY'),'DD-MON-YY') from sys.dual
    Then in filter I used
    EMP.HIREDATE>to_date('#LastUpdateDate','DD-MON-YY')
    Thanks
    Sutirtha

  • The report format is:

    The report format is:
    <filename> <phase> <return code where appropriate>
    here what is phase and return code where appropriate?
    thanks
    with regards

    If you are talking about using the Report Generation Toolkit, the report format for Word reports is .doc format, and for Excel spreadsheets is .xls format.  These are binary files whose format is proprietary to Microsoft.  If you're talking about an HTML report, obviously the generated file is a .html file that is viewable in a standard text editor.  And for Standard Reports, there is no file generation (they get sent straight to the printer).
    Hope this helps,
    -D
    Darren Nattinger, CLA
    LabVIEW Artisan and Nugget Penman

  • Report formatting/sorting issue

    Hi,
    Here is something I spent a whole day on, and still can't figure out.
    I have a simple SQL report, which is supposed to show estimated and actual expenses and the variance between the two. The trick is that whenever the variance is positive, the numbers should be green and whenever it is negative - the numbers should be red and NO MINUS SIGN should be shown. For example, if the variance is "-15", then a red "15" should be shown.
    The report query is as follows:
    SELECT
    region,
    estimate,
    actual,
    (estimate - actual) AS variance,
    (CASE
    WHEN (estimate - actual)>=0 THEN 'green'
    WHEN (estimate - actual)<0 THEN 'red'
    ELSE NULL
    END) AS variance_color
    FROM
    expenses
    And then the following HTML expression is used for the Column Formatting on "variance" field (sorry for double "<<" and extra spaces - I could not figure out how to format text for this posting):
    << span style = " color : #VARIANCE_COLOR# ; font-weight : bold ; ">#VARIANCE#<< / span>
    All works quite well and I get the colors right, but I still have the minus sign on the negative numbers. If I use "ABS(estimate - actual) AS variance" in my query, I certainly can get rid of it, but then sorting does not work properly, since negative numbers are treated as positive.
    Any ideas would be appreciated.
    Constantine

    Hello Constantine,
    >> If I use "ABS(estimate - actual) AS variance" in my query, I certainly can get rid of it, but then sorting does not work properly, since negative numbers are treated as positive
    Please try the following:
    SELECT
    region,
    estimate,
    actual,
    '<input type="hidden" value="'||(estimate-actual)||'">'||
    abs(estimate - actual) AS variance,
    (CASE
    WHEN (estimate - actual)>=0 THEN 'green'
    WHEN (estimate - actual)<0 THEN 'red'
    ELSE NULL
    END) AS variance_color
    FROM expensesThe trick is to add to the column a hidden prefix with the real value of the column, and then concatenate it with the visible value. As the sort order is determine by the beginning of the column – the hidden prefix in our case – you can enjoy both worlds – maintain a correct sorting order while displaying only positive colored numbers.
    >> sorry for double "<<" and extra spaces - I could not figure out how to format text for this posting)
    You should use the forum tags *&#91;code]* and *&#91;/code]* .
    Regards,
    Arie.
    &diams; Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all.
    &diams; Forthcoming book about APEX: Oracle Application Express 3.2 – The Essentials and More

  • Issue on How to mimic Deski document from CMS to local machine, pass parameter, execute and save in a mutiple report format then store in a network drive.

    Post Author: usaitconsultant
    CA Forum: JAVA
    Would you know if there's a way to mimic Deski
    document from BOXI server(CMS) to local machine, pass parameter, execute and
    save in a mutiple report format then store in a local drive or network
    drive? Most examples and tutorials in BO XI R2 I've seen are scheduling while drilling report is for web intelligence only and not desktop intelligence.  Please let me know your ideas. I would really appreciate your help. Thanks.

    Post Author: usaitconsultant
    CA Forum: JAVA
    Hi Ted,
    Thanks for the reply.The file is not available in the server. Though, I checked CMS and I found an instance in history tab and the status is failed with error below. 
                Error Message:
                A variable prevented the data provider Query 1 with BANRRD30 from being refreshed. (DMA0008).When I checked my codes, I found out that the object Im using is for web intelligence data provider. However, I cannot find any documentation and example for passing parameter values in desktop intelligence data provider. Any idea on this? You think this is not suported by Report Engine SDK?Thanks.    

  • Can we use xml Publisher reporting for sql* Plus in EBS

    Hello All,
    The current report is designed in Sql* Plus Executable report and the output is in txt format, Now the requirement is to have the output in Excel format.
    So is it possible to use the xml reporting and make the output as Excel from the word template we design from MSword as we do for rdf(I have done few reports created in rdf to xml publisher reports in EBS and stand alone as well.).
    Do the same procedure will suit for Sql*Plus reports tooo or Is there any work around to achieve this.
    Thanks and Regards
    Balaji.

    Hi
    Thanks for the reply..
    I tried to do the follwoing
    1. changed the output to xml in the conc. prog.
    2. ran the same report but i am getting the follwoing error in the output file
    The XML page cannot be displayed
    Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.
    Invalid at the top level of the document. Error processing resource
    Other reports which are using the Oracle Reports(rdf) as source, i am able to generated the xml as expected....
    So my question is whether we can use sql* reports executable and generate xml in the conc.prog.
    if any one has used the sql*reports for xml publisher reporting... please let me know, so that if its possible i will check my sql needs some validation or tuning...
    thanks in advance
    Balaji.

Maybe you are looking for

  • Safari Window won't open, then crashes

    Hey everyone. I've been using Safari 5 for a few days now and have had no problems. Suddenly, it crashed, and now whenever I open Safari, it won't open a window or tab. Then, when I quit it does the "sorry, Safari quit unexpectedly." Any help would b

  • Problem with Exit push button

    Hi All, I have a required field in module pool programming. When i press Exit push button message displays "Fill in all required entry fields". I want to exit from program without fill any field. Is it possible. plz help me

  • Analyzer connectivity to Oracle table

    I'm running into some problems and can't seem to figure out what's going on. I'm working with Essbase 6.5.3 and Analyzer 6.5. I've got a relational table stored in Oracle with transaction level detail. I'm trying to access the table through Analyzer

  • HT4623 How do I remove the updates after you have updated them?

    How do I remove the updates after you have updated them?

  • Need help for MacBook Air, is 64Gb enough?

    So i was thinking, is there enough space in then64Gb macbook air (2011 11'')? Not going to use it for big games just surfing the web (Facebook, YouTube, google), maybe some applications (Angry Birds and stuff) but not much.. Anyone please help, so ba