Using a variable to change a variable

Hey Everyone,
Here's the situation. I'm creating a board game which has 3
variables, p1Move, p2Move and activePlayer.
p1Move and p2Move store the p1 and p2 location on a game
board. activePlayer stored who's turn it is at the moment.
I am loading a value in from a text file which changes the
value of move. This all works fine when i designate a player
directly:
p1Move = [insert variable name],
but i want to designate dynamically based on who's turn it
is.
Something like this:
_root["p"+activePlayer+"Move"] += Number(this.varAmount);
so that flash changes the value of p1Move (or p2Move
depending on who's turn it is) to varAmount. varAmount is the
variable being read from the textfile.
Hopefully that all makes sense. Basically i want flash to
change the variable associated with the active player only.
Any help would be greatly appreciated, LB

well as the docs say above, if you 're-declare' those
variables that it will 'replace' the _global instance, so i still
don't think i'd go that route.
now above you say the the 'activePlayer' var works 'some' of
the time - but that the var is sent from a text file. I think that
you might try to load the variable from the file under a different
name, and the declare the named var in the root, for instance in
the text file use something like:
playerActive=1;
then in the root timeline where you load use something like:
loadVariables('file.txt');
activePlayer = playerActive;
however it's likely that this wont be consistent either
because the file has to 'load' before the variable is instantiated
(available) so I'd suggest using the LoadVars class to monitor the
load and respond when it becomes available. something like:
var lv = new LoadVars();
lv.onLoad = function() {
activePlayer = this.playerActive;
lv.load('file.txt');

Similar Messages

  • Use ChangeWatcher to monitor change of variables

    I am trying to find an easy way to monitor the change of
    variables. Is ChangeWatch a good way to do it? I found it is used
    with binding a lot and quite complicated. Has anyone used it to
    monitor a change to variables?

    Now I have a bit of a problem. While this solution works perfect with a variable, it has an error when using a variable from ModelLocator as a class.
    BindingUtils.bindSetter(change_bindingHandler, this, "ModelLocator.getInstance().varName");
    The error is: "Property ModelLocator.getInstance().varNamenot found on MainScreen and there is no default value."
    // MainScreen.mxml code:
    <view:MainScreenClass
        xmlns:model="com.myname.model.*"
        xmlns:view="com.myname.view.*"
        xmlns:mx="http://www.adobe.com/2006/mxml"
        width="100%" height="100%" horizontalAlign="center"
    >
    </view:MainScreenClass >
    // MainScreenClass.as:
    package org.nfcu.view
        public class MainScreenClass extends VBox {
            public function MainScreenClass() {
                super();
            public function setVariablesWatcher():void {
                BindingUtils.bindSetter(change_bindingHandler, this, "ModelLocator.getInstance().varName");

  • Using a Variable to change the content of Caption Text?

    Can someone give me some direction on how I can do something like this.
    I have one caption, I want to change it's text upon a button click.
    So I have 3 buttons and 3 sets of  text, and one caption.
    Thanks in advance!

    Hi there
    You might achieve it in a few different ways.
    Multiple captions and use Hide / Show actions to hide one and show another
    Create a variable and use that in the caption. Then configure the action to change the variable value
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • Changed the variable from used in condition to changed gives error

    Hi,
         How to decide on which fields to be used in charecteristcs and which in used in condition. ?
    I have a code in fox which works for some tets data and fails for ceration other test data. wheni changed one field from used in condition to changed field the code is working. however now when i transport the same to quality it gives the error as   :
    " Variable Material Must Have a Type of a Field to be Changed.
    Kindly Help on this. From where should i changed the type of material ? currently i have just changed the tick of the check box from  " used in condition "  to " changed "
    Thanks And Regards,
    Vijay

    Hi Vijay,
    Please replace the code with the following one.. I think it will work now.. Apparently there is no problem with field to change option. However, please note that you are checking the help option (below fox editor) while providing the sequence for material and Plant. It might happen that system is looking for plant and material option and you are providing as material and plant option.
    Please check the code below:
    DATA CALMONTH TYPE 0FISCPER.
    DATA LO_CURR TYPE 0LOC_CURRCY.
    DATA LO_0CALQUAT TYPE 0CALQUARTER.
    DATA MATERIAL TYPE GPUMATL.
    DATA VENDOR TYPE 0VENDOR.
    DATA LO_VENDOR TYPE 0VENDOR.
    DATA PLANT TYPE GPUPLANT.
    DATA L_SPLIT TYPE F.
    DATA L_VOL TYPE F.
    DATA TOT_VOL TYPE F.
    DATA L_VOLUME TYPE F.
    DATA L_FISCQUAT TYPE GPUFSCQRT.
    BREAK-POINT.
    TOT_VOL = 0.
    *CALCULATE TOTAL VOLUME
    FOREACH MATERIAL, PLANT,VENDOR, LO_CURR,LO_0CALQUAT,L_FISCQUAT .
    L_VOL = {Z9APSHIP,LO_0CALQUAT,LO_CURR,VENDOR,L_FISCQUAT ,MATERIAL,PLANT}.
    TOT_VOL = TOT_VOL + L_VOL .
    *CALCULATE SPLIT % BASED ON TOTAL VOLUME
    L_SPLIT = {GPU_VSPER,LO_0CALQUAT,LO_CURR,VENDOR,L_FISCQUAT ,MATERIAL,PLANT}.
    L_VOLUME = PERP(TOT_VOL,L_SPLIT).
    {Z9APSHIP,LO_0CALQUAT,LO_CURR,VENDOR,L_FISCQUAT ,MATERIAL,PLANT} = L_VOLUME .
    ENDFOR.

  • Change public variables that are used in another class to private variables

    Hi
    I have public variables in one class and I am also using them in another class the only thing is all my variables are supposed to be private. When I change then to private then I cannot use them in the other class. Please someone help me.
    Thanks
    D

    First way - make variables protected an you can access them from any class within package or from any class that extends class with variables.
    Second - make variables private and create public get/set methods for that variables for accessing they from any other class/package.(That's preferable way).
    I have public variables in one class and I am also
    using them in another class the only thing is all my
    variables are supposed to be private. When I change
    then to private then I cannot use them in the other
    class. Please someone help me.

  • How to change the variable value in fox formula?

    Hi All,
        Please help me achieve this scenario,
             in the variable selection screen , i wil give some i/p like, calyear(0calyear) = 2008.
          In planing function using FOX formula, i must be able change the variable value to 2009.
      Will it be possible to achieve this, can we change a variable value using FOX formula, if possible
    please let me knw how to achieve this.
    Thanks n Regards,
    Priya.

    Hi Priyadarshini,
    i dont know what is your requirement exactly.If you can give a better explanation of ur requirement we can help you. But to answer your question yes we can get new values for the variable in the planning function.
    for this you need to couple the planning function together with the planning filter in a planning sequence. This planning filter should have the variable that you wanted to change. In the WAD when you want to call this planning sequence there is an option to call variable screen. If you enable this, it will pop up the variable screen to get this value again.
    Guess this was helpful.
    Regards.
    Shafi.

  • Changing a variables length for text input in Captivate 6

    I am using eLearning CS6 (non-subscription I believe, but no one at my office can confirm) and use a machine where all software is deployed via push from IT. The ability to check for updates has been removed from me.
    I need to be able to have users enter data into the course and have it both be forwarded on to our database AND appear in later segments of the course.
    I recall being able to update the TEB variable length in previous versions but can not find the option anywhere in CS6. or perhaps I'm imaging it.
    I am running version 6.0.1.240 and there is no Format option in my TEB properties. I do not see alignment options, and instead see Characters as a menu above the Shadow & Reflection option.
    I do know where to set the value in a text caption box. However, I seem to be limited to entering a single variable in the caption field in order for this to be option. However, there are times where we'd rather have multiple variables strung together on a single line, or a word or two of static text appearing before or after the variable.
    If I want to string the user entered data from multiple variables into a single caption box there appears to be no way to change the variable's character length from 15 to a higher value.
    Does anyone know of another way to work around this other than through the use of multiple caption boxes?
    I've been driving myself a bit batty trying to think of a way around the 1 caption 1 variable limit...
    Thanks.
    Note: Please don't advise me to upgrade. I've already been told the office will not pay for an update to the software so quickly on the heels of our upgrade from CS 5.5 to CS6 (happened within a 6 month span).

    15 characters is the default when you insert the variable into a text caption.  But you can set this to anything from 1 to about 250...as long as you use the Insert Variable icon in the Properties tab > Format accordion to insert the variable.  Look for the field in the dialog that allows you to specify the variable's display length.

  • Allow caller to permanantly change a variable in a Unity Express AA script

    Is there a way to allow a caller to change a variable permanently so that when they hang up it's stored for all subsequent callers?  Using the "set" operator within the CUE Editor I can allow a caller to change a variable but the change is only for that caller's session, so it's not a persistent change.
    You might be wondering why I would want this.  We have a customer that has an auto-attendant that should play one of about 10 professionally recorded greetings during different times depending on a list of scenarios.  The changes cannot be scheduled or predicted, they just need to be able to change them on-demand.  We have given the customer access to the CUE GUI so that they can change the parameter for the greeting file and that works great while they are in the office or at home.  But if they are out on the road they want to be able to call in to make the change.  So I tested using a hidden menu in their CUE script and I can successfully change the variables based on digits dialed, but the problem is the changes don't stick.  So as soon as they hangup the parameter remains unchanged.
    Any ideas?
    Another way I could accomplish this would be if there was a way that they could remotely change a call forward all setting for a DN through a TUI.   Then I could make it work based on the referring DN coming into the script, but from what I've researched, it's not possible to alter CFA from offsite with feature access codes.  You have to be using a phone with the DN assigned to it for FACs to work.
    Thanks in advance!

    Hi,
    Instead of using 'set', can you try using 'Set Application Parameter' to achieve this.
    Please follow below link for sample script details and more information on 'Set Application Parameter'.
    http://www.cisco.com/en/US/docs/voice_ip_comm/unity_exp/rel7_0/administrator/script/stpref.html#wp1375410
    Please let us know if that helped.
    Thanks,
    Bhavya

  • Changing a variable in an external swf

    Hello!
    I am working in Flash cs3 with actionscript 3.0.
    I want to create a swf that will act as my client's control
    panel. What i'm looking for is something with a few textboxes or
    whatever that is able to change those variables in another swf
    permanently.
    Is this possible?
    if so, can you point me to something that will help me out?
    Thanks!
    John iv

    Ok I figured out that to access it I have to use: _level2._root.LOCAL.
    Now my question is if there is a better way to watch a variable than running a loop.
    Also I was wondering if it's possible to listen for a function call in the external swf.

  • How do I change the variable across different methods

       A tic-tac-toe board.
    public class TicTacToe
       private String[][] board;
       private static int SIZE = 3;
          Constructs an empty board.
       public TicTacToe()
          board = new String[SIZE][SIZE];
          // Fill with spaces
          for (int i = 0; i < SIZE; i++)
             for (int j = 0; j < SIZE; j++)
                board[i][j] = " ";
          Sets a field in the board. The field must be unoccupied.
          @param i the row index
          @param j the column index
          @param player the player ("x" or "o")
       public void set(int i, int j, String player)
          if (board[i][j].equals(" "))
             board[i][j] = player;
          Creates a string representation of the board, such as
          |x  o|
          |  x |
          |   o|
          @return the string representation
       public String toString()
          String r = "";
          for (int i = 0; i < SIZE; i++)
             r = r + "|";
             for (int j = 0; j < SIZE; j++)        
                r = r + board[i][j];
             r = r + "|\n";
          return r;
    //**my TicTacToeTester
    import java.util.Scanner;
       This program tests the TicTacToe class by prompting the
       user to set positions on the board and printing out the
       result.
    public class TicTacToeTester
       public static void main(String[] args)
          Scanner in = new Scanner(System.in);
          String player = "x";
          TicTacToe game = new TicTacToe();
          boolean done = false;
          while (!done)
             System.out.print(game.toString());
             System.out.print(
                   "Row for " + player + " (-1 to exit): ");
             int row = in.nextInt();
             if (row < 0) done = true;
             else
                System.out.print("Column for " + player + ": ");
                int column = in.nextInt();
                game.set(row, column, player);
                if (player.equals("x"))
                   player = "o";
                else
                   player = "x";   
    }I had a post earlier but couldn't find it, but how do I use the user input to change the variable SIZE in TicTacToe() and toString(), this is for a class project, don't really know the language yet, I know the code that does this has to be in my main method which is in my TicTacToeTester class, I know this is probably pretty easy if you can help me with the code it would be appreicated, somebody explained it to me in words but I don't really know the language yet so a few lines of code would help me more then explaining it thanks.

    Hi,
    try it that way:
    //**my TicTacToeTester
    import java.util.Scanner;
       This program tests the TicTacToe class by prompting the
       user to set positions on the board and printing out the
       result.
    public class TicTacToeTester
       public static void main(String[] args)
          Scanner in = new Scanner(System.in);
          System.out.print("Number of cols, rows: ");
          TicTacToe game = new TicTacToe(in.nextInt());
          String player = "x";
          boolean done = false;
          while (!done)
             System.out.print(game.toString());
             System.out.print(
                   "Row for " + player + " (-1 to exit): ");
             int row = in.nextInt();
             if (row < 0) done = true;
             else
                System.out.print("Column for " + player + ": ");
                int column = in.nextInt();
                game.set(row, column, player);
                if (player.equals("x"))
                   player = "o";
                else
                   player = "x";   
       A tic-tac-toe board.
    public class TicTacToe
       private String[][] board;
       private int size;
          Constructs an empty board.
       public TicTacToe(int newSize)
          this.size = newSize;
          board = new String[size][size];
          // Fill with spaces
          for (int i = 0; i < size; i++)
             for (int j = 0; j < size; j++)
                board[i][j] = " ";
          Sets a field in the board. The field must be unoccupied.
          @param i the row index
          @param j the column index
          @param player the player ("x" or "o")
       public void set(int i, int j, String player)
          if (board[i][j].equals(" "))
             board[i][j] = player;
          Creates a string representation of the board, such as
          |x  o|
          |  x |
          |   o|
          @return the string representation
       public String toString()
          String r = "";
          for (int i = 0; i < size; i++)
             r = r + "|";
             for (int j = 0; j < size; j++)        
                r = r + board[i][j];
             r = r + "|\n";
          return r;
    }L.P.

  • Can't change string variable values in Flash CS4 Debugger

    I'm using the Flash CS4 debugger, and while I can change numeric variable values in the Variables panel, I can't change string variable values. The only characters the fields accept are the numbers 1-9 and the characters "d" and "j".
    I can  paste strings  into the value fields, but that's a bit of a pain. I've tried this on a couple of different Flash CS4 installations and get the same results.
    Does anyone know if it's possible to change string values in the Variables panel of the Flash CS4 Debugger?

    See:
    http://forum.java.sun.com/thread.jspa?threadID=591012&tstart=15

  • Changing a variable in adapter class

    Hi,
    I've deployed hello world application and I see that there was a variable like "message". And this was defined in EPN assembly file as instance-propery.
        <wlevs:adapter id="helloworldAdapter" class="com.bea.wlevs.adapter.example.helloworld.HelloWorldAdapter" >
                <wlevs:instance-property name="message" value="HelloWorld - the current time is:"/>
        </wlevs:adapter>HelloWorld application works now.
    I want to change value of message variable from out of application. I could this wishes via wlevs.Admin but I am not:
    java -jar wlevsadmin.jar -url service:jmx:msarmi://localhost:9002/jndi/jmxconnector -username wlevs -password xxx GET -pretty -mbean com.bea.wlevs:Name=helloworldAdapter,Type=Adapter,Application=fuat_deneme
    MBeanName: "com.bea.wlevs:Name=helloworldAdapter,Type=Adapter,Application=fuat_deneme"
         InstanceProperties:
         message = HelloWorld - the current time is:
         Name: helloworldAdapter
         NotificationInfo: [Ljavax.management.MBeanNotificationInfo;@2b20bf2c
         ObjectName: com.bea.wlevs:Name=helloworldAdapter,Type=Adapter,Application=fuat_deneme
         PlaybackConfiguration:
         PlayingBack: false
         Provider:
         RecordConfiguration:
         RecordPlayback: com.bea.wlevs:Name=helloworldAdapter,Type=RecordPlayback,Application=fuat_deneme
         Recording: false
         StageClassName: com.bea.wlevs.adapter.example.helloworld.HelloWorldAdapter
         Type: AdapterOK. When I want to change :
    java -jar wlevsadmin.jar -url service:jmx:msarmi://localhost:9002/jndi/jmxconnector -username wlevs -password xxx SET -mbean com.bea.wlevs:Name=helloworldAdapter,Type=Adapter,Application=fuat_deneme -property message "aaa"
    Property Name and value not valid for the MBean. Value aaa for parameter[message].java.lang.IllegalArgumentException: Unable to find the attribute: message in the attribute list of the class: null
    Description:
    Sets property values for Administration MBeans or Local Configuration MBeans. This command cannot be used for Runtime MBeans.
    Usage:
    java wlevs.Admin
          [-url | -listenAddress <host-name> -listenPort <port>]
         -username <username> -password <password>
         SET {-type <mbeanType>|-mbean <objectName>} [-property <property> [<value>]]...
    Where:
    -type = Sets the properties for all MBeans of the specified type.
    -mbean = Fully qualified object name of an MBean.
    -property = The name of the property to be set.
    <value> = The value to be set.
    java wlevs.Admin -url service:jmx:msarmi://localhost:9002/jndi/jmxconnector -username wlevs -password wlevs SET -type Server -property StdoutSeverityLevel 64
    java wlevs.Admin -url service:jmx:msarmi://localhost:9002/jndi/jmxconnector -username wlevs -password wlevs SET -mbean mydomain:Location=oamserver,Name=myserver,Type=ServerConfig -property StdoutSeverityLevel 64How can I change a variable of an adapter class in runtime?

    I did your suggestion but I am getting ClassNotFound error. However I already specified that as " com.bea.wlevs.management.configuration" in MANIFEST. Also, I can import "com.bea.wlevs.management.configuration.spi.ConfigurationMBeanFactory" class in any our class.
    java.lang.IllegalArgumentException: Cannot find class [com.bea.wlevs.management.configuration.spi.ConfigurationMBeanFactory]
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:480)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
         at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
         at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
         at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
         at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
         at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
         at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:423)
         at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)
         at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:69)
         at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:355)
         at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
         at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)
         at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:139)
         at org.springframework.scheduling.commonj.DelegatingWork.run(DelegatingWork.java:62)
         at weblogic.work.commonj.CommonjWorkManagerImpl$WorkWithListener.run(CommonjWorkManagerImpl.java:196)
         at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused By: org.springframework.beans.TypeMismatchException: Failed to convert property value of type [java.lang.String] to required type [java.lang.Class[]] for property 'interfaces'; nested exception is java.lang.IllegalArgumentException: Cannot find class [com.bea.wlevs.management.configuration.spi.ConfigurationMBeanFactory]
         at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:391)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.convertForProperty(AbstractAutowireCapableBeanFactory.java:1289)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1250)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
         at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
         at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
         at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
         at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
         at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
         at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:423)
         at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)
         at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:69)
         at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:355)
         at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
         at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)
         at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:139)
         at org.springframework.scheduling.commonj.DelegatingWork.run(DelegatingWork.java:62)
         at weblogic.work.commonj.CommonjWorkManagerImpl$WorkWithListener.run(CommonjWorkManagerImpl.java:196)
         at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused By: java.lang.IllegalArgumentException: Cannot find class [com.bea.wlevs.management.configuration.spi.ConfigurationMBeanFactory]
         at org.springframework.util.ClassUtils.resolveClassName(ClassUtils.java:233)
         at org.springframework.beans.propertyeditors.ClassArrayEditor.setAsText(ClassArrayEditor.java:66)
         at org.springframework.beans.TypeConverterDelegate.doConvertTextValue(TypeConverterDelegate.java:382)
         at org.springframework.beans.TypeConverterDelegate.doConvertValue(TypeConverterDelegate.java:358)
         at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:173)
         at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:138)
         at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:386)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.convertForProperty(AbstractAutowireCapableBeanFactory.java:1289)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1250)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
         at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
         at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
         at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
         at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
         at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
         at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:423)
         at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
         at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:69)
         at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:355)
         at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
         at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)
         at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:136)
         at org.springframework.scheduling.commonj.DelegatingWork.run(DelegatingWork.java:61)
         at weblogic.work.commonj.CommonjWorkManagerImpl$WorkWithListener.run(CommonjWorkManagerImpl.java:196)
         at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused By: java.lang.ClassNotFoundException: com.bea.wlevs.management.configuration.spi.ConfigurationMBeanFactory not found from bundle [AfterJMS_2]
         at org.springframework.osgi.util.BundleDelegatingClassLoader.findClass(BundleDelegatingClassLoader.java:103)
         at org.springframework.osgi.util.BundleDelegatingClassLoader.loadClass(BundleDelegatingClassLoader.java:156)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
         at org.springframework.util.ClassUtils.forName(ClassUtils.java:211)
         at org.springframework.util.ClassUtils.resolveClassName(ClassUtils.java:230)
         at org.springframework.beans.propertyeditors.ClassArrayEditor.setAsText(ClassArrayEditor.java:66)
         at org.springframework.beans.TypeConverterDelegate.doConvertTextValue(TypeConverterDelegate.java:382)
         at org.springframework.beans.TypeConverterDelegate.doConvertValue(TypeConverterDelegate.java:358)
         at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:173)
         at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:138)
         at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:386)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.convertForProperty(AbstractAutowireCapableBeanFactory.java:1289)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1250)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1011)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
         at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
         at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
         at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
         at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
         at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
         at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:423)
         at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)
         at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:69)
         at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:355)
         at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
         at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)
         at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:139)
         at org.springframework.scheduling.commonj.DelegatingWork.run(DelegatingWork.java:62)
         at weblogic.work.commonj.CommonjWorkManagerImpl$WorkWithListener.run(CommonjWorkManagerImpl.java:196)
         at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused By: java.lang.ClassNotFoundException: com.bea.wlevs.management.configuration.spi.ConfigurationMBeanFactory
         at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:494)
         at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)
         at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:398)
         at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:123)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
         at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:326)
         at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:231)
         at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1193)
         at org.springframework.osgi.util.BundleDelegatingClassLoader.findClass(BundleDelegatingClassLoader.java:99)
         at org.springframework.osgi.util.BundleDelegatingClassLoader.loadClass(BundleDelegatingClassLoader.java:156)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
         at org.springframework.util.ClassUtils.forName(ClassUtils.java:211)
         at org.springframework.util.ClassUtils.resolveClassName(ClassUtils.java:230)
         at org.springframework.beans.propertyeditors.ClassArrayEditor.setAsText(ClassArrayEditor.java:66)
         at org.springframework.beans.TypeConverterDelegate.doConvertTextValue(TypeConverterDelegate.java:382)
         at org.springframework.beans.TypeConverterDelegate.doConvertValue(TypeConverterDelegate.java:358)
         at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:173)
         at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:138)
         at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:386)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.convertForProperty(AbstractAutowireCapableBeanFactory.java:1289)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1250)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1011)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
         at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
         at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
         at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
         at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
         at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
         at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:423)
         at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)
         at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:69)
         at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:355)
         at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
         at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)
         at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:139)
         at org.springframework.scheduling.commonj.DelegatingWork.run(DelegatingWork.java:62)
         at weblogic.work.commonj.CommonjWorkManagerImpl$WorkWithListener.run(CommonjWorkManagerImpl.java:196)
         at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)

  • Variable in ''Name of Variable(Input Only Using F4).' for variant attribute

    Hi All,
    I Have a small problem with saving variant.
    I am trying to save the Variant.In the varaint Attributes we have a field 'Name of Variable(Input Only Using F4).
    I  have created the PID 'XUS' in SU3.But i am not able to to view the variable in ''Name of Variable(Input Only Using F4).'.
    Anybody please let me know how to make it.
    Thanks,

    Please follow the below steps to restrict the user to access 2 company codes,
    1)Mark the IO(Company code) Authorization relavent and activate it.In the IO Business Explorer tab check the Authorization relavent check box.
    2)Go to T-code RSECADMIN -Under Maintainance -Enter the name of Authorization Object an click on create Authorization.Insert the IO and also SAP recomended Objects 1.0TCAACTVT, 2.0TCAIPROV and 3.0TCAVALID.
    Maintain the values for these objects.Select the company code and click on details.
    3)T-code RSU01-Enter the name of the user to be assigned with the authorization object and click the change button.The select the relevant authorization object and save.
    4)Create Authorisation Variable in Query Designer Create an Authorization Variable - Variable with Processing by Authorisation in Query Designer as Below for Sales Organisation
    Note : Also include all Authorisation Relevant Objects which are used in that infoprovider in addition to the above additional 3 objects otherwise you may get "No Authorisation" error when you execute the query.
    Note : 0BI_ALL is the authorization object to access all the info objects which are   authorization relevant.
    Reagrds,
    Ramitha

  • How can I detect if a global bolean variable has changed

    I have a boolean global variable that change its value from time to time. At hte beginning of my program I take the actual time, but everytime this value change I have to reset this previous value and take the actual one. I've tried to do this with the event structure but it doesn't work because this is a global variable and not a control in the panel. Some idea to solve this problem? Thanks in advance,
    Angel

    It's mainly because you are reading value change events for the indicator, not the control. Value change events are only fired for changes given by a user. The indicator however is not updated by the GUI, but by programmatic input from the control. By replacing the reference with a reference to the control it will work. Or you can write the value to the indicator by using a Value (Signaling) property, that will trigger a change event for the indicator.
    Note: You should not register the event inside the loop, do that only once - outside the loop.
    If the boolean you are to monitor is not changed from the GUI you can as I mentioned above make it fire an event by setting the value using the value signalling property inst
    ead of wiring the new value directly, but the property node has it's downsides so another option is to create a user event, put that reference in the global, and then run the generate user event function whenever the boolean changes.
    I see you read the ms timer when the value changes. Why? If you want the time get the time, if you want the time since the last update you could use the ms timer, keep the previous value in a shift register and then calculate the difference, but the ms timer rolls over now and then so that can give false results...What is the purpose of the time and how often does the value change?
    Attached is an exmaple that use a user event and the generate event function.
    MTO
    Attachments:
    example_Rev3.llb ‏54 KB

  • Is it possible to generate a user event when shared variable value change on RT target?

    Hi,
        I wonder if it is possible to generate a user event when a network published shared variable value change?
        Thanks a lot!
        Regards,
        Tom

    Tom,
    I understand not wanting to waster resources on polling but I am not aware that LabVIEW can automatically generate an event on a SV change.
    Maybe a better solution...
    You could implement lower level TCP communication (i.e. have a look at STM - simple messaging protocol) for passing data betweeen RT and PC (instead of using a SV).  You could send a generic command (boolean trigger maybe?) from your RT system when the value of whatever it is the SV is storing has changed.  You can avoid polling on the non-RT system this way.
    Dan

Maybe you are looking for