Specify Report File Path by Expression

TS201x Help under "Specifying Report File Paths by Expression" talks about  using a number of various macros, but starts the page showing how to also use FileGlobals. When specifying the expression (... >>Specify Report File Path by Expression>>Expression Browser), I'd like to combine macros with FileGlobals, but none of the FileGlobals are listed i.e. available. The expression builder has access to the StationGlobals though, but not to the FileGlobals.
Is there a workaround, or at least an explanation, for this behaviour?
Cheers
Solved!
Go to Solution.
Attachments:
Specifying Report File Paths by Expression.pdf ‏247 KB

Thank for your quick reply!
So, I created the expression in the >>Specify Report File Path by Expression>>Expression Browser, using FileGlobals.MyReportName as per your suggestion.
Here, as expected, I got the first two error messages shown in the attached pdf.
I also made sure that my sequence has the FileGlobals.MyReportName defined.
When I run my sequence, I get the third error message shown in the attached pdf. I'd say this error message is also expected, since the non-listed FileGlobal
referred to in my expression created above, never reaches NI_ReportGenerator.seq i.e. modelsupport2.dll. Or perhaps I completely missed a point in your message?
In any case, please reply if you get a chance.
Cheers
Attachments:
Specifying Report File Paths by Expression - Error Messages.pdf ‏113 KB

