Is concatenation of numbers is possible in the loop??

Hi All,
We have used the following code for our requirement in the rtf template.Here AMOUNT is a field name.But the following code is erroring out.
<?xdoxslt:set_variable($_XDOCTX, 'A',1)?>
<?xdoxslt:set_variable($_XDOCTX, 'Payout',0)?>
<?xdoxslt:set_variable($_XDOCTX, 'Total',0)?>
For-each:G_1
<?choose:?>
<?when:A < B?>
<?xdoxslt:set_variable($_XDOCTX, 'Payout',AMOUNT || '+')?>
<?xdoxslt:set_variable($_XDOCTX, 'Total',AMOUNT+xdoxslt:get_variable($_XDOCTX,'Total'))?>
<?end when?>
<?otherwise:?>
<?xdoxslt:set_variable($_XDOCTX, 'Payout',AMOUNT || 'or')?>
<?xdoxslt:set_variable($_XDOCTX, 'Total',AMOUNT+ xdoxslt:get_variable($_XDOCTX,'Total'))?> <?end otherwise?><?end choose?>
<?xdoxslt:set_variable($_XDOCTX, 'A', xdoxslt:get_variable($_XDOCTX, 'A') + 1)?>
end G_1
SUM=<?xdoxslt:get_variable($_XDOCTX, 'Payout')?><?xdoxslt:get_variable($_XDOCTX, 'Total')?>
output should be such that
SUM=1000+2000+3000 or 6000.
Please suggest some ideas to implement the above.
Thanks in Advance.

Hi All,
We got the answer and it worked fine for us.
<?xdoxslt:set_variable($_XDOCTX, 'Payout', concat(AMOUNT,'+'))?>
<?xdoxslt:set_variable($_XDOCTX, 'Payout', concat(AMOUNT,'or'))?>
We can use the readymade function concat() for concatenation of anything.

