Problem with Save data with report

Post Author: ramprosoft
CA Forum: General
Hi,
I am new to CR and using Crystal Reports XI with SQL Server 2000.
I'm not able to remove the saved data in a report. I have played around different options, but unfortunately I'm not able to remove the data. I have checked variouse places in web above this issue not able to find a solution, so decided to open a new post. The problem is :
I have created a simple report and saved with-out data (1st version) the file size was 16KB. After few changes I have saved the same report with Data, the file size become 1065 KB. Its perfect and I can view the report in Report Viewer. Great Stuff!. Now the Testing completed, I would like to move this report to production environment, I notice that I'm unable to remove the data. I have played around various tricks like below, but it didnt work well.
Trick 1:
Uncheck: File->Options->Reporting (tab)->Save Data With Report.
Check: File -> Options -> Reporting (tab)->Discard Saved data on Open,
Uncheck: file-> Report Options -> Save Data With Report.
File -> Save Data with Report (Not selected)
Opened the report and try "save" and also tried "save as", still the size is 1065.
Trick 2:
I enabled all "Save Data with report" feature. Deleted all the rows in the table related to the query, previewed the report and Saved the report with "Save Data with report" featuer. But now, the funny part happen, the file size increased to 1070kb, instead of reducing. Worst Stuff!!!
Trick 3:
Updated the latest version of Patch and tried above tricks, still i'm not able to remove the data.
Appreciate, if you could help me to fix the problem.
thanks in advance

Post Author: salmanq
CA Forum: General
Hi, This
post is very informative, however I would like some specific information. If
someone can help me then please send me a private message. Best Regards,
Wholesale Pages UK Dropshippers
| Wholesale Suppliers
Australia Wholesalers and
Dropshippers | Dubai Property and Real Estate

