Setting FileName without using Orchestration

Hello All,
I have a requirement where, the file name should be ABC_yyyyMMddHHmmss.So I am using, Message Assignment shape in the orchestration
Message(FILE.ReceivedFileName) = "ABC_" + System.DateTime.Now.ToString("yyyyMMddHHmmss");
Is there any way of doing without orchestration. I tried using the %datetime_bts2000% but that has YYYYMMDDhhmmsss, where sss means seconds and milliseconds. I dont need milliseconds in the filename. Thanks

To Add to my above reply..
ABC_%datetime%.xml macro will have output like ABC_2015-02-24T160045. But it doesn't choose your required format.
Closer to yours as you use is %datetime_bts2000%. But if you don't need milliseconds you can't use macro. You need to achieve this is in custom pipeline where you construct the name of the output file in the format as you want. Following code achieves your
requirement.
public IBaseMessage Execute(IPipelineContext pc, IBaseMessage inmsg)
//set friendly date string
string dateString = DateTime.Now.ToString("yyyyMMddHHmmss");
//write updated value back to context
inmsg.Context.Write("ReceivedFileName", "http://schemas.microsoft.com/BizTalk/2003/file-properties", "ABC_"+dateString);
//return the message with modified context
return inmsg;
NOTE: It depends on frequency of the message. If you have more frequent messages, then I would have better combination to avoid file overwritten issue.
Regards,
M.R.Ashwin Prabhu
If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