Similar Messages

  • Conditional report file path

    Our project is using TestStand 2012 SP1.
    We are using reportgen_txt.seq. and SequentialModel(.seq).
    My goal is to save report files to a specific directory only when I run my Self_Test.seq.
    I'm attempting to use Configure >> Report Options >> Generate Report File Path.
    Setting in "Report Options" dialog >> "Generate Report File Path" tab:
    Type Model: Sequential
    File Name/Directory Options: Specify Report File Path by Expression
    This is the expression that I'm using:
    "<ClientFileName>" == "Self_Test" ? "C:\\Reports\\Self-test\\<ClientFileName>_Report[<UUT>][<FileTime>][<FileDate>]<Unique>.<FileExtension>" : "C:\\Reports\\<UUT>\\<ClientFileName>_Report[<UUT>][<FileTime>][<FileDate>]<Unique>.<FileExtension>"
    The statment passes syntax check with "no errors".
    Running Self_Test.seq using the sequence editor, the report file always goes to path in Red. 
    Is there a method to accomplish this? 
    Solved!
    Go to Solution.

    Hi Leroy/jigg,
    You are correct that the expression itself is evaluated before the Macro strings are resolved, so this approach won't work.  The macros are evaluated using modelsupport2.dll (DetermineReportFilePathNameExprEx function), which first evaluates the expression before resolving the macros. For implementing a custom report file path expression for a particular client file, I would recommend overriding the ReportOptions callback, then programatically setting the report path expression, using an expression such as:
    Parameters.ReportOptions.ReportFileSequentialModelExpression = "\"MyCustomLocation\\<ClientFileName>_Report[<FileTime>][<FileDate>].<FileExtension>\""
    Note the use of double quotes since the field is an expression field.  This approach will also allow you to use logic in the callback to change the report file path string using TestStand flow control steps.
    Al B.
    Staff Software Engineer - TestStand
    CTA/CLD

  • Invalid report File path-crystal report

    Hi Every one,
    I created Crystal Layout for GRPO PLD.When I am trying to import it is showing 'Invalid report file path',But it is working fine in another server.
    Please suggest.
    Thanks and Regards
    DEV

    Hi,
    Not sure below SAP note related to above issue:
    1710613 - CR_Multiple Data Sources Not Recognized After Importing
    Multi-Database Crystal Reports
    1668274 - Print Draft with Crystal Layout
    Thanks & Regards,
    Nagarajan

  • Problem in Loading - Invalid Report File Path

    Post Author: a_Mohammad
    CA Forum: .NET
    Im using CR which came as a bundle with VS2005. I deployed my ASP.NET project on online server. Sometimes, When users try to load the reports, they got an error says "Invalid Report File Path" appears at the top of the report, and no data shown. If i reset the IIS, it return to work fine again.
    Usually i got this error when there is a lot of hits on the server and reports..
    Can you plz advice on that???

    Hello ,
    The formula must always return some value. When a conditional test produces no result and this code is responsible for the RETURN in a formula, the error occurs. Make sure that the condition returns a value in all cases (trap errors).
    Example:
    Problem code
    function CF_1Formula return Number is
    begin
    if :deptno = 10 then
    return(10);
    end if;
    end;
    If deptno is not 10 , this does not return any value .
    Correct code
    You can write the function as:
    function CF_1Formula return Number is
    begin
    if :deptno = 10 then
    return(100);
    else
    return(200);
    end if;
    end;
    Thanks
    The Oracle Reports Team

  • Report File Path Directory

    How can i get the definitive report file path in teststand V3.0

    Hi,
    The report file path is generated inside of the process model. If you look at the Test UUTs entry point inside of the SequentialModel.seq, you will see a C/C++ Adapter step called "Determine Report File Path". After this step executes, the variable Locals.ReportFilePath inside of the entry point contains the full path to where the report will be saved. Let me know if this is what you are looking for.
    Ryan

  • Invalid Report File Path Error

    I have included several Crystal Reports as embedded resources in a Visual Studio 2010 C# project.  When I try to run the application on a client PC I receive an invalid report file path error.  Why am I receiving this error if the rpt is embedded in the manifest?

    The following code now works on my development machine.  It obtains the server name and database name from the configuration file.  When I run on my client PC, however, it prompts me to log into the database.  It provides the correct server name but the database name is blank and integrated security is not checked.  The database name field is not enabled so I cannot provide a value.
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Windows.Forms;
    using CrystalDecisions.CrystalReports.Engine; //jp
    using CrystalDecisions.Shared; //jp
    namespace WindowsFormsApplication1
        public partial class FormRptArtist : Form
            private CrystalReport1 crReportDocument = new CrystalReport1();
            public FormRptArtist()
                InitializeComponent();
                ToolTip toolTip = new ToolTip(); toolTip.SetToolTip(btnHelp, "Flash Video Training / Help");
                helpProvider1.HelpNamespace = GlobalClass.gb_help;
            private void FormRptArtist_Load(object sender, EventArgs e)
                TableLogOnInfos crtableLogoninfos = new TableLogOnInfos();
                TableLogOnInfo crtableLogoninfo = new TableLogOnInfo();
                ConnectionInfo crConnectionInfo = new ConnectionInfo();
                Tables CrTables;
                bool repeat = true;
                while (repeat)
                    try
                        crConnectionInfo.ServerName = Properties.Settings.Default.CrystalServer;
                        crConnectionInfo.DatabaseName = Properties.Settings.Default.CrystalDatabase;
                        crConnectionInfo.IntegratedSecurity = true;
                        CrTables = crReportDocument.Database.Tables;
                        foreach (CrystalDecisions.CrystalReports.Engine.Table CrTable in CrTables)
                            crtableLogoninfo = CrTable.LogOnInfo;
                            crtableLogoninfo.ConnectionInfo = crConnectionInfo;
                            CrTable.ApplyLogOnInfo(crtableLogoninfo);
                        crystalReportViewer1.ReportSource = crReportDocument;
                        crystalReportViewer1.Refresh();
                        break;
                    catch (Exception exp)
                        MessageBox.Show(exp.Message);
                        DialogResult result1 = MessageBox.Show("Try Again?", "Database Connection Error",
                            MessageBoxButtons.RetryCancel);
                        if (result1 == DialogResult.Retry)
                            FormCrystalParms newWindow = new FormCrystalParms();
                            newWindow.ShowDialog();
                        else
                            repeat = false;
            private void CrystalReport11_InitReport(object sender, EventArgs e)
            private void btnHelp_Click(object sender, EventArgs e)
                GlobalClass.displayflashhelp(this, "formrptartist");     
            private void crystalReportViewer1_Load(object sender, EventArgs e)

  • Invalid report file path.

    I have a .NET C# Web App with embedded Crystal Reports (version 10.2.3600) running on Windows Server 2003 Standard Edition (Service Pack 2). Every few days the reports generate errors and we have to restart IIS to get them to run again. I cannot figure out what is causing the system to lock up. The error I am getting is 'Invalid report file path.' Do you know what would cause this to happen?

    this is the C# code we used to fix this issue:
    private ReportDocument CrystalRpt;
        //Declaring these here and disposing in the Page_Unload event was the key.  Then the only other issue was the
        // limitations of Crystal 11 and simultaneous access to the rpt file.  I make a temp copy of the file and use that in the
        // method.  Then I delete the temp file in the unload event.
        private ReportDocument mySubRepDoc;
        private ReportClass ReportObject;
        private string tmpReportName;
        protected void Page_UnLoad(object sender, EventArgs e)
    Try
                CrystalReportViewer1.Dispose();
                CrystalReportViewer1 = null;
                CrystalRpt.Close();
                CrystalRpt.Dispose();
                CrystalRpt = null;
                mySubRepDoc.Close();
                mySubRepDoc.Dispose();
                mySubRepDoc = null;
                ReportObject.Close();
                ReportObject.Dispose();
                ReportObject = null;
                GC.Collect();
                File.Delete(tmpReportName);
    catch
    { ...Error Handler }
    protected void Page_Load(object sender, EventArgs e)
            CrystalRpt = new ReportDocument();
            ConnectionInfo CrystalConn = new ConnectionInfo();
            TableLogOnInfo tblLogonInfo = new TableLogOnInfo();
            ReportObject = new ReportClass();
            TableLogOnInfo CrystalLogonInfo = new TableLogOnInfo();
            ParameterField CrystalParameter = new ParameterField();
            ParameterFields CrystalParameters = new ParameterFields();
            ParameterDiscreteValue CrystalParameterDV = new ParameterDiscreteValue();
            TableLogOnInfo ConInfo = new TableLogOnInfo();
            SubreportObject mySubReportObject;
            mySubRepDoc = new ReportDocument();
            //Report name is sent in querystring.
            string ReportName = Request.QueryString["ReportName"];
            // I did this because Crystal 11 only supports 3 simultaneous users accessing the report and 
            // we have up to 60 at any time.  This copies the actual rpt file to a temp rpt file.  The temp rpt
            // file is used and then is deleted in the Page_Unload event
            Random MyRandomNumber = new Random();
            tmpReportName = ReportName.Replace(".rpt", "").Replace(".ltr", "") + MyRandomNumber.Next().ToString() +".rpt";
            File.Copy(ReportName, tmpReportName, true);
            CrystalRpt.Load(tmpReportName);

  • Invalid Report File Path (URGENT)

    Post Author: a_Mohammad
    CA Forum: Publishing
    Im using CR which came as a bundle with VS2005. I deployed my ASP.NET project on online server. Sometimes, When users try to load the reports, they got an error says "Invalid Report File Path" appears at the top of the report, and no data shown. If i reset the IIS, it return to work fine again.
    Usually i got this error when there is a lot of hits on the server and reports..
    Can you plz advice on that???
    Thx in Advance

    Hello Shweta,
                       Thanks for responding.  I load the report using the Report.Load(Filepath) command.  The reports are located on a seperate machine within the network.  The error occurs after the form has been loaded, parameters have been determined and margins have been set, but before the report actually gets displayed on the screen.
    Here is the last breakpoint I can find before the error occurs.
    Private Sub _RptLoad(ByVal sender As Object, ByVal e As System.EventArgs)
            If (ReportDoc.HasSavedData) Then
                Me.Close()
                Me.DialogResult = DialogResult.Cancel
            End If
            AddHandler BTNApply.Click, AddressOf _ApplyNewMargins
            AddHandler BTNSave.Click, AddressOf _SaveNewMarginOffsets
            AddHandler UNELeft.ValueChanged, AddressOf _AnyOffsetChanged
            AddHandler UNETop.ValueChanged, AddressOf _AnyOffsetChanged
            AddHandler UNEBottom.ValueChanged, AddressOf _AnyOffsetChanged
            AddHandler UNERight.ValueChanged, AddressOf _AnyOffsetChanged
            Me.BTNApply.Enabled = False
            Me.BTNSave.Enabled = False
            RaiseEvent ReportLoaded(Me, Nothing)
        End Sub
    Everything here runs fine, but if I F11 from the END SUB I get the error and cannot figure out where its going from there or what's throwing the error.
    Thank you for your time,
    Dennis

  • Report file path

    Hi,
    I inherited TestStand 3.0 code, which has been restored in new PC (old PC is completed gone, no settings, etc). The problem I'm having is that when the step completes, it prompts to select .XPS file (which I believe is the report file). I disabled report generation and only ran this single step, but still prompts me to select .XPS file (even specified to a specific path, still prompts me). Any idea how to disable this? I unchecked this step's report option from its step property but doesn't seem to help.
    Thanks for any help.

    When the dialog is up, try doing a "Break All" in the sequence editor. They likely modified the process model sequences to display that dialog. You could also just open the process model sequence file and try to figure out where the code they modified is located.
    -Doug

  • Getting Report File Path location at execution in TestStand 2012 and later

    I need to include PNG pictures into my TestStand Report (HTML, XML, ATML).
    When report generation was made through plugins (before TestStand 2012), it was easy to get report file location during execution through variable RunState.Root.Locals.ReportFilePath in order to save PNG files near the report file (in same directory).
    I didn't find yet an easy an simple way to do the same in TestStand 2012 with Result Processing Plugins.
    Any idea ?
    Remarks :
    Since this functionnality has to be included within MESULOG TS+ last version which is a TestStand Add-on, I cannot modify Report Options, Process Model or include a callback (like GetReportFilePath.
    In need ReportFilePath within a Custom Step Type which cannot wait for PostUUT or ReportGeneration to save its PNG files.
    Jean-Louis SCHRICKE
    ├ CTA - Certified TestStand Architect (2008 & 2010 & 2014)
    ├ CTD - Certified TestStand Developer (2004 & 2007)
    └ CLD - Certified LabVIEW Developer (2003 & 2005)

    jiggawax,
    Thank you for you quick answer.
    RunState.Root.Locals.ModelPluginConfiguration.Plug​ins[<plugin index>].PluginSpecific.Options.Directory is valid only if  
    RunState.Root.Locals.ModelPluginConfiguration.Plug​ins[<plugin index>].PluginSpecific.Options.DirectoryType is set to "SpecificDirectory".
    It seems that I cannot get the complete ReportFilePath before "UUT Done" plugin entry which is after MainSequence execution.
    Jean-Louis SCHRICKE
    ├ CTA - Certified TestStand Architect (2008 & 2010 & 2014)
    ├ CTD - Certified TestStand Developer (2004 & 2007)
    └ CLD - Certified LabVIEW Developer (2003 & 2005)

  • Print report file path in footer

    The VI in the picture worked fine when I selected standard report (except that I couldn't save to file).  I changed to HTML and it moved my footer page number to the top of the page and put the path to the printing temp file on the bottom of the page.  Why?  All I did was change to HTML and add the save at the end.
    Jim
    LV 2013
    Attachments:
    Noname.png ‏8 KB

    Hey Mike,
    It may not technically be a footer, but it appears at the bottom of the page, and the page number that should be the footer is at the top.  I originally used the exaprom pdf VIs to create the datasheet.  Late last year I had some problems that appeared to be related to those VIs (or the DLL).  I don't recall what the issue was, but I got it working.  Now the program is crashing on start up and I don't know why.  I am getting an access violation exception error.  I sent the dump files to NI, but in the mean time decided to try native NI VIs to accomplish the task.  Creating the report was working fine until I switched to HTML format so that I could save it.
    Jim
    LV 2013
    Attachments:
    PrintMetroSalesOrderHTML.vi ‏37 KB

  • How to specify the file path while doing bdc recording

    hi guys,
    using recording we specify transaction code where we enter all the details for the screen after that we get the recording program .....i have a doubt where can we specify the path for uploading a program from a local pc.......if possible can anyone provide a simple program to explain recording to upload an excel file from the system using recording

    Hi Gokul,
      You can use the following code to upload excel data into internal table.
       PARAMETERS: P_FILE LIKE RLGRAP-FILENAME.
        CALL FUNCTION 'WS_UPLOAD'
          EXPORTING
               CODEPAGE                = ' '
               FILENAME                = P_FILE
               FILETYPE                = 'DAT'
               HEADLEN                 = ' '
               LINE_EXIT               = ' '
               TRUNCLEN                = ' '
               USER_FORM               = ' '
               USER_PROG               = ' '
          IMPORTING
               FILELENGTH              =
           TABLES
                DATA_TAB                = IT_FILE
          EXCEPTIONS
               CONVERSION_ERROR        = 1
               FILE_OPEN_ERROR         = 2
               FILE_READ_ERROR         = 3
               INVALID_TABLE_WIDTH     = 4
               INVALID_TYPE            = 5
               NO_BATCH                = 6
               UNKNOWN_ERROR           = 7
               GUI_REFUSE_FILETRANSFER = 8
               CUSTOMER_ERROR          = 9
               OTHERS                  = 10
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ELSE.
        CLEAR IT_FILE.
      ENDIF.
    In SAP Enterprise edition, You can use FM : GUI_UPLOAD.
    From internal table, Data will be moved to BDCDATA and continue with BDC coding.
    Reward, if useful.
    Thanks,
    USR

  • How to specify a file path in java code to run on Unix machine?

    Hi
    I have a problem when running my project Swing on Unix machine.
    In my code, the user will press a button and then the program will look for the file "ReadMe" in the folder "Documentation" , and reads the content of this file. My code is "Documentation\\ReadMe" and it works well on PC. (The folder "Documentation" is in the same directory with my Java code).
    But when I try on Unix, the program can not read the file. It can only read the file "ReadMe" if I take this file and put it in the same directory with my Java code ( this means not through another folder). So how can we make it read the file in a folder ? It seems that "Documentation\\ReadMe" does not work in Unix, or the symbol "\\" does not work.
    I would be thankful if anybody can help me with this.
    Thank you very much

    You really shouldn't use any path method, as neither are very consistant or platform independent. The JVM provides a way to grab resources from the classpath. These resources can be any data at all, in fact, it's how java itself locates classes. Here's an example how you would do this in a non-static method.
    public URL getReadMe() {
      // In this context the forward slash is universal
      String docDirectory = "Documentation/"
      // We have to use the classloader to grab the resource
      ClassLoader cl = this.getClass().getClassLoader();
      // Next we get the resource 
      URL readMeURL = cl.getResource(docDirectory + "ReadMe");
      return readMeURL;
    }The URL can be used in whatever way you need to get the information out of the resource. If it was an image you might use the "Toolkit" to make an image object out of it. The great thing about this method is it will work even if your loading the program out of a Jar file. The resource paths start at the top of the classpath, just like classes.

  • Reporting mechanism on HTML report file, using TestStand 2012 SP1

    Hi,
    I am using TestStand 2012 SP1, where the reporting mechanism is configured to be in HTML format.
    I am not getting the full report of the sequence file which is executed, however I get a part of it printed on the HTML file.
    The following are the configured "Report options",
    ===========
    Contents Tab:
    ===========
    Report Format : HTML Document
    Default Numeric Format : %$.13f
    Include Step Result: Checked
                  Result Filtering Expression : Result.Status=="Failed"
                  Include Test Limits : Checked
                  Include Measurements : Checked
                  Include Arrays : Insert Table
                  Filter : Include All
    Include Execution Times : Checked
    On-The-Fly Rporting and Only Display Latest Results : Checked
    Select a Report Generator for producing the Report Body : DLL
    ===========
    Report File Pathname Tab:
    ===========
    Generate Report File Path : Checked
           File Name/Directory Options : Specify Report File Path by Expression
           Report File Path (Sequential Model) :
                            StationGlobals.TopLevelReportPath
                            +RunState.ProcessModelClient.AsPropertyObjectFile.​DisplayName+"Report_[<FileDate>]<Unique>.<FileExte​nsion>"
    Please let me know a solution to this problem.
    Thanks,
    Dharani

    Jason,
    Thankyou for replying.
    Yes, I need only the steps which had failed to print on the report file.
    The problem what I am facing is, if there are 10 failed steps, the report is not printed for all.
    Also the order of printing is not correct for the first step and the last step which is printed on the report file.
    I had used "Post Expression" for printing data for all the failed steps. Normally these post expressions should be printed beneath the step in the report file.
    However,
    1) For the first step which is printed on the html file, the post expression gets printed just above the step and also it gets printed beneath the step.
    2) For the last step which is printed on the html file, the post expression is not printed beneath the step.
    Please let me know if i need to provide some more information.
    Thanks,
    Dharani

  • Adding batch serial number to report file name in sequential model

    Hi,
    I'm using a Sequential model in TS 4.0 and have learned how to add the UUT serial number to the report file name. But I would like to add the batch serial number instead. Is this possible? Any modifications to the ReportOptions callback seem to only modify the temp report name.
    Thanks!
    Chris

    Hi Chris,
    While Paul's suggestion may be useful in this case, if you would like the flexibility of customizing your Report File Pathnames further, you may want to consider upgrading to TestStand 4.2.
    In TestStand 4.2 we introduced predefined macros and the ability to use custom expressions to specify the Report File Pathname. For example, the <Batch> macro will add the Batch Serial Number to the Report File Pathname as you specify it.
    Please see the Using Expressions to Customize Report File Paths section of the TestStand 4.2 Reference Manual for more information on these new reporting features and how one might use them. For a specific explanation of the different macros and what they might be used for, please see the Specifying Report File Paths by Expression section of the TestStand 4.2 Online Help.
    Manooch H.
    National Instruments

