Variable update with new value

Hallo,
How can i a variable (XML Publisher Syntax <?variable:name?>) one new value assign/update.
e.g.
initialize: <?variable:name?>[value]<?end variable?>
[loop]
new allocate:
<?variable:name?>[value]+1<?end variable?> -> doesn't work
[end loop]
I use the XML Publisher syntax because i use before function "instr".
who can me help. please. I'm to despair.
Thanks for help
Holger

As I understand you are looking for the Variable handling similar to X=X+1 , and you want to loop this from say 1 to 15.
- I think you just did not include the counter within the loop
- Also you are trying to loop on $YY, which first of all can not be accessed this way. You will have to use xdoxslt:get_variable($_XDOCTX, 'YY') . Secondly your loop should run against a group of data. It can be a variable like $YY but it should hold such a group of data.
so, assuming that your data is flat and grouped under ROW tag...
<?xdoxslt:set_variable($_XDOCTX, ’YY’, 1)?>
<?for-each:ROW[position()<16]?>HELLO
<?xdoxslt:set_variable($_XDOCTX, 'YY', xdoxslt:get_variable($_XDOCTX, 'YY') +1)?><?xdoxslt:get_variable($_XDOCTX, ’YY’)?>
<?if: (xdoxslt:get_variable($_XDOCTX, ’YY’))=15?>Yes Yes<?end if?>
<?end for-each?>

