Date Extension on Crystal Output Filename in Scheduler

Post Author: mek
CA Forum: General
We use Crystal Reports 10. When we schedule reports through the CMC scheduler we add the date to the output filename by selecting the DateTime option from the variable properties list ( ex. ExpoSalesSummaryReport_%DateTime%.xls generates a file named ExpoSalesSummaryReport_2007-04-25-10-46-33.xls).  The date format that is automatically concatenated onto the filename by Crystal is not what we need. We do not want the time in the date extension and we want the date format simplified, without dashes.
Our team needs to have additional values available in the variable properties list of the report scheduler that would allow us to select a specific date format to be concatenated to the filename when we schedule reports. For example, we would like to have the following selections in the picklist (new options that we want to add and use are bolded), ex:
Title
ID
Owner
DateTime
FileExtension
DateMMDDYY
DateMMDDYYYY
DateMONDDYY
DateMONDDYYYY
Is it possible to create new parameters for the scheduler picklist that can add a date extension to the filename in the format we want? I would think that there must be some way to customize the file extension mask behind the scenes in Crystal 10.
Thanks in advance for your help.

Hi Raafje,
Like I've already discussed in my Blog ,Using Date Expressions on Filenames of Burst Query has its own limitations. This date expression that you have tried for sysdate-1 (%d-1%m%y) will not hold good to the requirement. Anyways you can resolve the issue using other work arounds.
Method I (Using CAST and DATE Functions)
1.Previous Day -> CAST(DAYOFMONTH(TIMESTAMPADD(SQL_TSI_DAY, -1, CURRENT_DATE)) AS CHAR)
2.Month of Previous Day -> CAST(MONTH(TIMESTAMPADD(SQL_TSI_DAY, -1, CURRENT_DATE ) ) AS CHAR)
3.Year of Previous Day -> CAST(YEAR(TIMESTAMPADD(SQL_TSI_DAY, -1, CURRENT_DATE)) AS CHAR)
Sample Code
+'ReportName'||'-'||CAST( DAYOFMONTH(TIMESTAMPADD(SQL_TSI_DAY, -1, CURRENT_DATE)) AS CHAR)||'-'||CAST(MONTH(TIMESTAMPADD(SQL_TSI_DAY, -1, CURRENT_DATE ) ) AS CHAR)||'-'||CAST( YEAR(TIMESTAMPADD(SQL_TSI_DAY, -1, CURRENT_DATE)) AS CHAR)||'.pdf'+
Method II (Using Server Variables)
1. Create a Dynamic Repository Variable like Previous_Date(Non-System Session variables can also be used)
2. Create a Initialization blocks
In Data Source Section - Edit Data Source and place the below query
Select TO_CHAR(SYSDATE-1,'MM/DD/YYYY')
FROM Dual (you can use any date format as required)
3. In Variable Target Section
Edit Target -
Give the Name as Previous_Date (as you created in Step1) and Enable the Radio Button as Dynamic
Place date in Default Value like '9/22/2010'
4. Now use this Repository Variable in the filename parameter of the burst query as VALUEOF("Previous_Date") for Repository Variable
and VALUEOF(NQ_SESSION.Previous_Date) in case you have created a session variable for the query
Thanks & Regards,
Goushalya
http://obiee-bip.blogspot.com/2010/05/dynamic-delivery-file-naming-in-bi.html
Edited by: Goushalya on Sep 29, 2011 7:09 AM

