Verify Database changes field format

I am converting a report written using CR 6 to CR 10.  The report gets data from a SQL Server 2000 stored procedure through ODBC.  The stored procedure has changed adding an input parameter only, the resultset of the SP has not changed.  When i attempt to update the report for the SP using Verify Database, when completed, the format of the data fields on the report are changed from character to numeric.  I do not want the format to change and cannot understand why it is changing.

Hello, the format can change because CR is changing the format because likely the first field returned is a number and the driver is not reporting it properly.
There are no updates available for CR 10 so try using OLE DB using the Set Location option.
Don

Similar Messages

  • Want to change length validator message and change field format.

    I want to override Length Validator Message as I want to tell the user that phone number
    must contain 10 numbers
    I've added this validator on the phone field
    af:validateLength minimum="10" maximum="10"
                                   hintMinimum="11" hintMaximum="22"
                                   hintNotInRange="33" messageDetailMinimum="44"
                                   messageDetailMaximum="55"
                                   messageDetailNotInRange="66" id="lengthval"/>and this when I enter less than 10 numbers the error message tell that you must enter 10 characters
    I want to override this message to be "you must enter 10 numbers"
    And I want to make this number format like
    XXXX,XXX,XX
    How can I make this.

    Strictly speaking a number in this format is no number. It's a phone number and you should use a regular expression validator for this.
    Check http://docs.oracle.com/cd/E15051_01/apirefs.1111/e12419/tagdoc/af_validateRegExp.html for more info.
    Timo

  • Change Display Format of Date Field

    Hi,
    How can I change the display format of a date?
    When the field is displayed as a DateField the data format is good, but can I change the format? The problem with a DateField is also that the field can be updated and that shouldn't be possible.
    When the field is displayed as a DisplayField the format looks worse. It looks like it's doing a toString from a Data variable.
    Could someone tell me what is the best way to Display a Date from the database? The users shouldn't be allowed to change the value.
    Thanx

    Use something like this:
    <messageDateField name="Birthdate" promptAndAccessKey="Birthdate" data:text="Birthdate" anchor="Birthdate" persistent="true" dataObject="uNextMonthsBirthdaysSet" data:value="Birthdate" data:readOnly="isViewing">
      <onSubmitValidater>
        <date dateStyle="shortish"/>
      </onSubmitValidater>
    </messageDateField>

  • How to reflect db changes - Verify Database doesn't seem to work

    I have changed a database (MS SQL Server) column from varchar 255 to varchar 1000, but the designer doesn't pick up the change.
    I read that db changes can be picked up by using 'Verify Database' feature. It doesn't seem to work for us though. Is there any configuration to turn on for the feature to work properly or any work-around to refresh the database changes?
    We are making the database connection using JDBC (JNDI) option since the report is being used in a Java web application.
    Any comments or insights will be very much appreciated!

    Hi Wallie,
    Thank you very much for your reply! Here are the answers to your questions.
    Are you able to create a new report off the modified database?
    ==> Yes.
    Do new reports see the changes made to the database?
    ==> No.
    Are the reports connecting directly to the database table, or is it a stored procedure, business view, universe being used?
    ==> Through a business view.
    By the way, after trying so many things, I was able to figure out the reason. Since the report is using a view, not directly the table, the view itself had to be recompiled to reflect the table changes so that the view could pass the changes to the report. It was a very good thing to know. Your last question could have been a very helpful insight for this issue! Thank you so much again!

  • Database Fields Verify Database - By Programaticaly

    Hi to all,
                  I'm using Crystal Report 11.5, Visual studio 2005 - C#,Asp.Net2.0.
                  My task is by programaticaly add the
    Fieldsobjects,Blobobjects and so on. So in design time i just
    add the Datatable in the CR,
    but during runtime i add some columns in database Table and i get that newly added column but unable to add this field
    (Raised error as "Field Not Found") so what i tried is during
    design time in
    Field Explorer>Database Fields>Right Click and Select
    Verify Database after this work my page is working fine.
    My questions is how to do the same work programaticaly.
    Experts please explain.
    Thanks in Advance

    Yes i found the way it's very simple
    ReportDocument boReportDocument = new ReportDocument ();
    boReportDocument.VerifyDatabase();
    Thats all

  • Changing fields of Logical database BRF

    Hi;
    I have a changing problem
    I use brf logical database in my program but I want to change attributes of some selection fields.
    Ex:I want to do mandotary year field.I can't dı it.I can add new field but I can't change fields of BRF.
    How can I do?

    try this:
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        CASE SCREEN-NAME.
          WHEN 'BR_GJAHR'.
            SCREEN-REQUIRED = 1.
            MODIFY SCREEN.
        ENDCASE.
      ENDLOOP.
    hope tha helps
    Andreas

  • Is it possible to change the Database default date format  'dd/mm/yy'

    I'm inserting a date with the format 'dd-mon-yy' in a column, it gives the error:- " a non-numeric character was found where a numeric was expected ". I also tried the TO_DATE function but not successful.
    I want to change the Database default Date format 'dd/mm/yy' to 'dd-mon-yy'. Is it possible?
    version is (Oracle Server 7.3.2.0). I checked it on version ( Oracle Server 7.3.4.0) with format of 'dd-mon-yy'.
    May I keep the both formats at a time?
    Thanks for solution(s),
    Tariq.

    you can try with:
    ALTER SESSION
    SET NLS_DATE_FORMAT = 'dd-mon-yy';

  • How to change the format of a date field inheriting format from subclass.

    Currenctlty date filed is inheriting the format from a property class. The date format in my property class is 'dd/mm/rrrr'.
    Now my requirement is to change the format mask according to my applications user from 'dd/mm/rrrr/ to 'dd/mon/rrrr'.
    Some may use 'dd/mm/rrrr' and some may use 'dd/mon/yyyy'.
    Thanks.

    Some may use 'dd/mm/rrrr' and some may use 'dd/mon/yyyy'.
    I want a generic solution to change the date format at runtime These two seem to conflict. How will you decide which one to change and which not?

  • Changing date format

    Hello experts,
    i have a hidden field for updating last modified date on my screen
    I have a PRE-UPDATE trigger for the following
    BEGIN
    :CATEGORY_lIST.last_updated_by := user;
    :CATEGORY_lIST.last_updated_date := sysdate;
    END;My problem is that i want to record date and time in my db table.
    Can i do tat from my form itself by changing the format mask on my last_updated_date field?
    thanks
    kevin

    have you tried SQL> alter session set nls_date_format='yyyy/mm/dd hh24:mi:ss'
    Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    SQL> alter session set NLS_DATE_FORMAT='YYYY/MM/DD HH24:MI:SS';
    Session altered.
    SQL> SELECT SYSDATE FROM DUAL;
    SYSDATE
    *2010/07/19 14:39:19*
    SQL>

  • Is it possible to change date format in Web Dynpro?

    Hi,
    I have an input field that is mapped to a context data type of date.  It is showing me the data in the format of "mm/dd/yyyy".
    Is it possible for me to change this format to "dd/mm/yyyy"?
    I know it is possible to alter the Regional Setting in a Windows box.  What about Solaris box?  Are there specific properties within Web Dynpro that I could set so that I do not have to remember to change it everytime.  I have a few environments that I need to deploy to, so it makes sense for me to set the format into Web Dynpro.

    Hi Stefan,
    Could you be more elaborate?  What happens after that?  How do I populate data from the database to this new type?
    Currently, I can't find the Base Type of "date" in the lookup box.  Do you mean the Built-In Type?
    Thanx.

  • Unknown Query Engine Error when doing a Verify Database

    Hi there,
    Using Crystal 10. Sybase Server.
    Have built a report that connects to a stored procedure. The stored procedure has since been updated, and new fields have been added.
    Usual process for me is to simply:
    1. Go to Database > Verify Database
    2. Enter login credentials for server
    3. Enter parameter values (as per stored proc)
    4. Report is then updated and new fields display
    Currently, I am able to complete step 3. As soon as I hit ok, i get an 'Unknown Query Engine Error' - to which I can only hit OK. Doing so results in no changes - and the new fields of course do not display.
    Any clues on what might be going wrong? I am guessing that it is something to do with the stored proc itself - but perhaps it is some sort of permissions issue?
    Grateful for any assistance you can provide. Please let me know if you need any more info from me.
    Many thanks,
    Corinne

    Likely due to some field type defined incorrectly or not supported. Try creating a new report off the new update connection info. If that fails also then it's the data source causing the problem.

  • Verify Database from C#

    Hello,
    I'm using Crystal Reports XI and I've been in troubles because my database change its structure many times and every time this happen I must to "verify database" from the designer in order to solve the errors. This is so complicated since we have around 100 reports deployed with many customers.
    I'm using the .net components in order to show the reports, and I'd like to perform a "verify database" for the reports automatically every time they are displayed, Is there a way to achieve this from .NET???
    report.VerifyDatabase() is just for verify the connection, so it's not working for me.
    Thanks in advance.

    Hi Alex,
    Unfortunately there is no mapping API in .NET. CR assumes the report you publish is the finished product.
    There are a few options though. Firstly I suggest you download CR XI R2 ( 11.5 ), you are using 11.0. It's a free download and your keycode will work for R2. Look in our download site for the upgrade. It won't help to do the mapping but it will be supported, CR 11 is past it's lifecycle.
    Next option is to use the RDC, it's not supported in .net but should work. Look for a sample on our site for Event mapping, we are still moving over the samples so not sure if it's there or not.
    Basically what you do is open the report, set the logon info and then using the CRViewer Events you can set the database mapping to prompt or manual mode, it is set to auto mapping by default which will delete any fields not found. In manual mode it's the same prompt as you see in the Designer to map the fields.
    I would also highly suggest you discuss this with your project manager and Database Administrator and recommend not to keep changing your DB.
    thank you
    Don

  • Does upgrading from 2003 to 2010 require a verify database on reports?

    Hello,
    I am working on upgrading an application from VS 2003 .Net 1.1 to VS 2010 .Net 4.0. I have installed the SAP Crystal Reports for Visual Studio 2010. After doing this I found that reports that had worked with .net 1.1 now do not work. When in the code, after loading a report and the printing
    such as
    Dim crDoc As New ReportDocument
    crDoc.Load(strTemplatePath & strFile)
    SetConnectionInfo(crCon, crDoc)
    SetParameters(crDoc, parameters)
    crDoc.PrintOptions.PrinterName = Me.strPrinter
    crDoc.PrintToPrinter(1, False, 0, 0)
    When the document goes to PrintToPrinter i receive an error message like 'Error in file blahblah.rpt: The table could not be found'. If I do a verify database on the report  in question it will print correctly. However there are quite a few reports. Is a verify database expected after upgrading to .Net 4.0? Thanks for you help and have a great day!

    Hello,
    Typically when moving to one version change it's not required but in your case CR 9 was the version in 2003 and lots of DB changes to both CR and the Db Client engines.
    So yes in this case you should Verify the database. You can do this once using a test, save an update flag in the SummaryInfo page, same as in the Designer when you click on File SummaryInfo. You can read/write to the comments and then test if a SaveAs or Export to RPT format was done. This will update the RPT format and connection info. So if it's updated then simply setting the user name and password is all that is required or even less if you have enabled Trusted Authentication.
    Also, now that you have updated to CR for VS 2010 I highly recommend you start using RAS rather than the CR Basic which uses the Engine. You can still use both but the Engine and it's functions are not updated. If any updates or features added it will always be in RAS.
    Also highly recommended is to use the PrintOutputController to print your reports rather than using PrintToPrinter....
    Don

  • Database Table cannot be found when Verify Database

    Post Author: brentlaw
    CA Forum: Other
    I have been using CRW 7 for many years.  I recently upgraded to XI (I have current version).  I can open existing reports and create new reports fine.  The problem is when I Verify Database I get an error message "The Database table <tablename here> cannot be found. Remove this table from the report". 
    This happens to all existing and new created reports.  The data fills correctly when previewing.  The problem only occurs when Verifying Database. 
    I thought it might be an ODBC driver problem so I upgraded my driver to v 3.525.1117.  At least I think I upgraded it I did not check the version before I installed SQL 2005 SP2.  After installing SP2 it seemed to be fine but a week later the problem came back.  Mysterious eh?
    I am trying to launch a report from VB6 using RDC and rpt file.  I get logged in correctly but at .viewreport I get a generic error message.  I am assuming the problem is related the the issue I raise in this forum post.

    Post Author: brentlaw
    CA Forum: Other
    I fixed the problem.  In CR XI Developer Designer window I opened up Database-SetDataSourceLocation.  I noticed that in "Properties" the last item "Use DSN Default Properties": was set to True.  I changed this value to False.  Now this problem is solved.
    I am Not using Windows Authentication I am using SQLServer authentication.  In my code I was passing SQLServer Authentication credentials. 
    I opened up all of my CR 7 reports in CR XI and changed this setting on both the Main and the Subreort property in the SetDataSourceLocation dialog box and now all my reports work.  I am a happy camper.
    I don't know if this is a CR 7 conversion to CR XI only situation or not.  Hope this information helps someone else.

  • How can i change the Format of my DATE column?

    I need to change the date format for a whole column. At present i can do MM-DD-YYYY. I need to change this this to DD-MMM-YYYY.
    I know about the to_date function, i tried to apply it to change the format of my whole column by doing the following.....
    CREATE TABLE "IT220_DATEHOLIDAY"
    "DEPARTID" VarChar(2)NOT NULL ENABLE,
    "HOLCODE" VARCHAR2(2)NOT NULL ENABLE,
    "DEPARDATE" DATE,
    to_date('DATE','DD-MMM-YYYY'), <<<change DATE column to DD-MMM-YYYY
    CONSTRAINT "DATEHOLIDAY_PK" PRIMARY KEY ("DEPARTID") ENABLE
    ORA-00902: invalid datatype <<<<This was the error message i received.
    I am aware that the to_date function is supposed to be used to change strings into a certain format. I guess this means you cant do it with columns? Is there anyway i can format the whole column or do i have to do each string of data entered one by one?
    Thanks in advance!

    Hello Jay,
    I'm not sure you hit the right forum, as this doesn't seem to be a problem with APEX.
    Anyway:
    You can't use that function on a table like that, and as you already suggested, the to_date-function expects a string value.
    It seems you also have a misunderstanding of the basic datatypes in the database. DATE is such a datatype and is stored an internal format you don't need to care about. Each time your request the value, the database will give you a string representation according to either your locale or you give a certain formatting mask.
    The same applies to insert or update operations: you hand in either a variable of type DATE or use a function like to_date to create an "object" of type date.
    You may be interested in reading the documentation of the [url http://download.oracle.com/docs/cd/E11882_01/server.112/e16508/toc.htm]Oracle Database Concepts. The section concerning datatype DATE can be found here:
    http://download.oracle.com/docs/cd/E11882_01/server.112/e16508/tablecls.htm#CBBGJHJC
    An overview of formatting options can be found here:
    http://download.oracle.com/docs/cd/E11882_01/server.112/e17118/sql_elements004.htm#SQLRF00212
    So to answer your question: You would format it as part of your insert operation, taking a string and convert it using to_date.
    -Udo

Maybe you are looking for

  • Multiple Faces for the same person

    I found this unanswered archived post, which is expressing exactly the same problem I'm having... http://discussions.apple.com/thread.jspa?threadID=2099862 When tagging photos there are multiple entries for the same person listed. In particular for t

  • Adding/removing columns in jtable

    Hello everyone, i was looking for a way to add/remove columns from a jtable. The way i envision it working is... Initially have a predefined number of columns, of these only show the user say 5 of those on startup. but then provide a drop down (or li

  • Mac Book Pro Battery after 1 year...

    Bought my Mac last year in march - used it sparingly then, and the long haul the battery would last for five hours. Now, I use it for almost every class I'm in, sometimes with the charger, sometimes without - and it only lasts for maybe a half hour b

  • Tab remembers url when refresh

    We have a single page application. And the url looks like below depending on the page that's clicked. http://aaa.com/#/page1 or http://aaa.com/#/page2 or http://aaa.com/#/page3 ..... However, the tab doesn't reflect the current url . In fact, the tab

  • DISABLE MOUSE EVENT on jlabel

    Dear all, I have a jlabel on which i perform a click and the embbeded image switch between start and stop image. My problem consists in preventing from performing multiples click/or disabling mouse event while the application starts loading some para