Similar Messages

  • KONV not getting updated with new condition type value

    Hi,
    I have created a new condition type for a pricing procedure. But table KONV-KAWRT is not getting updated with any value. Can anyone help me this.
    Thanks
    Shweta

    Hi Vasu,
    It was created in the same way then I have assigned calculation formula . For invoice it is comming fine but for the intercompany billing it is not showing any value in Contition tab for this particular condition type. For this when I checked in KNOV table it is showing condition type but the value (KONV_KAWART) is comming out zero and due to this reason it is not showing value in intercompany billing ->condition. Do I need to write code for this?
    Thanks,
    Shweta

  • How to export "Managed by" field of Distribution and Security groups and import with new values? (Exchange 2010, AD 2003)

    My Active Directory environment is 2003 functional level and we have Exchange 2010.
    I am trying to find out the best way to do a mass edit for the "Managed by" values of our security and distribution groups.
    I know we can export the "managed by" field by csvde but I am not sure this is the correct way to do it. Also in the case that there are multiple users assigned to be managing a distribution group it only shows one value. Also powershell from Exchange
    2010 can be used with "get-distribution" but as our AD environment is 2003 is this correct also?
    Finally once the data is exported to csv can it be edited to then reimport and udpate the existing group managed by fields with new values?
    Not really sure that the best way to go about this is.
    Summary - We have 2003 AD with Exchange 2010 and I am trying to export a list of all our Distribution/Security groups showing the group name and managedby values so we can edit and update the
    existing managedby values with new ones. In some cases we have multiple users as the owners.
    Appreciate any advice on how this can be best achieved. Thank you.

    Hi,
    We can use the following command in Exchange 2010 to export "Managed by" field of Distribution and Security groups:
    Get-DistributionGroup | Select-object Name,@{label="ManagedBy";expression={[string]::join(“;”,$_.managedby)}},Primarysmtpaddress | Export-Csv
    C:\export.csv
    After you changed the Managed by field in export.csv and saved it as a new file named import.csv, we can run the following command to set with new value:
    Import-Csv C:\import.csv | Foreach-Object{ Set-DistributionGroup –Identity $_.Name –ManagedBy $_.ManagedBy}
    Hope it works.
    Thanks,
    Winnie Liang
    TechNet Community Support

  • How to export "Managed by" field of Distribution and Security groups and import with new values?

    My Active Directory environment is 2003 functional level and we have Exchange 2010.
    I am trying to find out the best way to do a mass edit for the "Managed by" values of our security and distribution groups.
    I know we can export the "managed by" field by csvde but I am not sure this is the correct way to do it. Also in the case that there are multiple users assigned to be managing a distribution group it only shows one value. Also powershell from Exchange
    2010 can be used with "get-distribution" but as our AD envronment is 2003 is this correct also?
    Finally once the data is exported to csv can it be edited to then reimport and udpate the existing group managed by fields with new values?
    Not really sure that the best way to go about this is.
    Summary - We have 2003 AD with Exchange 2010 and I am trying to export a list of all our Distribution/Security groups showing the group name and managedby values so we can edit and update the
    existing managedby values with new ones.
    Appreciate any advice on how this can be best achieved. Thank you.

    Hi Barkley,
    You can also refer to Official Scripting Guys forum to get a script solution:
    http://social.technet.microsoft.com/Forums/scriptcenter/en-US/home?forum=ITCG&filter=alltypes&sort=lastpostdesc
    Best Regards,
    Amy Wang

  • Why is my address book no longer being automatically updated with new entries?

    why is my MacBook Pro address book no longer being automatically updated with new entries?
    thanks!
    Joe

    thanks for the question!
    i have an iphone that uses addresses/contacts.  i don't use icloud because i was getting doubled calendar entries.
    updating is done "via itunes on this computer"

  • Where to Configure Service Ticket "Reason" & "Subject" field with new value

    Hi Friends - I am working on IC Webclient Service Ticket. I want to Configure the "Reason" field as well as the "Subject" field in Service Ticket with new Values as per our requirement.
    I could not find any Configuration object for the above mentioned customizing in the CRM > SPRO.
    Can you pls guide me where I can configure the same?
    Thanks in advance and warm regards
    Purnendu

    Hi Gert - Thanks a lot for your reply.
    I am using CRM 5.0. I just forgot that Categorization profile can be used for the same.
    I have configured the categorization profile for the same and its working fine.
    One more thing -
    I want to create an Appointment with Customer for problem resolution at the Customer Site. I want to assign Resorces to the Appointment so that the responsible resource is notified and sent to the Customer Site for Visit.
    Can you pls guide me on the same?
    Cheers
    Purnendu
    P.S. - Full reward points awarded.

  • A serious problem with JTable to update with new data.

    I am customizing a JTable. In the table 3 rows and row wise same data presents. After every 30 sec table will be update with new data. But a exception is coming like: ArrayIndexOutofBound 4>=0. Exception is not coming so frequently some time it comes within 1 min or after 1 hour of program running and each time *4>=0* is varies with different number.
    Here is the model i am using and to update table i am calling setTableData( ) with updated vector as a argument.
    public class MyModel extends AbstractTableModel {
              protected Vector m_vector;          
              public MyModel(Vector m_vector) {     this.m_vector = m_vector;     }
              public int getColumnCount() {          
                   return m_vector==null ? 0 : m_vector.size();           
              public int getRowCount() {     return 3;          }
              public String getColumnName(int col) {     return null;     }
              public Object getValueAt(int row, int col) {
                       if (col < 0 || col>=getColumnCount())
                      return null;
                  try{
                  MyData column = (MyData)m_vector.elementAt(col);               
                  switch (row) {
                      case 0: return column.gate;
                      case 1: return column.time;
                      case 2: return column.status;            
                  }}catch(Exception e){
                        System.out.println("Error is here");
                        e.printStackTrace();
                  return null;               
              public Class getColumnClass(int c) {return getValueAt(0, c).getClass();     }
              public boolean isCellEditable(int row, int col) {
                   if (row == 1) { return false; } else { return true; }
              public void setTableData( Vector mData)
                         this.m_vector = new Vector(mData);                    
                         fireTableStructureChanged();
         }Please help me out.

    This is the exception:
    java.lang.ArrayIndexOutOfBoundsException: 4 >= 3
         at java.util.Vector.elementAt(Vector.java:431)
         at javax.swing.table.DefaultTableColumnModel.getColumn(DefaultTableColumnModel.java:277)
         at javax.swing.plaf.basic.BasicTableUI.paintCells(BasicTableUI.java:1047)
         at javax.swing.plaf.basic.BasicTableUI.paint(BasicTableUI.java:974)
         at javax.swing.plaf.ComponentUI.update(ComponentUI.java:142)
         at javax.swing.JComponent.paintComponent(JComponent.java:541)
         at javax.swing.JComponent.paint(JComponent.java:808)
         at javax.swing.JComponent.paintChildren(JComponent.java:647)
         at javax.swing.JComponent.paint(JComponent.java:817)
         at javax.swing.JViewport.paint(JViewport.java:722)
         at javax.swing.JComponent.paintChildren(JComponent.java:647)
         at javax.swing.JComponent.paint(JComponent.java:817)
         at javax.swing.JComponent.paintWithOffscreenBuffer(JComponent.java:4787)
         at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4740)
         at javax.swing.JComponent._paintImmediately(JComponent.java:4685)
         at javax.swing.JComponent.paintImmediately(JComponent.java:4488)
         at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:410)
         at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:117)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)and Column may increase/decrease depending upon data retrieved.

  • Does iTunes Connect Christmas break mean apps won't update with new folios over Christmas?

    I have 2 folios that are due to be released to my app this Christmas - both fall within the 22nd-29th window iTunes have chosen to close down.
    So even though I can publish my folios through DPS over Christmas and pre-plan my app description in iTunes accordingly - before the 22nd - will those published folios not appear in my app?
    Thanks.

    You mean updating a paid folio... don't know if that needs approving, too.
    Maybe someone else can chime in here (I have no exp in that)
    (mobil gesendet)
    Am 16.12.2011 10:05 schrieb "jamie.dunmore" <[email protected]>:
       Re: Does iTunes Connect Christmas break mean apps won't update with
    new folios over Christmas?  created by jamie.dunmore<http://forums.adobe.com/people/jamie.dunmore>in
    Digital Publishing Suite - View the full discussion<http://forums.adobe.com/message/4088490#4088490>

  • IPhone 4 - tried updating with new software and now it's asking me to plug it to iTunes. The problem is that my laptop is dead. Is there anything I can do now? Thank you for help!

    iPhone 4 - tried updating with new software and now it's asking me to plug it to iTunes. The problem is that my laptop is dead. Is there anything I can do now?
    I Don't know if I can turn it of or do I just leave it and take it to service?
    I'd appreciate some advice!

    Same thing happened here ~ tech guy at a local authorized Apple repair store said it had something to do with improper backup from which the restore would be made. Still have a phone that asks to be connected to Itunes but won't do anything else . . . frustrated.

  • Have mac mini with thunderbolt monitor 1yr old, recently updated with new 10.0.2 from apple, now iMovie doesn't seem to support my Sony HDR-XR500 camera. Is there any help on this?

    Have mac mini with thunderbolt monitor 1yr old, recently updated with new 10.0.2 from apple, now iMovie doesn't seem to support my Sony HDR-XR500 camera. Is there any help on this?

    haha, so now i'm thinking. I'm learning the terminal as fast as i can but there are several lines of codes and commands in there that throws up red flags to me that i don't fully understand. It just looks fishy too me. It would be highly appreciated if someone could just check this out just to tell me that i don't need to worry about it. Or point me in the right direction. I just feel un easy about this. ha.

  • HT203216 iPhone will not update with new outlook calendar events after sync

    iPhone 4S will no longer update with new outlook calendar events after sync

    another user had the fix:
    FIXED IT! After a painful and time-consuming couple of months.
    I found the solution on another help forum, and in a nutshell it is this:
    I had set up some Outlook appointments with a reminder set at "0" minutes i.e. to remind me at the time of the event.
    On the iPhone there isn't an option for "0" minutes - instead it says 'at the time of the event' (or something similar)
    When the iphone tried to sync the Outlook items it didn't know what to do, and after several minutes of 'deliberating' (which looked like a very long calendar sync in iTunes) it then just aborted the process without syncing anything on Calendar.
    So I went into calendar list view, and changed any appointment with a reminder set to "0" minutes, and bingo, it all started working again.
    Try it! I hope it works for others too.. (repost of solution provided by Silvermum)

  • MIGO not updating with excise value.

    Hey Guys,
    I am facing with this problem of MIGO not
    updating with excise value.
    When I am creating the MIGO doc, and after
    I give the excise invoice no. the excise
    values are not picking up. Its showing
    zero values.
    The following
    steps are being followed by me.
    ME21N - Create STO from plant to warehouse
    VL04 - Create outbound delivery
    VF01 - Create invoice
    J1IIN - Excise invoice
    MIGO - Goods receipt at warehouse
    Earlier it was working fine, but after
    we upgraded the system with patches and implemented
    Secondary higher education cess the
    problem arose.
    Please advise.
    Appreciate your help.
    Thanks,
    Zak

    Got answer from SAP..dunno what they did but it was rectified.

  • How do I sort out 'Apple ID disabled for security reasons' after I had my old Email address and password erased but still showing ?? now I can't access my apple store Apps updates with new email address and password??

    How do I sort out 'Apple ID disabled for security reasons' after I had my old Email address and password erased but still showing ?? now I can't access my apple store Apps updates with new email address and password??

    You might try contacting App Store Support: http://www.apple.com/support/mac/app-store/

  • Very excited about the new update - Thanks Apple for the keyboard update with new emojis! But why are there no ethnicity options for the families?

    Very excited about the new update - Thanks Apple for the keyboard update with new emojis! But why are there no ethnicity options for the families?

    D.p.middleton the Adobe Application Manager has been available for quite some time.  It not only allows Creative Cloud users to install their applications but also downloads and applies applicable updates.  In addition it is also responsible for the licensing and managing your agreement to the terms and conditions of the EULA.
    2. this could be due to you selecting a trial subscription to the Creative Cloud?  If you go to one of the Adobe Creative products and select Help>Updates it will launch the update portion of the Adobe Application Manager which I believe is the portion you are looking for?
    #3 I believe this was already mostly covered in the answer to #2.
    #4 the Adobe Application Manager also receives periodic updates which affects both perpetual and Creative Cloud subscription users.
    I hope this provides you many of the answers you are looking for?  If not please feel free to respond back with any additional inquiries which you have.  Also if you are experiencing any difficulties with the update process please post this as well.  It may not be necessary to have a full understanding of the inner workings of the Adobe Application Manager to help you resolve your difficulties.

  • I downloaded pages with an old account. How do I update with new account?

    I downloaded pages with an old account. How do I update with new account?

    Which Pages did you download with the old account? Which update are you thinking about?
    For updating you usually have to use the same account.

