No records shown in report ?

I have created a crystal report using ado.net dataset ("OleDB to SQL server database") and load it to a crystal report viewer in testreport2.aspx. No errors when run but no records where shown.
There is no problem with the data table return from GeneralProduct class as the DropDownList1 contains 30 item and textbox1 displays a total of 30 records from data table return.
=================================================
Imports CrystalDecisions.CrystalReports.Engine
Partial Class testreport2
    Inherits System.Web.UI.Page
    Private oRpt As ReportDocument
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        If Not IsPostBack Then
            CrystalReportViewer1.EnableDatabaseLogonPrompt = False
            oRpt = New ReportDocument
            oRpt.Load(Server.MapPath("CrystalReport2.rpt"))
            Dim _GeneralProduct As New GeneralProduct
            _GeneralProduct.GetGeneralProductDataTable()
            TextBox1.Text = "Record Count [" & CStr(_GeneralProduct.RecordsCount) & "]"
            oRpt.SetDataSource(_GeneralProduct.oDataTable)
            CrystalReportViewer1.ReportSource = oRpt
            CrystalReportViewer1.DataBind()
            CrystalReportViewer1.RefreshReport()
            dd.DataTextField = "ProductID"
            dd.DataValueField = "ProductID"
            dd.DataSource = _GeneralProduct.oDataTable
            dd.DataBind()
            _GeneralProduct = Nothing
        End If
        If IsPostBack Then
            oRpt = Session.Item("oReport")
            CrystalReportViewer1.ReportSource = oRpt
        End If
    End Sub
    Protected Sub Page_Unload(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Unload
        Session.Add("oReport", oRpt)
    End Sub
End Class
=================================================
Someone please assist....
Edited by: Kong Meng Chang on Aug 4, 2008 3:13 PM

Hi there,
Using Visual Studio 2008, I have created a crystal report with ado.net dataset ("OleDB to SQL server database") and load it to a crystal report viewer in testreport2.aspx. No errors occurs when run but no records where shown.
There is no problem with the data table return from GeneralProduct class as the DropDownList1 contains 30 item and textbox1 displays a total of 30 records from data table return.
Imports CrystalDecisions.CrystalReports.Engine
Partial Class testreport2
    Inherits System.Web.UI.Page
    Private oRpt As ReportDocument
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        If Not IsPostBack Then
            CrystalReportViewer1.EnableDatabaseLogonPrompt = False
            oRpt = New ReportDocument
            oRpt.Load(Server.MapPath("CrystalReport2.rpt"))
            Dim _GeneralProduct As New GeneralProduct
            _GeneralProduct.GetGeneralProductDataTable()
            TextBox1.Text = "Record Count [" & CStr(_GeneralProduct.RecordsCount) & "]"
            oRpt.SetDataSource(_GeneralProduct.oDataTable)
            CrystalReportViewer1.ReportSource = oRpt
            CrystalReportViewer1.DataBind()
            CrystalReportViewer1.RefreshReport()
            DropDownList1.DataTextField = "ProductID"
            DropDownList1.DataValueField = "ProductID"
            DropDownList1.DataSource = _GeneralProduct.oDataTable
            DropDownList1.DataBind()
            _GeneralProduct = Nothing
        End If
        If IsPostBack Then
            oRpt = Session.Item("oReport")
            CrystalReportViewer1.ReportSource = oRpt
        End If
    End Sub
    Protected Sub Page_Unload(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Unload
        Session.Add("oReport", oRpt)
    End Sub
End Class
Someone please assist....
Edited by: Kong Meng Chang on Aug 4, 2008 3:13 PM

Similar Messages

  • How to set default number of records shown in report table?

    How can I set the default number of records shown in a table report?

    This is how report attributes page should look like and there is the number of rows where you enter whatever you need:
    http://i44.tinypic.com/es95bn.gif
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • How to create a link to another transaction on a record in ALV report.

    Hi All,
    I have an ALV report output ,if i click on any record in the report i want it to show me the details of the record which is another transaction code in my case.So basically i want to execute that T-code on clicking on the record of the ALV report.
    How can i achieve this ,please provide me the insight with same helpful examples.
    Thanks in advance,
    Swati

    Hi,
    This solution is for the ALV by Function Module Appraoch.
    You need to use the Importing Parameter I_CALLBACK_USER_COMMAND, of the FM Reuse_ALV_GRID_DISPLAY(or LIST Display) for this.
    Slis_ev_user_command TYPE slis_formname VALUE 'USER_COMMAND'.
    As this is a frequently-used Callback event, the form routine can also be passed directly in the interface by passing the user command in the IMPORTING parameter I_CALLBACK_USER_COMMAND.
    This is an exit subroutine and takes care of the Interactive aspect of the ALV. When User performs any action in the displayed ALV, Control automatically goes to this Subroutine.
    The interface of the form routine specified must be defined as follows:
                 FORM user_command  USING r_ucomm LIKE sy-ucomm
                                          rs_selfield TYPE slis_selfield.
         Parameter R_UCOMM contains the function code triggered.
         Structure RS_SELFIELD contains the following information:
    o     tabname  :      Name of the internal output table
    o     tabindex :       Index of the internal output table
    o     fieldname:      Field name
    o     endsum   :     Cursor is located on the totals line
    o     sumindex :     If >0, the cursor is located on a subtotals line
    o     value    :        Value of the field on the list
    o     refresh  :       (Exporting) List should be set up again
    o     col_stable:   (Exporting) Keep column position when list is set up    again
    o     row_stable:   (Exporting) Keep row position when list is set up again
    o     exit      :        (Exporting) Exit list (and ALV)
    o              before_action: Call before standard action execution
    o              after_action : Call after standard action execution, before list    setup
    o              ignore_multi : Internal use
    o              sel_tab_field: Internal use
    The EXIT routine is called whenever a function unknown to the ALV is   triggered or if the routine call before/after the execution of a  standard function code has been defined by interface parameter.
    Ok code for double click is &IC1 for ALV report.
    Eg:
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
         EXPORTING
    Name of the program
        I_CALLBACK_PROGRAM                    = V_REPID
    title
        I_GRID_TITLE                          = 'Details of Storing'
    calls subroutine : PF_STATUS_SET
           i_callback_pf_status_set           = 'PF_STATUS_SET'
    Calls subroutine : user_command
            i_callback_user_command           = 'USER_COMMAND'
    Overall structure of the report
           IS_LAYOUT                          = STRUCT_LAYOUT
    Passes the field catg internal table
           IT_FIELDCAT                        = I_FIELDCAT
    Passws the sort sequence internal table
           IT_SORT                            = IT_SORT
           I_DEFAULT                          = 'X'
           I_SAVE                             = 'A'
    Passes the internal table for variants
           IS_VARIANT                         = i_variant1
    fetches different events into internal table i_events
           it_events                          = i_events[]
          TABLES
    Passes data table for ALV display
            T_OUTTAB                          = I_TAB
         EXCEPTIONS
           PROGRAM_ERROR                      = 1
           OTHERS                             = 2
    *&      Form  user_command
    Form used to handle USER_COMMAND events
    rf_ucomm: Function Code
    rs      : Internal Table containing the selection information.
    FORM user_command USING rf_ucomm LIKE sy-ucomm
                              rs TYPE slis_selfield.
    data : v_mblnr like mseg-mblnr.
    case rf_ucomm.
    A custom pushbutton for record deletion is set in the GUI status.
    When a record is selected , the field BOC for that record becomes 'X'.
    The records are traced and deleted and the fields are refreshed( rs
    of type slis_selfield is refreshed)
    when '&DEL'.                 "Print button clicked.
        delete i_tab where box = 'X'.
         rs-refresh = 'X'.
    When the user selects a row and presses the Select pushbutton ( user
    defined ) from the application toolbar, the details of the document
    will be shown in another ALV list
    when '&SEL'.
      PERFORM SUB_SELECT_DOCUMENT.
      set parameter id 'MBN'  field  i_tab-mblnr.
      call transaction 'MB03'.
    Ok code for double click is &IC1 for ALV report
    when '&IC1'.
      perform sub_hotspot.
    endcase.
    ENDFORM.
    *&      Form  SUB_HOTSPOT
          text
    -->  p1        text
    <--  p2        text
    form SUB_HOTSPOT.
    message i398(00) with 'Hello'.
    endform.                    " SUB_HOTSPOT

  • Not all records shown for selection - CR 2008

    I have a crystal report that has dynamic record selection. The selections are set to allow multiple, allow discreet, allow ranges.
    When I run the report I am not shown all records on the file to choose from.
    The file has approx 6000 records. Does anyone know of any limitations? The file I am writnig report for is from Item Master in SAP.  Thanks.

    There is a registry entry that limits the number of records shown in a list of values (LOV).  The default value is 1000.  The registry key is Crystal reports version specific.  You should be able to find the key by searching the forum for LOV 1000 or similar...
    HTH,
    Carl
    Moderators:  This question comes up once a week, it seems.  Maybe we should "pin" the answer to the top of the forum board?

  • The GR & IR lines unable to shown in report ,but it does has in PO history

    Hi,
    Tcode: y_d35_87000552 [GR/IR Report for Stock Valuation/BB6 Reporting (with summary listing)]
    parameter:
    company code: HC02
    GR date: 01.01.07 to till 30.09.07
    Issue: The line items captured in the reports was not the complete one as some of the purchasing lines have been excluded.
    When trying to drill down via tcode ME23N for one of the missing transaction in the said reports (PO#SMLMFO2002), noticed that the purchasing doc was having GR and IR process in the year of 2007 as shown in 'purchasing order history' tab and all have generated the MM & FI entries.
    Conclusion: The GR & IR lines unable to shown in report from Tcode: y_d35_87000552 but it does has GR & IR entries at PO level's view.
    Appreciate if you can assist urgently. Thank you.
    Regards;
    Tata

    check in MB5S trx

  • Need help on filtering out one record from a report and open in new page

    Hi I am new and embarrassed to write in the forum asking silly questions. Thing is I am learning all from scratch without help from anyone. I have created a database (have previous knowledge only from Access) and have managed to create a beautiful report from a search filter. This report lines up several records matching what I needed. Now, I want to make the whole report with hyperlinks to a detailed page on each of the records in the report. I have tried using the feature where one can make one column hyperlinked and redirect to a new page, where I am getting all the records again - instead of only getting the record I am clicking on. I have looked and looked in the forums without finding solution and I have tested and tried various methods without luck. I am suspecting that I need some sort of knowledge on how to write a select query with where conditions that can apply to filtering out a record from one report to get another detailed on only one object (i.e. record). :/ Stupid or what?

    Hrefna.
    What you need to look into is two things:
    1) The link you defined, needs to set additional attributes for the target page. In the "Column Link" box, you have set the link to "Page in this Application" and followed by the page number (let's say, Page 10). Below that, you should set an Item to an item on you target page (let's call that P10_PRODUCT_ID). This item should be the primary key of your detail table (on the targe page). You can select this item from the popup list. The Value of the item should be picked from a popup list as well, being the value from the record you clicked on. This should then transfer your selected item to your page. The URL will then have something like P10_PRODUCT_ID:5 at the end.
    2) On the target page, 10, you must change the query slightly, so that it adds a WHERE clause:
    WHERE PRODUCT_ID = :P10_PRODUCT_ID
    Now, you should be set.
    Hope this helps.
    Borkur

  • How to refresh after delete the records in ALV report ?

    Hi Friends,
    How to refresh after delete the records in ALV report.
    I am deleting records in ALV report .
    After successful delete the screen should refresh.
    u201C Deleted records should not appear in the screen u201C.
    Please guide me.
    Regards,
    Subash

    Hi subhash,
    FORM user_command USING r_ucomm LIKE sy-ucomm      rs_selfield TYPE slis_selfield.
    WHEN 'BACK'.
    Refresh the internal table from the ALV grid
          PERFORM update_alv_tab.
    ENDFORM.                    "user_command
    FORM update_alv_tab .
      DATA :  e_grid TYPE REF TO cl_gui_alv_grid.
      CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
        IMPORTING
          e_grid = e_grid.
      CALL METHOD e_grid->check_changed_data.
      "update_alv_tab
      CALL METHOD e_grid->refresh_table_display.
    ENDFORM.                    " UPDATE_ALV_TAB
    Then see in Debug mode is it updating or not..
    Please confirm .
    And please paste the code if you can.
    Regards.

  • 2 IDs called from wwv_flow_files, as one record in a report??

    In my app I have 2 File Broswers( 1 for REMEDY_NAME and 1 for INSTRUCTIONS_NAME), 1 SUBMIT button and on click, 2 new records are added to the 'wwv_flow_files' table. As stated in the How To: Build File Up/Download App (figure 11) ,I created a page process to insert both file names and subjects at once into one row in 'file_subjects' table.
    The next part is where I am having trouble.<br>
    I need to "alter the SQL Report region to join to the additional attributes table."
    I can easily do this for one file but not two. The sql I have:<br>
    select w.id,s.REMEDY_NAME,s.REMEDY_SUBJECT,s.INSTRUCTIONS_NAME,s.INSTRUCTION_SUBJECT from wwv_flow_files w,DBA_PATCH_LOG s where w.name = s.REMEDY_NAME<br>
    is incomplete because it does not inlcude the id for INSTRUCTIONS_NAME. Any suggestions on how I could call this second id along with the first one as one record in a report? Does this make sense? I would like my report to look like this with both downloads linking to different files ofcourse:<br>
    download Remedy1[b] RemedySubjectdownload Instruction1[b] InstructionSubject.<br>
    Thanks.

    My sql for my report is:<br>
    select<br>
    w.id,s.REMEDY_NAME,w.id,s.INSTRUCTIONS_NAME from wwv_flow_files w,DBA_PATCH_LOG s where w.name = s.REMEDY_NAME or w.name = s.INSTRUCTIONS_NAME<br>
    <br>
    It produces<br>
    .....ID.....REMEDY.....ID......INSTRUCTIONS<br>
    ..11111......AAA.......11111..........BBB.......<br>
    ..22222......AAA.......22222..........BBB.......<br><br>
    but what I need is:<br>
    .....ID.....REMEDY.....ID......INSTRUCTIONS<br>
    ..11111......AAA.......22222..........BBB.......<br><br>
    To recap, I am trying to create an upload/download app that will upload two files at once. Right now I have two file browsers working by inserting two files, with one submit, as two new records into into the 'wwv_flow_files' table. On my report I want to display both records in one row.

  • FTWR File Size Worksheet no records shown?!

    This is regarding DART (Data Retention Tool).
    In FTW1A I extracted data. In AL11 I can see the data extraction file created in FTW1A. In FTWR “File Size Worksheet” no records are shown for the company code for which I extracted data in FTW1A. Does anybody have a clue what went wrong? How to get records shown  in FTWR?

    The size indication you are looking at is probably for megapixels. You can see the actual filesize in Lightroom in the metadata panel if you set it to "all" but I don't think you can show it on the badge in the Library grid display. A 6MP 16-bit uncompressed tiff should be about 36 megs, so close enough..

  • Link from Account record to specific report

    Hi,
    I have created a single account overview report. Now I want to link from specific account records to that report (embedded analytics).
    I have set up the web link but need to change either the link or the report so that it is generated only for the specific account record from where I have clicked the link.
    Ideas are highly appreciated.
    Thanks!
    Søren

    Søren,
    I have a document that details how to link a report to a webapplet so for each account record you get a report based upon that account. I'm happy to send it to you, but do not want to be spammed, so email me at alex.neill@ (use Homepage details on my profile)
    regards
    alex

  • Need help Updating Records in a Report Region

    We have created some javascript to check a drop down used in a report region.
    This is the way the report is supposed to work:
    The first time the user comes to this screen he will go down the list and select a value of '1' or '2' for col2.
    When col2 drop down has a value of 1 then we want to disable col3 and col4.
    Then the user will click on the Submit button.
    When he clicks on the Submit button then we want to set col4 to have a value of sysdate in the database table for any record where col2 had a value of 1.
    The next time the user comes to this screen he will select values for col3 and col4 of the records that col2 had a value of 2 (meaning col3 and col4 are enabled)
    This works fine if there is only one record in the report region.
    The problem is when we have more than one record.
    for example:
    Say we have two records...
    for record1 the user selects '1' for col2 and for record2 the user selects '2' for col2.
    When the user clicks on the Submit button col3 and col4 get disabled and col4 gets set to sysdate for record1, while col3 and col4 remain available but empty (because the user has not made a selection for these columns at this point) for record2.
    When the user comes back to this screen he now selects a value for col3 and picks a date for col4 for record2. When he clicks on the Submit button the value for col3 and the date entered in col4 for record2 should get updated in the database table and it is but the col3 value and the col4 date is being inverted with record1's data for some reason.
    Can you please tell me how to fix this?
    This is what the user has selected on the screen:
    (COL2) (COL3) (COL4)
    Requested? Granted? Response Date
    Record1 NO - 13-APR-09
    Record2 YES YES 20-APR-09
    After the user clicks on the Submit button this is how the screen displays it back:
    (COL2) (COL3) (COL4)
    Requested? Granted? Response Date
    Record1 NO YES 20-APR-09
    Record2 YES N/A 13-APR-09
    I am including the code from my update staement below:
    DECLARE
    A_ID NUMBER;
    requested NUMBER;
    grnted NUMBER;
    respdate DATE;
    f01 = AID ID
    f02 = REQUESTED YES OR NO
    F03 = GRANTED YES OR NO
    F04 = RESPONSE DATE
    BEGIN
    FOR i IN 1..HTMLDB_APPLICATION.G_F01.COUNT LOOP
    BEGIN
    A_ID      := HTMLDB_APPLICATION.G_F01(i); -- this is hidden
    requested := HTMLDB_APPLICATION.G_F02(i); -- (YES or NO)
    grnted := HTMLDB_APPLICATION.G_F03(i); -- (YES or NO)
    respdate := to_date(HTMLDB_APPLICATION.G_F04(i),'MM/DD/YYYY');
    EXCEPTION
    WHEN OTHERS THEN
    A_ID      := HTMLDB_APPLICATION.G_F01(i); -- this is hidden
    requested := HTMLDB_APPLICATION.G_F02(i); -- (YES or NO)
    grnted := 3; -- (YES or NO)
    respdate := sysdate;
    END;
    UPDATE TBL_AIT
    SET b_requested_id = requested,
    b_granted_id = grnted,
    b_response_date = respdate
    WHERE ait_id = A_ID;
    END LOOP;
    END;

    Hi,
    Any disabled items are not submitted with the page - therefore, your f03 and f04 collections would be one value short. This is a browser feature rather than an Apex feature.
    You can get around this by enabling all items before the submit takes place. Have a look at: Re: A better method of handling tabular forms with variable column type? This is for disabling items mainly, but includes an enableItems() javascript function that should help you.
    Andy

  • How to inlcude all records in a report, with a formula result of 0 or 0?

    I'm reporting on classes scheduled for a certain location, and calculating the number of available seats per class. A formula will give me the net seats available (Max seats-count of students). BUT if there are no students enrolled, class does not appear on the report. Formula is {SCHEDULES.qy_sch_max} - Count ({WAITING_LISTS.no_emp}, {SCHEDULES.cd_crs)
    What am I missing? Currently using Crystal 8.5 and reporting against a SQL database.
    Appreciate your help.
    christi

A: How to inlcude all records in a report, with a formula result of 0 or >0?

thanks, Sanjay - been there done that.
basically, I need to show the net result for the open seats available,which will be the same as the max seats offered.
I tried the following:
If Isnull{WAITING_LISTS.no_emp}
then {@Open}={SCHEDULES.qy_sch_max}
else
{SCHEDULES.qy_sch_max} - Count ({WAITING_LISTS.no_emp}, {SCHEDULES.cd_crs})
and got a message "Missing the then".  (@Open is the formula title)

thanks, Sanjay - been there done that.
basically, I need to show the net result for the open seats available,which will be the same as the max seats offered.
I tried the following:
If Isnull{WAITING_LISTS.no_emp}
then {@Open}={SCHEDULES.qy_sch_max}
else
{SCHEDULES.qy_sch_max} - Count ({WAITING_LISTS.no_emp}, {SCHEDULES.cd_crs})
and got a message "Missing the then".  (@Open is the formula title)

  • Get entire record from Crystal report viewer

    Hi,
    I'm using Crystal 2008 .Net components to view reports from within an application.
    I would like to write a custom drill down event so that users can link back from a record on the report they are previewing to somewhere else in the application. In order to do this I need access to the whole record's data for the object that they clicked on.
    It's not really much good if I just have the value, name and table of the field they clicked on, since it is probably not a unique value within that table, and therefore I couldn't drill back to the specific record they selected. Also, if it's not a database field in the first place then I have no way of going anywhere. But if I can get the whole record they are on then I'll already know which primary key field I want, and I could then get the appropriate value from the record.
    Is this possible?
    Richard

    You can get at specific objects using events,  but not a whole record.
    Can't think of any way of doign this at all...
    Ludek

  • Pass Records to Oracle Reports

    Hi,
    Lets say that I've already fetched a set of records on Oracle Form, I want to pass these records to a Report " on the Report I don't wana use range or where clause to give me these records"
    In other way I just want to pass these records on the reports.
    Any ideas how to do that please?
    Thanks!

    Francesco,
    If you need to send output to the cache, the easiest way to do this is to use the UTL_HTTP package in the database to request a report using a URL just as you would do in a browser. By submitting the request to the report server, you can execute these requests in parallel (unlike srw.run_report, which runs one thing at a time) and also control resource consumption.
    If you output the data in XML format, Reports won't generate an empty page for output. (On the other hand, it will generate a file containing XML....)
    Hope this helps,
    Stewart

  • How can I numbered the records in the report

    Hi, can anyone please show me how do I number the records in the reports in the Report Builder?
    Thank you.

    Hi,
    Follow the following steps:
    1. Create a summary column in the data model of the report.
    2. Select the function as Count.
    3. Select the source for which you want to generate the serial no.
    4.Reset the column at Report level.
    5. Now create a field in the paper layout of the report and select this summary column as the source. The field should be in the same repeating frame as its source.
    This will generate the nos. as reqd.
    Swati

  • Maybe you are looking for

    • [Solved?] VLC won't play audio -- cannot set buffer duration

      I can't play sound in VLC. I have tried the default and the ALSA outputs. I know ALSA works, because mpg123, speaker-test, and rdesktop's sound all work. (Saying that, I can't tell if mpg123 uses alsa or not - rdesktop does though) Attempting to play

    • Unable to switch to tty

      Hi all, after putting my system in hybernate mode, i realized something went wrong. I'm not able to switch to tty anymore by pressing ctrl-alt-fx (x=1..6). I also noticed that boot and close messages don't appear anymore. What can i do? Thanks in adv

    • Lightroom serial number?

      I am a creative cloud user.  I just updated Lightroom and now it is asking for a serial number.  Where do I find this?

    • Import Duty Treatment

      Dear Gurus kindly let me know this.... At the Time of Import Bill Booking in SAP B1  Through A/P .... customs Duty is  paid separately by Company at the time of clearing goods. How can i add  the duty value  with respective Purchase bill for Material

    • Fcp7 not working under 10.9.5

      Is this the end for FCP7?  Is Apple forcing me to buy X?  I updated to OS 10.9.5 and FCP7 crashes upon loading.  Any suggestions?  I tried to use time machine to restore to a previous version and the "restore" button remains ghosted.  Is Time Machine