Mapping.Take left to right

Hi,
      I have a mapping requirement as follows.
Map source to target and take left to right 5 digits.
Can you please tell me the functionality and the procedure to do it?

Hi,
Use the following code in your  UDF. Give the input field as Source field and constant 5 in Length.
variable 1 = SourceField
variable 2 = Length
String FinalTarget;
int SourceLength=SourceField.length();
int TargetLength = Integer.parseInt(Length);
if (SourceLength>TargetLength)
FinalTarget=SourceField.substring(0,TargetLength);
else
FinalTarget=SourceField;
return(FinalTarget);

Similar Messages

  • Message Mapping using Left justified, right blank/space filled

    Hi,
    My Interface is outbound Interface.
    Suppose source field named 'Filename' is mapped with Target field named 'Filename'.Condition is AS IS(Left justified, right blank/space filled).
    How should i do this mapping?

    Hi Sanghamitra Duttagupta,
                                                you can try this UDF below
    public static String fieldJustified(String s)
              try
                   final int fieldLength=20;
                   char filler=' ';
                   s=s.trim();
                   int l=s.length();
                   while(l<fieldLength)
                        s=s+filler;
                        l++;
              catch(Exception e)
                   return s;
              return s;
    Please reset the value of the variable "fieldLength",  in code above to the field length as per your need. The right side will be filled with extra spaces since value of "filler" variable is ' '. you can set this to any character of your choice so that total field length is equal to value of variable "fieldLength" (which is 20 here).
    so if input is  "        hi"
    output           "hi                  "
    regards
    Anupam
    Edited by: anupamsap on Aug 1, 2011 1:53 PM

  • Nokia Maps - Destinatation Left or Right

    I am a big fan of Nokia Drive Maps now called HERE. I wanted to see if the maps can tell my destination is on left or right. This is a very important feature I see missing. This is one of the reasons I switch to Garmin StreetPilot at times.

    have the same feel, this should be a basic and simple feature to implement in the next update. is there a nokia feature request page?

  • Globally map Ctrl   B and ctrl   F to left and right arrow keys, respectively

    Does anyone know how I would *globally* map Ctrl + B and ctrl + F to left and right arrow keys, respectively? This keystroke works for some applications, but not all. I'd like it to always work.

    So, it is now June and still no fix.  This is incredibly annoying when you are giving a professional presentation in front of an audience and the speaker wants to go back a slide.  It's enough to change presentation software.
    In truth, the Presentation Module in LR5 is vastly inferior to other dedicated software.  For instance, you can't add a text slide as a divider between "chapters," as far as I can figure out, you can't merge slideshows or go from one to another without exposing your entire screen, the order of slides is over-ridden by some predetermined metadata rather than being able to choose two catalogs and put them into one slideshow, deciding yourself which catalog should play first.
    Are any of these changes in the works?
    Any eta on the right/left arrow fix?
    This could be SO great.  I hope it is moving in that direction.

  • My 27" iMAC is less than 3 month old. Many times regardless of what application I am in the screen will start shifting  back and forth left to right. Then I can't do anything until the screen stabilizes. This takes anywhere from 5 to 25 secs. Any ideas?

    My 27" iMAC is less than 3 month old. Many times regardless of what application I am in the screen will start shifting  back and forth left to right. Then I can't do anything until the screen stabilizes. This takes anywhere from 5 to 25 secs. Any ideas?

    why don't you take advantage of the free 90 days of AppleCare and utilize the free, professional telephone support from Apple instead of asking in the forums?

  • The keyboard on my macbook air has stopped working. It was fine at lunch time now the up and down arrows move the page and the left and right take me into dashboard and out. The keys beep if pressed the only way to type is to use bluetooth keyboard.

    The keyboard on my macbook air has stopped working. It was fine at lunch time now the up and down arrows move the page and the left and right take me into dashboard and out. The keys beep if pressed the only way to type is to use bluetooth keyboard.please help

    "If none of the keys work, your computer may be showing a low battery alert that you can’t see.
    Connect your computer to an electric outlet or an external keyboard to see the alert".
    http://support.apple.com/kb/PH10680
    http://support.apple.com/kb/ts1381
    Reset PRAM.  http://support.apple.com/kb/PH4405
    Reset SMC.     http://support.apple.com/kb/HT3964
    Choose the method for:
    "Resetting SMC on portables with a battery you should not remove on your own".
    Best.

  • Hi,  I'm in Nova Scotia, Canada and when I try to use Siri it loads and loads and then says, "I'm really sorry about this, but I can't take any requests right now. Please try again in a little while."  I rebooted and it didn't fix the problem. I just got

    Hi,
    I'm in Nova Scotia, Canada and when I try to use Siri it loads and loads and then says, "I'm really sorry about this, but I can't take any requests right now. Please try again in a little while."
    I rebooted and it didn't fix the problem. I just got my iPhone 4s (unlocked right from Apple) several weeks ago.

    Siri has been a bit more erratic than usual in the last week or so. Apple has announced a major announcement for 9/12. Conclusions are left to the reader.
    Best of luck.
    (Occasionally from Lower Economy, Colchester County).

  • How do I deal with audio, seperate left and right and make each stereo--CS5

    I have a two mono mike recording which I can seperate into two seperate audio timeline tracks one is now left track in a seperate timline and the other is right in the other timeline, how do I make each of these tracks then into psuedo stereo tracks?  Do I have to go to Soundbooth or is there a simple way in Premiere?

    Bill G, tell me what I am missing and I'll use your method.  I have what I think you are describing, and I don't understand the need to do anything special, if you use channel mapping.
    I record a lav on one channel, and a different wireless mic on the other.  When captured, I have a clip that PR would normally treat as a single stereo track.
    BEFORE putting any clips on the timeline, select all clips and set channel mapping.  Set each channel to mono.  Now PR treats these as two mono tracks.  The output for each mono is the master track, which in my project is stereo.  I can change "volume" for each track in the mixer, etc.  but each channel is provided to the left and right  master output.
    I didn't go back to sort out what you had, but if you had two stereo tracks, one each with a left and right channel only, I can see that you needed some other solution.

  • In Final Cut Pro X 10.1.1 I'm trying to separate left and right stereo tracks to delete left and pan right to centre. I cannot find a way to do this.

    I record in stereo with a 10KHz tone down the left channel to defeat AGC on my camera and mic feed into the right channel. When I edit, I want to mute/delete the left channel and pan the right into the centre, to leave me with mono audio across both left and right. I could do this easily in FCP 6 but can find no way to do it in FCP X. I'm using the same source files. When I choose Dual Mono mode in the Audio Inspector, it mixes left and right and pushes the combined signal into both channels, giving me a mix of 10KHZ tone and audio in both left and right. Stereo mode shows me the two channels correctly with one driven hard (the tone) and the other at good voice levels. I just want to kill the left channel and pan the right to centre.
    I'm converting original TOD files using MPEG Streamclip before import and definitely keeping audio as stereo.
    This is driving me nuts! It should be simple and is in FCP 6. Any help greatly appreciated.
    Stereo Setting
    Mono Setting

    Mb - If you're using FCPX 10.1.1 and Mavericks, make certain you've downloaded the most current Sony XDCAM FCPX plugin from sonycreativesortware.com unless you're using an older version of FCPX and then you'd need the previous XDCAM plugin.
    You shouldn't see 8 mono tracks.  There are import settings in /fCPX that you can check and I don't ask FCPX to analyze my media or seperate mono or combine stereo, etc.  I like to have everything come in as it is, especially because I know what I've done with every channel, etc.
    What I wrote to Ian is what I'd tell you - so please take a look at how you can make a "stereo" track that is actually two mono tracks, mono.  Once you do that you can address each mono channel by itself since it needs different volume, compression, and EQ than other channels.
    There are ethernet, USB, and firewire controllers that work in FCPX, but that's not the typical workflow because generally if you're getting into any amount of post audio sweetening beyond basic "staples" audio treatment, you would instead use "Roles" to export your audio to Logic or Pro Tools and do you work in those applications and then cut the final product back into your FCPX project.  In Logic or Pro Tools is where you might use a controller.
    In terms of automating levels, I'm not positive I know what you mean.  Compressor is a nice internal Logic plugin that kind of automates levels in a way but its about compressing peaks at a threshold that you set and at a ratio of compression.  So I may not understand what other automation is available unless you've exported you tracks to Logic or Pro Tools.

  • My screen displays a shadow from left to right, being darker on the left and brighter on the right. Any advice about how to change this would be appreciated.

    My screen from the moment it starts any program appears to be shaded from left to right. The left hand side of the display appears to be darker than the right half of the screen. Can someone please advise what I can do to alter this. Have I pressed something I shouldn,t have? Or is there a problem with my display?
    Any help would be appreciated.
    Many thanks.

    Does not sound too healthy! You should take it to the Genius bar in the Apple store. May need the hardware looked at...
    It's most probably a backlight issue. Take some piccys of it while it isnt working now!!

  • How do I plot a y axis on the left and right in DIAdem/VIEW (version 11.0)?

    I am trying to analyze flight data, and I would like to analyze plots of certain parameters so that they share an x axis. It is necessary to view these using two different y axis, on the left and right. How do I do this in DIAdem (version 11.0) in the VIEW tab? Is this possible to do in the VIEW tab?

    myocom,
    You can highlight random points in DIAdem as well. 
    Here is an example:
    Use the cursor to move to the point you wish to highlight.
    Press the "Set Data Point and Flag" icon on each data point you wish to highlight
    When you are done selecting points, press the "Flags: Copy Data Points" icon - that will copy all X/Y coordinates into two new channels
    I created a REPORT Layout using the original data and the highlighted random points (I added the actual point Z-value above the point, they look strange when written at the exact point). I attached the layout for your reference.
    The complete task took 3 minutes from loading the data to finishing and exporting the REPORT layout. If you have a REPORT layout already, this will take less than 30 seconds ...
    I am not familiar with Matlab, so I can't compare how this works in DIAdem vs. Matlab. You can add the combine the complete process in a Script and it will automatically create this kind of report after simply selecting a few data points in VIEW and then pressing a button ...
        Otmar
    Otmar D. Foehner
    Business Development Manager
    DIAdem and Test Data Management
    National Instruments
    Austin, TX - USA
    "For an optimist the glass is half full, for a pessimist it's half empty, and for an engineer is twice bigger than necessary."
    Attachments:
    Report with highlights.zip ‏5 KB

  • Almost 100% of the time, when I move the Firefox window left or right, the content stays fixed on my screen -- using Windows 7 Ultimate -- how do I fix so that

    How do I fix it so that the content moves WITH the frame as it is moved left or right. Works O.K. in the up or down direction. If the frame has been moved to the right, leaving the content fixed, the "buttons" do not work until the frame is manually moved back to the left side of the screen. I am using Windows 7 Ultimate (x64 bit) with a 1920 x 1200 LCD display in the PORTRAIT orientation, and Firefox version 13.0.1. I do not have this problem with Internet Explorer or Chrome.

    Hmmm, could you try disabling graphics hardware acceleration? Since this feature was added to Firefox, it has gradually improved, but there still are a few glitches.
    You usually need to restart Firefox in order for this to take effect, so save all work first (e.g., mail you are composing, online documents you're editing, etc.).
    orange Firefox button ''or'' classic Tools menu > Options > Advanced
    On the "General" mini-tab, uncheck the box for "Use hardware acceleration when available"
    If you restart Firefox, is the issue resolved?

  • Video Inverted Upside down, left to right

    This happened when I watch the windows 7 preview tour
    the screen suddenly flashed then it flickered and the video continues to play but inverted upside down, left to right. It looks like it is possessed with something evil.
    help! what should I do?
    here's a video of it
    http://www.machoe.com/1884/imac-doesnt-want-to-watch-windows-7-tour.html
    Message was edited by: MrSun

    Thanks Ian, but I never use ichat also i tried to browse those video with only the browsers are open upon after I restart to isolate the problem.
    I remember, I have the same issue lat year but it only occur when I play REAL MEDIA files When I scan with techlool pro it shows my iMac have *video memory problem*, then I send the iMac to an Apple Distributor (YNZAL) since ynzal is not authorized to repair they forward my mac to an authorized service center.
    They replaced the LCD (It also had some black spots) but didn't replace the board. I told them that tech tool pro is saying that my video ram have issues but they said APPLE does not honor TechTool results (although it came with AppleCare), They only honor the result coming from the Utility on the Mac installation disc which didn't saw any problem on my iMac. Since my screen was fixed and the video gargling only occur when watching RM files and random flash movies I take my iMac home.
    Until recently the unside down video rendering happens more and more that I cannot watch flash videos on more and more sites.
    My plan is to send my iMac to Apple again, this time to other service center..
    Anyone here knows why apple does not honor Techtool pro results?
    Thanks for your time helping..
    God Bless
    Message was edited by: MrSun
    Message was edited by: MrSun

  • Remove left and right margin when display portlets

    What is the best way to remove the left and right margin when display portlets?
    I found a file called \portalpages\dotnet\prod\src\com\plumtree\portalpages\browsing\myportal\/
    MyPortalContentView.cs
    But I do not see a place for the left and right margins. What is the correct place to modify these margins? (How about the top and bottom margins too?)
    See the green highlight?

    That's it yeah, seems to curve upwards at the sides. Dunno whether leaving a heavy book on it might sway it back into position?!
    I had the display upgraded when I bought it so presumed it could have been done whilst 'in operation'. Apart from that there's nothing wrong with it really, doubt it's something they would take it back on anyway.

  • Is it possible to make the automatic scroll go left to right instead of top to bottom?

    Hi all,
    I find it hard to follow text when adobe is scrolling from top to bottom. Is there any way to make it scroll left to right instead?

    user13392320 wrote:
    Is it possible to make ODI process a source row by row instead of as a dataset?Yes it is, the Agent acts like a SQL cursor if you use a select on the source tab (in the IKM) and an insert on the target tab (same step in the IKM) it will read it row by row. You can tweak the batch fetch array sizes in the Agent configuration.
    user13392320 wrote:
    To make changes to the target table I need to join the source table to the target table. I want to process source records in a particular order. What will be loaded from the current source record will depend on the previously loaded, related source record, during this some run of my ODI job. And ideas? Thanks!Cant see why you cant drag the target table onto the source datastores and join them - carefully choose where you want the join to take place (probably in the target). If you want to order the records there are some Knowledge Module tweaks to specify an order by clause using the UD1 -> UD5 flags on a datastore. Search the forum or google for the code.
    Hope this helps.
    Alastair

Maybe you are looking for