How to map only the first occurance to the op in graphical mapping

Hi,
i have a record whose occurance is ' * '.But to the output i need to only map the value of the field which comes in the first occurance of the record.Can anyone help me in this.its very urgent.
For ex :
my input is
<header>
<inp1>123</inp1>
<inp2>hello</inp1>
</header>
<header>
<inp1>456</inp1>
<inp2>hello</inp1>
</header>
To the output field <op1> i have to Map ' inp1 ' field but it has to take the value of the first inp1 i.e "123" only always.Any help on how to do this.
Thanks in advance,
Bhargav
Message was edited by:
        bhargav gundabolu

Hi Raj,
My inp structure is:
<header>
<inp1>123</inp1>
<inp2>hello</inp1>
</header>
<header>
<inp1>456</inp1>
<inp2>hello</inp1>
</header>
This has to me mapped to the output structure
<result>
</op1>
</result>
After Mapping inp1 to op1 my structure should appear as
<result>
<op1>123</op1>
</result>
<result>
<op1>123</op1>
</result>
where <Header> node is mapped to </result>.As <result> has to appear as many times as Header appears.But the <op1> value has to be same as that of the <inp1> of the first <Header>

Similar Messages

  • Find the first occurance of a word

    I have a script which finds and counts ALL occurances of a word.
    I need the script to find the FIRST instance of a word only.
    Can any one please advise how to modify the script to find the first instance of the word?
    Script as follows:
    var numWords = this.getPageNumWords(0);
    for (var i=0; i<numWords; i++)
    var ckWord = this.getPageNthWord(0,i);
    if ( ckWord == "MATERIAL")
    /*Script will go here based on finding the first instance of the word "MATERIAL"*/
    I have tried var CKWord = this.getPageNthWord(0,0); but console reports back is UNDEFINED?

    Thanks for your help.  Script now returns the first occurance of the word "MATERIAL".
    I know have to add to the script to find the SECOND OCCURANCE of the word "ISSUED".
    Can you please advise how I would code the script for this, ie would this have something to do with the break command?
    var numWords = this.getPageNumWords(0);
    for (var i=0; i<numWords; i++)
    var ckWord = this.getPageNthWord(0,i);
    if ( ckWord == "ISSUED")
    var coord = this.mouseX;
    var annot = this.addAnnot({
    page: 0,
    type: "Stamp",
    name: "AppStamp",
    rect: [coord+1000, 2300, 30, 2820],
    rotate: 90,
    AP: "#C94cHAFFa42U1gTH5Tug5C" }); 
    /*break; how can this be modified to break for the second occurance of the word "ISSUED"?*/

  • Mapping the first occurance of condition

    HI friends,
    I am mapping the 271 Inbound mapping.I am receiving the Multiple EB segment.
    Only I need to map the first occurrences of the Segment.
    EB*B*IND*30***29*200~
    EB*B*IND*88****3~
    EB*B*IND*91****3~
    EB*B*IND*92****1~
    EB*1*IND*MH~
    EB*1*IND*82~
    EB*1*IND*88~
    EB*R*IND*30~
    REF*18*098806799M
    Condition is if Eb1= B i need to Map EB7 value to copayment field.
    this scenario i need to map the value of 200.
    Thanks
    hk

    Hi Friends,
    I am able to XSLT for 271 inbound copay amount.But this is XSLT giving the first occurrence of subscriber loop.It not giving the all subscribers for copay amount.Any idea how do we need map all occurances for subscriber loop.
    <xsl:if test="(//*[local-name()='EB_SubscriberEligibilityorBenefitInformation'][EB01_EligibilityorBenefitInformation='B'])[1]/EB07_BenefitAmount/text()">
    <Co-PaymentAmount><xsl:value-of select="(//*[local-name()='EB_SubscriberEligibilityorBenefitInformation'][EB01_EligibilityorBenefitInformation='B'])[1]/EB07_BenefitAmount/text()"/></Co-PaymentAmount>
    </xsl:if>
    hk

  • On my iPad 3, how do I make calendar items lasting more than one day appear as such on the monthly view of my calendar? Right now only the first day of the item appears.

    On iPad 3, all of my calendar items lasting more than one day do not appear correctly when looking at the monthly view of the calendar; only the first day of the appointment appears. For example, if I am taking a vacation for 4 days, only the first day of the vacation is marked on the calendar, instead of being listed on all 4 days. When I look at the weekly view, however, it is correct and is listed on all 4 days. The problem here of course is that at a glance, there is no way to look at my monthly schedule. On my iPhone, everything is correct, regardless of month or week view, so clearly this is an iPad problem I guess? Please advise on how this can be corrected. Thank you!

    Unfortunately you can't do what you want. Many people have complained to Apple about this. I suggest you provide Apple feedback directly at http://www.apple.com/feedback/macosx.html. They will not provide a direct response but hopefully if enough people provide feedback Apple will fix this.

  • I am trying to copy and paste a story from a blog.  I can only view the first page on the Pages app.  How do I see the rest of the pages?

    I am trying to copy and paste a story from a blog.  I can only view the first page on the Pages app.  How do I see the rest of the pages?

    Thank you.  That helped in the first step.  I was able to copy text onto multiple pages.
    Now I can't get the pictures to copy.  How do I get my pictures to copy?
    Also once the blog page is on pages, how do i make changes to it?
    This my story and the page I am trying to copy.
    http://www.city-data.com/forum/tennessee/359683-going-off-grid-east-tennessee.ht ml
    Thanks so much
    Lisa(writing) and Mike trying to get it right.

  • I have lost the remote that was paired. I bought another remote, but the procedure to pair the new one does not work. I suspect the the AT will work with only one remote at-a-time and i have to unpaid the first before pairing the second. How do I unpair?

    I have lost the remote that was paired. I bought another remote, but the procedure to pair the new one does not work. I suspect the the AT will work with only one remote at-a-time and i have to unpair the first before pairing the second. If this is true, how do I unpair? If not, what can I do?

    I was premature in posting the question. I found the answer in andother posting, and it was successful.
    Thanks, and sorry for the false alarm.

  • BI Publisher 10g. How to leave only one button Export, in the report?

    Good day!
    I'm working with Oracle BI Publisher 10g.
    Tell me please how to solve the following problem!
    I already have created the report, and when you view it, you can choose the format of its presentation, for example (pdf, html, ...).
    You can also see these buttons : View, Analyzer, Export, ...
    How can I make the report links panel of the report show only "Export" button?
    I also know that when you click the Edit button and selecting a report, you can remove the checkmark from the following properties:
    1)     Show controls
    2)     Disable access to the client from Analyzer for Excel.
    Then we will see in the first case that the entire selection panel has disappeared, while in the latter case, the off button Analyzer for Excel (in the presentation layer).
    And if you choose to layouts-> template, you can specify output formats, for example (pdf, html, ...).
    Thank you for your attention.
    Alex.
    Edited by: 816497 on 29.11.2010 7:59
    Edited by: 816497 on 29.11.2010 7:59

    I guess, you are looking for option in BIP enterprise itself, so
    making the user as different roles , you can suppress it.
    go thru this, to understand the roles and behaviour.
    http://download.oracle.com/docs/cd/E12844_01/doc/bip.1013/e12188/T421739T475591.htm#4455931
    if you going to view the report outside of this interface, e can see alternative solutions.

  • Pie Chart Only Displays the Data of the First Row of the Table

    Hi Experts,
    I have a problem that the pie chart will not change when click on a second row or other rows on the table. It only displays the data of the first row of the table. How can I set up to make it reflect on any rows when I click the table? Please help, and I would very appreciate that.
    Thanks,
    -Don

    Thanks a lot for your response. I have realized that the pie chart behaves that way, so I just use the filter to see the specific data that I want. Also, you can drag the row and drop it right at the first row to see the data in the pie chart.

  • My ipod shuffle only plays the first songs on the list.

    My ipod shuffle only plays the first songs on the list even though it has several more podcasts in it. it only plays a series of podcasts instead of all of them. My older shuffle never had this problem. How can I solve this?

    Your older shuffle, if 1st or 2nd gen, did not have the ability to play from multiple playlist.  It was essentially just ONE playlist that you loaded manually using iTunes.  A very simple device.  With the new shuffle, it works more like the "bigger" iPods and you can load more than one playlist (so it is more complex), but if you select a specific playlist (using VoiceOver), it works like the old shuffle.
    My ipod shuffle only plays the first songs on the list even though it has several more podcasts in it.
    That is probably because you are playing songs from the All Songs list, instead of choosing a specific playlist using VoiceOver.  Podcasts do not play from the All Songs list.
    it only plays a series of podcasts instead of all of them.
    If you use VoiceOver to select a podcast, it only plays episodes from that particular podcast.
    Here's what you can do, to make it work like your old shuffle.  Create a new regular playlist in iTunes, and name it something like "iPod Podcasts" or whatever you want.  Treat that new playlist like your old shuffle.  Manually add the podcast episodes you want on the shuffle, in the order you want to hear them, on that playlist.  NOTE:  You can adjust the playlist order after adding the podcast episodes.
    Select the shuffle in iTunes.  You see a row of "tabs" (buttons) starting with Summary.  Click Podcasts there.  This is the Podcasts tab, where you set up how iTunes syncs podcasts.  Check the box for Sync Podcasts.  Below that, since you have a playlist with the podcasts you want on the shuffle, you only need to go to the list under Include Episodes from Playlists and checkmark that iPod Podcasts playlist.
    When you click Apply, the episodes on that playlist sync to the shuffle.  Going forward, to update the podcasts on the shuffle, update that iPod Podcasts playlist (add and remove episodes) in iTunes.  Then, the next time you connect the shuffle, iTunes automatically updates the shuffle with the same changes.  If the shuffle is already connected, click the Sync button to update.
    When using the shuffle, set the shuffle's power switch to the play-in-order (middle) position.  Podcasts are skipped on playlists, if the power switch is set to shuffle.  Use VoiceOver to switch to that iPod Podcasts playlist.  The podcast episodes should play in playlist order.
    NOTE:  You can load songs in the same way.  Create an "iPod Songs" playlist in iTunes, with the songs you want on the shuffle.  Go to the shuffle's Music tab, and select that playlist.  And audiobooks on the Books tab.  You can load as many playlists as you want.  The big advantage of the new shuffle is that you can have different types of content and keep them organized on separate playlists.
    Here's information about VoiceOver, in case it is not already set up.
    http://support.apple.com/kb/ht4322

  • How do I loop back from the first frame to the last frame?

    Hi there,
    I'm currently working on the framework for a product viewer.
    I have:
    a movie clip called 'viewer_mc' which contains the images take from different angles of the product. The actionscript generates a script on the last frame of this that returns it to frame 1.
    a button instance called 'autoplay_btn' which plays through the movie clip from whatever the current frame is, and stops on frame 1.
    a left and right button which serve to move the movie clip frame, to give the appearance that the product is rotating.
    I have succeeded in getting it to:
    have the movie clip play through once, return to frame 1 and stop.
    have the buttons return functions when held down, that move the frame in the movie clip using nextFrame and prevFrame commands. The right button successfully loops round to frame 1 and continues functioning to give the appearance of continual rotation.
    The last problem I am experiencing is getting the left button to act in the corresponding manner, going from the first frame to the last and continuing to function.
    Here is my actionscript so far:
    import flash.events.MouseEvent;
    var lastFrame:Number = viewer_mc.totalFrames;
    var thisFrame:Number = viewer_mc.currentFrame;
    var backFrame:Number = viewer_mc.currentFrame-1;
    1. This is the part that gets it to play through once before returning to the first frame. I think perhaps the problem I am experiencing is because of the 'viewer_mc.addFrameScript(lastFrame-1, toStart)' part i.e. although I'm holding the left button, its returning to this script and therefor getting bounced back immediately to the first frame. However, there is no flicker on the screen which you might expect if this were the case
    Note - as this is a generic product viewer which I can use as a template I am using lastFrame etc. as opposed to typing the value in
    function toStart (){
              viewer_mc.gotoAndStop(1);
    viewer_mc.addFrameScript(lastFrame-1, toStart);
    2. This is the functionality for the autoplay_btn that will play through a rotation / return the viewer to the initial (frontal) view of the product (frame 1).
    autoplay_btn.addEventListener(MouseEvent.MOUSE_DOWN, autoplay);
    function autoplay (ev:MouseEvent):void{
              var startFrame:Number = viewer_mc.currentFrame;
              viewer_mc.gotoAndPlay(startFrame);
    3. This is the functionality of the right button, which when held, moves the movie clip to the next frame via the 'rotateRight' function based on the 'nextFrame' command. It loops back round to the first frame due to the 'viewer_mc.addFrameScript(lastFrame-1, toStart)' script generated on the last frame of the movie clip, as is desired.
    right_btn.addEventListener(MouseEvent.MOUSE_DOWN, rightDown);
    function rightDown(e:Event){
        stage.addEventListener(MouseEvent.MOUSE_UP,stoprightDown); //listen for mouse up on the stage, in case the finger/mouse moved off of the button accidentally when they release.
        addEventListener(Event.ENTER_FRAME,rotateRight); //while the mouse is down, run the tick function once every frame as per the project frame rate
    function stoprightDown(e:Event):void {
        removeEventListener(Event.ENTER_FRAME,rotateRight);  //stop running the tick function every frame now that the mouse is up
        stage.removeEventListener(MouseEvent.MOUSE_UP,stoprightDown); //remove the listener for mouse up
    function rotateRight(e:Event):void {
        viewer_mc.nextFrame();
    4. This is the functionality of the left button, which when held, moves the movie clip to the prev frame via the 'rotateRight' function based on the 'prevFrame' command. And this is where the problem lies, as although it works for getting the movieclip back to frame 1, it does not loop round to the last frame and continue functioning, as is wanted.
    left_btn.addEventListener(MouseEvent.MOUSE_DOWN, leftDown);
    function leftDown(e:Event){
        stage.addEventListener(MouseEvent.MOUSE_UP,stopleftDown); //listen for mouse up on the stage, in case the finger/mouse moved off of the button accidentally when they release.
        addEventListener(Event.ENTER_FRAME,rotateLeft); //while the mouse is down, run the tick function once every frame as per the project frame rate
    function stopleftDown(e:Event):void {
        removeEventListener(Event.ENTER_FRAME,rotateLeft);  //stop running the tick function every frame now that the mouse is up
        stage.removeEventListener(MouseEvent.MOUSE_UP,stopleftDown); //remove the listener for mouse up
    I'd imagine it is probably my logic for this part that is really letting me down - I can do a similar function in actionscript 2, but am trying to learn actionscript 3 just to move with the times as it were, and struggling a bit. Still this is only a few days in!
    function rotateLeft(e:Event):void{
              if(thisFrame==1){
                        gotoAndStop(viewer_mc.totalFrames-1);
              } else{
              viewer_mc.prevFrame();
    Any help you can give me would be gratefully received. For an example of the effect I am trying to achieve with the autoplay button etc. I recommend:
    http://www.fender.com/basses/precision-bass/american-standard-precision-bass

    Thanks for getting back to me.
    Here's the code without my comments / explanations:
    import flash.events.MouseEvent;
    import flash.events.Event;
    var lastFrame:Number = viewer_mc.totalFrames;
    var thisFrame:Number = viewer_mc.currentFrame;
    var backFrame:Number = viewer_mc.currentFrame-1;
    function toStart (){
              viewer_mc.gotoAndStop(1);
    viewer_mc.addFrameScript(lastFrame-1, toStart);
    //last image of viewer_mc = first image of viewer_mc
    autoplay_btn.addEventListener(MouseEvent.MOUSE_DOWN, autoplay);
    function autoplay (ev:MouseEvent):void{
              var startFrame:Number = viewer_mc.currentFrame;
              viewer_mc.gotoAndPlay(startFrame);
    right_btn.addEventListener(MouseEvent.MOUSE_DOWN, rightDown);
    function rightDown(e:Event){
        stage.addEventListener(MouseEvent.MOUSE_UP,stoprightDown); //listen for mouse up on the stage, in case the finger/mouse moved off of the button accidentally when they release.
        addEventListener(Event.ENTER_FRAME,rotateRight); //while the mouse is down, run the tick function once every frame as per the project frame rate
    function stoprightDown(e:Event):void {
        removeEventListener(Event.ENTER_FRAME,rotateRight);  //stop running the tick function every frame now that the mouse is up
        stage.removeEventListener(MouseEvent.MOUSE_UP,stoprightDown); //remove the listener for mouse up
    function rotateRight(e:Event):void {
        viewer_mc.nextFrame();
    left_btn.addEventListener(MouseEvent.MOUSE_DOWN, leftDown);
    function leftDown(e:Event){
        stage.addEventListener(MouseEvent.MOUSE_UP,stopleftDown); //listen for mouse up on the stage, in case the finger/mouse moved off of the button accidentally when they release.
        addEventListener(Event.ENTER_FRAME,rotateLeft);//while the mouse is down, run the tick function once every frame as per the project frame rate
    function stopleftDown(e:Event):void {
        removeEventListener(Event.ENTER_FRAME,rotateLeft);  //stop running the tick function every frame now that the mouse is up
        stage.removeEventListener(MouseEvent.MOUSE_UP,stopleftDown); //remove the listener for mouse up
    function rotateLeft(e:Event):void{
              viewer_mc.prevFrame();
    The definition of the rotateLeft function is where the problem lies I think - I've taken out my poor attempts at doing the logic from the previous post. If I were to write it out long-hand the statement I want to write is: 'If you get to frame 1 and function rotateLeft is called go to the end of the movie clip'.
    The reason I have to use the viewer_mc.totalFrames-1 definition in the addFrameScript call is the addFrameScript function is 0 based i.e. if you want to call frame 1 of the movieclip you have to return a value of 0 in the addFrameScript (or such is my understanding of it anyway). As such, the last image in the movie clip will need to be the view obtained at 360 degree rotation, which is of course the same view as at 0 degree rotation. As a consequence, the last frame in the movie clip is superfluous for the user, but necessary for the overall effect to be achieved. And, in addition, to keep up the effect of a 360 degree view when the rotateLeft function is called it needs to skip that last frame to go to the lastFrame-1 (or totalframes-1), or in other words, the view of the image prior to completing the full 360 rotation.
    the variables thisFrame and lastFrame are defined at the very top of the script. Like you said they might need to be defined or called on again elsewhere.

  • I have version 3.6.16 and when I login to my hotmail account, and type the first letter of the email address, a drop down box appears with my hotmail address and I can choose it from that box with a click. How do I get version 4 to do this? Thanks.

    I have version 3.6.16 and when I login to my hotmail account, and type the first letter of the email address, a drop down box appears with my hotmail address and I can choose it from that box with a click.
    How do I get version 4 to do this?
    Thanks.

    The new but not-ready-for-prime-time autocomplete method searches for matches that contain the entered text, not just ones that begin with the string. Your options are:
    1) type in longer strings that narrow the search
    2) use an add-on to search just the beginnings:
    https://support.mozilla.org/en-US/questions/1037469
    3) install an older version of TB:
    http://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/

  • How can I get the phone numbers in contacts to appear with dashes between the first 3 numbers, the next 3 numbers, and the last 4 numbers?  Until very recently it did so.  Contacts on my macbook pro does show up this way.  I do have a mobile me account an

    How can I get the phone numbers in contacts to appear with dashes between the first 3 numbers, the next 3 numbers, and the last 4 numbers?  Until very recently
    it did so.  Contacts on my macbook pro does show up this way.  I do have a mobile me account and in the past syncing was no problem.  What setting has changed?

    The phone number format as well as the date language and format and the time format are controlled by the Region Format setting. Go to Settings > General >International > Region Format.  When you change a region format, you can go back one page (to International) and see an example of the date/time/phone number format that your selected region format will produce.

  • How can I disable the previous button in the first page and the next button in the last page?

    Hi all,
    I have created a new skin for a webhelp by modifying the layout and the buttons. However, I am not able to find a way where in we can
    disable the previous button ini the first page of the webhelp and hte the next page in the last page of the webhelp. If both the next and previous button is visibile in the first and last page, it is sort of misguiding the user.
    I am using Robohelp 9.
    Please advice.
    Thanks,
    Parag

    I think you are mixing Previous and Next in a browse sequence and the Previous and Next that you get in the browser itself.
    In a browse sequence, they are automatically disabled at the start and finish. When in the first topic in the sequence only Next will be enabled, when in the last topic only previous will be enabled.
    Previous and Next in the browser are working on the topics your user has viewed which is not the same thing.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • How can I remove the page number from the first page of the document that is the cover page?

    How can I remove the page number from the first page of the document that is the cover page?

    If you open the Pages panel, (Window>Pages) you will see thumbnails of your master pages and your document pages. In new documents, there is usually a master called A-Master and one called None. If you drag the thumbnail of the None master onto the thumbnail of a document page, it will apply that master to that page. Presumably, you have made your page numbers on A-Master, so this will usually do the trick. If you have elements on A-Master that you need on the first page, but just not the page number, you can duplicate A-Master (which, by default will give you B-Master, but you can change the names if you like) and remove the page number on the duplicate and apply that to the document page.
    It might also be worth noting that you can apply master pages in the fly-out of the Pages panel. Go to the fly-out triangle and go down to Apply Master to Pages…, then select a master to apply and the range of pages (1-8 will give you all 8, 1, 3, 5, 7 will be the odds, 1-3, 4, 6-8 if you want continuous ranges and individual pages).

  • How do I delete an email address from the dropdown that appears after I type the first letter of the recipiants address in the To: bar.

    When I open compose and type the first letter of the recipients address in the To: bar a dropdown appears with a listing of the email addresses I have sent messages to in the past as well as addresses of my contacts list.
    How do I delete an address from this dropdown?

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode

Maybe you are looking for

  • Tax Related BeX Queries in BC

    Hi All, Has anyone worked on queries (from Business Content) that are ralated to Tax, Witholding Tax, VAT etc. Some of the Report Headers are: 1. Generic - Advance Return for Tax on Sales/Purchases 2. Generic - Generic Withholding Tax Reporting 3. Co

  • Acrobat 8.3.1 jams when scanning from HP M1212nf MFP

    Using Acrobat 8.3.1 w/ OS 10.6.8 and scanning from an HP M1212nf MFP leaves Acrobat unable to process scan. Even though Acrobat recognizes the scanner, it jams after scanning, and I need to force quit. As an aside, this scanner is possibly the most c

  • Trailing 0's being stripped

    I have an application that allows folks to enter version numbers and they should be able to enter 1.10 but that 0 is getting stripped. This is a custom tabular application and I am using collections. The database column is a VARCHAR2. How do I preven

  • Hp pavilion dv6 3110

    dear service team i have hp pavilian dv 6 3110 IDT Sound Drivers problem i got less sound please help in this regards THANK

  • No XMP syntax definition? Looking for XMP DTD...

    Hi, I am trying to solve an incompatibility between two software products. One product writes images with an embedded XMP in an way that some other programs (including Photoshop) complain about beeing unable to read all information when opening these