Similar Messages

  • Set DISPLAY without using ssh

    Hi it is me again with a DISPLAY question.
    I have on my machine the two application X11 and a simple Terminal.
    So far I used ssh -X in X11 to conect to remote hosts and to display windows on my local machine which worked very well. Now we got two other machines behind the firewall which do not accept ssh, only rlogin or telnet.
    Using rlogin -l username hostname on either X11 or simple Terminal window does not work -
    Using Terminal I set my DISPLAY to 0.0
    logon to the Unix host with rlogin -l
    from the unix host the DISPLAY is set to the id:0 by using a name instead of the id number
    it is saying
    Displaying on jamesdesktop:0.0
    typing nedit I get
    Can't open display.
    In the System preferences/share I set my computer name to jamesdesktop
    that did not help.
    Do I have to set things in the /etc/host file so that the Unix machine and my local mashine understand each other?
    Or is there a simple way with X11 without using ssh -X?
    Cheers, Martin

    Also, if ssh is out of the picture, the X client needs to be able to open a connection directly to the X server. X11 uses port 6000, which isn't (by default) enabled in the Firewall. If you have your Firewall running (of course you do!), then you need to add a new service (call it "X11") for port 6000.
    (ssh -X actually sets up a listening port on the remote system which directs the traffic over the established ssh connection to the client, where it is passed to port 6000 -- so the client/server connection appears to be local as far as the client and the server are concerned, and hence allowed by the Firewalls.)

  • Can AirPort Express be set up without using AirPort Extreme?

    My ISP recently upgraded my wireless router and in the process removed my AirPort Extreme and AirPort Express from my wireless set up.  Their explanation for removing my AirPort devises from my wireless network was that I didn't need them anymore because the new router would be sufficient for my wireless needs.  After several months of use I find that the wireless signal is weak at the other end of my house.  I would like to boost the wireless signal by using/reinstalling AirPort Express.  However when I boot up AirPort Utility it cannot find my AirPort Express device so I can connect it to my wireless network.  This raises the question: Do I need to reinstall/connect AirPort Extreme before I can connect AirPort Express to my wireless network? 

    Do I need to reinstall/connect AirPort Extreme before I can connect AirPort Express to my wireless network? 
    The AirPort Extreme will need to be installed near your ISP router and connected to the ISP router with an Ethernet cable.  Once the AirPort Extreme is working, the AirPort Express will be able to extend the signal from the AirPort Extreme.
    If you were thinking that the AirPort Express might be able to extend the ISP router wireless signal by connecting using wireless, it is extremely unlikely that the devices would be compatible for that purpose, since Apple has designed the AirPorts to only extend a wireless signal when they connect to another AirPort.
    Unless you really do need two wireless networks, it might be good idea to turn off the wireless signal on the ISP router to minimize the chances of wireless interference occurring between the two networks. Your ISP will be able to tell you how to do this if you decide to make that change.

  • Setting music without using slideshows

    Hi there
    I am not using slideshows in iphoto, instead the picutres are organized in folders which i can then select in front row, ...
    front row/iphoto play some standard tune when you watch the pictures. can the song be changed? reading the various posts it seems one can assign track from itunes to slideshows but can i select the music without creating slideshows?
    thanks,
    Chris

    chrischb:
    Yes you can change or add to the standard tracks. They are located in the iPhoto/Contents/Resources/Music folder. You can get inside the iPhoto application package by Control-clicking on iPHoto and selecting Show Package Contents. Then when you find the Music folder, you can put in the music files you'd like to use.
    Do you Twango?

  • Can I create an apple id that my mother can use to download free books without using my personal apple id that I used when set her ipad up with originally?

    Can I set up another user id that my mother can use to download free books without using my personal apple id that I used to set up her ipad with originally?

    Other options:
    Download the Amazon Kindle app and set your mother up with an Amazon account.  Amazon has a lot of free ebooks.
    Many public libraries allow you to check out audio and ebooks using the Overdrive app.

  • How to set up remote access on wvc80n without using TZO

    Just purchased the WVC80N, but how do you set it up for remote access without using TZO?  I can not get TZO to work w/ my Uverse 2wire 3800-hgv-b router.  Please help as the uverse customer support has not been helpful with port forwarding either.

    Hi, I'm a newbie at this, so pls be patient with my terminology...  I want to install 2 or 3 of these cameras in my mother's home, and I will have AT&T DSL service (one dynamic IP address) there with only a modem/wireless router.  I want to access the cameras from my laptop or from my Blackberry Tour when I am traveling.  Also want to allow access for my other relatives.  I do not have another home computer to serve as a WHS, and my laptop is obviously not connected to the internet all of the time.  Can I use the DDNS setup with DynDNS to provide access?  The instructions that I read seemed to imply that I needed a WHS in order to forward ports, etc.  Thanks in advance for your help.. Garry

  • How do I set up my new Macbook Pro without using the annoying Voiceover?

    How do I set up my new MacBook Pro without using the annoying Voiceover?  I cannot get it to work right; it seems to get stuck and repeats the same thing over and over.  It is driving me nuts!  Is there a way to begin the setup process without using the Voiceover system?  I am a new convert from a PC and I thought a Mac was supposed to be "intuitive!" 
    Any help is appreciated.
    Thanks.
    Pamela

    There is no good reason to register your Mac anyway.
    You can opt out of the setup process and registration by pressing Command (Apple key) and the "Q" key.
    The registration process requires you to divulge a lot of unnecessary information.

  • How to set item values without using fields in branch's ACTION block?

    Okay, I will try to say this in a easy way so it is not weird.
    I have created a button, SAVE, that has a Branch of branch type: Branch To Function Returning A Page. This is my code for the branch:
    if :P2008_NAP_SUPPORTING_MATERIALS = 'Yes' then
    return '2092';
    else
    return '2040';
    end if;
    The code for this type of branch is stored in the ACTION block of the Branch page. The ACTION block for a Branch of branch type: Branch To Function Returning A Page is different than the ACTION block for a Branch of branch type: Branch To Page Or URL.
    I need to set some item values with some specific values, which I can do with a branch type: Branch To Page Or URL. This is not possible with the branch type: Branch To Function Returning A Page. The ACTION block is totally different.
    How can I set some values on say Page 2040 from Page 2008 without using fields in the branch's ACTION block?
    Thank you in advance,
    Maggie

    Andy and Scott,
    I love seeing different perspectives in solving problems, it opens my eyes to new ways of looking at/using the tools (reserved words and 'Function returning a Page', etc.).
    One of my pet peeves has been that on branches I was limited to only 10 variables to be passed (I know, who would want more - but there was an instance where I had to pass more), and an even more frustrating time when using report Column Linking, which limits me to 3 variables.
    At least with the Branch linking I can use your suggestion Andy and add the variable setting statements into the function. I am assuming of course (and I should be able to) that I will be able to set more that 10 variables in a IF condition prior to the RETURN statement. This method will be much more understandable, for me, when looking through the branch at a later time to see what is happening, than an URL link where all the variable are strung out 'in a line' so to speak.
    I will still need to use URL Target branching on Links contained within a Column Attribute when I need to pass more than 3 variables, of which I have several places where I do this.
    Thomas

  • Question about setting opacity in DW Cs6, without using rgba

    Hello,
    I prefer not to use html5/css3 until there are no more windows xp accessing the internet. However, the html5/css3 functions are pretty nifty and I would like to find a ie8 friendly way of doing similar stuff. I would like to set the opacity of my background colors between my <div></div> and not use rgba, but rather hex, but NOT change the text color at all. I would prefer to do it in the css editor rather than hand coding if possible. Is there a way to do this?
    I'm new to the new stuff. Last time I built a site was back in 2007 using Frontpage 2003:)
    Thanks

    Without using rgba, you would be stuck with the opacity atribute if wanted to just use css. The problem with the opacity attribute (and filter for IE) is they affect the entire html element they are applied to and its contents.
    The only way to have a background with some opacity/transparency without using rgba for the background-color attribute is to use what Gramps points out. Create an image in Photoshop, add your color to a new layer, drop the opacity of the layer to the level you want. Remove any background layer (so you have just the checkerboard background with your partially transparent color over the top of it) then save it as a PNG-24.

  • Get the message attribute values in Orchestration without using property promotion

    I have the following schema :
    Now I want to get the values of FName,LName in orchestration without using any property promotion ?
    Prakash

    There are also multiple ways of creating the Xpath:
    - Full path with namespaces - Rahul Madaan showed this one
    - Full path without namespaces:
    FName = xpath(InputMessage, "string(/*[local-name()='Root']/*[local-name()='IntField'])");
    I think this method is handy if you have multiple schemas with similar structure  but the namespace
    changes. This is also easier to read and less prone to errors if there are any changes.
    If you for example wanted the node #3, then it would be
    FName = xpath(InputMessage, "string(/*[local-name()='Root']/*[local-name()='IntField'][3]/*[local-name()='IntSubField'])");
    - Jump directly to the field/node you need (this one works for at least xml elements):
     xpath(InputMessage, "string(//*[local-name()='IntField'])");
    I find this useful when picking up key-values from the message, that can be available only once.
    All the examples above are for elements. Since you are picking up value from an attribute, the actual structure
    is
    varFName = xpath(InputMessage,"string(/*[local-name()='StudentDetails']/*[local-name()='Student']/@*[local-name()='FName'])");
    And to learn the rest of the possibilities of Xpath, like count, different types, more detailed selections
    of the correct Node (Like example, I want only the one where FNAME = 'MyFName')  You can try something like: http://social.technet.microsoft.com/wiki/contents/articles/6944.biztalk-orchestrations-xpath-survival-guide.aspx
    Also get DanSharp XmlViewer. It will help you quite a bit when fine tuning the xpaths.

  • Setting up and using a Mac Mini WITHOUT a screen

    I use an IMAC, a macBook 15" and an old G4 Powerbook 15".
    I have no external screen available and would prefer to avoid the purchase of an external screen.
    I am considering to purchase a mac mini to operate my large Itunes library and store my movies. The mini would be installed close to the Stereo and TV, and would mainly be considered a multimedia storage and handling device rather than a computer.
    Is it possible to perform the initial set up without the use of an external screen? Or could I connect it to my portable to perform the setup, and later access the device remotely with the WiFi network.
    What would happen after I unbox the device, and start it? Would it automatically appear in my list of network devices, ready to be managed and customised via one of my 3 computers?
    Your advice would be appreciated.
    Patrick

    Yeah you're going to need to use a display for the initial setup since sharing is not setup by default so you need to get in there and set that up before you can access it remotely.
    Also, the mini was never designed to run "headless" as what you are trying to do is called so you may have to resort to strange hacks like this to keep it happy
    http://blackfriarsinc.com/blog/2007/04/how-to-keep-headless-mac-mini-happy
    Here's some more good info to know if you want to run the min as a headless server:
    http://mrblog.org/2008/03/25/going-green-with-a-mac-mini/
    Message was edited by: davi angel

  • How to migrate Master Data (Rule set etc.) from GRC 5.3 to 10.1 without using the "Migration Tool"

    Greetings,
    We are currently on GRC 5.3 SP 18 (Java ONLY) and migrating to GRC 10.1. I referred the Migration Guide which outlines that GRC 5.3 needs to be upgraded to SP 20 as pre-requisite for using the "Migration Tool" . Our BASIS team is reluctant to perform this upgrade from SP 18 to SP 20.
    Having said thus, I'm exploring options of migrating data from 5.3 to 10.1 without using the "Migration Tool:.
    Rule set Migration:
    I'm in the process of preparing the 9 different files (listed below) and later utilize the "Upload Rule" option for migrating the Rule set data from 5.3 to 10.1.
    While I'm able to gather data for most of the files I'm not sure how can I obtain the data pertaining to the two files (Function Actions and Function Permissions) underlined and highlighted in Red below.
    1. Business Process
    2. Function
    3. Function Business Process
    4. Function Actions
    5 .Function Permissions
    6. Rule Set
    7. Risk
    8. Risk Description
    9. Risk Rule Set Relationship
    10. Risk Owner Relationship
    Can someone please enlighten me and share their experience with regards to this exercise. Really appreciate your help !
    - Janantik.

    I have done this successfully before.  Because you are having issues, I would NOT recommend using the migration tool to move the ruleset.  Instead:
    1. Download the ruleset files from 5.3
    2. The 5.3 tcode-permission file, which defines which tcode permissions from SU24 need to be checked during risk analysis, needs to be split into the two files you mention above in red.
    FUNCTION_ACTION : this file represents S_TCODE objects and TCD fields mapped to each function (Function to Tcode relationship).  In the 5.3 file, you will filter on object S_TCODE and field TCD, and you will get a complete list that now represents "FUNCTION_ACTION".  BUT instead of having all the jumbled permission info, you will just have 3 columns: Function - Tcode - Status.
    3. The remaining permissions that are left over, after taking out the S_TCODE -TCD items, represent the "FUNCTION_PERMISSION" file in GRC 10.
    4. Manually create the excel spreadsheets for each file.
    5. Copy and past each sheet to a unique .txt file.
    6. Upload the ruleset manually through SPRO-->GRC-->Access Control-->Access Risk Analysis-->SoD Rules-->Upload SoD Rules.
    7. Select each file and then upload to the correct Logical Group.
    This is a huge pain, but it works.  Let me know how this goes and if you need any assistance.
    -Ken

  • Manually set up the essbase 11 client (without using the fusion installer)

    Hi All,
    is it possible to install the Essbase 11 client without using the Fusion Installer?
    I tryed to copy the "bin" and "locale" directory from an exisiting installation and set up the ARBORPATH environment variable - without success.
    Did I miss anything? Maybe some Registry entries? Or isn't it possible to set up the essbase client manually?
    Every answer would be appreciated.
    Cheers,
    Martin

    Hi John,
    thanks for the hint that the addin is also available for any version.
    I have an application which uses the C-API (essapinu.dll, essotlnu.dll, ...) and I want to test it with diffrent Essbase Client Versions against diffrent Essbase Servers.
    These are the (client) versions which I want to test:
    EssbaseRtc11110WindowsFiles
    EssbaseRtc11111WindowsFiles
    EssbaseRtc11112WindowsFiles
    EssbaseRtc11113WindowsFiles
    EssbaseRtc9203WindowsFiles
    EssbaseRtc9210WindowsFiles
    EssbaseRtc9301WindowsFiles
    EssbaseRtc9310WindowsFiles
    I hoped it would be enough to replace some directorys on a machine instead of starting a lot of installers.
    Cheers,
    Martin

  • How to Set multiple Global Variables without using Controls or Indicators

    I have to set many Global Variables (i.e. declare and initialize them) in a subVI in order to pass them to various other subVI's. The only way I know how to do it in LabView is to create a Globals.vi on which you create a control or indicator for EACH Global Variable. That's fine if you have only a few variables. But I have close to a hundred Global Variables (which come from a configuration file for a large program) and clearly it is impractical and cumbersome to create a control for each global variable. In Agilent Vee, there is a simple function called "Set Variable" that sets the data value of a global variable. Then in other module, you simply use the "Get Variable" function to get back the v
    ariable and its value.
    In LabView you can use the "Invoke Node / Set Control Value" and "Get Control Value" properties to achieve the same thing. But as mentioned above, you need to create a control for each global variable and that is a big pain in my case, with many global variables. Furthermore, the global variables are read from a Configuration Text File to this VI. Is there a way to do it without using the control? Thank you in advance for any help.

    Actually you could create the same sort of facility in LV. All you have to do is create a LV2-style global that behaves as follows:
    To write a value to it, you supply a value name and the value. These pieces of data are save internally in seperate arrays.
    To read a value, you supply a value name. The VI looks up this name in the value name array to return an index into the value array. Output the value you find.
    Frankly though, it sounds like what you really need is not hundreds of globals, but a good way to manage configuration data.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Set Cell Color without using DefaultTableCellRenderer

    Hi,
    Is there any possible to set the JTable cell color without using DefaultTableCellRenderer ?. For ex, I have one JTable that having 9 rows and 9 columns. I have to set the cell color in 2nd row & 3rd column.
    Please anyone give me guidance to solve this.
    Thanks & Regards
    S Senthilkumar

    Fine.. Please try to understand my points.
    Because in my application I have JTable that having 10 columns and rows dynamically will come based on the value fetch from arraylist. If I use DefaultTableCellRenderer, for each record its calling CustomTableCellRenderer(). For example arraylist return 10 rows means its looping 100 times(10 rows * 10 columns).
    CustomTableCellRenderrer.java
    ArrayList dataLiveMarket = (ArrayList) new CheckUser().getLiveMarketDetails(unval);
    CustomTableModel modelLiveMarket = new CustomTableModel(dataLiveMarket);
    JTable tableOne = new JTable(modelLiveMarket);
    tableOne.setDefaultRenderer(Object.class, new CustomTableCellRenderer());
    CustomTableCellRenderrer.java
    package com.fxtrading.dao;
    import java.awt.Color;
    import java.awt.Component;
    import javax.swing.JTable;
    import javax.swing.SwingConstants;
    import javax.swing.table.DefaultTableCellRenderer;
    import javax.swing.table.TableModel;
    * @author user
    public class CustomTableCellRenderer extends DefaultTableCellRenderer {
        //private TableModel bidLastPrice;
        //int k;
        @Override
        public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected,
                boolean hasFocus,
                int row, int column) {
            Component component =
                    super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column);
            if (column == 0 || column == 1|| column == 2) {
                setHorizontalAlignment(SwingConstants.LEFT);
            } else if(column == 3 || column == 4 || column == 5 || column == 6 || column == 7 || column == 8){
                setHorizontalAlignment(SwingConstants.RIGHT);
            }else if(column == 9){
                setHorizontalAlignment(SwingConstants.CENTER);
            // Change cell Color - Started
            bidLastPrice = table.getModel();
            int bidLastRowCount =(int)table.getRowCount();
            for(k=0; k<bidLastRowCount; k++) {
                String bidPrice = (String)bidLastPrice.getValueAt(k,4);
                String lastPrice = (String)bidLastPrice.getValueAt(k,8);
                bidPrice = bidPrice.replace(",","").replace("$","");
                lastPrice = lastPrice.replace(",","").replace("$","");
                if(Double.parseDouble(bidPrice)<Double.parseDouble(lastPrice)){
                    if(row == k && column == 4){
                        component.setBackground(Color.RED);                   
                    }else{
                        component.setBackground(Color.WHITE);
                    System.out.println("Row Count -->"+k+" Less ----> Bid Price----> "+Double.parseDouble(bidPrice)+" : Last Price----> "+Double.parseDouble(lastPrice));
                }else{
                    if(row == k && column == 4){                  
                        component.setBackground(Color.GREEN);
                    }else{
                        component.setBackground(Color.WHITE);
                    System.out.println("Row Count -->"+k+" More ----> Bid Price----> "+Double.parseDouble(bidPrice)+" : Last Price----> "+Double.parseDouble(lastPrice));
            // Change cell Color - End
            return component;
    }Thanks & Regards,
    S Senthilkumar

Maybe you are looking for

  • Created PDF form in Acrobat XI Pro, but HELP fields disappear when I save FCDT file to PDF. Please help. Thanks!

    Created PDF form in Acrobat XI Pro, but HELP fields disappear when I save FCDT file to PDF. Please help. Thanks!

  • Display when closed

    I've got a user with a MacBook Pro (not sure of details, it's on a different network, I'll have to walk over there for info :-( ) that no longer sends the display to the external monitor when closed.  It used to.  I zapped the PRAM and SMC to no avai

  • Looking for information...

    I am new to flex and am wondering what trends are out there that follow Flex. If you read this please take some time to let me know(as well as others) answers to questions such as...... What kind of projects and applications are you using Flex for? H

  • I have adobe acrobat/reader but I cannot read pdf files.

    If I need open a pdf file I must used another browser.

  • CS2 on Leopard?

    I've upgraded to OS X 10.5.6. Will CS2 run on Leopard? Pleeease don't say, "try it and find out." I'm having to do this on a new internal hard drive after Bad Things happened to my old startup disk, so I'll need to deactivate CS2 on the old disk befo