Similar Messages

  • I lost my phone i bought a new iphone 4 is it possible for me to copy my contacts phone numbers from skype to the phone book of iphone4

    i lost my phone i bought a new iphone 4 is it possible for me to copy my contacts phone numbers from skype to the phone book of iphone4

    Using an iPhone without a wireless service plan

  • Does anyone know if its possible to hide the numbers that appears on the Table of content?

    In iBooks Author, I would like to know if its possible to hide the numbers that appears on the Table of contents, does anyone know?. Also I would like to change the yellow color that appers on the mini pics on the image gallery widgets, does anyone know if this is possible?
    Thanks in advance

    I don't believe doing either is possible.
    Michi.

  • HT4623 I still have an iPad 1, and need to update to iOS 7 to use Keynote, Pages and Numbers but I get the message the my system is updated in iOS 5.1.1 and doen's offer me another update!

    I still have an iPad 1, and need to update to iOS 7 to use Keynote, Pages and Numbers but I get the message the my system is updated in iOS 5.1.1 and doent's offer me another update! How can I update it? Or I can't?

    ayrosa wrote:
    I still have an iPad 1, and need to update to iOS 7 
    Sorry... This is not possible. The iPad 1 can Only go as far as iOS 5.1.1

  • How do I close a numbers document without closing the entire app?

    Can anyone tell me how I can close a numbers document without closing the entire app? i.e. go back to the folders display page - is this even possible?

    It is not a bug, but a new feature.<br />
    Some menu entries in the main menu bar are hidden if you use the mouse and only appear if you use the keyboard to open the menu (Bug 626825).
    You can see the difference if you use Alt+F to open the File menu or other menus like the Edit menu (Alt+E) and Bookmarks menu (Alt+B) and compare that to what you see if you use the mouse to open the menu after you have made the menu bar visible by tapping Alt or by pressing F10.
    *[https://bugzilla.mozilla.org/show_bug.cgi?id=626825 bug 626825] - Hide redundant menu commands unless the user invokes the menu using the keyboard (make use of the openedWithKey attribute)
    ''(please do not comment in bug reports; you can vote instead)''
    See also:
    * [[/questions/799856#answer-155765]]

  • Attaching a file to a numbers document - possible?

    I am creating a list of serial numbers for different software I have purchased online. Two of the programs I bought online require that you open a file that contains your serial number and when you open it, the serial number automatically gets applied to the program. I assume I could just open that file in text edit and copy down the serial number but it would be easier if there was a way I could "attach" a file to my numbers document. The files are very small. Is this possible?
    Thanks you in advance

    You can't attach a file to a Numbers document.
    With the original structure, if you add such a file in the document's package the app will do a logical cleaning and remove it.
    The new structure is simply the old one packed with a specific tool so, we can't compact a package by ourself to rebuild a flatfile.
    So, happily, there is no way to use iWork documents as trash for this or that garbage file.
    Yvan KOENIG (VALLAURIS, France) lundi 28 février 2011 09:26:18

  • HT201365 What do I do if my wifi only iPad mini is offline? Is there any way that I can locate it while being offline or turn it online remotely or possibly use the built in GPS?.

    What do I do if my wifi only iPad mini is offline? Is there any way that I can locate it while being offline or turn it online remotely or possibly use the built in GPS?.

    Answer would be no unless application provided such feature. Numbers does not as far as I know.
    Note that even if you have complete list of formulae used in a table, identifying formulae referencing any given cell is not simple.
    E.g., cell T20 is referenced not only in
    =T20+1
    but also in
    =SUM(T)
    =SUM(20:20)
    =SUM(S19:U22)
    =OFFSET(S1,19,1,1,1)
    =INDIRECT("T"&(10*2))
    In order to identify such formula, we have to actually evaluate it to see if it references the given cell. Especially such formula as OFFSET() and INDIRECT() may not be found by static parser because their parameters can be dynamic.
    Sorry to be the bearer of bad tidings.
    H

  • I am suddenly unable to receive calls on my iPhone 4S.  Is it possible that the age of the phone will affect its ability to receive calls? HELP!

    I am suddenly unable to receive calls on my iPhone 4S. 
    I have spent 2 hour-long sessions with technical support and although they were very nice, it is still not fixed.
    When I try to call the phone from a land line, it doesn't ring AND it doesn't recognize that a call is coming in (no missed call) BUT if I leave a message, it records it.
    Is it possible that the age of the phone will affect its ability to receive calls?
    HELP!

        MarketingMary,
    I am truly sorry to hear that your are unable to receive calls on your device. Thank you tbo27 for providing great troubleshooting steps. Making sure call forwarding is not active by dial *73 is great. Have you already reset network settings also? http://vz.to/RTz70g Are you able to make calls fine? Make sure Do not Disturb is not active. Settings>Do Not Disturb
    LindseyT_VZW
    Follow us on Twitter @VZWSupport

  • Numbers loose connection with the server (osx server 10.6.8)

    Hello, I use numbers application on an iMac under 10.6.8, all updates done. The files are written to a intel xserve under 10.6.8. Here's my problem: When i use a file on the server, from time to time, numbers tell me that the connection to the server was lost and I can not save the changes to the server. I only have one solution: to save locally on the iMac and then copy it to the server. It is very frustrating and annoying. Do you have any idea to solve this problem, thank you all and see you soon,
    Damien / Geneva

    Damien,
    Have you asked in the Networking Category of the Snow Leopard Discussions?
    Jerry

  • HT1399 Why cant I create a playlist for my music/song videos? Continuous play is also not possible in the video app on the phone!!!! previously, prior to IOS 6, it was possible to have both music videos & songs mixed in the same playlist in the music app

    Why cant I create a playlist for my music/song videos? Continuous play is also not possible in the video app on the phone!!!! previously, prior to IOS 6, it was possible to have both music videos & songs mixed in the same playlist in the music app

    I am back with an update. I turned off Match on both the ipad and the iphone 5. By doing so I was able to sync my Iphone and ipad to itunes and store the music on my devices rather than the slow streaming.  So far this has fixed my problems with the iphone I have all my music, playlist, most of the album art and so on.  But the ipad is a different story.  I have the music and artist but not one playlist  I am sure Apple will have an upgrade soon that will address these issues they are usually very good about this. 
    Now have any of you experienced another problem that has existed as long as I have used faces in Aperture.
    I have over 200 faces and they are organized a-z problem is I have this going on A-Z folowed by a few that start over A-Z followed by another few A-Z and again a 4th time A-Z.  Imagine how difficult it is while I am showing someone the great features of my iphone, ipad and imac.  Which I do talk highly of all the time.  But how do I explain that even though their name starts with a or b or what ever they are not important enough to me to be in the first list of A-Z or even the 2nd or 3rd list of A-Z someohow they are in the 4th section of the list!!!!
    I have managed to get the Imac to fix this but for some reason the IOS devices do not.   Any ideas?
    Thanks Al

  • Problem is with my iPhoto on my Macbook air.  I am trying to move my library from my airbag onto my passport drive.  I did it and deleted it from the airbag but it simply re appeared possibly from the cloud. Not sure what to do next.

    The problem is with my iPhoto on my Macbook air.  I am trying to move my library from my airbook onto my passport drive.  I did it and deleted it from the airbook but it simply re appeared possibly from the cloud. Not sure what to do next. Sorry I am not a techie.

    Sorry - we can not see you
    what do you have? Version of iPhoto? Of the OS? How is the passport connected to your Mac? What format is the passport (for the iphoto library it must be Mac OS extended (journaled)  )?  The iPhoto library is not and can not be on the cloud (maybe later with the Photos Application)
    LN

  • Data Concatenation - Looking to have result in the Group header

    Dear all,
    Few months ago, I try to concatenate cells under a Group,
    I succeed using the formula gave by Raghavendra 
    Initialize:
    whileprintingrecords;
    stringvar i:="";
    Place the above formula in group header and suppress group header section.
    evaluate:
    whileprintingrecords;
    stringvar i;
    i:=i", "name field;
    Place the above formula in detail section and suppress the details section.
    display:
    whileprintingrecords;
    stringvar i;
    country field" - "i;
    Place the above formula in group footer and right click go to format field and check the option "can grow" in common tab.
    My today issues is that I'm still looking for concatenation but I need it in the Header of the Group, not in the footer
    As far as I understood
      - Crystal Report is reading line by Line, so I can't retrieve the value in the Header before the value are calculate.
      - Moreover I've issue on initialize the value
    I thougth an GlobalVar Array can work, but I can't find the way to do it
    My request is, I've have this DataSet
    Paris | Louvre
    Paris | Eiffel
    Sydney | Opéra
    I'm looking Group on City to have in the Header, the value concatened
    Paris | Louvre, Eiffel
    Sydney | Opéra
    Thanks in advance
    Edited by: Alexandre VANNIER on Dec 2, 2008 2:09 PM

    if i have manual running totals that need to display in the header i do the following
    i create the group - ie- jobid
    i either insert a sub group below or create a 2nd group with the same field
    then i create a 3rd group with the same field
    i place my reset in the 1st group
    calc in 2nd
    display in 3rd

  • How To use the going back function in Safari (multitouch)? Going back on Websites ist only possible using the arrow Key on the left corner but not by using the sweep function like it is possible in macOS.

    How can i use the going back function in Safari like it is possible in MacOS? On the Mac i can chance back to previous Websites by sweeping with two Fingers. Unfortuntely is this Not possible on the ipad. I tried with one and to fingers but it doesn't work.
    The multitouch function is switched on but still Not working. What is wrong? Thx for help.

    To go back a web page in Safari touch the screen with one finger at the extreme left and swipe to the right.
    To go forward a web page in Safari touch the screen with one finger at the extreme right and swipe to the left.

  • HT202297 I just bought an ipad3 and I was wondering if anyone knows how to have my reminders displayed in my calendar? If it not possible on the iPad , is it possible on the iphone4s? if not, than does anyone know of any apps that make it convenient to do

    I just bought an ipad3 and I was wondering if anyone knows how to have my reminders displayed in my calendar? If it not possible on the iPad , is it possible on the iphone4s? if not, than does anyone know of any apps that make it convenient to do so?

    That's only for the iPhone 5. On the 4 and 4S, they can repair the back glass in store for $30. They will not replace the display on a 4 or 4S. They must replace the entire phone. Replacing the display on them requires disassembling the entire phone, which they will not do in store.

  • In the old Numbers I could change the colour of a checkbox using rules - I cannot seem to do this in new Numbers 2013?

    In the old Numbers I could change the colour of a checkbox using rules - I cannot seem to do this in new Numbers 2013?
    I have an old Numbers sheet where I could make the checkbox Cell go Green when ticking "Equal to" TRUE. When I open the old sheet it into new iWork it functions correctly. But I am unable to copy or paste the rule - nor recreate it.
    Any suggestions on how to create a Conditional checkbox cell that goes green once ticked would be most apprecicated.
    Thanks - Steve

    Numbers 3.0 is missing the logic-based "equal to TRUE" or "equal to FALSE" conditions for conditional formatting.  The replacement is text based: "text is TRUE" or "text is FALSE".  You can apply these rules to cells formatted as checkboxes.

Maybe you are looking for