Parameter Field Type Date

Post Author: Pursuit
CA Forum: Crystal Reports
How can i change my Parameter Field Type "Date" so it requests the date as dd-mm-yyyy and not yyyy-mm-dd

Hello,
You can still accept the date as it is, but you can convert the date in the report level with the folowing formulas when you pass the date to data base.
DayFormula: ToText(Day(Date(yyyy-mm-dd)),0) output you get day eg:  DD
MonthFormula: ToText(Month(Date(yyyy-mm-dd)),0)  output you get eg: MM
Year Formula: ToText(Year(Date(yyyy-mm-dd)),0) output you get eg: YYYY
DashFormula: "-"
Now combine all
CompleteDateFrmula= DateValue(& & & & {Year Formula})
You can pass this
Hope this help!!!!
Ashok

Similar Messages

  • Date format in parameter field type date

    Post Author: Luciano Brandao
    CA Forum: Crystal Reports
    Hi I need show /input date format dd-mm-yyyy in paramters field type date when Crystal prompt parameter to user. I used Crystal 11 Can help-me ? thanks

    Post Author: Crystal Fire
    CA Forum: Crystal Reports
    Put this in the page header to show the date parameters chosen for the report. Make sure you change the select expert for the date field to = ?{date field}
    "All Posting Dates Between "+ ToText(Minimum({?date field}),"M/d/yyyy")" and "ToText(Maximum({?date field}),"M/d/yyyy")

  • Getting Error with date parameter field -"Invalid DATE"

    Hi
    I created a report with 9.2 version. And  i created 2 date parameter fields in it. And within crystal reports it works fine.
    But If, I call from the VS2005 crystalreport.net(report document) SDK , i am getting error as Invalid Date" enter a Date Value". Actually it is a dtp control. how can i modify it.

    <p>There&#39;s not enough details to get a good understanding of your scenario, but it sounds like you&#39;re using some kind of date control to retrieve the date value and pass it to the report&#39;s parameter field at runtime. </p><p>If this is correct, it sounds like the format of the date value from the control may not be what the report is expecting. To debug, I would first use hardcoded values when you set the report parameter fields to see what works. Then compare that to what the return value is from the control to see if they match. I suspect the formats differ. </p><p>I did a quick search on the BOBJ kbase and found a couple of articles that may help you. I recommend searching as there are lots of information on how to set parameter fields at runtime. </p><p><span style="margin-left: 5px"><a href="http://technicalsupport.businessobjects.com/KanisaSupportSite/search.do?cmd=displayKC&docType=kc&externalId=c2010247&sliceId=&dialogID=8582434&stateId=1 0 8584068" target="_blank">c2010247</a></span><span style="margin-left: 5px"><span style="margin-left: 5px"><a href="http://technicalsupport.businessobjects.com/KanisaSupportSite/search.do?cmd=displayKC&docType=kc&externalId=c2010251&sliceId=&dialogID=8582434&stateId=1 0 8584068" target="_blank">c2010251</a></span></span></p><p>-MJ</p>

  • Long field type data transfer

    hello
    I want to copy one table data into another table having long data type but it gives
    me error like
    SQL> insert into temp select * from temp1;
    insert into temp select * from temp1
    ERROR at line 1:
    ORA-00997: illegal use of LONG datatype
    both of the tables have long type field but it gives error in log type data transfer
    can somebody help me
    thanks

    LONG datatypes cannot be used for Insert with selects or CTAS.
    If the maximum length of the long datatype column is less than or equal to 4000 then you can use
    SQL> insert into temp select col1, col2, dbms_metadata_util.long2varchar(4000,'TABLE_NAME','COLUMN_NAME',rowid) Column_alias from temp1;
    If the maximum length of the long column is greater than 4000 then you can use
    SQL> insert into temp select col1, dbms_metadata_util.long2clob(40000,TABLE_NAME','COLUMN_NAME',rowid) Column_alias from temp1;
    Regards
    PantherHawk

  • Inconsistency during recon with UDF fields with date type

    We have several fields type Date in the UDF definition. Birthdate, for example.
    We recon'd a bunch of users, and some users have their birthdate (and other dates, like start and end dates UDF) showing up at YYYY/MM/DD 00:00:00 in the database, while others show up as YYYY/MM/DD 01:00:00
    This obviously is bad. Has anyways seen this behavior before?
    Thanks.

    Hi Hiney,
    I am not sure what version of OIM you are, but I got errors like yours last year and it was resolved with an article (Oracle Metalink) ID 1146555.1. Please go there and let me know if you are facing the same issue that I got. And follow the solution there.
    I hope this helps.
    Thiago Leoncio Guimaraes

  • How to change heading text  for parameter field of type date

    Hi,
        After creating a parameter field with the type " Date Time" when I open the report for entering the parameter then it displays  the given parameter with the following text:
    " Please enter Date in format "yyyy-mm-dd". "
    I want to change it to some other text like as:
    " You have to enter the date and time in format yyyy-mm-dd . "
    Is there any way by which I can change this given header to some other text.
    Let me know if anyone needs some more information in this regard so as to solve my given query soon.

    Hi Garrett,
                  Well first of all I can change only the prompt text that is user defined. I cannot change any parameter as of now whose type is let suppose Date. Since in this case the Business Object itself shows the text which is something like this " Please enter Date in format "yyyy-mm-dd". " .
       Here I want to change this given text to some other format like " You have to enter the date in the format yyyy-mm-dd" or in any other manner.
    Also the current Crystal Report version which I am using is 11.0.0.1282.

  • Formatting a Date Parameter Field

    I created a Date/Time Parameter because the column is date/time.  However, I only want the used to have to input the date portion. I know I can create the parameter as a Date but it returns a negative records even though there are records that meets the criteria.  I know I have done this before, but for the life of me I cannot remember how I did it.
    Can someone refresh my memory.
    Thanks.
    Herbie

    I found a way to get round this, here goes.
    Create a new Parameter
    Change Type to Date Time
    Select Expert
    Select your date time field and set it equal to parameter
    In the parameter fields right click on parameter and select edit.
    Change the type from Date Time to Date
    Select any range values etc at this point because they will reset when you change from date time to date.

  • Returned data from database field having data type CLOB

    hi..
    i hv table having CLOB field type ... having 12000 char length ... data is present in the field... but when i do select on that field it only returns the limited data from that field for any given row...
    pls let me know wuts may b the problem...
    cheeerrss..

    Are you running the select from SQL*Plus? If so check out the [SET LONG|http://download.oracle.com/docs/cd/B19306_01/server.102/b14357/ch12040.htm#sthref2800] parameter.
    HTH!

  • Filtering report data based on user login and Parameter fields

    Post Author: mronquillo
    CA Forum: General
    Hi,I am running a report that filters data based on the user login. To do this, I created a formula called @user that compares the login name (using the CurrentCEUserName field) and returns the user's name. If the user login is not a login specified in the if statements, it returns the parameter field "user_name":For example: if CurrentCEUserName = "loginname1" then "User's Name 1"else if CurrentCEUserName = "loginname2" then "User's Name 2" else if CurrentCEUserName = "loginname3" then "User's Name 3"  else if CurrentCEUserName = "loginname4" then "User's Name 4".. .else {?user_name}   In select expert, I have a condition which filters data based on the string returned from that formula:{Table.Name} = {@user}  This works fine and when the users run the report they only their own data. However, they are still prompted to choose a parameter field regardless if of the value returned by the @user formula. Oddly enough, regardless of what parameter field they choose, they will still only see their own data (i.e. if John chooses "Bob" from the parameter list, he will still only see John's data.)If I remove the "else {?user_name}" line from the @user formula, then the users are not prompted anymore. However, if they are not a "valid" user - that is, if any of the if statements in the formula are not true for their login name - then they will see no data. What I want to do is make the report ONLY prompt the user to choose a parameter field if their login name is not "valid". That is, if the @user formula is able to return a string value for their login name, then they will jump right into the report without being prompted to choose a parameter - otherwise, the user will be prompted to choose a name from the parameter list. I thought my formula would allow this (hence the "else" clause), but it seems that if a parameter field is present in any formula, then the report automatically prompts the user to choose a parameter. Is what I am trying to accomplish possible in CR (I'm using CR v10.0) or is there a better way to do what I am trying to do?Thanks in advance.

    Post Author: sharonmtowler
    CA Forum: General
    try, or something like that
    (if CurrentCEUserName ={?user_name} then true else ({Table.Name} = {@user}) )

  • How to add a mm-dd-yyyy date field type in a Planning Data Form

    Hi John,
    pls, I have one question regarding the possibility of adding a date field type for example 03-03-2009 in a cell of Planning Data Form application.
    for example, I created:
    - 2 members in Period dimension: StartProject and EndProject and I need to enter and track date for these fields;
    - one Account member called Project;
    - and a simple form with these collumns and row;
    Trying different settings for my members - seems that I cannot input date in the cell and rcvd errror: "you have entered invalid value".
    Pls, can you confirm me if it's possible to enter date type in a form?
    If yes, what is the specific setup for the Account and Period properties: Data storage, Time Balance, Data type, Account type etc
    many thanks,
    Robert

    Many thanks John!!! that's it!!!
    I had to change it in Data Type evaluation Order because I'm using EPMA and it's working now!!
    Thanks again!!!
    Rgds,
    Robert

  • MDM JAVA API to enter value into field of type date

    Hi All,
    I am having an input field in a typical Dynpro application where a date would be entered.I want to enter  the date in my MDM table in a field of type "Date".Do you have any idea about MDM JAVA API's I need to do this.Also how can I do this ?
    Thanks
    Vinay

    Hi,
    Web Dynpro shall return you a type Date field. For Value, you shall have to pass SystemTime Object.
    Just get the substring of Date.toString() and convert them to Integer ..
    So a typical date would look like yyyy-mm-dd (eg: 2006-10-19) and not yyyymmdd.
    SystemTime st = new SystemTime();
    st.setYear( Integer.parseInt(Date.toString().substring(0,4));
    st.setMonth ( Integer.parseInt(Date.toString().substring(5,7));
    st.setDate ( Integer.parseInt(Date.toString().substring(8,10));
    A2iField date = new A2iField("fieldname", new Value(st));
    Hope that helps..
    Regards,
    Tanveer.
    <b>Please mark helpful answers</b>
    Note: The above mentioned code is not pasted from any editor..So might contain syntax error..

  • Adding fields with data type "TIMS" to the BP transaction

    hi all,
      This  is Anil regarding the addition of fields to the BP transaction.
    here my problem is for BP transaction I could not find any BADI or screen exit  to add the fields. Even EEWB tool does not allow us to cretate the fields with data type "TIMS". so could you please suggest any other way to add these fields to BP?
    when I enter the values to the time fields in BP transaction, they must reflect in
    BUT000 table also?
    Regards,
    Anil .

    In the physical layer, Column Properties change the data type to int.
    If still problem exists, In the Business Model, write a case statement like
    case when column1=1 then 1 end
    and apply count aggregation on the new calculated column,add the column to presentation table, use that new calculated column for report.
    - Madan

  • The types of the parameter field and parameter field current values are not compatible.----

    HI,
    I am attempting to set report parameters in my .jsp code via URL parameters.
    I am able to set the report name, server connection dynamically however when attempting to set the Parameters I receive:
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKParameterFieldException: The types of the parameter field and parameter field current values are not compatible.---- Error code:-2147213303 Error code name:invalidParameterField
    The parameter on the report is a String Type, named for this example p1.
    The value that p1 represents is LERAD
    My code:
    String stringValue = request.getParameter("p1");
    CRJavaHelper.addDiscreteParameterValue( clientDoc, "","p1", stringvalue);
    returns the above mentioned error.
    I have tried:
    String stringValue = (String)request.getParameter("p1");
    which returns the above error
    And;
    String stringValue = new String(request.getParameter("p1")).toString();
    which returns
    java.lang.NullPointerException
    java.lang.String.<init>(Unknown Source)
    org.apache.jsp.callReport_jsp._jspService(callReport_jsp.java:105)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
    I notice that the CRjavaHelper.java declares this addDiscreteParameterValue as accepting an Object type for the newValue.
    Any ideas???

    Hi,
    nevermind.
    case sensitivty strikes again.
    my URL param was P1 ( case sensitive)

  • Date format in a parameter field (help)

    Post Author: binsk
    CA Forum: Formula
    Hi Guys,
    Newbie in CR world.
    I need help in changing the date format in parameter field. present setting is YYYY/MM/DD. I need it in DD/MM/YYYY. How is it to be done? My db is running in oracle. I'm using the CR XI version.
    Thanks ahead.
    Alex

    Post Author: Aman
    CA Forum: Crystal Reports
    Thank you for your response Yangster. 
    However, the below formula did not work, it gives me a message that "this field name is not known" {?end_date}.
    date_field in dateadd("d", -100, {?end_date}) to {?end_date}
    Am I not inputing this right? or do need a different formula/method?
    Please help...
    Thank you,

  • How to Transfer Database Table Field to Data Type in XI

    Dear All,
    Dear All,
    I am working on scenario to transfer data(Database Table) from Non SAP System to SAP system through XI.
    While Defining "Data Type" in XI i want to create Data Type as of Database table in my(Oracle Database).There is any direct method to import Database Table field into "Data Type" in XI.
    thanks,
    RP

    Hi;
    Edit plus is a tool using which you can edit your file and make changes to it.
    You can download it from net ,just search for it on google.
    this will help you to get in the field names of the table by editing the file .
    Mudit

Maybe you are looking for

  • Creation of key field in a database table

    Hi All, As per my requirement, i have to add few new key fields in an existing table. Now total number of key fields are 17, but while saving this is giving me an syntax error stating 'According to SAA standard key fields cannot be more that 16'. I s

  • How can I download the trial version of indesign for mac?

    how can I download the trial version of indesign for mac

  • Need to Extract Image from Database for Report

    Greetings, I have two databases that I could work with; both are for card access users.  One is an old Access 98 database, the other is a SQL database, In the tables I can "see" references to employee_photo and badge_picture_path respectively, but wh

  • Error writing in a file

    hello Can any one tell what's wrong with this code : PROCEDURE WRITE_ITEM_BLOCK (FILENAME IN VARCHAR2) IS MYFILE TEXT_IO.FILE_TYPE; CUR_REC NUMBER; BEGIN MYFILE := TEXT_IO.FOPEN('c:\test.text', 'W'); TEXT_IO.PUTF(MYFILE,'this is my first line '); TEX

  • Cannot burn DVD in Premier Elements 10 longer than 1 hour in Length

    I cannot figure out why I have to limit my DVD projects to no more than 1 hour in PE 10.  As long as I keep the timeline to 1 hour or less, the DVD burns just fine.  If I try a project over 1 hour - 1 hour, 10 minutes for example - it compiles everyt