Similar Messages

  • Getting Output filename and extension same as the incoming filename and extension

    I need to create a SFTP send port where I should get the output file name and extension same as that of the incoming filename
    I had set the filename in the send port as "%SourceFileName%" but this did not work.
    I have also assigned the input filename (without extension) in a variable in orchestartion. Is there any way i could get the output filename and extension same as that of the incoming message?
    Any help would be much appreciated

    Hi,
    The %SourceFileName% macro maps to the context property BTS.ReceiveFileName that travels with your message in the context. So in order for this macro to work in a send port the message that is going out needs to have this BTS.ReceiveFileName property on
    the context. You probably creating a new message in your orchestration and sending that out. The new message does not have the property on its context which makes it fail. Use a message assignment shape in your orchestration to set the context property for
    the message going out:
    MyMessage(BTS.ReceiveFileName) = OrigMessage(BTS.ReceiveFileName);
    Then %SourceFileName% macro will work at send port.
    Rachit
    Please mark as answer or vote as helpful if my reply does

  • How to Test SSRS Custom Data Extension in TSql

    Hi There,
    I have created a custom data extenstion for SSRS 2008 Reporting Service.
    I can test the CDE in the Report DataSet -> DataSet Properties -> Query Designer -> Run Query.
    In the Command Text I pass parameters to the invoked VB code which is of type "BaanstedeCds" then name of my custom data extension.
    I can even Attach the Visual Studio VB Code Project that is invoked by the Query Designer an debug the code.
    The custom data extension works perfectly in SSRS.
    However I have not found a way yet to run BaanstedeCds (with a parametertext) from within SSMS 2008 by using an T-SQL statement!!! Is there a way to use the SSRS Custom Data Extension in Sql Server Management Studio using the dataset type I used in
    SSRS 2008?
    Because I am leaving the path of using Custom Assemblies in SSMS, for deploying an testing that way is undoable for me.
    I is to complicated and in order to properly debug these routines the entire solution of multiple projects is deployed each time even the slightest change has been made to the VB code. Also if I want to deploy from Test to Production it is very hard. I have
    to detach the databases etc, ect.  Note my previous question about this subject that remained unanswered!!!
    Using the Custom Data Extension the problems are a lot less. However I how do I use a routine in the CDS in T-SQL, like I could invoke a routine in the Custom Code Assemblies?
     I "hate" CLR routines. I have extreme trouble managing these CLR's as I explained in my post and other posts in the past.
    You just cannot build a maagable system that way.
    I had to convert all the CLR's (I had a lot of them) to Custom Data Extension Functions, as they do not have all the drawbacks  of CLR's.
    And using the CDE with all the converted CLR's in it works much better for me in the Report Manager.
    However in order to test de CDE I must invoke the CDE in a Windows Form something like this:
    Private Sub cmdGetData_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdGetData.Click
    Dim CommandText As String = ""
    ' Get Parameters for CDE GetData
    CommandText = txtAdoCds.Text
    Dim Rdr As New BstCds.BaanstedeCdsReader(CommandText)
    ' Invoke GetData Function of CDE Rdr
    ' Input: CommandText: txtAdoCds.Text = TextBox on TestForm
    ' Output: DataTable: RdrDataTable
    Call Rdr.GetData(CommandText)
    If Not Rdr.RdrRetVal Then
    GoTo End_Method
    End If
    ' Show DataTable: RdrDataTable (in Excel)
    If Not BstOff.ToonTabel(DataTabel:=Rdr.RdrDataTable) Then
    Exit Sub
    End If
    End_Method:
    End Sub
    '=========================================================================
    ' File: BaanstedeCdsReader.vb
    ' Summary: Provides a means of reading one or more forward-only streams
    ' of result sets obtained by executing a command at a data source,
    ' and is implemented by Baanstede Data Processing Extensions
    ' that access BaanstedeIw3-routines.
    '=========================================================================
    Public Class BaanstedeCdsReader
    Implements IDataReader
    #Region "Public Variables"
    Public RdrRetVal As Boolean = False
    Public RdrSqlSel As String = ""
    Public RdrDataTable As DataTable = New DataTable
    #End Region
    #Region "Constructors"
    #End Region
    #Region "IDataReader Members"
    #End Region
    ' GetData '
    #Region "GetData Method"
    '==================================================================================================
    'We are executing the command using the connection string that connects to the Active Directory.
    'Hard coding of the connection string is because it is the same for all the ADs.
    'Once we read the data using a DataReader, we place the same in a DataTable so that can be used for
    'Other processings.
    ' Public Sub GetData(ByVal _CommandText As String)
    ' Output in Public RdrDataTable As DataTable
    '==================================================================================================
    Public Sub GetData(ByVal _CommandText As String)
    ' Ophalen Data in DataTabel '
    RdrRetVal = False
    ' Fills RdrDataTable Using _COmmandText
    RdrRetVal = True
    End Sub
    But can I invoke Report Manager Source Type BaanstdeCds's .BaanstedeCdsReader.GetData(CommandText) in TSQL any other way then using CLR ?
    Regards Jos
    It works, but it does not work (The program runs, but does not produce the desired result)

    Hi Josje,
    Thank you for your question.
    I am trying to involve someone more familiar with this topic for a further look at this issue. Sometime delay might be expected from the job transferring. Your patience is greatly appreciated.
    Thank you for your understanding and support.
    Thanks,
    Wendy Fu
    Wendy Fu
    TechNet Community Support

  • ADF - Component File Download Listener - Setting the output filename

    Studio Edition Version 11.1.1.2.0
    Hi, I would like to learn how to set the output filename as current data + filename. I have a button with the component File Download Listener that has theses parameters
    Content/Type: application/pdf
    Filename: test.pdf
    Method: fullReportPDF()
    I needed that when the user clicks the button, that he return the current date + filename statically defined.
    How i may to make this?

    In a bean you implement a method which return the filen ame date and static part concatenated and set it as EL into the af:fileDownloadActionListener
    // on the page
    <af:fileDownloadActionListener contentType="application/pdf"
                                             filename="#{XYZBean.filename}"
                                             method="#{XYZBean.fullReportPDF}"/>
    // in the bean
        public String getFilename()
            String fn = (new Date()).toString() + "static_part.xyz";
            return fn;
        public void fullReportPDF(FacesContext facesContext, OutputStream outputStream) { ... }where XYZBean is the bean where you have implmented the method fullReportPDF.
    Timo

  • XML Report output filename

    At the moment the report filename is generated and incorporates the template name and the request ID. I am wondering if it is possible to have any control over the filename. This is more for the flat file output from etext templates where we might want a date included in a BACS filename.
    Thanks,
    Dave

    Hi David
    If you are running via the conc manager then you cannot change the assigned name during generation. Other folks have changed the name after the generation via the CM using a shell script.
    You could wrap the process up in a java concurrent program, that way you would be able to control the final output name.
    Regards
    Tim

  • ICal Week view, Date is not aligned with the Time(schedule) of each date

    Well, just like it says over there (`` ). I've recently been to China for a business trip, and I suppose the different time zone may have had something to do with the problem. Now I'm back home, changed the time zone back to normal, still the iCal shows in the weekly view that the Date on the above is not aligning with the Time and schedule. Any suggetions would be grateful!!!

    Hi,
    i omit the scheduling maergin key in material master,
    the result of MRP is
    BASIC DATES
    Finish 15.10.2009
    Start 14.10.2009
    PRODUCTION DATES
    15.02.2010 14:33:25
    14.10.2009 07:00:00
    scheduling type i planned order is still "backwards"
    so in MD04 it is say that the goods is available at 15.10.2009 same with requirement dates.
    this seem not right.
    it seems that order finish date is not adjusted by lead time scheduling on "today scheduling".
    Is there a way so order finish date is adjusted by lead time scheduling on "today scheduling" ????
    Best regards,
    Freddy Ha
    Edited by: Freddy Halim on Oct 14, 2009 10:01 AM

  • Writing and including our own customer data source to Crystal Report Design

    Hi,
    I need to create a Crystal Report based on a locally stored XML and schema. I can do this but the issue Iu2019m facing is that some tags used in the schema and the format is not supported by Crystal. So my plan is to write a database driver which will take our format and then convert it to the format Crystal supports and vise versa. To do this before writing the driver I need to know if itu2019s possible to include my custom database driver source in to the list that is shown in the Crystal Report Designer when selecting a data source to create a report.  Is there such an API available so that I can plugin my data source to Crystal Report Designer? Is this at least possible to do or is there another way?
    Hope you can help me.
    Thanks you in advance.
    Regards,
    Chanaka

    Hi Chanaka,
    Not directly. If you base your driver on OLD DB or ODBC then it will show up in those lists.
    If you are planning on selling a lot of packages then you may want to contact our OEM Sales team and sign up. You'll have more resources to do customized features like this. Not sure if we can but the option is there.
    Thank you
    Don

  • Reading data from a crystal report using crystal for eclipse

    tried both approaches listed here: [Help needed in reading data from a Crystal Report]
    but having the same issues, is this a bug or is there some workaround? cant get any results with rowsetcursor and only the first 100 no matter what i do with browsefiledvalues

    Hello,
    I have the same problem. I need to know values of last record in CrystalReports and i got only 100 records.
    Have you found solution for this problem?

  • Power View in SharePoint Server - The data extension type for a data source is not valid

    Hi All,
    All of a sudden I am getting following error when trying to create Power View report using shared report data source (no error testing the connection):
    "The current action cannot be completed. The data extension type for a data source
    'http://dev/Shared Ducuments/Sales.rsds' is not valid for this operation"
    I already have a data source (I had created it after creating my site collection a week ago) and when I use this source to create Power View report then there is no error but I am getting above error when I create another similar data source and use it to create
    a Power View report.
    Please help me to resolve the error.
    Thanks

    I am going nuts! I had selected 'Analysis Services' instead of 'Microsoft BI Semantic Model for Power View'

  • How Do I Display HTML Formatted Text From A Data Table In Crystal Reports?

    I'm creating reports in Crystal XI.  The information being displayed in the reports comes from data tables where the text is formatted in HTML.
    I've worked with Crystal Reports enough to know that HTML text pulled from a data table doesn't appear in Crystal the same way it does in a web browser.  Crystal Reports ignores all the tags (...unless I'm missing something...) and just displays the text.
    Someone far more Crystal savy than I (...who I don't have access to...) came up with a Formula Field workaround that tricks Crystal Reports into displaying some basic HTML tags.  Here's that workaround:
    <!--
    stringVar TableName := ;
    TableName := Replace (TableName, "<ul>","<br> <br>");
    TableName := Replace (TableName, "<li>", "<br>   &bull; ");
    TableName := Replace (TableName, "</li>", "");
    TableName := Replace (TableName, "</ul>","<br> <br>");
    TableName := Replace (TableName, "<a", "<u><font color='blue'");
    TableName := Replace (TableName, "</a>", "</font></u>");
    TableName
    -->
    QUESTION - Does any similar workaround exist so I can display an HTML Table in Crystal Reports?  If not, is there any way to display HTML formatted text from a data table in Crystal Reports as it would appear in a web browser?

    Hi Steven,
    To display html text in Crystal Reports follows these steps.
    1. Right click on the field and select Paragraph tab.
    2. Under 'Text Interpretation' select 'HTML Text' and click OK.
    I have tried using the way,but it never works.So reply me if there is any way to solve the issue

  • Upgrade from VS 2010 to VS 2012 - SSRS Data Extension no longer works.

    I have upgraded to VS 2012 (with BI Tools) installed. We have an SSRS Data Extension that worked fine with VS 2010, both in the VS designer and on the SSRS server. I made the same changes as VS2010 to RSReportDesigner.config and RSPreviewPolicy.config
    in C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\PrivateAssemblies\ and the data extension name is there in the data source dropdown, but it isn't the localized name from the assembly - so obviously the assembly does not appear to be
    loading properly.  In ProcMon, I can see devenv finding the DLL and even doing a load image on it, but clearly I am missing something. Any ideas or at least hints on how to troubleshoot this?
    My dev machine is Windows 7 x64. The VS 2010 version was compiled for Any CPU (I have tried this one). I have also tried to build an x86 version, since I read somewhere it needs to be compiled for 32 bits. I also tried a debugging version that logs every
    call and clearly VS isn't calling anything, since a log isn't even created. 
    Please help!
    Thanks
    Mitch vH
    btw; not related - but it is kind of lame that I am having to use Chrome to create this, since IE went to a spiral of death trying to sign me into my live account.

    Hi Mitch vH,
    According to your description, the issue is that you cannot load the assembly in the Reporting Services. Based on my research, when the process or configured impersonation account does not have permissions access to the ASP.NET temporary files folder will
    cannot load the assembly. To avoid this issue, please try to specify the Read/Write permission for an account to:
    C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\ReportSerever
    And please check have you referenced there some other special assembly in your DLL, which is may missing on the server? There is a similar issue, you can refer to it.
    http://stackoverflow.com/questions/13379804/could-not-load-file-or-assembly-in-reporting-services
    Hope this helps. If the issue is persist, please check if you have get any error message. Could you please post the error message? It is benefit for further analysis.
    Regards,
    Alisa Tang
    Alisa Tang
    TechNet Community Support

  • How to register/configure a Data Provider with Crystal Report Designer

    Hi,
    Iu2019m in the process of developing an ADO .Net XML Data Provider which works with Data Sets. I want to use this custom Data Provider through Crystal Report Designer 2008 so that I can access it from the u201CStandard Report Creation Wizard\Available Data Sourcesu201D section. How can I do this? I read the following in the u201Ccreating custom adddins.docu201D documentation.
    u201CCrystal Reports (CR) 2008 installs a new managed dll called DotNetExternalCommandAdapter.DLL and installs it into the Global Assembly Cache (GAC).  CR 2008 uses this dll to search and load files with a csc prefix in CR 2008u2019s AddIns subdirectory in a similar way it looks for database drivers, export drivers and UFLs. To create an Add-In the developer needs to reference this dll and inherit two classes from it, ICommand and ICommandDLL.u201D
    I have the following questions,
    1) As it mentions above how can I make Crystal find my custom Data Provider when it searches for the database drivers?
    2) Is there another class I can inherit from when creating my custom data provider? If so where can I find some documentation regarding this?
    3) Can I register my custom data provider in to the GAC and will Crystal find it if so how can I register my custom Data Provider? Will GACUtil work for Crystal as well?
    Thanks in Advance,
    Regards,
    Chanaka

    Baron, thank you for providing that link.
    Chanaka see if that article helps you out. It should - had I got to this thread earlier, I'd have sent that link also. Certainly DE place to start.
    Ludek

  • PDF Printer stopped prompting for output filename

    I use the Adobe Acrobat PDF Printer to create PDFs from a variety of applications. My version of Acrobat Pro is 10.1.6. The printer is configured to prompt me for the output filename, but never does. It used to work, but I can't figure out what has changed. I have done a repair of Acrobat, and even went so far to uninstall and reinstall.

    Turns out to be an OS problem. I cannot print to my HP printer either! (And this is after rebooting.) Oh well. Off to the Mac forums for assistance. Thanks anyway for those of you who looked at this.

  • Change Build Output Filename for SSIS Project

    I have a Visual Studio 2010 solution (TxMExtractLoad) with two SSIS projects: TxMExtractLoad.Discovery and TxMExtractLoad.Contract1.  The project name (in project properties) is set to the proper two-part name in each project.  However, when I
    do a "Build", the generated .ispac file loses the second part of the project name: both projects build to "TxMExtractLoad.ispac" (in different directories, fortunately).
    I can see where I can change the output *path* for the build, but not the output *filename*.
    Any help, anyone?
    Thanks in advance...

    Came across this post whilst encountering the same issue and thought i would post the solution i discovered
    The ispac will get its name from the Name defined in the project properties minus whatever is following the final name part
    Therefore, your SSIS package of TxMExtractLoad.Discovery will become TxMExtractLoad.ispac 
    If you change the name in project properties to something like TxMExtractLoad.Discovery.myProject
    or TxMExtractLoad.Discovery..ispac then when you build it it will build as TxMExtractLoad.Discovery.ispac 
    Hope this helps

  • Determine output filename based on input filename content with RFC lookup

    Hello Guys,
    I have this sitaution which needs your ideas/sugestion.
    1)  PI system picks up text file from FTP server folders.
    2)  Within PI system,  we need to dynamically determine output filename , logic to determine output filename will be :
              2a)  Read content of the input file particular line number  (Fixed)
              2b)  Pass the value got from step 2a)  to the Remote function module passing value read in step 2a) to get response
              2c)  Use response received from 2b) to construct output filename.
    Please let me know if you have any qeustions on my problem,  appreciate your ideas/suggestions.
    Thanks,
    Krishna

    Hello Priyanka,
    THanks for your response to my post.
    My input  TEXT filename has following contents
    :20:CHASGB2LXXX
    :25:24803501
    :28:11264/01
    :60F:C110921USD85410,88
    :61:110921C12307,00NTR NONREF//5311802
    :86:TR ?
    ?20IV.2000199238 FR.26.08.11 IV.2000198595FR.22.08.11
    ?23AZMAT20091123183
    Now  I would like to read second row of this TEXT file containing   ":25:24803501"   and would like to read only text
    24803501.
    Hope this additional info will provide me more info on my requirement.  Appreciate your response.
    Regards
    Krishna

