Get handle of sequence file using file name

in example it is described how to access the comment of a sequence file.
During report generation I only have the file name of the sequence file not some sequence file struct which is needed.
How do I get that using the sequence file name?

Hi mbrost,
Try this TS2.01f1 example.
I have put in an override TestResult Callback sequence and added some code to obtain the comment of the Sequence File. I have also added a Comment to the Sequence File.
Using RunState.SequenceFile as the ActiveX Reference I get a reference to PropertyObjectFile.Data which return a reference. Using this reference I then call the PropertyObject.Comment() API to obtain the comment string.
Then I display this Comment string in a MessageBox.
Hope this helps
Regards
Ray Farmer
(PS. ignore the name markp01 as NI site is getting people mixed up)
Attachments:
Access_SequenceFile_Comment.seq ‏59 KB

Similar Messages

  • How to get Sequence File Name ?

    Hello everybody !!
    I'm using TestStand 3.1 and i would like to get sequence file name. I've tried to use NameOf() function, but without success.
    Of course, I've searched previous posts about the same question, but nothing works.
    Is there someone able to tell me how to get sequence file name ?
    Thanks a lot.
    MrOrange

    MrOrange,
    first of all, the solution i will present only works for saved sequence files.
    you got all information you need within TestStand itself, just browse for RunState.SequenceFile.Path. here you can find the filename. but the path of the file is also included in the string, so this is a part you have to get rid off.
    you can use statements to extract the filename from the path. just search the string for the last occurence of "\\" (searchinreverse!) and then you can retrieve the right() part of the path. beware that right() needs the number of characters you want to extract, not the startindex!!
    hope this helps,
    Norbert B.
    NI Germany
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • Sharepoint Workflow : how to get document full path + file name into variable?

    Hi,
    Anybody knows how to get document full path + file name into a variable in Sharepoint 2010 workflow?
    Example http://sp1:80/InvoiceQueue/Shared Documents/123.pdf
    I am using List Workflow which links to a document library.

    Hi SAMSUNG,
    According to your description, my understanding is that you want to get the full path of a document in a list workflow.
    You can set the variable to the Enconded Absolute URL of the document. The screenshot is my testing. In my testing (in the red area), when the title of a document was equal to the tile of the current item, set a variable to the Enconded Absolute URL of the
    document. I used ‘Log to history list’ to check the value of the variable in Workflow History .
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • How should we get the out put file-name same as in put file-name in file to

    Hi frnds,
    having hundreds of files in the sender system with different names, how should we get the out put file-name  in the receiver system same as the in put file-name in file to file scenario ?
    Thanks in advance.
    truly,
    snrvakiti.

    Hi,
    In Receiver File Adapter you can set under 'Adapter-Specific Message Properties'
    check Use Adapter-Specific Message Properties
    check Fail on Missing Adapter Message Properties
    Check File Name
    Have a look at this link,  [File_to_File|http://allsapnetweavernotes.blogspot.com/2008/09/how-can-i-access-filename-from-fileftp.html]
    Regards,
    P.Rajesh

  • Getting PO number as file name when getting output as pdf file

    Hi Experts,
    Is there any possibility to get PO number into file name (instead of spool number) when getting output as pdf file.
    Since I'm printing POs in batches (as pdf) it is too difficult to find exact PO among all the pdf files.
    If PO number maintained as file name, would be great time saver for me.
    Thanks
    Kamal

    Hi,
    Please check the below link..
    Number ranges for Spool Requests
    hope it may help you
    Kuber

  • When I open iCal, I get the message 'The file name is invalid.' Can anyone tell me how to fix this?

    When I open iCal, I get the message 'The file name is invalid.' Can anyone tell me how to fix this?

    These latest Flash is corrupted.  Adobe has acknowleged the problem.  The following Adobe Forum message may be of help to you:
    http://forums.adobe.com/message/6288150

  • How to get the active document file name using illustrator CS2 plugin code?

    I wanna take file name from active document using illustrator plugin CS2. Plz anybody help me..
    Thanks in advance..

    AIDocumentSuite::GetDocumentFileSpecification() should get you that information. Note that it will only work properly if you've already saved the document (or opened it from a file). I'm not sure what the result looks like if you're calling that on a new, unsaved file.

  • How to get the read input file name in bpel process using File Adapter.

    Hi,
    I am reading a .txt file from configured directory using File Adapter.
    I had configured file adapter to read file with naming pattern “SalesOrder.*\.txt”.
    Now I had requirement to access the actual file name in bpel process eg: “SalesOrder123.txt”
    How can I get the file name in bpel process.
    Any help is appreciated.
    Vidya.

    1) create a variable of message type. Click on Browse Message type. Here you select Message Type-->Project WSDL Files -->fileAdapterInboundHeader-->Message Types-->Inboundheader_msg. Then click OK
    2)Next dbl Click on teh receive Activity which is receing your File from teh File Adapter. Go to the Adapter Tab. Click on Browse variable and select the variable that you had just created above.
    This would get the File name in the variable declared

  • Diadem Sequence File Name?

    Is there a command/variable in Diadem VBS Script that I can use to get the name of the sequence file I am running? This is needed so I can display the VBS script version/script name on the DiaDem Graph so I know what sequence was used to crunch the numbers.
    Thanks, Jeff

    Hi Jeff,
    The name and path of the script file currently running is stored in the variable AutoActFile.
    Maybe you need the program revision of DIAdem too: ProgramRevision.
    Greetings
    Walter

  • Error while getting Message Id as File Name.

    Hi everyone,
         I am trying to get the file name as message id in the target side. For this I defined Variable Substitution in the receiver Communication Channel for the file Adapter.
    In the Filename Scheme I defined %test.xml%
    And in the  Variable Substitution Table I defined
    Variable Name:test.xml
    Reference:message:message_id
    When i Check in the communication channel monitoring  I am getting this error.
    Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: Error during variable substitution: java.text.ParseException: Missing end token for start token at position 0: com.sap.aii.adapter.file.configuration.DynamicConfigurationException: Error during variable substitution: java.text.ParseException: Missing end token for start token at position 0
    Could not process due to error: com.sap.aii.adapter.file.configuration.DynamicConfigurationException: Error during variable substitution: java.text.ParseException: Missing end token for start token at position 0
    I didnot defined any User Defined Function.
    Any help would be appreciated.
    Regards,
    Varun

    >>In the Filename Scheme I defined %test.xml%
    use %test%.xml
    >>Variable Name:test.xml
    >>Reference:message:message_id
    use
    Variable Name:test
    Reference:message:message_id
    An interesting usage of Variable Substitution in XI By Sameer Shadab
    Thanks
    SaNv...

  • Where do I find the sequence file name inside the Expression Browser?

    HI,
    I would like post the user with a simple question of whether this is the sequence file he meant to load. I want to use an expression rather then typing the question. The problem is that I don't seem to find the proper expression for that. I looked inside "RunState.SequenceFile" and I find everything related to my sequence file except to its name.
    Can you help me?
    Thanks
    Rafi

    Hi Rafi2003,
    The SequenceFile doesn't have a Name property. It has a Path property instead.
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • Get a font's file name from the font's postscript name (on Windows)

    I am trying to obtain the the font file name when the only information I have is the font's 'postscript' name. (Emphasis: the font's name is postscript and not the font).
    For example I have the following postscript name: TimesNewRomanPSMT.
    The real name that is saved in the registry is: Times New Roman (TrueType).
    Is there any way of obtaining that name from the given postscript name?
    Currently I am coding this for Windows, but it should be compatible, or at least have alternative code for MacOS

    Funny. I'm having the same problem and was about to post the exact same question
    In Photoshop, there is "app.fonts", which lets you get a font's postscript name from the font's name. This doesn't exist in After Effects.
    My only hope is that there's a way to get a font's postscript name in Visual Basic. I'll let you know if I find anything useful.

  • When I try to save/export in updated Pages I get the message "The file (name) couldn't be opened". Any ideas?

    I have just updated to Yosemite and updated Pages.  The file opens fine from previous version, but when I try to save or export to GoogleDrive or the desktop, I get the error message "The File (name) cannot be opened".  Any ideas?
    Thanks

    Hi Jody,
    "More Like This" to the right of your post.
    The top one seems useful
    https://discussions.apple.com/message/19175531#19175531
    Regards,
    Ian.

  • How do i get a list of file names in to a new folder?

    Hi,
    Does anyone know if there is a way of having a list of  image file names, searching for the images then putting them into a new folder?  I'm guessing it can probably be done through mac scripting but I know nothing about scripting and genreally not great with technogy so ideally need step by step instructions!!
    If anyone can help I would really appreciate it!!
    Ruth

    Without details about your workflow and folder set up, I can only give you a generic script, but this should at least get us started.  test it and see what needs to be tweaked.
    -- set paths to source and destination folders
    set imageSourcePath to POSIX path of (choose folder with prompt "Choose a source folder.")
    set destinationFolder to POSIX file POSIX path of (choose folder with prompt "Choose a destination folder.")
    -- get file names from text file: assumes one name per line.
    set fileNameTextFile to (choose file with prompt "Choose a file list text file." of type "public.plain-text")
    set fileNames to paragraphs of (read fileNameTextFile)
    repeat with thisFileName in fileNames
      -- replace each file name with an alias to that image file
              set contents of thisFileName to POSIX file (imageSourcePath & thisFileName)
    end repeat
    tell application "Finder"
      -- using 'duplicate' because I assume you want to make copies rather than move files
      duplicate fileNames to destinationFolder
    end tell

  • How can i get message id as file name in Receiver Mail Adapter

    Hi All,
               We are working on file to mail scenario. Client requirement is " Attached file name should be the message id" How can we achieve this.
    Thanks & Regards,
    Purshothamm

    Hi,
    To have the file name as message id, I think the below blogs can help you…
    /people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
    /people/jayakrishnan.nair/blog/2005/06/28/dynamic-file-namexslt-mapping-with-java-enhancement-using-xi-30-sp12-part-ii
    Regards,
    Vijay N

Maybe you are looking for

  • Premiere CC 2014.1 Blu-ray MPEG 2 export causing error in Sony DVD Architect Pro

    I've filed a Bug Report for this but wanted to post here in case it helps anyone else or on the off chance someone can give me a solution / better work around. Something has changed in the results of a Blu-ray MPEG2 export from Premiere 2014.1 vs tho

  • Erecruit JOBID not stored in table Hrp5125 when choosing a vacant position

    Hi Does anyone know where the Position ID or Job Id is stored, if you have selected and saved the position code under the Organisation Data tab under the Position tab as the recruiter.  I see that if you choose the Organisation UNit and Job tab, th e

  • Some songs not synching

    I subscribe to several podcasts featuring a song of the day. Because I want to listen to the songs with other music (e.g., in a playlist), I convert those podcasts to music by changing the Media Kind on the info screen. As far as I know, this doesn't

  • NqError 38073

    Can anyone assist on this error - what exactly I need to correct? "Dimension *'Dimension name'* has multiple leaf levels which are not identical. Thanks.

  • Passing from max to min value

    Hi there. Im build a program in LabView 8.5 and I have a problem. Im calculating an angle to use it after as a comparison with another value to stop the loop. The problem is that when the value gets to 180º its supposed to continue from the -180 but