Handling empty data sets

I'm using Spry HTML Data Set functionality to list upcoming
events. This works wonderfully and has made site maintenance a lot
easier. However, at certain times of the year we don't have any
upcoming events, so the table is empty and the event listing
section is blank -- not very user friendly. :)
Does anyone know of a way to check to see if the number of
records is > 0 and if not, display a friendly message telling
users that there are no events currently scheduled etc.?

You can use spry:if in conjunction with {ds_RowCount} to
decide what to show:
<div spry:region="ds1">
<table spry:if="{ds_RowCount} > 0}">
</table>
<div spry:if="{ds_RowCount} == 0">
</div>
</div>
--== Kin ==--

Similar Messages

  • How to handle empty Dats field received from SAP RFC response

    Hi All,
    I am invoking a SAP RFC which gives me a Dats field in response.
    A valid dats fields is successfully received by my pipelines.
    But when an empty Dats field is received, My pipeline fails and i get error.
    How to handle the empty Dats field from SAP

    Hi Anant,
    This is because the legacy SAP adapter accepted RFC messages with date field empty. In the new version, the same call results in an error. WCF-SAP adapter doesn't allow blank XML nodes.
    You need to use the below custom pipeline component as a workaround.
    Refer:
    Pipeline component for enabling legacy behavior in WCF-SAP adapter.
    Rachit
    Please mark as answer or vote as helpful if my reply does

  • Handling Empty date value in the stored procedure call

    Hi,
    i am executing a stored procedure having date element, getting below the error for the empty date value.
    can any solve this issue?
    com.sap.engine.interfaces.messaging.api.exception.MessagingException: Error processing request in sax parser: Error when executing statement for table/stored proc. 'WD_WRAP_PROCESS_APPMT_REQ_PR' (structure 'STATEMENT'): java.text.ParseException: Unparseable date: ""
    Thank You,
    Madhav

    Madhav,
    Can you check if you are sending blank values to the date parameter?
    raj

  • How to handle large data sets?

    Hello All,
    I am working on a editable form document. It is using a flowing subform with a table. The table may contain up to 50k rows and the generated pdf may even take up to 2-4 Gigs of memory, in some cases adobe reader fails and "gives up" opening these large data sets.
    Any suggestions? 

    On 25.04.2012 01:10, Alan McMorran wrote:
    > How large are you talking about? I've found QVTo scales pretty well as
    > the dataset size increases but we're using at most maybe 3-4 million
    > objects as the input and maybe 1-2 million on the output. They can be
    > pretty complex models though so we're seeing 8GB heap spaces in some
    > cases to accomodate the full transformation process.
    Ok, that is good to know. We will be working in roughly the same order
    of magnitude. The final application will run on a well equipped server,
    unfortunately my development machine is not as powerful so I can't
    really test that.
    > The big challenges we've had to overcome is that our model is
    > essentially flat with no containment in it so there are parts of the
    We have a very hierarchical model. I still wonder to what extent EMF and
    QVTo at least try to let go of objects which are not needed anymore and
    allow them to be garbage collected?
    > Is the GC overhead limit not tied to the heap space limits of the JVM?
    Apparently not, quoting
    http://www.oracle.com/technetwork/java/javase/gc-tuning-6-140523.html:
    "The concurrent collector will throw an OutOfMemoryError if too much
    time is being spent in garbage collection: if more than 98% of the total
    time is spent in garbage collection and less than 2% of the heap is
    recovered, an OutOfMemoryError will be thrown. This feature is designed
    to prevent applications from running for an extended period of time
    while making little or no progress because the heap is too small. If
    necessary, this feature can be disabled by adding the option
    -XX:-UseGCOverheadLimit to the command line."
    I will experiment a little bit with different GC's, namely the parallel GC.
    Regards
    Marius

  • Data Set with multiple ref cursors

    Hi ,
    I need to design an integrated report , i created my data set with a oracle procedure which returns "multiple ref cursors" . In this case birt is displaying all output columns together and it is difficult to identify which column belongs to which ref cursor and if there are any columns with same name in both output cursors , it displays only one. Is there any way to handle this ? or how we handle a data set which contains multiple ref cursors in output ??

    Having to ref cursors return mutiple recordsets in an Oracle package is like haveng two resultsets return from a MS SQL Server sparc.
    The link may point you in the right direction.
    http://www.codeproject.com/Articles/675933/Returning-Multiple-Result-Sets-from-an-Entity-Fram

  • Exception Handling for OPEN DATA SET and CLOSE DATA SET

    Hi ppl,
    Can you please let me know what are the exceptions that can be handled for open, read, transfer and close data set ?
    Many Thanks.

    HI,
    try this way....
      DO.
        TRY.
        READ DATASET filename INTO datatab.
          CATCH cx_sy_conversion_codepage cx_sy_codepage_converter_init
                cx_sy_file_authority cx_sy_file_io cx_sy_file_open .
        ENDTRY.
    READ DATASET filename INTO datatab.
    End of changes CHRK941728
        IF sy-subrc NE 0.
          EXIT.
        ELSE.
          APPEND datatab.
        ENDIF.
      ENDDO.

  • Set parameter as empty date in OIM

    Hello
    I have an adapter that calls a stored procedure and need to pass null as one of the date parameters. I tried not to input anything but OIM sets the parameter value as 01/01/1970. I tried "set variable" task to set the variable as "Empty date" but it did not work either! Is there any way to do that?
    Thanks

    Can you paste the code and API you are using? If you are using stored procedure, then it's SQL statements. If you are using java code and the apis, have you tried "" as your value? Or 0000-00-00 00:00:00.000
    -Kevin

  • Multiple data sets: a common global dataset and per/report data sets

    Is there a way to have a common dataset included in an actual report data set?
    Case:
    For one project I have about 70 different letters, each letter being a report in Bi Publisher, each one of them having its own dataset(s).
    However all of these letters share a common standardized reference block (e.g. the user, his email address, his phone number, etc), this common reference block comes from a common dataset.
    The layout of the reference block is done by including a sub-llayout (rtf-file).
    The SQL query for getting the dataset of the reference block is always the same, and, for now, is included in each of the 70 reports.
    Ths makes maintenance of this reference block very hard, because each of the 70 reports must be adapted when changes to the reference block/dataset are made.
    Is there a better way to handle this? Can I include a shared dataset that I would define and maintain only once, in each single report definition?

    Hi,
    The use of the subtemplate for the centrally managed layout, is ok.
    However I would like to be able to do the same thing for the datasets in the reports:
    one centrally managed data set (definition) for the common dataset, which is dynamic!, and in our case, a rather complex query
    and
    datasets defined on a per report basis
    It would be nice if we could do a kind of 'include dataset from another report' when defining the datasets for a report.
    Of course, this included dataset is executed within each individual report.
    This possibility would make the maintenance of this one central query easier than when we have to maintain this query in each of the 70 reports over and over again.

  • What is open data set and close data set

    what is open data set and close data set,
    how to use the files in sap directories ?

    hi,
    Open Dataset is used to read or write on to application server ... other than that i am not sure that there exists any way to do the same ... here is a short description for that
    FILE HANDLING IN SAP
    Introduction
    • Files on application server are sequential files.
    • Files on presentation server / workstation are local files.
    • A sequential file is also called a dataset.
    Handling of Sequential file
    Three steps are involved in sequential file handling
    • OPEN
    • PROCESS
    • CLOSE
    Here processing of file can be READING a file or WRITING on to a file.
    OPEN FILE
    Before data can be processed, a file needs to be opened.
    After processing file is closed.
    Syntax:
    OPEN DATASET <file name> FOR {OUTPUT/INPUT/APPENDING}
    IN {TEXT/BINARY} MODE
    This statement returns SY_SUBRC as 0 for successful opening of file or 8, if unsuccessful.
    OUTPUT: Opens the file for writing. If the dataset already exists, this will place the cursor at the start of the dataset, the old contents get deleted at the end of the program or when the CLOSE DATASET is encountered.
    INPUT: Opens a file for READ and places the cursor at the beginning of the file.
    FOR APPENDING: Opens the file for writing and places the cursor at the end of file. If the file does not exist, it is generated.
    BINARY MODE: The READ or TRANSFER will be character wise. Each time ‘n’’ characters are READ or transferred. The next READ or TRANSFER will start from the next character position and not on the next line.
    IN TEXT MODE: The READ or TRANSFER will start at the beginning of a new line each time. If for READ, the destination is shorter than the source, it gets truncated. If destination is longer, then it is padded with spaces.
    Defaults: If nothing is mentioned, then defaults are FOR INPUT and in BINARY MODE.
    PROCESS FILE:
    Processing a file involves READing the file or Writing on to file TRANSFER.
    TRANSFER Statement
    Syntax:
    TRANSFER <field> TO <file name>.
    <Field> can also be a field string / work area / DDIC structure.
    Each transfer statement writes a statement to the dataset. In binary mode, it writes the length of the field to the dataset. In text mode, it writes one line to the dataset.
    If the file is not already open, TRANSFER tries to OPEN file FOR OUTPUT (IN BINARY MODE) or using the last OPEN DATASET statement for this file.
    IF FILE HANDLING, TRANSFER IS THE ONLY STATEMENT WHICH DOES NOT RETURN SY-SUBRC
    READ Statement
    Syntax:
    READ DATASET <file name> INTO <field>.
    <Field> can also be a field string / work area / DDIC structure.
    Each READ will get one record from the dataset. In binary mode it reads the length of the field and in text mode it reads each line.
    CLOSE FILE:
    The program will close all sequential files, which are open at the end of the program. However, it is a good programming practice to explicitly close all the datasets that were opened.
    Syntax:
    CLOSE DATASET <file name>.
    SY-SUBRC will be set to 0 or 8 depending on whether the CLOSE is successful or not.
    DELETE FILE:
    A dataset can be deleted.
    Syntax:
    DELETE DATASET <file name>.
    SY-SUBRC will be set to 0 or 8 depending on whether the DELETE is successful or not.
    Pseudo logic for processing the sequential files:
    For reading:
    Open dataset for input in a particular mode.
    Start DO loop.
    Read dataset into a field.
    If READ is not successful.
    Exit the loop.
    Endif.
    Do relevant processing for that record.
    End the do loop.
    Close the dataset.
    For writing:
    Open dataset for output / Appending in a particular mode.
    Populate the field that is to be transferred.
    TRANSFER the filed to a dataset.
    Close the dataset.
    Regards
    Anver
    if hlped pls mark points

  • Show Empty Data

    I hope there is anybody how could help me:
    I create a Bex Query on EA Data (Account with same Key Figures) the Query is its based on a BPC Cube. In rows a only the account and in the columns are the key figures. Now not on all Account are values in the cube. I say in Bex Query that they should show Master Data. In Analyzer there are all accounts also the account without values in the cube.
    In crystal I only see account with values. I use CR SP3 and integration Kit SP3. I set u201CShowEmptyDatau201D to True but nothing happened.
    As second solution I create a formula in Bex with the value 1, take it in the columns but nothing happened in crystal I only see accounts with values in the cube.
    I donu2019t know what I could do.
    Second I had problems with the general connection of Bex and Crystal.
    In the normal way I create a new report with the Sap Integration Kit Menue. What is the different between this way and the way with the crystal function new report and use a new MDX Connection. In booth ways with the same SAP System I get different connection parameters. Which way is the right way.
    In addion if i set Show Empty Data to True, i get ask for the query variables and after it show empty data is set to false automaticly

    Hello Ingo,
    really??????
    But in release notes of SAP Integration KIT XI 3.1 SP3  SAP shows it as one of the big new features. I couldn't believe that this is a fake?? Thats was the basement why we use it.
    Is it in BO 4.0 possible to use only Crystal Reports Designer (which Version?) and a BW System with the Integration KIT?? Like in XI3.1??
    We only use Crystal Reports Designer with Integration KIT and the Integration KIT in the BW System. Is there an Integration KIT of BO 4.0 with transports for the BW System?
    I couldn't believe that it is not possible in XI 3.1. I stay in contact with the SAP and then im really angry because in the documnentation there is the option listed.

  • Variable number of data sets in multiplot

    I would like to be able to overlay sets of spectra to compare intensity variations. I am familiar with the multiplot usage, but my question involves how to allow a variable number of data sets to be overlayed. I have a vi that plots a spectrum after the user presses a "load file" button. I would like to add a boolean that when true would continue to stack spectra on the existing plot, and when false would just plot an individual spectrum each time. How can I accomodate a variable number of data sets in the multiplot?

    Assuming you're using the X-Y graph (the word "multiplot" means little to
    me) then each dataset is a cluster of the X array and Y array for that
    dataset. To put several datasets on the graph you make an array of these
    clusters. This should be very clear in the context help for the X-Y plot
    terminal.
    To add spectra you simply append it to the array of spectra already in the
    plot. The brute force and simplest to understand approach would be to use a
    local to retrieve all the data that's currently in the plot as an array,
    append the new plot to the end and write it all back to the plot, either to
    its terminal or via another local. More elegant would be to buffer your
    array of plots internally within the program and have an array of Booleans
    allowing you to selectiv
    ely show/hide plots, either by omitting datasets
    when writing them to the graph or, to maintain consistency in plot styles,
    writing an empty element to the array in place of hidden datasets, but if
    this is meaningless to you then the first suggestion is perfectly adequate.
    jeffrz wrote in message
    news:101-50650000000800000050150000-982303670000@q​uiq.com...
    > I would like to be able to overlay sets of spectra to compare
    > intensity variations. I am familiar with the multiplot usage, but my
    > question involves how to allow a variable number of data sets to be
    > overlayed. I have a vi that plots a spectrum after the user presses a
    > "load file" button. I would like to add a boolean that when true would
    > continue to stack spectra on the existing plot, and when false would
    > just plot an individual spectrum each time. How can I accomodate a
    > variable number of data sets in the multiplot?

  • How to handle national character set datatypes in oracle?

    Hi
    Can anyone tell me how to handle national character set datatypes in oracle?
    Thanks in advance

    And for data manipulation, append "N" the literal values being used in the command.
    The "N" indicates that the string is to be treated as Unicode Text.
    For Example: insert into TableName (ColumnName) values (N'ValueToBeInserted');

  • Attempt to assign data set as datasource for existing report

    There must be something stupid I am missing.
    1) Created a report with Crystal Reports 2011
    2) It queries a table in a SQL 2008 database
    3) The internal select statement is
    SELECT "CUSTOMER"."rname", "CUSTOMER"."radd", "CUSTOMER"."radd2", "CUSTOMER"."rcity", "CUSTOMER"."rprov", "CUSTOMER"."rpostal", "CUSTOMER"."rcountry"
    FROM   "Data"."dbo"."CUSTOMER" "CUSTOMER"
    ORDER BY "CUSTOMER"."rname"
    4) Now I am attempting to use the report in Visual Basic 2010 but using a data set as the source
    5) Following examples I have looked at this is the code
    Private Sub CustomerCrystalReport2frm_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
            ' Define connection information
            Dim ConnectionInfo As New ConnectionInfo
            ConnectionInfo.ServerName = "TEST7\TEST7"
            ConnectionInfo.DatabaseName = "Data"
            ConnectionInfo.UserID = "Master"
            ConnectionInfo.Password = "MasterPassword"
            ' Load the existing report
            Dim rd As ReportDocument = New ReportDocument
            rd.Load(Application.StartupPath & "\Crystal Reports\DGVCustomerListing.rpt")
            SetDBLogonForReport(ConnectionInfo, rd) ' Set the report table connections
            ' This shows the report has loaded the records using the internal select statement (18305 records)
            Debug.Print(" Report Document Records=" & rd.Rows.Count)
            ' Create the data set with the records I want the report to use
            Dim ReportInfo As DataSet = New DataSet()    ' To hold data to pass to the report
            Dim SQLSelect As String = "select * FROM Data.dbo.Customer where rname LIKE 'z%' order by rname"
            ReportInfo = FillDataSet(SQLSelect, "ReportData")   ' Fill the data set to pass to the report
            ' This shows the data set contains the expected records (57 records)
            Debug.Print(" Data Set Records=" & ReportInfo.Tables("ReportData").Rows.Count)
            ' Change the source of the report
            rd.SetDataSource(ReportInfo)
            ' This changing the source had no effect records still (18305 records)
            Debug.Print(" Report Document Records=" & rd.Rows.Count)
            CrystalReportViewer1.ReportSource = rd  ' Bind report document to crystal report viewer
        End Sub
        Private Sub SetDBLogonForReport(ByVal ConnectionInfo As ConnectionInfo, ByVal ReportDocument As ReportDocument)
            Dim Tables As Tables = ReportDocument.Database.Tables
            For Each table As CrystalDecisions.CrystalReports.Engine.Table In Tables
                Dim TableLogOnInfo As TableLogOnInfo = table.LogOnInfo
                TableLogOnInfo.ConnectionInfo = ConnectionInfo
                table.ApplyLogOnInfo(TableLogOnInfo)
            Next
        End Sub
    end Sub
    6) The report is appearing in the viewer with 18305 records
    Any help would be appreciated

    Setting the report table connections caused the report to fill with data.
    At this point I seemed unable to reset the datasource.
    Also the set data source needed further clearification.
    The simplified following code works:
    Dim rd As ReportDocument = New ReportDocument
    rd.Load(Application.StartupPath & "\Crystal Reports\DGVCustomerListing.rpt")
    ' Create the data set with the records I want the report to use
    Dim ReportInfo As DataSet = New DataSet()    ' To hold data to pass to the report
    Dim SQLSelect As String = "select * FROM Data.dbo.Customer where rname LIKE 'z%' order by rname"
    ReportInfo = FillDataSet(SQLSelect, "ReportData")   ' Fill the data set to pass to the report
    ' Change the source of the report
    rd.SetDataSource(ReportInfo.Tables("ReportData"))
    CrystalReportViewer1.ReportSource = rd  ' Bind report document to crystal report viewer

  • What is a data set

    Hi can any body tell me What is a data set, Plz clarify my dought.
    Regards
    manikanta

    Hi Mani,
    The sequential files (processed on application server) are called datasets. They are used for file handling in SAP.
    Bye,
    Amit

  • Problem with a data set: DIAdem crashes

    Hi,
    I've got a problem with a data set. When I want to zoom in DIAdem-View, DIAdem crashes with the following message (translated from German ;-):
    error type: FLOAT INEXACT RESULT or FLOAT INVALID OPERATION or FLOAT STACK CHECK
    error address: 00016CB8
    module name: gfsview.DLL
    I've got some similar data set not showing such problems. Further on I scanned the data a bit, but in the 59000 points I didn't see anything special. I did try to delete "NOVALUE"s as well, but after that there still exist "NOVALUE"s.
    Does anyone have an idea what to look for?
    Thanks,
    Carsten

    Carsten,
    Could you please upload you Citadel database to the following FTP site:
    ftp.ni.com/incoming
    If you want to compress (ZIP) and/or put a password on the data, that's fine. Please send me a private email at [email protected] (with the file name and password if you put one on the file) once you have uploaded the file and I will check it out.
    Otmar
    Otmar D. Foehner
    Business Development Manager
    DIAdem and Test Data Management
    National Instruments
    Austin, TX - USA
    "For an optimist the glass is half full, for a pessimist it's half empty, and for an engineer is twice bigger than necessary."

Maybe you are looking for

  • Mail wont open or load messages!!

    Hi, I am having the following problem with Mail.. When I open Mail from either the Dock or Finder nothing opens. Mail appears in the menu bar and the only way of viewing its normal screen is to go: Window > Message Viewer When it comes up no emails s

  • How do I update my Indesign to the most recent version (10.0)?

    Hi, I have a subscription to Indesign, and I need to update to Indesign CC (version 10.0). How do I do this? :-)

  • Capped 24/7

    Hi Joined bt a month ago and getting screwed over already.  I rung bt and ordered bt business total broadband "UNLIMITED" but when i got the letters from bt i find out that the women who i spoke to has put it on 50gb a month and not unlimited. so i s

  • So, what exactly is a "Link Title"?

    It seems we have a new option when inserting links. What does it actiually do? LabVIEW Champion . Do more with less code and in less time . Solved! Go to Solution. Attachments: LinkTitle.png ‏18 KB

  • Movies - saving space on my HD

    I download a lot of movies and have been saving them all to my hard drive.  I'm noticing that I am running out of storage.  I also noticed that my Apple TV streams the movies I've purchased.  Can I delete the movies on my computer HD and still stream