Formating in a Parameter

I have two dynamic parameter prompts that I want to modify.
One hits a SQL date field and, when the dates appear in the user selection list, then are in the long SQL format with full date and time 2002-06-01 00:00:00.  I want it to appear as just the 2008-06-01.  Can that be done.
Also, I have a place where the "year" is in a number field -- eg. 2008.  But when the parameter is selected, I see 2,008.  I'm looking for a way to remove the comma.
Help appreciated -- general principles will probably suffice.
Ridge (in New Joisey)

if you want the parameters to be displayed in such format try to convert them at the database level using convert function and add the query to the report using add command and try creating the parameters from this command instead of creating from the existing tables.
Regards,
Raghavendra

Similar Messages

  • Output Format as Template Parameter

    Can this be done?
    Some reports users need in both PDF and Excel format. Generally, same template can not produce nice output in both formats, and has to be adjusted for each one. However, some adjustments (like suppressing headers) could be made within the same template if we had the Format in available in the template.
    What we can do is to create a regular parameter with several possible format options and use it in the template. But this looks a bit silly, because user would have to select the same parameter twice.

    Hi Vadim
    There is a property that can be set to suppress headers and footers when the output is in HTML/Excel - the name escapes me right now but please check the docs and the UI.
    I think this would allow you to have a single template rather than supporting output specific templates.
    Tim

  • 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,

  • Formating a date parameter

    hi guys, i have a parameter in my report of type date, the format mask is the way i want it dd/mm/yyyy now i am using these dates in a title on my report and have done the following:
    title := 'dates:' ||:RP_DATE_FROM||' to '||:RP_DATE_TO;
    however when they are printed out on my report they are in the format dd/mmm/yy ie. 01/JAN/01.
    Any help on how to solve this problem would be appreciated.
    Edited by: user13390506 on 29-Sep-2010 07:12

    hi user,
    try the following,
    title := 'dates:' ||to_char(:RP_DATE_FROM,'dd/mm/yyyy')||' to '||to_char(:RP_DATE_TO,'dd/mm/yyyy');Regards
    Sankar.M.N

  • Format of Date parameter

    Does anyone know of a fix for the Date parameter issue. I have seen a number of posts regarding the same problem.
    When Crystal asks for a Date it is required in the format YYYY-MM-DD, now to a majority of database engines this would appear quite normal. To a regular user this is not normal. Here in Australia we use DD/MM/YYYY our 12 year old database was set up to reflect this and all our reports, created in Crystal 8.5, had no problem with this.
    However after spending 1000's of dollars on the latest version I find that it is basically useless because none of my 100's of reports will work, due to this 'Minor' problem.
    If anyone has experience with Crystal reports against an Informix database and has a workaround solution, or even someone not using Informix, please let us know.
    Thank you, Thank you, Thank you in advance.

    Hi,
    Create a string parameter (named eg. olPrint).
    The user will then input its normal way of date inputting. However it has to be in a format you specify in the caption (dd-mm-yyyy  thus 1 December 2007 = 01-12-2007 and not 1-12-2007)
    Then create a formula PrintDate with the syntax:
    DateTime(Date(
                ToNumber(Mid({?olPrint}, 7)),
                ToNumber(Mid({?olPrint}, 4, 2)),
                ToNumber(Mid({?olPrint}, 1, 2))))
    If you then select your report on = {@PrintDate} it should work.
    Hope this helps.
    Bye

  • 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.

  • Function ToDate uses an invalid format 'yyyyMMdd' for parameter format. Try rewriting the formula.

    How can I convert a date format such as "20140730" using TO_DATE()??
    I have tried to create a calculated dimension with ToDate function but it seems Lumira didn't support with that specific format.
    Thanks,
    Raymond

    Hi Raymond,
    I understand your concern about the date format. Are you getting blank cells when using the year first, such as "yyyyMMdd"?
    Try to use this formula below when creating a calculated dimension (replace {Date} with the correct dimension if different):
    ToDate( {Date} ,"dd/MM/yyyy")
    It should convert it to a date just fine that way, and then you can right-click on the column and change it to whatever you prefer using "Display Formatting". I'm not sure why this is happening after I did some testing, but I'm sure it will be fixed.
    If you want to use Tammy's method, it's also very simple. Just right-click on the column, "Convert to Text" and set number of digits to keep to 0. Then convert to date using the first option in the drop down and change display formatting to whichever you prefer afterwards.

  • How to Change the display format of Parameter form in HTML

    I have created a parameter form to allow user to choose the parameter values before printing the report. The parameter which will display in the web-browser has its own predefined format. How am i going to change this format? eg. changing the Background color, table background color, put in some pictures, set the alignment of the text and fields....
    Now I am able to change the header and footer. I can put in the company logo in the header by changing the report escape - Before form value and the footer in the report escape - after form value. How about the body which all the boilet text and fields will be display here? I need to change the alignment, the table background color and the text style and format also... where should i change this?
    Thanks

    Reports only provides limited formatting for the parameter form. In your case, you seem to need to take over greater control of the parameter form and you're halfway there.
    You've noted that you can control the header & footer values, what you need to do is extend those escapes to render the complete parameter form and remove everything from the actual reports parameter form. ie: Remove the labels/parameter form fields and render these directly in the HTML in the before parameter HTML escape. This allows you to insert any HTML you want - you probably want to start with the Reports generated HTML and move it into Frontpage to edit to your required format.
    What you are doing in this case is still using Reports url/submit mechanism and parameter form validation but bypassing Reports rendering of the parameter form.

  • Date format for parameter data entry

    I've just started working on MS SQL Server 2008 for the first time and am using Crystal XI11.5.  I have a date parameter used to pick data.  It works fine but the users are used to entering dates in mm/dd/yyyy format but this parameter forces users to enter using yyyy-mm-dd.
    Normally I am not too concerned as there is the calendar but I have a couple of keyboard users who would like to just enter in the date format they are used to.   I can't find any spot in Crystal to change the data entry format for the dates.
    I do understand that SQL Server does store dates in yyyy-mm-dd format so is this why I only have this option?  Any way to change it?  I do have dates in the report presenting in d-MMM-yyyy format without problem, it's just the date entry prompt.
    TIA rasinc

    The later versions of CR will not allow you to directly edit the SQL statement. You actually have to add a Command and remove the tables from the data source. You can, if you wish, copy the SQL from the "Show SQL Query" and paste it into the Command.
    The reason I tried to delete my previous comment is because it dawned on me (after I made the comment)  that the date picker control itself, won't accept any format other than YYYY-MM-DD.  So, while you can write the SQL to accept a variety of date formats, you won't be able use any of them while using that control.
    The CR date picker control can be found (and therefore replaced by someone w/ more guts than me) in the following locations...
    C:\Program Files\Business Objects\Common\3.5\crystalreportviewers115\prompting
    C:\Program Files\Business Objects\Common\4.0\crystalreportviewers12\prompting
    Jason

  • REP-52007: Parameter form format error.

    Hello to all
    I am calling report from form
    by using run_report_object
    I want to accept parameter from user before run report.
    I used parameter form
    I am passing parameter paramform=yes
    It displying parameter form well but when I am submiting query then it give me above error
    How I can fix that error ?
    Please help....
    From
    Chirag Patel

    You are trying to put an alphanumeric character in a numeric parameter field, or a wrong date format. Look at the format of the parameter field in the reports Builder and compare it to the parameters in the query.

  • SSRS - Date Parameter Format

    Hi,
    I have a report where I need to filter values based on dates, so i am using two parameters , From Date and To Date
    I have set the parameter to be Data/time in Parameter Properties -> general tab and Also used an expression to format as mentioned in some of the Forum links for example 
    http://social.technet.microsoft.com/Forums/sqlserver/en-US/2fa790d6-bb28-4e21-8100-fd9ea64ea61b/parameter-date-format-in-ssrs?forum=sqlreportingservices
    i am not getting any error but the format will not change,
    I have already Coverted my datetime values to read as date (yyyy-mm-dd)in the SQL Query but the format in the parameter is still in mm-dd-yyyy format.
    Hope I am not missing something silly and any help will be greatly appreciated.
    Thanks,
    Chaitanya

    Hi,
    Please try below steps:
    Right click dataset -> Properties
    In parameter tabs -> Your Date parameter -> In value of parameter type below expression
    =Format(Parameters!YourDateParameterName.value,"yyyy-MM-dd")

  • SSRS parameter date/time properties

    Hello,
    I wanted to see if someone could help me with a SSRS parameter issue.
    I’m using parameters to create user defined @BeginDate and @EndDate for the report.
     I’m formatting the parameter properties as a Date/Time format to get calendar controls in the report.
    The problem I’m having is the ‘date field’ in underlying data set is formatted as (char(8), not null). 
    I believe this is causing problems with the Date/Time format in SSRS parameter properties.
    The data field would look like this 20500401.
    Is there any way that someone could show me how to format my @BeginDate and @EndDate in my dataset query to work with the SSRS parameter properties Date/Time format?
    Any information would be greatly appreciated.
    x

    Hi Tracy,
    The dates aren't field that are in my SSRS dataset.  They filters in query though
    Originally my query was before I added parameters:
    ...Where TRANS_DATE between '20140101' and '20140331' 
    After adding parameters:
    ....Where TRANS_DATE between @BeginDate and @EndDate
    Is there anyway that I could convert the TRANS_DATE field in my dataset query to work with SSRS Date/Time format instead?
    If I was returning the TRANS_DATE field in my dataset I think I could use your expression in the filter.
    Thanks,
    x

  • Date Format in Oracle 11g XE

    Hello everyone,
    I have installed Oracle11XE and noticed that it has the following date format:
          SQL> SHOW PARAMETER NLS_DATE_FORMAT
          NAME                                 TYPE        VALUE
          nls_date_format                      string      RR-MM-DD
    I know that I can change the format for the session, like this:
         alter session set nls_date_format = 'DD-MON-YY';
    I also know that to change the system parameter I need to do the following:
         alter system set nls_date_format = 'DD-MON-YY' scope=spfile; 
         then restart the database.
    However, after I do the latter, the date format is still:
         SQL> select sysdate from dual;
         SYSDATE
         14-11-19
    Could someone tell me why this is happening and correct this?..
    Thanks.

    goodluck247 wrote:
    Hello everyone,
    I have installed Oracle11XE and noticed that it has the following date format:
          SQL> SHOW PARAMETER NLS_DATE_FORMAT
          NAME                                 TYPE        VALUE
          nls_date_format                      string      RR-MM-DD
    I know that I can change the format for the session, like this:
         alter session set nls_date_format = 'DD-MON-YY';
    I also know that to change the system parameter I need to do the following:
         alter system set nls_date_format = 'DD-MON-YY' scope=spfile;
         then restart the database.
    However, after I do the latter, the date format is still:
         SQL> select sysdate from dual;
         SYSDATE
         14-11-19
    Could someone tell me why this is happening and correct this?..
    Thanks.
    NLS_DATE_FORMAT is set at
    system
    client OS
    client oracle session.
    system setting is weakest because it is over-ridden by any other setting.
    See - But I want to store my date as ...

  • How to pass a numeric value without its format to a subsequence?

    I have a sequence with a numeric parameter that is interpreted as a 16-bit bit mask. The numeric format of the parameter of that sequence is therefore "%#.16b".
    I also have a Sequence Call step in a second sequence (in the same file) that calls this first sequence. That second sequence passes literal values for that bit mask in the Sequence Call. My specific problem at this point is that, while debugging, I don't see the parameters in the numeric format I explicitly specified for them, but rather in one of three possible formats:
    - Literal values seem to come with a "system"-wide (maybe sequence-file-specific?) default format, which is decimal instead of binary.
    - Variable values (e.g. from the Locals) have their specific (and also explicitly defined) numeric format, which can be anything instead of binary.
    - If I don't pass a value but use the parameter default, this default is shown in the parameter's actual numeric format, binary. This is the only case that works as intended.
    How do I get the parameters to *always* keep the numeric format I specified for that sequence?
    The attached file tries to reproduce the problem and the intended result using only Sequence Calls and Message Popups. My version is TestStand 3.1f1.

    I just want to debug my subsequence and see its parameter represented as "0b0000000000011010" when I supply a literal value of 26.
    Ok, I try to be more explicit and show my problem using your suggestion: (The resulting sequence file is attached.)
    - Create a new sequence file.
    - Insert a new sequence "Sequence".
    - In "Sequence", create a parameter "Parameter" of type "Number".
    - Change the numeric format of "Parameter" to Binary with a minimum of 16 digits and *without radix*, ie. "%.16b". (In the other sequence file I used "%#.16b".)
    -> Intention: I want to see the supplied parameter value in this numeric format when debugging or converting to a string using Str().
    - Still in "Sequence", create a local "Local" of type "Number".
    - Change the numeric format of "Local" to the same as above, "%.16b".
    -> Intention: I want to demonstrate your way here, which actually works (I can use it as the "reference string" of the yet-to-be-defined message box), but does in an indirect way what I want to do directly using only sequence parameters.
    - Insert a "Statement" step in "Sequence".
    - Of "Statement", "Edit Expression" and use "Locals.Local = Parameters.Parameter" as the expression.
    - Insert a "Message Popup" step in "Sequence".
    - Of "Message Popup", do "Edit Message Settings", and use the following expression as the Message Expression:
    "I have this: " + Str(Parameters.Parameter) + "\n" +
    "I want this: " + Str(Locals.Local)
    - Insert a "SequenceCall" step in MainSequence.
    - Point "SequenceCall" to sequence "Sequence" of the current file and supply exactly the literal value 26 for the parameter.
    - In "MainSequence", create a local "Local" of type "Number".
    - Change the numeric format of this "Local" to something very dangerous, eg. "%9.16o".
    - Assign the exact numeric value 4616 to this "Local" variable.
    -> Intention: I want to demonstrate that there are cases where a propagation of numeric formats to subsequences can actually be more than a mere nuisance.
    - In "MainSequence", insert a second Sequence Call step, "SequenceCall_2".
    - Let "SequenceCall_2" call the same sequence "Sequence", but supply Locals.Local for the parameter.
    - Now run the sequence file in "Single Pass" mode.
    - In the first popup, you see that I get the (binary!) representation 0000000000011010 only for the local variable, but I also want it for the parameter value.
    - In the second popup, you see that I get the (octal!) representation 0000000000011010 for the parameter value, which would be correct (for what I want) if I had supplied the decimal literal 26 again. You see that the binary representation is something entirely different here!
    I hope you now get the point. Thanks for answering!
    Attachments:
    numeric-format-02c.seq ‏35 KB

  • Report format - distance between rows

    Hi,
    After formatting a output(report), the distance between rows is much bigger than on output w/o format.
    What parameter controls the distance between rows?
    How to make the output/report more dense in row sense?
    Thx,

    Use BREAK ON column-name SKIP n
    where n is how many lines to skip:
    sql>create table t (one varchar2(3), two number );
    Table created.
    sql>insert into t values ('aaa', 1 );
    1 row created.
    sql>insert into t values ('aaa', 2 );
    1 row created.
    sql>insert into t values ('bbb', 3 );
    1 row created.
    sql>break on one skip 2;
    sql>select * from t;
    ONE TWO
    aaa 1
    2
    bbb 3
    (note: this doesn't display in "preview" with correct formatting so just try it and you'll see)

Maybe you are looking for

  • HP LaserJet 1300 driver cannot found

    I'm currently having a network printer on a XP computer.  If I select this network printer from another XP computer, I can find the driver. However, if I select this network printer from all my window 7 computers, the driver for HP Laserjet 1300 cann

  • Did you like the update?

    About a week ago, we posted an update to Adobe Story that enabled entering scene/shot duration in the hh:mm:ss format. There were also other enhancements like ensuring the character, paranthetical and dialog elements don't get split up across pages a

  • PDF and excel Exported files are bad

    Hi experts, I can export the report using the Central Management Console for a report with parameters, the same report when opened in a struts, in 5.5.23 version tomcat cannot export properly in pdf, excel formats, although rtf format can. I am not a

  • Plugins in Photoshop CS5

    Please excuse this very basic question. I need to know if my old Photoshop plugins will be compatible with 64-bit Photoshop CS5. All of these old plugins are 32-bit. I understand that Photoshop CS5 comes in both 32-bit and 64-bit versions. However, i

  • Flex 2 to Flex 3 Migration

    While running the application getting an error message send failed.(ie) not able to access the java class using the object defined in the remote config.