Maybe you are looking for

  • PDF generated report in Oracle Forms

    Hi folks, I'm new in this forum and I want help on how can I generate a report in PDF format just using Oracle Forms (not Oracle Reports). This report will be assembled using some parameters that the user will fill in a form when the program starts.

  • Helvetica font for (Window) Adobe Creative Suite 6 Master Collection

    A month ago I bought Adobe Creative Suite 6 Master Collection software for Window...... noticed there is no "Helvetica" font in my window program?? How can I add "Helvetica" font into my window software program??? Hope you can help..thanks Steve

  • Clearing GL Accounts filtering on Profit Center

    Hi Experts, i have a query, i want to clear GL accounts by filtering on Profit Center, is it possible? i am not able to find any layout in F-03 where the Profit Center field is available to choose. What setting is required to be done to get the Profi

  • Partitions all messed up

    I just got my first Mac..the MacBook Pro. I've always wanted one, but I needed to run Windows applications. So as soon as BootCamp I made the plunge..and I love it. However, after owning it for about a week, I've already managed to mess it up. I inst

  • Lion; how to print on a shared 10.6 printer

    I'm trying to set up a printer (Brother HL-2030) connected to my MacBook (Snow Leopard). That works. It's shared and I also went into the sharing preferences and checked. On my other MacBook (Lion) I can se the Bonjour printer on the first MacBook an