Script commands for data header manipulation eg. HDLoad / HDSave / FileHDComment(n)

I'm using the header manipulation commands extensively on DIAdem DAT files, these commands seems to not work with TDM files.
What are the equivalent commands for manipulation the TDM header?

Hi Sabcat,
What I have done to get similar functionality is to register-load the data set and used the standard DIAdem variables such as ChnName, ChnComment to read off the attributes from the registered channels, instead of out of the TDM header.  File registration is available for TDM files and all other files which have a DataPlugin and is almost always instantaneous, because all it does is read the header info into the DataPortal-- not the data values themselves.  The command to programmatically register-load a data file is:
Call DataFileLoad("FilePath", "TDM", "Register")
Ask if you have further questions,
Brad Turpin
DIAdem Product Support Engineer
National Instruments

Similar Messages

  • Scripting: browse for data files in a folder and all subfolders below

    Hello,
    i'm looking for a command to search for data files (*.dat) in a folder and all subfolders below.
    I checked out command DirListGet. This command only search in the declared folder and not in the subfolders below.
    Anyone an idea?
    I don't want to use a loop-structure for finding subfolders and browse for the data files.
    Mr. Buddy

    dim result : result = DirListGet("C:\tmp", "*.dat", "filename", "FullFilenamesRecursive")
    dim fl : for each fl in result
    MsgBox fl
    Next
    Works fine for me and even recursive.
    Alternatively but with mucg more effort and the same result.
    Option Explicit 'Forces the explicit declaration of all the variables in a script.
    dim folderPath : folderPath = "C:\tmp"
    dim files : files = GetFileListRecursive(folderPath)
    dim fl : for each fl in files
    MsgBox fl
    Next
    Function GetFileListRecursive(folderPath)
    dim fso : Set fso = CreateObject("Scripting.FileSystemObject")
    dim results : results = Array()
    GetFiles fso, folderPath, results
    GetFileListRecursive = results
    End Function
    Sub GetFiles(fso, folderPath, results)
    dim folderObj : Set folderObj = fso.GetFolder(folderPath)
    dim f : for Each f In folderObj.Files
    if(0 = StrComp(fso.GetExtensionName(f), "dat", 1)) then
    dim index : index = ubound(results) + 1
    redim Preserve results(index)
    results(index) = f.Path
    End If
    next
    dim d : for Each d In folderObj.SubFolders
    GetFiles fso, d.Path, results
    next
    End sub

  • Scripting Functoid for Date Formatting in Maps Biztalk 2010

    In the Source Schema I have the Date in xs: date Time Datatype in the Destination Schema I have date in String datatype. When I map directly I get the output as "2013-10-21T00:00:00". But I want it "2013-10-21" in output.
    I tried using the scripting but nothing worked like,
    public String ConvertEndDate(string param1)
    return DateTime.Parse(param1).ToString("yyyy-MM-dd");
    public string convertHireDate(string Date1)
    return DateTime.ParseExact(Date1, "YYYY-MM-DDThh:mm:ss", null).ToString("yyyy-MM-dd");
    Can anybody help me to deal with this. Thanks in advance.

    Thanks AshwinPrabhu.But I have the Source Schema date in "2013-10-21T00:00:00" format in Destination I need as "2013-10-21".
    I did the reverse like
    public static string convertHireDate(string sdatetime)
    return System.DateTime.ParseExact(sdatetime, "yyyy-MM-ddTHH:mm:ssZ", null).ToString("yyyy-MM-dd");
    But getting Error like,
    Exception type: XTransformationFailureException
    Source: Microsoft.XLANGs.Engine
    Target Site: Void ApplyStreamingTransform(System.Type, Microsoft.XLANGs.RuntimeTypes.TransformMetaData, System.Object[], System.IO.Stream[], Boolean)
    The following is a stack trace that identifies the location where the exception occured
    Additional error information:
            Function 'userCSharp:convertHireDate()' has failed.
    Exception type: XPathException
    Source: System.Xml
    Target Site: System.Object Evaluate(System.Xml.XPath.XPathNodeIterator)
    The following is a stack trace that identifies the location where the exception occured
    Exception type: FormatException
    Source: mscorlib
    Target Site: System.DateTime ParseExact(System.String, System.String, System.Globalization.DateTimeFormatInfo, System.Globalization.DateTimeStyles)
    The following is a stack trace that identifies the location where the exception occured
       at System.DateTimeParse.ParseExact(String s, String format, DateTimeFormatInfo dtfi, DateTimeStyles style)
       at Microsoft.Xslt.CompiledScripts.CSharp.ScriptClass_2.convertHireDate(String sdatetime)

  • SAP script command for finding string length

    Hi ,
    Can anyone please let me know what is the equivalent command  to strlen() in sap script editor. I need to find the string length of a symbol in sap script editor itself without writing the logic in print program or by calling any includes in the sap script editor.
    Regards,
    Deepthi

    Hi Deepthi,
    As an alternative, you can use the perform statement in SAPscript so that it will execute a subroutine you implemented in another report.In the subroutine, you can do everything you want.
    Have a look at this link to find out how exactly.
    http://help.sap.com/saphelp_40b/helpdata/en/d1/803279454211d189710000e8322d00/content.htm
    Best regards,
    George

  • Report script command equivalent for @relative calculation command

    HI ,
    We have a calculation script which has a fix statement like below :
         FIX( Grade, "w/o LO", "Line Options", AtLaunch, @DESCENDANTS("470.92"), @DESCENDANTS("Price Item"), @RELATIVE("Total Region", 0) )
    We are trying to make a reportscript which gives us the format of the set of database being calculated.
    So we are tranforming the above calc script commands into equivalent report script commands. We are struck with the @Relative command.
    Can somebody tell us what is the equivalent report script command for @Relative calculation script function.
    Regards
    OKU

    There's no direct analogue, but you can use the <LINK command along with <DESCENDANTS and <LEV to get pretty close. See: http://download.oracle.com/docs/cd/E10530_01/doc/epm.931/html_esb_techref/rwriter/link.htm
    JExport (if pre 9.3) or DATAEXPORT (if 9.3 or greater) may also be options and will in fact allow @RELATIVE to be used.
    Regards,
    Cameron Lackpour

  • Startup shell script help for newbie?

    New to UNIX (linux)... need the bash shell script commands for my r.c local file to start my services when server boots.
    I got my ds, dps and admin server in their respective /opt directories. I need the shell commands to have these start. Of course I can start them manually but when I try a line like this in a script, it doesnt work:
    ./var/opt/sun/directory-server/slapd-dsserver/start-dsserver
    Some path problem or dot thing?

    There are a few other things you may want to consider, such as what the default browser is, are tabs being used, is the page loaded yet, etc, but Safari has a do javascript command in it's scripting dictionary. The following script will open a new document and run your specified javascript, or you can go to their NPR Program Stream Page and download a playlist that will run directly from iTunes.
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px; height: 335px;
    color: #000000;
    background-color: #FFDDFF;
    overflow: auto;"
    title="this text can be pasted into the Script Editor">
    set my_script to "NPR.Player.openPlayer(2, 0, '03-21-2008', NPR.Player.Action.PLAY_NOW, NPR.Player.Type.PROGRAM, NPR.Player.Mode.LIVE)"
    tell application "Safari"
    activate
    set the URL of the front document to "http://www.npr.org/"
    if my page_loaded(20) is false then error numner - 128 -- page not loaded in time
    do JavaScript my_script in document 1
    end tell
    on page_loaded(timeout_value) -- from http://www.apple.com/applescript/archive/safari/jscript.01.html
    delay 2
    repeat with i from 1 to the timeout_value
    tell application "Safari"
    if (do JavaScript "document.readyState" in document 1) is "complete" then
    return true
    else if i is the timeout_value then
    return false
    else
    delay 1
    end if
    end tell
    end repeat
    return false
    end page_loaded
    </pre>

  • Scripting Commands

    I've recently moved to InDesign3 from Pagemaker. I have some pretty elaborate scripts in PM that I need to reproduce in ID3. In PM there was a list of all the available scripting commands and their required format. I've been looking and haven't found anything similar in ID3. Is there a list of available commands other than the sample scripts?

    There's a list for CS2 here: http://www.kahrel.plus.com/indesign/id4-dict.html. It highlights the new script commands for CS2 (InDesign 4), so if you ignore those you get the list for CS (InDesign 3). If you're on Windows, you could also use Teus de Jong's object browser (http://www.teusdejong.nl/, pick "InDesign utilities").
    Peter

  • BADI ME_PROCESS_PO_CUST for changing header data

    Hello Experts,
    I'm using Method PROCESS_HEADER in Badi ME_PROCESS_PO_CUST in order to change some header data.
    I want to change header data depending on the partner data which are on header level.
    It works fine as long as there are data changed in the header or item level and not only on the partner screen.
    The method in this Badi isn't processed if only partner data are changed. But for me it is necessary to set a special field on the header depending on the partner data.
    Regards,
    Sven

    Hi,
    Firstly, for changing Header data without any INSERT/UPDATE?MODIFY statement, badi - ME_PROCESS_PO_CUST  will not be useful.
    As method you mentioned has no header parameters under CHANGING / EXPORTING clause.
    You can use the badi which has the parametrs you want in either change/ Export mode. It can be defined under table also.
    Below is the list of important badis gettign called, however none of them contains header values in change/export clause.
    ME_CCP_ACTIVE_CHECK
    MD_STOCK_TRANSFER
    ME_DEFINE_CALCTYPE
    ME_PO_PRICING
    ME_FIELDSTATUS_STOCK
    ME_COMMITMENT_STO_CH
    ME_COMMITMNT_PARKING
    ME_INFOREC_SEND
    ME_CHECK_SOURCES
    ME_PURCHDOC_POSTED
    Instead you can use enhacement MM06E005  Customer fields in purchasing document.
    Create a project under Transaction CMOD.
    Assign enhancement as Project component.
    You'll find Exit 012. At time of save you can change header im_ekko based on you parterner data tab.
    Regards,
    Amee.

  • Smart form for different header level data

    Hi,
    I need to design a smart form,in th samart form i have 2 header records and for each header reocrd again 10 item records.
    My form shd print with fst header record  and its item records and after ending fst header record details it shd give 2nd header record and its item records.
    For example I have Header records A and B
    A have 1 2 3 4   5 item records and
    B have 7 8 9 10 11 item records
    My form shd be
    A----
    1
    2
    3
    4
    5
    b----
    7
    8
    9
    10
    11
    Any inputs please
    Regards
    Rasheed
    Edited by: Rasheed salman on Mar 19, 2009 5:33 PM

    You can use the SORT to have different header.
    You must be having some indicator in your ITEM table to distinguish different set of data.
    In the TABLE node, Under the DATA tab, give your field in the Sort Criteria.
    Select the check box Event on Sort Begin.
    This will create a new node under the HEADER and MAIN area of your table. In this Node, you can put your Header to have it different for different set of records.
    Like:
    MAIN window
    .. TABLE with sort of field1
    .... HEADER
    .... FIELD1 sort begin "use this for Header
    .... MAIN
    Regards,
    Naimesh Patel

  • Best command for script backup?

    hello,
    i always use robocopy for file backup , but with powershell and the new technologies is still the easiest and best choice?

    Your initial question was "Best command for script backup?". For this you received an answer. If you now need support on the subject of your script then you should start a new thread. Note also that you must test your robocopy command from a
    command line before trying to embed it in a PowerShell script.

  • Using a script command to refresh external data?

    I can't seem to find the script command to refresh external data before I move it into the Data Portal.  Can anyone point me in the right direction?
    Also, is there a way to run this script without opening DIAdem, selecting the script and running it?  I would like to generate a web page that is updated every X hours with a report generated with a DIAdem script.
    Thanks
    Todd

    Hi toddho,
    What do you mean by "refresh the external data before I move it into the Data Portal"?  Do you mean change or add data to the external data file with VBScript?  Or do you mean refresh the display of data files and folders in the NAVIGATOR?  Or do you mean something else?  I'm afraid I can't seem to make sense of this request yet.
    If you want to run a DIAdem VBScript from an external program, such as a java script activated in a web page, then you should open an ActiveX connection to DIAdem and send it commands.  This can be done in such a way that DIAdem is invisible, but you must have a DIAdem instance running in order to execute a VBScript with DIAdem commands or variables in it.  DIAdem has 2 ActiveX servers that are well documented in the Help system:
    DIAdem.ToDataSheet
    DIAdem.ToCommand
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments

  • Scripting Question for Remote & Command list

    There must be some info on the commands / functions allowed for DVDSP scripting. For instance, how does one know ran = random. div = divide. Can you please point me in that direction. Note: already looked at the 2 tutorial sites suggested and the book authors mentioned, and while those were helpful looking for a comprehensive list, or at least some list like so many of my other programming books contain.
    More advanced question: Does anyone know the scripting conversion for the remote control. For example
    if remote = play jump end....
    or
    if controller = next jump start...
    Not sure what the code would look like, but it must be fairly simple, and someone must know the answer:)
    Thanks!!!

    No probs. If you're more specific we could maybe help more. I mean you could write a script and then make the button target that script, or make all buttons target a script and make decisions based on which button was pressed... but there isn't always much point cause you dont have the interactivity level you do with Flash/Director,
    -jake
    P.S Thanks for coming back to the thread. To help the new system, when you feel the question has been answered can you mark it answered/helpful etc, cheers.

  • I just got iTunes 11.0. I'm used to being able to return to the beginning of a song by hitting 'enter'. What's the new command for skipping to the head of a song?

    I just got iTunes 11.0. From all the previous versions I'm used to being able to return to the beginning of a song by hitting 'enter'. What's the new command for skipping to the head of a song?

    Mmmmmm. Works OK for me. I've tried every variation I can think of. Play from playlist, play from library, shuffle on, shuffle off, single song repeat on/off, playlist repeat on/off.
    WAIT !!   Now I've found it  !!  It happens when I have the sidebar hidden and play a playlist from the PLAYLIST pane. Hitting Enter then takes me to the FIRST song in the playlist.
    WAIT AGAIN !!! In the time it took to write the above, it changed again and works properly. Well properly is not really true. It works if I stay in the PLAYLIST pane. If I switch to the SONGS, ALBUMS or ARTISTS pane, enter does nothing. BUT, if I switch to the GENRES pane, enter starts the first song there. AND, if I've switched away from the PLAYLIST pane and switch back, enter then starts the first song in the playlist.
    WOW !! That was a crazy ride. I think we can safely say that there is something awry.

  • User entered date to be calculated for another header

    Hello All,
    In a BEx query, a user enters a date (date1), and I need to display Date1 - 30 as a header for one of the columns. Can I take care of this while creating a text variable??
    Or I need to use a customer exit with i_step = 2?
    Kindly inform..
    Eg: User entered date : 30-Jan-07
    The header should be like Non moving stock as of 1-Jan-07
    Thanks in advance.
    Regards,
    K2

    Hello Prasad,
    Can I try offset for a Text variable created for the header??
    Thanks.
    Regards,
    K2

  • Valid to date for BOM Header and Item

    Hello everyone,
    I have been searching for "valid-to" date for BOM header and Items since several days but no luck ..
    I know we can see it using transactions cs11/cs03 etc. But i wish to know the table where they are stored. As I need to extract them to BW.
    Any help will be highly appreciated.
    Thanks in advance!
    Regards,
    Anuj

    Hi Anuj
    In table STPO,the field AEDAT gets updated only when a change number is used,otherwise the valid to date will be shown nil here.
    And also ref the link
    Problem finding Valid To Date or Change number to on BOM
    pavan

Maybe you are looking for

  • ALV report i want to display in each P.O , i want to display item details

    Hi all, in alv report i want to display in each P.O , i want to display item details. is it possible without hierarchical display.

  • Adobe Flash Player for Desktop

    I downloaded the debugger version of Adobe Flash Player 10 and installed it on Windows with no problem.  Works great....  I then went to the same site on my MAC and downloade the MAC version and it appears to install as a plugin for browsers.  I was

  • International - Date

    Date fields in the reports are not displaying as System Date Format. Pulled the date fields and set the format as System Default Shrt format. Ran the report and display the date in System Date format BUT TIME is getting displayed. How to suppress the

  • Someone Please help me! Restart issue.

    I own a new Macbook and have been using it non stop. It's been a great machine! I still own a ibook G4 1.2 with 30GB HD. I haven't used it in a while. Last week I started it up and it woudln't get past the initial spinwheel. I used the Hardware test

  • Iphone has wiped and when connecting to PC it says no sim inserted..Help???

    help with Iphone that has wiped and says no sim when connected to itunes??