SQL Expression fields do not display when no records are returned

I have a report that uses SQl expression fields to summarize in the Report footer.  When the main report does not contain any records the SQL expression fields are blank.
Is there a way to force these SQL expression fields to be evaluated evn when the main report does not contain any records.
Thanks

Hi,
You can try this :
Under Report Options, check "Convert Database Null values to Default".

Similar Messages

  • SQL expression field is not displayed on the page header if no records

    Hello
    I'm creating a quite simple report. In this report I've got a SQL expression field which returns a DateTime
    I display this field on the page header section.
    Everything is working fine except when my principal query doesn't return any records my SQL expression field is not displayed. It doesn't seem to be evaluated.
    So, I would display this field even if my Details Section doesn't contains any record.
    I hope you understand what I mean.
    Can someone help me?
    thanks

    Hello,
    I thought about creating a formula but the value I need is stored in a database.
    So i created a simple SQL expression field.
    SELECT CONVERT(DATE,j_1) FROM VW_STD_DATEFIXING
    And this expression doesn't have any dependencies.

  • RE: my input fields does not display when running the page

    my input fields does not display when running the page
    why is that so?

    Hi,
    Can you send the HTML code for us?
    Afonso

  • IBots - How to send an alert when NO records are returned

    It seems straightforward enough to send an alert when a query produces results, but I want to do the opposite. For instance, I only want to get an email at 7am when an object has no data in it for the current day. I do not want to know every day that records are returned.
    how would i set up such an iBot such that it fires every day, and only emails me when no records are returned form the query?

    1) Create a small report called "No Records" and create an unscheduled iBot for this report.
    2) You have your iBot created for the original report, yes? Okay. If you don't want any notification when records are produced for this iBot, then in the Destinations tab, make sure all the boxes are unchecked for "Specific Devices."
    3) Now in the Advanced tab, click on the "Add Action" button under the "Execute these actions when no records are returned by the conditional request" section.
    4) Click on "iBot."
    5) Navigate to the "No Records" ibot created in step one.
    Now, when the original ibot fires and there are records, nothing will be sent because you unchecked all ways to get notification. But when there are no records, this event will fire the chained ibot you linked to in the Advanced tab. This iBot will have as an attachment, your report that says "No Records."

  • SQL Expression Fields button not visible in Field Explorer

    Hi,
    On my Crystal Reports installation I can see the button SQL Expression Fields in Field Explorer but it is not visible on client's installation.
    How do I make it visible? I need to create a new report with SQL query for client.
    Thanks,
    Ajay Audich

    Commands are intended to replace the standard linked tables that must users are accustomed to.
    I suppose Commands would be considered an "advanced" feature, considering that they require the developer to be able to hand write SQL (our at least copy it from another SQL editor).
    If you are comfortable writing reading, writing & editing SQL, Commands will open a the door to a whole new level of control when it comes to creating your data sets.
    The biggest problem w Commands is also it's greatest strength... If you're using a Command, CR will assume that you know what you're doing and will not try to rewrite or optimize your SQL in the background. You write it, CR sends it. That means if you write crappy SQL, CR will send your crappy SQL to the db server...
    It also means that you can use join types that aren't available in CR and use sub-queries in in your SQL... Basically anything you can do in the db's native editor.
    HTH,
    Jason

  • Sql expressions field option not available in field explorer

    Hello:
    I would like to create a sql expression field in my report. however when I go to the field explorer panel, a sql expression fields node is not available to create one. Does anybody know why is this not an option?
    Thank You Very Much

    Also if you are creating based off any stored procedure or View you can't see Sql Exprn under field explorer.  I think it is also databse specific.  What is the databse you are using ? also what is your datasource ?
    Thanks,
    Sastry

  • Crystal Report Alerts not firing when no records are fetched from the DB

    Hello,
    The crystal report alert i have created in the report in the event of no records being fetched from the query is not firing.  The condition used is isnull ( count(DB Field ) ).
    Is there a limitation with alerts that they would be fired only when some records are fetched in the report.
    Appreciate any pointers
    -Jayakrishnan

    hi Jayakrishnan,
    as alerts require records to be returned here's what you will need to do:
    1) delete your current alert
    2) create a new formula with syntax like
                  isnull(DistinctCount ()) or DistinctCount () = 0
    3) create a new Subreport (which you will put in a report header)
    4) the subreport can be based off of any table
    5) have the subreport record selection always return only 1 record...for performance reasons
    6) change the subreport link to be based on the new formula
    7) the link will be a one way link in that you will not use the "Select data in subreport based on field" option
    8) now in the subreport, create the Alert based on the parameter created by the subreport link
    i have tested this and it works great.
    jamie

  • Field should not display when it is null

    Hi,
    I am creating a xml report,I dont want to display row when its value is 0.
    eg column1 column2 column3 column4 column4
    1 ABC BCA 0 0 0
    2 XYZ YXZ 0 1 0
    So if 1 is not having any value then that row should not display,it should dispaly only row with values as in 2.
    Thanks in Advance....

    Instead of <?for-each:G_CF_SUB_SEG_VALUE?>
    use
    <?for-each:G_CF_SUB_SEG_VALUE[TOTAL_CUST_AMT!=0 or TOTAL_CUST_B0!=0 or TOTAL_CUST_B2!=0 or TOTAL_CUST_B3!=0 or TOTAL_CUST_B4!=0 or TOTAL_CUST_B5!=0 or TOTAL_CUST_B6!=0]?>

  • Vendor field should not display when GI is done in MB1A?

    Hi  guys ,
    i have  a  report programe here i am pulling  all the material data  and purhasing order info  in the background using the BADIO MB_DOCUMENT BADI.  here i am writing my logic. this BADI is triggering  once material Documnet is created  in MIGO MB1A,MB1B,MB1C . when i am trying to excute the MIGO tranasaction all the data shoulb be displayed . when I am trying to excute MB1A  Here i dont need one field like Vendor Number ? can  any one please help me on these ?
    Thanks In Advance.

    Instead of <?for-each:G_CF_SUB_SEG_VALUE?>
    use
    <?for-each:G_CF_SUB_SEG_VALUE[TOTAL_CUST_AMT!=0 or TOTAL_CUST_B0!=0 or TOTAL_CUST_B2!=0 or TOTAL_CUST_B3!=0 or TOTAL_CUST_B4!=0 or TOTAL_CUST_B5!=0 or TOTAL_CUST_B6!=0]?>

  • Dimension name is not displayed when all dimvals are selected

    I have a dimension Price Range diemnsion which is multiselect Or. If I select all dimVals of Price Range the Price range is still displayed in left side of jspref application.
    We have another dimensions Ad Feature which is also multiselect Or. If I select all dimVals of Ad Feature the Ad Feature is is not displayed in left side of jspref application.
    Please let me know why is the difference and what needs to be done so that Ad Feature is also displayed even I select all dimVals of Ad Feature diemnsion.

    Hi,
    This is a normal Endeca behavior where when there are no more refinements, then the dimension wouldnt be available in the queryresult object. However the selected dimension details should be available in the descriptor dimension object from where the dimension name could be obtained and shown in UI.
    Thanks,
    Devi

  • I embedded some HTML code into adobe Muse but not displaying when the pages are Exporting to HTML

    I embedded some HTML code into adobe Muse and when I published the remote site on business catalyst the (Add This widget) HTML code shows up but when I exported the site to HTML pages and view the index page in the browser (Safari, Chrome, Firefox) the (Add this widget) HTML code wouldn't display on any of the pages. I've used this code before on other Muse sites not sure what could have happened. Thnx!!!

    Hi,
    Please take a look at this post for a similar discussion : Re: When i export my muse website my youtube video links stop working. Why is this?
    Regards,
    Aish

  • LOV values not displayed (when master values are changed)

    Sorry for the confusing subject....
    I have a codevalue table which contains all generic lookup values.
    employee table has employeetype which is getting value from codevlaue table but they are not linked (no foreign key relationship)
    Problem is this
    Example.... for eomployee 1 let say exmployeetype = perm. if i change the codevalue from perm to permanent.
    next time I open the employee 1; I see the employeetype = empty as perm value is not available in lov.
    Any way I can overcome this problem using configuration or do i have to generate my own lov in Vo?
    I am using oracle 11.1.1.3 adf bc.
    let me know if you need any more info

    Thanks ....
    Let me go through step by step process....
    LOV is working fine.....for employetype i see the correct value
    Now steps I performed which led to this problem
    1. for my employee #1, i have employeetype='perm'*
    2. I went to codevalue table and changed the value from 'perm' to 'permanent'
    3. I went to employee page for employee #1, i see empty employeetype (I want to see the current value which is 'perm')
    drop down for employeetype shows correct current value
    Now 'perm' doesn't exist in codevalue table and when lov gets generated..... it doesn't have that value......
    What i want is not matter if codevalue has the current value of employeetype or not, I want to see the current employeetype value selected......
    does that make sense?
    1.

  • SQL Expression Fields (Field Explorer dialog box)

    I have Crystal Reports Version XI.  When I open the field explorer I can't see "SQL Expression Fields (Field Explorer dialog box) "
    Please help.

    The following information helps you
    Symptom
    In Crystal Reports 9 and later, the 'SQL Expression Fields' is unavailable in the 'Field Explorer' dialog box. The report is reporting off a stored procedure or command object.
    Why are 'SQL Expression Fields' unavailable in the 'Field Explorer' dialog box?
    Resolution
    'SQL Expression Fields' are unavailable in the 'Field Explorer' dialog box because the report is based on a stored procedure or command object.
    When connecting to a Stored Procedure or using a command object the SQL Statement is predefined and cannot be modified by Crystal Reports therefore the SQL Expression field will not be available when connecting to either of these objects.
    The SQL Expression field works by adding an entry into the SELECT portion of the SQL Statement in a Crystal report. A SQL Expression Field is only available in a report when:
    u2022 The report connects to tables or views.
    u2022 Crystal Reports generates the SQL statement.
    regards,
    Raghavendra

  • Cannot find SQL Expression Fields

    Hi,
    I am using Crystal Reports 2008 and trying to locate the SQL Expression Fields.  According to the user guide, the SQL Expresion Fields should be under Field Explorer.  But when I go to Field Explorer, I only see the following options:
    - Database Fields
    - Formula Fields
    - Parameter Fields
    - Running Total Fields
    - Group Name Fields
    - Special Fields
    Would you please let me know where I can find SQL Expression Fields?
    Thanks and regards,
    Al

    Al,
    If you are reporting off of a Stored Procedure, View, Command Object, or multiple datasources SQL Expression fields will not be available. The reason is for the first 3 is that the SQL has been hard coded, the reason it would not work when ussing multiple datasources is that it would not know which query to append the SQL expression to.
    Correction: SQL Expressions will be available when reporting off of a View.
    Edited by: Graham Cunningham on Jul 21, 2008 9:38 AM

  • SQL Expression field with parameter

    Hello,
    I am trying to create a SQL Expression Field that will give me the maximum status date of an employee before a certain date entered in parameter.
    ex: select max(status_date) from status where status_date < formula field or parameter
    Since I can not put a paramter or a formula field in a SQL Expression field, I might need a template or an example of something that works ?
    Thank's
    Steph
    Edited by: Stephanie Charest on Aug 4, 2008 7:59 PM

    Ok,
    The only way I found to get the maximum status date of an employee with the date entered in parameter was to litteraly put each employee ID, and Status Date in the Detail section.
    Then in the select expert create the parameter date.
    Then I created a running total field that counts the employees and resets on change of employee sorted by status date.
    Then I created a formula that gets all the first occurences of this running total field and if the running total field equals 1, a new formula field shows 1 and if not (2 and more), it shows 0.
    But I can't find the way to give me the total that I need for each group sections.
    It's ok if the SQL expression field does not work, but I need to find a way to get the max date.
    Thank's for your help for the SQL Expression field.
    Steph

Maybe you are looking for

  • XLS Transformations leeds to exception CX_XSLT_FORMAT_ERROR

    Hello, I am using the following transformation to transform a amazon product advertising response to an abap structure: <xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">   <xsl:output encoding="UTF-8" indent="yes" method=

  • 'In Between' Date Prompt to set Session Variables???

    Hi Im very new to OBIEE and was hoping someone could help me. I have a date prompt using the 'in between' operator based on a date column. I am trying to set up a table in the Physical layer of the RPD using a stored proc (EXEC sp_name). The stored p

  • Set polling time with BPEL and ESB File Adapters

    We have create file adapters in BPEL and ESB. We see where you can set the frequency for polling but do not see a place to set the polling time. We would like it to check a directory every 24 hours at midnight. We can set the 24 hours but not the mid

  • Adf.ly popup problem

    every search is being redirected to adf.ly

  • Sap Interface Issues - SM58- the following errors were found

    Hi Experts, Could you please tell me...why are the following errors coming in SAP EDI . Caller Function Module Target System Date Time Status Text Transaction ID C10IBBITSN IDOC_INBOUND_ASYNCHRONOUS SAPBC4X-LOG_L 16.09.2011 08:14:28 com.wm.lang.flow.