Similar Messages

  • Save Data with Reports

    Hi Friends,
    The Report Option has Save Data with Reports.
    What is Merit and Demerit of having this option on?
    Thanks and regards

    If you select the report option save data with report - i think it will save the report along with the data retrieved at that particular time.
    When open the report again it will show that data. The crystal reports will not search for new data, If click refresh then it will try to get the updated data. If you save the report with data, if publish the report in Infoview- open the report it will display the data without going for the dynamic data. If you schedule it then it will get the latest data from db server.
    You can view the data in crystal  reports viewer if you save the data along with the report.
    sorry for my english!!
    Regards,
    Parsa.

  • No "save data with report"

    Hi
          I have a report with prompts... I saved the report with "_save data with report_". If i didnt do the "save data with report" ,every time I run the report ,its asking for selecting  Prompts.
    My question is
          when i run the report , It should not ask for prompts and I need to fetch the latest data from the database but not the saved data .
    Plz get me out of this situation.
    Thank u 

    Hi Dans,
    Purpose of parameters:
    The purpose of creating prompts in the report is to filter  the data as per user's requirement.Whenever you refresh the report it is going to ask for the parameter values as the crystal engine will fire the required query on the database and include the parameter values in the 'where' clause of this query.In the absence of filters report fetches all the records in the databse which can significantly impact the performance of this report.
    Minimum requirement for getting refreshed data:
    In order to fetch the refreshed data (and not the saved one) the query needs to be complete before executing and thus the where clause condition needs to be complete as well.
    To solve your issue:
    In your case,if you want to avoid being prompted then you may hard code the desired filters in the record selection formula(Report>>Selection formuls>>Record) say as in Order_id not in (,,,,,,,) and order_date>'' etc
    Limitations:
    However after hard coding the values you may loose the flexibility of choosing the filter values at runtime.
    If you have any further queries please keep this thread updated.
    Thanks

  • Save data with SubReport

    How to save data with SubReport so I can view the report later without connecting to the data source?
    Does the ReportDocument SaveAs(some name, true) Saves the data with SubReport?

    Iu2019m sorry to tell that this solution is no longer valid for somehow!!! It was working, but suddenly it becomes not working.
    What I did is I have installed Visual Studio 2010 and before releasing a new version of my solution, I checked the reports module. I found that again it is not working.
    One client will save a report to the disk using this code:
    CrystalDecisions.CrystalReports.Engine.ReportDocument rdc = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
                rdc.Load(ReportFileNamePath/, OpenReportMethod.OpenReportByTempCopy/);
    rdc.ReportOptions.EnableSaveDataWithReport = true;
                            //rdc.ReportOptions.EnableSavePreviewPicture = true;
                            //rdc.ReportOptions.EnableSaveSummariesWithReport = true;
    u2026 Set Parameters then the connection
    CrystalDecisions.Shared.ReportPageRequestContext rprc = new CrystalDecisions.Shared.ReportPageRequestContext();
                            int nPages = rdc.FormatEngine.GetLastPageNumber(rprc);
    rdc.SaveAs(cNewFileName, true);
    rdc.Close();
    rdc.Dispose();
    // At this moment the report is saved and HasSavedData returns true
    // The report will be sent to his manager by email.
    In the other client:
    CrystalDecisions.CrystalReports.Engine.ReportDocument rdc = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
    rdc.Load(ReportFileNamePath/, OpenReportMethod.OpenReportByTempCopy/);
    // At this moment the report HasSavedData returns false!!!
    CrystalReportViewr1.ReportSource = rdc;
    CrystalReportViewr1.Show();
    // At this moment it will take some time then the parameters dialog appears.
    // Then I tried to re-apply the parameter to the CrystartReoprtViewer1.ParameterFieldInfo or even to the rdc.ParameterFields but no luck.
    Then I tried to set the connection to the ReportSource such as
    crv.LogOnInfo.Add(logOn);
                CrystalDecisions.CrystalReports.Engine.Tables tables =
                    ((CrystalDecisions.CrystalReports.Engine.ReportDocument)crv.ReportSource).Database.Tables;
                foreach (CrystalDecisions.CrystalReports.Engine.Table tbl in tables)
                    TableLogOnInfo objTableLogOnInfo = new TableLogOnInfo();
                    objTableLogOnInfo.ConnectionInfo = objConnectionInfo;
                    tbl.ApplyLogOnInfo(objTableLogOnInfo);
    But no luck again. It is only a try.
    Please note that I did not change any report source or even my code.
    My question is why the load does not load the saved data?
    As usual, Iu2019m sorry for my bad English.
    Edited by: Tariq Salah on Nov 29, 2010 7:01 PM

  • Problem while uploading data with GUI UPLOAD Function

    Hi,
      I am facing problem while uploading data with FM GUI UPLOAD    in out text file there are 7 row  but after the FM GUI UPLOAD  there are 14 entries are coming in Internal table   and each alternate row is coming as blank  with  0000 in some column   in internal table first row is proper and second line is blank so on.
    what can be the problem .
    The program in which we are using this we are using it from last 2 year but we are facing problem today only.
    regards,
      zafar

    Hi,
      The file formate is same as it is from last two years it is automatically generated by one another bar code server and there is no change  in the file formate.
      So waht can be the problem  to check any inconsistancy in system  i have develop a samll program fro  uploading a text file with same function module ,  but it is working fine.
    regards,
      zafar

  • Use of "with master data & with out master data" at DTP update level

    Hello experts,
    In DTP, I check "with out master data". When I try to send corresponding transactional data, It is showing SID related error. Can anybody suggest what is the use of "with master data & with out master data" at DTP level.
    Thanks in advance,
    Zakir.

    HI
    HI in DTP level If you set this indicator, the system terminates the update of the request if no values are available for a data record.
    Load the relevant master data before you load the transaction data.
    If you set this indicator, the system terminates activation if master data is missing and produces an error message.
    If you do not set this indicator, the system generates any missing SID values during activation.
    In DataStore maintenance, if you do not set the SIDs Generation upon Activation indicator, the No Update without Master Data indicator in the DTP has no effect.
    thx
    vijju

  • Problem with cgicmd.dat in reports 10g

    Dear Sir/Mam,
    I've configured report serve on solaris 10. When executing reports using web url with key map given in cgicmd.dat file, I'm getting a very strange problem. Whatever parameters m passing to the reports through web url an additional "=" character is appended automatically. I'm giving details of the files below. Please help me out. Thanks in advance.
    Content of rwservlet.properties:-
    SERVER_IN_PROCESS=YES
    RELOAD_KEYMAP=YES
    DIAGNOSTIC=YES
    TRACEOPTS=TRACE_ALL
    TRACEFILE=rwservlet.trc
    TRACEMODE=TRACE_REPLACE
    SERVER=test
    #IMAGEURL=http://<web_server_name>:<port_num>/reports/rwservlet
    KEYMAPFILE=cgicmd.dat
    #DBAUTH=RWDBAUTH.HTM
    #SYSAUTH=RWSYSAUTH.HTM
    #ERRORTEMPLATE=RWERROR.HTM
    #COOKIEEXPIRE=30
    ENCRYPTIONKEY=reports9i
    #DIAGBODYTAGS=<reports_servlet_help_file_title>
    #DIAGHEADTAGS=<reports_servlet_help_file_body_tag>
    #HELPURL=<url_of_customized_help_file_for_reports_servlet>
    #SINGLESIGNON=YES
    OID_ENTITY=%REPORTS_OID_ENTITY%
    #ALLOWHTMLTAGS=NO
    #REPORTS_NETWORK_CONFIG=rwnetwork.conf
    #OIDCON_INIT=10
    #OIDCON_INCREMENT=10
    #OIDCON_TIMEOUT=0
    DEFAULTCHARSET=JA16EUC
    #DEFAULTCHARSET=EUC-JP
    Content of cgicmd.dat:-
    osk47zgenp: report=%1 userid=utimainapp/utimainapp@testdb rundebug=NO desformat=delimited destype=cache mode=bitmap mast_ext=roymask.xls p_start_dt=%2 p_end_dt=%3 p_srvc_id=%4 p_sch_id=%5 p_agnt_cd=%6 p_user_id=%7 p_sesn_id=%8
    Report URL is:-
    http://10.10.100.110:8890/reports/rwservlet?osk47zgenp+rp_os424_mat_recon.rdf+30-JUN-2009+01-JAN-2010++31++shashi+1492544
    Error coming on browser:-
    REP-110: File 'rp_os424_mat_recon.rdf=' not found.
    REP-0110: Unable to open file 'rp_os424_mat_recon.rdf='.
    Content of rwservlet.trc:-
    [2011/1/19 7:37:1:624] (RWClient:doGet) enter...
    [2011/1/19 7:37:1:625] Debug 50103 (RWClient:doGet): QueryString: osk47zgenp+rp_os424_mat_recon.rdf+30-JUN-2009+01-JAN-2010++31+
    shashi1492544
    [2011/1/19 7:37:1:625] Info 50103 (RWClient:processRequest): reload key map file: s_reloadKeyMap: YES
    [2011/1/19 7:37:1:626] Debug 50103 (KeyEntry:replaceParams): report=rp_os424_mat_recon.rdf= userid=utimainapp@testdb rundebug=N
    O desformat=delimited destype=cache mode=bitmap mast_ext=roymask.xls p_start_dt=30-JUN-2009= p_end_dt=01-JAN-2010= p_srvc_id=31=
    p_sch_id=shashi= p_agnt_cd=1492544= p_user_id= p_sesn_id=
    [2011/1/19 7:37:1:626] Debug 50103 (RWClientUtility:isFromPortal): portal: null
    [2011/1/19 7:37:1:626] Debug 50103 (RWClientUtility:isFromPortal): webdbversion: null
    [2011/1/19 7:37:1:627] Info 50103 (RWClientUtility:findServer): Failed to bind to server: test
    [2011/1/19 7:37:1:627] Warning 50103 (RWClient:startInProcessServer): start inprocess server test
    [2011/1/19 7:37:1:657] Debug 50103 (NetworkUtility:getIOR): Found a server and returning the IOR
    [2011/1/19 7:37:1:658] Debug 50103 (ServerManager:getServer): Found server class object
    [2011/1/19 7:37:1:659] Debug 50103 (ServerManager:getServer): ping server successfully
    [2011/1/19 7:37:1:660] Debug 50103 (RWClientUtility:getReportsServer): server: test
    [2011/1/19 7:37:1:660] Debug 50103 (ServerManager:getServer): Found server class object
    [2011/1/19 7:37:1:660] Debug 50103 (ServerManager:getServer): ping server successfully
    [2011/1/19 7:37:1:661] Debug 50103 (AuthManager:getAuthId): server secure: false
    [2011/1/19 7:37:1:663] Debug 50103 (RWClientUtility:getReportsServer): server: test
    [2011/1/19 7:37:1:664] Debug 50103 (RWClientUtility:getReportsServer): server: test
    [2011/1/19 7:37:1:664] Debug 50103 (ServerManager:getServer): Found server class object
    [2011/1/19 7:37:1:665] Debug 50103 (ServerManager:getServer): ping server successfully
    [2011/1/19 7:37:1:666] Debug 50103 (RWClientUtility:isFromPortal): portal: null
    [2011/1/19 7:37:1:666] Debug 50103 (RWClientUtility:isFromPortal): webdbversion: null
    [2011/1/19 7:37:1:667] Debug 50103 (RWClient:runReport): cmdline: p_end_dt=01-JAN-2010= baseUrl=http://10.10.100.110:8890/report
    s/rwservlet/getfile/ userid=utimainapp@testdb USER_AGENT="Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0)" p_srv
    c_id=31= SERVER_NAME=10.10.100.110 jobname="rp_os424_mat_recon.rdf=" p_sesn_id= mast_ext=roymask.xls getFilestr=/no> imagekey=re
    ports9i p_user_id= REMOTE_ADDR=10.10.105.54 SERVER_PROTOCOL=HTTP/1.1 authid=RWUser p_start_dt=30-JUN-2009= mode=bitmap REMOTE_HO
    ST=10.10.105.54 destype=cache SERVER_PORT=8890 p_sch_id=shashi= report="rp_os424_mat_recon.rdf=" expiredays=0 ACCEPT_LANGUAGE=en
    -us desformat=delimited p_agnt_cd=1492544= SCRIPT_NAME=/rwservlet rundebug=NO
    [2011/1/19 7:37:1:668] Debug 50103 (ServerManager:getServer): Found server class object
    [2011/1/19 7:37:1:669] Debug 50103 (ServerManager:getServer): ping server successfully
    [2011/1/19 7:37:1:669] Debug 50103 (ReportRunner:connectToServer): New Connection request for userid: RWUser to server: test
    [2011/1/19 7:37:1:673] Debug 50103 (ReportRunner:connectToServer): Connection succeeded for user: RWUser to server: test
    [2011/1/19 7:37:1:709] Info 51022 (ReportRunner:Release): Connection object has been released
    [2011/1/19 7:37:1:711] Exception 110 (): File 'rp_os424_mat_recon.rdf=' not found.
    REP-0110: Unable to open file 'rp_os424_mat_recon.rdf='.
    oracle.reports.RWException: IDL:oracle/reports/RWException:1.0
    at oracle.reports.RWExceptionHelper.read(RWExceptionHelper.java:67)
    at oracle.reports.server._ConnectionStub.runJob(_ConnectionStub.java:504)
    at oracle.reports.client.ReportRunner.dispatchReport(ReportRunner.java:288)
    at oracle.reports.rwclient.RWReportRunner.dispatchReport(RWReportRunner.java:86)
    at oracle.reports.rwclient.RWClient.runReport(RWClient.java:1671)
    at oracle.reports.rwclient.RWClient.processRequest(RWClient.java:1525)
    at oracle.reports.rwclient.RWClient.doGet(RWClient.java:366)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
    at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:663)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:285)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:126)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
    at java.lang.Thread.run(Thread.java:534)
    [2011/1/19 7:37:1:711] Debug 50103 (RWClientUtility:isFromPortal): portal: null
    [2011/1/19 7:37:1:711] Debug 50103 (RWClientUtility:isFromPortal): webdbversion: null
    [2011/1/19 7:37:1:716] Debug 50103 (RWClientUtility:isStatusFormat): statusformat: null
    [2011/1/19 7:37:1:717] Debug 50103 (RWClientUtility:isStatusFormat): statusformat: null
    [2011/1/19 7:37:1:717] (RWClient:doGet) ...exit

    HI,
    From where can I get access of the Doc id 341188.1. Could u tell me the solution? I'm stuck with it for more than 2 weeks.
    Thanks in advance.
    Regards,
    Shashi Ranjan

  • Save data with more than 6 decimal places in SAP MDM 5.5

    Hi there,
    I need some help concerning saving data with about 20 decimal places (e.g. 0,00452961328622164) in MDM. I declared the datatyp "REAL", there are only 6 decimal places possible.
    How can I save this Data? Maybe exponential function?
    Please help.
    Thank you
    Thomas Pfab

    currency takes you to 14 decimal places, if you want to have it as a little work around....you can always take out that symbol if it is annoying.(ohhh and decimal is multilingual too in currency, probably not a good hack!)
    or without even knwoing what your requirement is? try normalizing the value, How many more decimal places can you hit?
    One 100 1. "ten to the zero"
    tenth 10-1 0.1 "ten to the minus one"
    hundredth 10-2 0.01. "ten to the minus two"
    thousandth 10-3 0.001. "ten to the minus three"
    ten thousand 10-4 0.0001. "ten to the minus four"
    hundred thousandth 10-5 0.00001. "ten to the minus five"
    millionth 10-6 0.000001 "ten to the minus six"
    ten millionth 10-7 0.0000001. "ten to the minus seven"
    hundred millionth 10-8 0.00000001. "ten to the minus eight"
    billionth 10-9 0.000000001. "ten to the minus nine"
    ten billionth 10-10 0.0000000001. "ten to the minus ten"
    hundred billionth 10-11 0.00000000001. "ten to the minus eleven"
    trillionth 10-12 0.000000000001 "ten to the minus twelve"
    ten trillionth 10-13 0.0000000000001. "ten to the minus thirteen"
    hundred trillionth 10-14 0.00000000000001. "ten to the minus fourteen"
    and put that field label indicating the 10th power. Like "Accuracy in 10 POW -9"
    Just a wild guess.well thats how we usually show data in catalogues too!
    (or)
    separate the integer and decimal portions into two fields and store it in the repository.(split on ',')
    -Sudhir.

  • Save data with EntityManager

    Hi,
    I would like to save data to a database with EntityManager. But not in the sun-appserv-samples (what the Netbeans uses). Is it possible to choose another database?
    Thanks in advance any help.

    First of all I would like to thank you for your replies. You're absolutely right. I don't understand every step I do. But I would like to understand.
    In the first step I made an Enterprise Application Project. After that I made a JDBC Connection Pool on the part of the teszt-ejb / Server Resource. Here is the glassfish-resources.xml. Maybe it'll help.
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE resources PUBLIC "-//GlassFish.org//DTD GlassFish Application Server 3.1 Resource Definitions//EN" "http://glassfish.org/dtds/glassfish-resources_1_5.dtd">
    <resources>
      <jdbc-connection-pool allow-non-component-callers="false" associate-with-thread="false" connection-creation-retry-attempts="0" connection-creation-retry-interval-in-seconds="10" connection-leak-reclaim="false" connection-leak-timeout-in-seconds="0" connection-validation-method="auto-commit" datasource-classname="oracle.jdbc.pool.OracleDataSource" fail-all-connections="false" idle-timeout-in-seconds="300" is-connection-validation-required="false" is-isolation-level-guaranteed="true" lazy-connection-association="false" lazy-connection-enlistment="false" match-connections="false" max-connection-usage-count="0" max-pool-size="32" max-wait-time-in-millis="60000" name="connectionPool" non-transactional-connections="false" pool-resize-quantity="2" res-type="javax.sql.DataSource" statement-timeout-in-seconds="-1" steady-pool-size="8" validate-atmost-once-period-in-seconds="0" wrap-jdbc-objects="false">
        <property name="URL" value="jdbc:oracle:thin:@localhost:1521"/>
        <property name="User" value="admin"/>
        <property name="Password" value="admin"/>
      </jdbc-connection-pool>
    </resources>

  • Save date with precision (Hour, Minutes, seconds ) using V.O.

    Hi all,
    I'm using Jdeveloper 11g.
    I have an Entity object with a column called 'createdOn' of type Date and an entity based View Object with the same type.
    I'm trying to save today's Date with precision (day, month, year, hour, minutes, seconds) Using the view Object, but when I look in the Data Base, always appears the date without time.
    Here is my code in the application Module to save the data, I've tried some things but nothing...
    First I've tried using oracle.jbo.domain.Date, and I've tryed using Calendar as well. Nothing with
    ViewObjectImpl voSample = getSamples1View1();
    //Date creation for View Object
    oracle.jbo.domain.Date today = new Date(Date.getCurrentDate());
    //Calendar today = Calendar.getInstance();
    //loop through the list of samples (TESTGROUPTYPES), and create the objects
    while( it.hasNext())
    Row rowSample = voSample.createRow();
    SequenceImpl sequence = new SequenceImpl("SAMPLES_SEQ", voSample.getApplicationModule());
    rowSample.setAttribute("SampleId", sequence.getSequenceNumber());
    rowSample.setAttribute("CollectionId", stCollectionId);
    rowSample.setAttribute("TestgroupType",it.next());
    rowSample.setAttribute("UnitId",stUnitId);
    rowSample.setAttribute("SampleStatus", "ORDERED");
    rowSample.setAttribute("SampleBackup", "false");
    rowSample.setAttribute("CreatedOn", today);
    voSample.insertRow(rowSample);
    voSample.getApplicationModule().getTransaction().commit();
    Any help will be usefull,
    thanks in advance
    XAVI.

    Hello John,
    yes, I changed the date mask using
    alter session set NLS_DATE_FORMAT='DD/MM/YYYY-hh24:mi:ss'
    if i execute to_char(<date_column>, 'YY-MON-DD HH:MI:SS') on that column, the result is:
    09-MAY-27 12:00:00
    09-MAY-27 12:00:00
    09-MAY-27 12:00:00
    To launch the queries and see the results I'm using the JDeveloper's SQL WorkSheet.
    I can update the data and time and the time persists in the DB
    08-FEB-26 08:07:56
    so, i think there's something in hte EO, VO or App Module method that I'm doing wrong...
    The Entity Attribute is confirured:
    name: CreatedOn
    Type: Date
    Value type: literal
    Values checked: Persistent, Precision Rule and Queryable
    database column: CREATED_ON, type: DATE
    The View attribute is configured:
    Name: CreatedOn
    Type: Date
    Value type: Literal
    checked: Mapped to Column or SQL, Selected in query, queryable
    query column: Alias: CREATED_ON, Type: DATE

  • Save Data in Report to Use later

    I have several names to report I need to combine data from several records of the same type with different codes. Not all names have the same codes. I want to report the data on one line. Is there a way to save date to be used later in the report?
    For Example:
    Name              Code   Start Date        Code Transfer Date  Code              Promote Date          
    Sue
    SD
    01/15/2000
    TD
    01/15/2005
    Mitch
    SD
    01/15/2004
    Sam
    SD
    01/15/2003
    PD
    01/15/2006

    Using the three records above I want the report to print (I'm using the Name Group Footer):
    Name
    Start Date
    Transfer Date
    Promote Date
    Sue
    01/15/2000
    01/15/2005
    Mitch
    01/15/2004
    Sam
    01/15/2003
    01/15/2006

  • Help with multiple date percentage report

    Dear all,
    I am having problems with getting percentage right on my report which is set to YTD however I am counting records for Last 5 days, Last 4 weeks and Current Date.
    I am getting the records perfectly right as I have created 3 different Groups for them. The Running Totals are counting the correct number of records.
    As I have two Running totals for each job (Credit Job + Free of Charge Job), these two jobs are getting added up in the report.
    For example
    YTD formula
    Running total of Credit Job + Running Total of Free of Charge Job = Total Jobs
    Last 5 Days formula
    Running total of Credit Job + Running Total of Free of Charge Job = Total Jobs
    Last 4 Weeks formula
    Running total of Credit Job + Running Total of Free of Charge Job = Total Jobs
    Current Date formula
    Running total of Credit Job + Running Total of Free of Charge Job = Total Jobs
    To get the grand total of these records, I have created another formula which counts all the above YTD records, L5D records and displays them in the report footer. Grand Total is showing up correctly.
    Now, What I want is the percentage of each record, i.e. the percentage of YTD records, L5D records etc.
    I have created a formula which counts the percentage but incorrectly.
    Here is the formula
    Whileprintingrecords;
    Numbervar b:=0;
    numbervar n:=0;
    numbervar m:=0;
    b:={@TotalJobsFOCRL5D}; // this is total job, (Credit+Free of charge jobs)
    n:={@TotalJobsFOCRL5DGT}; //GT is the grand total showing in report footer
    If b=0 then 0 else //if total jobs = 0 then answer is 0
    m:=(b/n)*100; // divide total jobs with grand total
    totext(m,2)+"%"; //show as percentage
    This formula does show the percentage but divides each job by itself. So if Total Jobs = 9 then it shows 100% whereas Grand Total is 479.
    Could someone please help me getting the correct percentage.
    The percentage formula is placed on the respective group footer.
    Regards
    Jehanzeb

    closing no reply

  • Statement terminator problems when exporting data with SQL Developer 3.2

    I've ran across what appears to be a bug with SQL Developer 3.2.20.09. If someone can let me know if this is indeed a bug, or just something I need to configure differently, please let me know.
    The problem is related to exporting a database as a SQL script, and terminator characters at the end of "create" statements, especially when columns have comments, and problems that occur when using SQLPlus to run the export script to create the tables. With the old SQL Developer 1.5.4, with the "Terminator" and "Pretty Print" options checked, statements like the following are generated:
    -- DDL for Type NUM_ARRAY
    CREATE OR REPLACE TYPE "NUM_ARRAY"
    IS TABLE OF NUMBER(20)
    -- DDL for Sequence MYTABLE_SEQ
    CREATE SEQUENCE "MYTABLE_SEQ" MINVALUE 1 MAXVALUE 999999999999999999999999999 INCREMENT BY 1 START WITH 1 CACHE 20 NOORDER NOCYCLE ;
    -- DDL for Table MYTABLE
    CREATE TABLE "MYTABLE"
    (     "MYTABLE_ID" NUMBER,
         "COL2" NUMBER,
         "COL3" NUMBER
    -- DDL for Table ANOTHERTABLE
    CREATE TABLE "ANOTHERTABLE"
    (     "ANOTHERTABLE_ID" NUMBER,
         "COL2" VARCHAR2(1024),
         "COL3" VARCHAR2(1024)
    COMMENT ON COLUMN "ANOTHERTABLE"."ANOTHERTABLE_ID" IS 'This is a comment.';
    When I then run the script using SQLPlus, everything works fine. However, with SQL Developer 3.2.20.09, with the same options enabled, the same statements are generated like this:
    -- DDL for Type NUM_ARRAY
    CREATE OR REPLACE TYPE "NUM_ARRAY"
    IS TABLE OF NUMBER(20)
    -- DDL for Sequence MYTABLE_SEQ
    CREATE SEQUENCE "MYTABLE_SEQ" MINVALUE 1 MAXVALUE 999999999999999999999999999 INCREMENT BY 1 START WITH 1 CACHE 20 NOORDER NOCYCLE ;
    -- DDL for Table MYTABLE
    CREATE TABLE "MYTABLE"
    (     "MYTABLE_ID" NUMBER,
         "COL2" NUMBER,
         "COL3" NUMBER
    -- DDL for Table ANOTHERTABLE
    CREATE TABLE "ANOTHERTABLE"
    (     "ANOTHERTABLE_ID" NUMBER,
         "COL2" VARCHAR2(1024),
         "COL3" VARCHAR2(1024)
    COMMENT ON COLUMN "ANOTHERTABLE"."ANOTHERTABLE_ID" IS 'This is a comment.';
    Notice all of the extra slashes in there. If a slash is not used as a statement terminator, SQLPlus treats slashes as a command to repeat the last SQL statement, which causes many errors about tables or sequences already existing. So, I tried removing the "Terminator" flag from the export options. This lead to statements that looked a bit more promising:
    -- DDL for Type NUM_ARRAY
    CREATE OR REPLACE TYPE "NUM_ARRAY"
    IS TABLE OF NUMBER(20)
    -- DDL for Sequence MYTABLE_SEQ
    CREATE SEQUENCE "MYTABLE_SEQ" MINVALUE 1 MAXVALUE 999999999999999999999999999 INCREMENT BY 1 START WITH 1 CACHE 20 NOORDER NOCYCLE
    -- DDL for Table MYTABLE
    CREATE TABLE "MYTABLE"
    (     "MYTABLE_ID" NUMBER,
         "COL2" NUMBER,
         "COL3" NUMBER
    -- DDL for Table ANOTHERTABLE
    CREATE TABLE "ANOTHERTABLE"
    (     "ANOTHERTABLE_ID" NUMBER,
         "COL2" VARCHAR2(1024),
         "COL3" VARCHAR2(1024)
    COMMENT ON COLUMN "ANOTHERTABLE"."ANOTHERTABLE_ID" IS 'This is a comment.'
    The big problem, though, is in the statement for the table with a comment. Notice that there are two statements, but there is not a semicolon after either of them. This unfortunately causes the "COMMENT" statement to be appended to the "CREATE TABLE" statement before being executed, which causes the table to not be created (which causes even more errors later on when the script attempts to populate the table with data).
    So, it would appear that this is a bug, but I'm not sure. Is there a way I can configure the export options to make SQL Developer export these statements like it used to in older versions?
    Thanks,
    -Bill

    >
    So, it would appear that this is a bug, but I'm not sure.
    >
    That would be a bug. Thanks for reporting it and providing the detailed example.
    >
    Is there a way I can configure the export options to make SQL Developer export these statements like it used to in older versions?
    >
    No.
    Leave the thread open. One of the developers for sql developer should be monitoring the forum and can provide more information.

  • Problem with formatting date with JSTL ans swedish locale

    Hi,
    I have a strange problem with JSTL fmt:formatDate -tag and swedish locale.
    -------------------------- Extract from the JSP ------------------------------
    <jsp:useBean id="date" class="java.util.Date" />
    <fmt:formatDate value="${date}" pattern="dd.MM.yyyy HH:mm" />
    With en_US and fi_FI locales date is printed just the way I want: 29.04.2005 13:28 but in se_SE locale it is printed: Fri Apr 29 13:30:09 EEST 2005
    Has anyone had this problem before?
    Thanks in advance!

    Hi
    Try using "sv_SE" locale.

  • SQL Loader Oracle 10g problem in upload date with time data -- Very urgent.

    Hi
    I am trying to upload data using SQL loader. There are three columns in the table
    defined as DATE. When I tried upload a data like this '2007-02-15 15:10:20', it is not loading time part. The date stored as 02/15/2008' only. There is not time on that. I tried with many different format nothing work. Can please help me ?
    I have also tried with to_date --> to_timestamp it did not work.
    The application is going to be in production, I cannot change DATE to TIME STAMP. This is very urgent.
    LASTWRITTEN "decode(:LASTWRITTEN,'null',Null, to_date(:LASTWRITTEN,'YYYY-MM-DD HH24:Mi:SS'))",
    CREATEDON "decode(:CREATEDON,'null',Null, to_date(:CREATEDON,'YYYY-MM-DD HH24:Mi:SS'))",
    LASTUPDATEDON(21) "decode(:LASTUPDATEDON,'null',Null, to_date(:LASTUPDATEDON(21),'DD/MM/YYYY HH24:MI:SS'))"

    Your problem is most likely in decode - the return type in your expression will be character based on first search value ('null'), so it will be implicitly converted to character and then again implicitly converted to date by loading into date column. At some of this conversions you probably are loosing your time part. You can try instead use cast:
    SQL> desc t
    Name                                      Null?    Type
    LASTWRITTEN                                        DATE
    CREATEDON                                          DATE
    LASTUPDATEDON                                      DATE
    SQL> select * from t;
    no rows selected
    SQL> !cat t.ctl
    LOAD DATA
    INFILE *
    INTO TABLE T
    TRUNCATE
    FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' TRAILING NULLCOLS
    LASTWRITTEN
    "decode(:LASTWRITTEN,'null',cast(Null as date),
      to_date(:LASTWRITTEN,'YYYY-MM-DD HH24:MI:SS'))",
    CREATEDON
    "decode(:CREATEDON,'null',cast(Null as date),
      to_date(:CREATEDON,'YYYY-MM-DD HH24:MI:SS'))",
    LASTUPDATEDON
    "decode(:LASTUPDATEDON,'null',cast(Null as date),
      to_date(:LASTUPDATEDON,'DD/MM/YYYY HH24:MI:SS'))"
    BEGINDATA
    2007-02-15 15:10:20,null,null
    null,2007-02-15 15:10:20,null
    null,null,15/02/2007 15:10:20
    SQL> !sqlldr userid=scott/tiger control=t.ctl log=t.log
    SQL*Loader: Release 10.2.0.3.0 - Production on Fri Feb 29 00:20:07 2008
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Commit point reached - logical record count 3
    SQL> select * from t;
    LASTWRITTEN         CREATEDON           LASTUPDATEDON
    15.02.2007 15:10:20
                        15.02.2007 15:10:20
                                            15.02.2007 15:10:20Best regards
    Maxim

Maybe you are looking for

  • Report showing costs on cost Centers before and after Cost Distribution

    Hi experts, Is there a report that shows the costs on a Sender / receiver  Cost center/Cost elements before and after the distribution cycle is run. What I am looking for a report that shows the costs on  Cost center/Cost Element before the cost allo

  • Reporting problems with iTunes

    Does anyone know how to report problems with updates to iTunes to Apple? I cannot find any way to contact them to alert them to bugs and problems.

  • Podcasts not showing on ipod

    I've just bought an ipod and i am having trouble getting podcats to show up on it. I have been into preferences and made sure that auto update is checked for podcasts and videos bought i can't seem to fing them on the ipod at all. I have checked that

  • Milestone Confirmations & Operational Loss

    Hi I have a concern with the use of operational loss during milestone confirmations. The system will increase confirmed qty's in each each preceding operation were operational loss exists during a milestone confirmation. Normally this would make sens

  • Remote ID not identified/recognized

    I have been iChatting with a friend for about two months now. He recently went on holiday and has tried to iChat in another location. Every time he tries to initiate a chat, or I try, I get the following error message: Remote ID not identified (or so