Maybe you are looking for

  • How do I use FILE_GET_NAME and make my resulting dataset name unique?

    Okay, here's a case where I have a bunch of pieces to the puzzle -- a little knowledge here, a little knowledge there -- but I'm having trouble putting them together. I am working on an RFC that is called by XI as part of an interface.  This interfac

  • How do i download itunes to windows? nothing i have tried is working

    I went to the support tab on the itunes page to search for ways to download itunes to windows because i tried pressing the download now button but nothing happened. No window popped up asking to run or save program as usual. Someone else was having t

  • Music channels in Zone 2?

    Hey all - hopefully someone here can help me out.  I've also posted a similar question on avsforum.  Here goes.  My Fios DVR is connected to an Onkyo TX-SR 605 via HDMI.  This receiver offers "Zone 2" functionality that allows me to listen to audio o

  • How can servlet return the output as html content with drawing picture?

    Does anybody know how can a servlet return the output as html content with drawing picture? The drawing picture is drawn at runtime by the servlet.

  • PowerPC clicks into sleep mode, then clicks right back

    Hi everyone. New thing I am experiencing since yesterday - my computer will go into sleep mode, but immediately clicks back on again. It's a Dual 2.7 GHz PowerPC G5 from 2005 running on OSX 10.4.11. At first I thought it was an issue with one of our