Maybe you are looking for

  • Apple Configurator and VPP for Macbook Pro?

    Hi, i was wondering how can we deploy the apps we buy from a account apple VPP on a macbook pro? not on ipad or itouch, just on a macbook pro. Because, when i want to buy some apps, they only give me the choices for Ipad or Iphone. Nothing for Macboo

  • Sending e-mail using alias on iphone

    I have an iCloud (mobileme) account which has 2 alias emails as well as the main one. When I send an email from alias 1 (my husband), it uses the Full name of alias 2 (mine) on the iPhone. Main  - .me and .mac email address Alias 1 - only a .me email

  • Code Signing Cert for AIR and MSI

    If a Code Signing Certificate for AIR is purchased, can that same certificate be used when distributing the package using MSI? Or does it not matter as long as the AIR app is signed?

  • Premiere CS6 on a MacBook Pro Retina 15 Late 2013 with NVIDIA GeForce GT 750M

    Hello Has someone a Premiere CS6 running on a MacBook Pro Retina 15 Late 2013 with NVIDIA GeForce GT 750M. Does CUDA support? Greetings Andy

  • How to write perfect refresh function for each module in flex4 web application

    hi all,   I am doing web application, i am using 5 modules in that,every module in a single page. In this application i am using datagrid in last 3 models. the operation is same for the models, select a record from grid then click post it should move