Simple expression evaluator

Hi all,
need some help with an expression evaluation:
user inputs a string like "x*x+dx*dy" or "x*dx-y*dy" and I
would like Flash to covert this to an actionscriptline so in the
code it appears like:
x=3;
dx=0.6;
dy=0.1;
aa=x*x+dx*dy;
trace(aa);
and the output would be: 9.06
Now my problem is converting the operator.
Anybody for a solution for this newbie?
thnx
Rob

Ok, so I think my advice stands then...
You could write your own expression parser, using eval("x")
when you came to parse an x in the string etc...and its probably
not too complicated to do if you're just dealing with
multiplication and addition.... or you could use existing code like
the example in the link I posted earlier to parse the expression
(I've used that code before for something more complex).
If you were writing your own parser you could use eval("x")
...but if it were me... I would do the opposite. That is to split
and join the string with the variable names, subsitituting their
values into the string and then run it through that expression
parser. Its basically just calculating a string version of a
numeric expression then with no variables.
For your variable --> value substitution (split and then
join) you need to do it in the order of the
dx and dy
then x and y
so you get it to work correctly.

Similar Messages

  • Eval simple expressions

    I need to provide dynamic evaluation of simple expressions from within an application, and don't want to re-invent the wheel by implementing yet another expression language. I wish Java had a package for dynamic evaluation of simple expressions (can't believe it doesn't), but javascript expressions would be just fine., so I"ve been looking into that.
    Unfortunately, the "obvious" javascript eval function made available to Java (in JSObject) seems to require an Applet within a browser context. (I'm sorry, are applets the only place where javascript is useful???)
    Anyway, can anyone suggest how to eval javascript expressions, or suggest an alternative language whose expressions can be evaluated from Java code without too much effort. I don't need to use javascript -- just thought it was a no-brainer until I started trying to actually do it.

    JFormula is a complete evaluation system working with various types (string,double,bigdecimal,boolean...). You can use if/then/else expression and
    plug your functions or operators...
    http://www.japisoft.com/formula/index.html

  • Algorithm for Expression Evaluator

    Hi,
    Can any one help me in finding out the algo of Expression Evaluator,Changing Pre fix to Post Fix and vise versa.
    Tx in advance.
    from
    gomes_deb

    There is a math expression parser at http://www.bestcode.com. It forms a tree structure where nodes are operators, functions, variables, numbers. Each node of the tree has children (for example parameters of a function are it's children in this tree). So, if you have a "x+sin(y)", the tree is like this:
    ___+
    _x     sin
    _______y
    Then when it is time to evaluate, you set the values of X and Y and call evaluate() method and it tells you what the result is.
    The java bean is called JbcParser. It's features are:
    *Easy to use, simple class API.
    *Comes with predefined functions.
    *Users can create custom functions/variables.
    *Optimization: Constant expression elimination for repeated tasks.
    Analytical Operators: +, -, /, , ^(power)
    *Logical Operators: =(equals),&(and),|(or),!(not), <>(not equals), <=(less than or equals), >=(greater than or equals)
    *Paranthesis: (, {, [
    *Functions in the form of: f(x, y, z, ...)
    *Function parameters are not calculated until needed.
    *List of predefined functions is available in the documentation.
    *Java source code is included.
    An example of a simple expression is : LN(X)+SIN(10/2-5)
    When parsed, this expression will be represented as: since the SIN(10/2-5) is in fact SIN(0) which is a constant and is 0.
    Thus, in a loop, if you change the value of X and ask for the value of the expression, it will be evaluated quite fast since SIN(10/2-5) is not dependent on X.
    X and Y are predefined variables. You can create your own variables as needed.
    There are many predefined mathematical functions. They are listed in documentation. You can create your functions as needed. IF logic is implemented through a predefined IF(A,B,C) function. Similar logical functions can be created as needed.
    It is located at: http://www.bestcode.com/html/jbcparser.html

  • [svn] 3045: Fix FB-13900: Expression Evaluator: 'is' and 'as' expressions return 'Target player does not support function calls'

    Revision: 3045
    Author: [email protected]
    Date: 2008-08-29 10:59:25 -0700 (Fri, 29 Aug 2008)
    Log Message:
    Fix FB-13900: Expression Evaluator: 'is' and 'as' expressions return 'Target player does not support function calls'
    Ticket Links:
    http://bugs.adobe.com/jira/browse/FB-13900
    Modified Paths:
    flex/sdk/trunk/modules/debugger/src/java/flash/tools/debugger/concrete/BinaryOp.java
    flex/sdk/trunk/modules/debugger/src/java/flash/tools/debugger/concrete/PlayerSession.java

    Revision: 3045
    Author: [email protected]
    Date: 2008-08-29 10:59:25 -0700 (Fri, 29 Aug 2008)
    Log Message:
    Fix FB-13900: Expression Evaluator: 'is' and 'as' expressions return 'Target player does not support function calls'
    Ticket Links:
    http://bugs.adobe.com/jira/browse/FB-13900
    Modified Paths:
    flex/sdk/trunk/modules/debugger/src/java/flash/tools/debugger/concrete/BinaryOp.java
    flex/sdk/trunk/modules/debugger/src/java/flash/tools/debugger/concrete/PlayerSession.java

  • Regular expression evaluation with logical operator

    Hi All,
    I am bit confuse with expression evaluation with logical operator. I am trying to understand below expression.
    eXa.getTrue() && eXa.getFalse() || eXa.getFalse() && eXa.getTrue() || eXa.getFalse() comes as false and True Count: 1 False Count: 3
    As per understanding it should be true with True Count: 1 False Count: 3
    it should execute 1st getTrue() and then 1stGetFalse() and then 2nd getfalse() and should skip 2nd getTrue() and execute 3rd fetFalse()
    eXa.getTrue() && eXa.getTrue() || eXa.getFalse() && eXa.getTrue() || eXa.getFalse() comes as true and True Count: 2 False Count: 0
    As per understanding it should be true with True Count: 3 False Count: 0
    it should execute 1st 2 getTrue() and skip 1st getFalse() and then execute 3rd getTrue() and skip last getFalse().
    eXa.getTrue() || eXa.getFalse() && eXa.getFalse() || eXa.getTrue() && eXa.getFalse() comes as true and True Count: 1 False Count: 0
    As per understanding it should be true with True Count: 2 False Count: 2
    it should execute 1st getTrue() and skip 1st getFalse() and then execute 2nd getFalse() and then execute 2nd getTrue() and then 3rd getFalse()
    Please help me to understand above expressions.
    Here is the methods definition:
    private boolean getTrue() {
              trueCount++;
              boolean retrunValue = 4 > 3;
              return retrunValue;
    private boolean getFalse() {
              falseCount++;
              boolean retrunValue = 3 > 4;
              return retrunValue;
    Thanks for ur help

    >
    adding parenthesis to make order of ops more obvious. adding "?" to show un-executed calls.
    (eXa.getTrue() && eXa.getFalse()) || (eXa.getFalse() && eXa.getTrue()) || eXa.getFalse()  comes as false and True Count: 1 False Count: 3
    (T && F) = F
    (F && ?) = F
    (F) = F
    F || F || F = F
    (eXa.getTrue() && eXa.getTrue()) || (eXa.getFalse() && eXa.getTrue()) || eXa.getFalse()  comes as true and True Count: 2 False Count: 0
    (T && T) = T
    (? && ?) = ?
    (?) = ?
    T || ? || ? = T
    eXa.getTrue() || (eXa.getFalse() && eXa.getFalse()) || (eXa.getTrue() && eXa.getFalse())  comes as true and True Count: 1 False Count: 0
    (T) = T
    (? && ?) = ?
    (? && ?) = ?
    T || ? || ? = T

  • CRM Survey: Simple Survey Evaluation

    Hi Forum,
    I created one Survey using CRM_SURVEY_SUITE and I would like to extract result using Simple Survey Evaluation.
    I set the flags Evaluation without Business Information Warehouse and Save completed Questionnaire.
    When I press the button Evaluation, I always get the message "No Data is available for evaluation".
    Is it really possible to extract results without BW ?
    Thanks a lot and best regards.

    Hi Joaquin Fornas  & Saozinha,
    Thanks for your information on survey evaluation in the above threads.
    I am able to survey using CRM_SURVEY_SUITE and i am able to extract the results using survey evaluation in GUI.
    Now i want to know the how to get the results in IC WEBCLIENT for  a survey. I am using CRM 7.0 VERSION.
    Can any one tell me is there any settings required to get the survey results in IC WEBCLIENT without BIW Evaluation.
    Thanks in advance
    Regards
    Nagaraju

  • [svn] 2384: The ASC fix for ASC-3414 resulted in a correction of the behavior of E4X filter expression evaluations , but we don't want to introduce this change in a Flex 3.0.x minor release.

    Revision: 2384
    Author: [email protected]
    Date: 2008-07-08 06:23:19 -0700 (Tue, 08 Jul 2008)
    Log Message:
    The ASC fix for ASC-3414 resulted in a correction of the behavior of E4X filter expression evaluations, but we don't want to introduce this change in a Flex 3.0.x minor release. So I'm reverting this fix from the 3.0.x branch of ASC and checking in a new 1.4 downgraded asc.jar to reflect the change. This will be merged to other Flex 3 branches such as 3.0.3 and 3.1.0, but will not be merged to trunk.
    The change in behavior was noticed for Flex 3.0.x when a asc.jar was updated in revision 2108, and re-applied in revision 2129. Reverting this fix will resolve bug SDK-15924.
    QE: Yes
    Doc: No
    Checkintests: Pass
    Reviewer: Erik
    Bugs:
    SDK-15924 - Calling a .NET WebService always returns a fault (after build 2108)
    Other Bugs Referenced:
    ASC-3414 - with block uses local variable instead of object property when -warnings flag on
    Ticket Links:
    http://bugs.adobe.com/jira/browse/ASC-3414
    http://bugs.adobe.com/jira/browse/SDK-15924
    http://bugs.adobe.com/jira/browse/SDK-15924
    http://bugs.adobe.com/jira/browse/ASC-3414
    Modified Paths:
    flex/sdk/branches/3.1.0/lib/asc.jar
    flex/sdk/branches/3.1.0/modules/asc/src/java/macromedia/asc/embedding/LintEvaluator.java

    Yes but there's no point doing it here. As the Terms of Use make quite clear this is a User to User forum. It's Users like you talking to other Users. It's not a channel to communicate with Apple.
    Regards
    TD

  • [svn] 2383: The ASC fix for ASC-3414 resulted in a correction of the behavior of E4X filter expression evaluations , but we don't want to introduce this change in a Flex 3.0.x minor release.

    Revision: 2383
    Author: [email protected]
    Date: 2008-07-08 06:22:40 -0700 (Tue, 08 Jul 2008)
    Log Message:
    The ASC fix for ASC-3414 resulted in a correction of the behavior of E4X filter expression evaluations, but we don't want to introduce this change in a Flex 3.0.x minor release. So I'm reverting this fix from the 3.0.x branch of ASC and checking in a new 1.4 downgraded asc.jar to reflect the change. This will be merged to other Flex 3 branches such as 3.0.3 and 3.1.0, but will not be merged to trunk.
    The change in behavior was noticed for Flex 3.0.x when a asc.jar was updated in revision 2108, and re-applied in revision 2129. Reverting this fix will resolve bug SDK-15924.
    QE: Yes
    Doc: No
    Checkintests: Pass
    Reviewer: Erik
    Bugs:
    SDK-15924 - Calling a .NET WebService always returns a fault (after build 2108)
    Other Bugs Referenced:
    ASC-3414 - with block uses local variable instead of object property when -warnings flag on
    Ticket Links:
    http://bugs.adobe.com/jira/browse/ASC-3414
    http://bugs.adobe.com/jira/browse/SDK-15924
    http://bugs.adobe.com/jira/browse/SDK-15924
    http://bugs.adobe.com/jira/browse/ASC-3414
    Modified Paths:
    flex/sdk/branches/3.0.3/lib/asc.jar
    flex/sdk/branches/3.0.3/modules/asc/src/java/macromedia/asc/embedding/LintEvaluator.java

    Yes but there's no point doing it here. As the Terms of Use make quite clear this is a User to User forum. It's Users like you talking to other Users. It's not a channel to communicate with Apple.
    Regards
    TD

  • [svn] 2377: The ASC fix for ASC-3414 resulted in a correction of the behavior of E4X filter expression evaluations , but we don't want to introduce this change in a Flex 3.0.x minor release.

    Revision: 2377
    Author: [email protected]
    Date: 2008-07-07 14:38:01 -0700 (Mon, 07 Jul 2008)
    Log Message:
    The ASC fix for ASC-3414 resulted in a correction of the behavior of E4X filter expression evaluations, but we don't want to introduce this change in a Flex 3.0.x minor release. So I'm reverting this fix from the 3.0.x branch of ASC and checking in a new 1.4 downgraded asc.jar to reflect the change. This will be merged to other Flex 3 branches such as 3.0.3 and 3.1.0, but will not be merged to trunk.
    The change in behavior was noticed for Flex 3.0.x when a asc.jar was updated in revision 2108, and re-applied in revision 2129. Reverting this fix will resolve bug SDK-15924.
    QE: Yes
    Doc: No
    Checkintests: Pass
    Reviewer: Erik
    Bugs:
    SDK-15924 - Calling a .NET WebService always returns a fault (after build 2108)
    Other Bugs Referenced:
    ASC-3414 - with block uses local variable instead of object property when -warnings flag on
    Ticket Links:
    http://bugs.adobe.com/jira/browse/ASC-3414
    http://bugs.adobe.com/jira/browse/SDK-15924
    http://bugs.adobe.com/jira/browse/SDK-15924
    http://bugs.adobe.com/jira/browse/ASC-3414
    Modified Paths:
    flex/sdk/branches/3.0.x/lib/asc.jar
    flex/sdk/branches/3.0.x/modules/asc/src/java/macromedia/asc/embedding/LintEvaluator.java

    Yes but there's no point doing it here. As the Terms of Use make quite clear this is a User to User forum. It's Users like you talking to other Users. It's not a channel to communicate with Apple.
    Regards
    TD

  • I am looking for an boolean and numeric expression evaluator. I want to be able to compare ( ,=, , or, not, and, nand, etc)and evaluate boolean/numeric expression.

    I am looking for an boolean and numeric expression evaluator. I want to be able to compare (>,=, <, or, not, and, nand, etc)and evaluate boolean/numeric expression. Does anyone know if there is any code samples anywhere. If anyone has any input, I would greately appreciate it.

    The problem is that I have to enter a string of that type (any random string), and the program should go and calculate the result for the whole stirng, by looking at which parts to calculate first (figuring out precedence), second, etc. This is like a calculator, you don't know what the user is going to enter next, so I can't just use the boolean palatte. I could use it if the equation was always of the form "a 'operator' b", where the operator is any logic or comparison operator. But that is not what I am trying to accomplish.
    Can you do logic in the formula node? I think it only allows numeric values for inputs and outputs, it doesn't let you enter in and output booleans and stuff..does it?
    Thanks,
    Yuliya

  • [svn] 1443: Fix FB-12505: Debugger expression evaluator: Literal operators return internal error

    Revision: 1443
    Author: [email protected]
    Date: 2008-04-28 15:09:20 -0700 (Mon, 28 Apr 2008)
    Log Message:
    Fix FB-12505: Debugger expression evaluator: Literal operators return internal error
    Ticket Links:
    http://bugs.adobe.com/jira/browse/FB-12505
    Modified Paths:
    flex/sdk/trunk/modules/debugger/src/java/flash/tools/debugger/expression/DebuggerExpressi on.java

  • RDLC report fails to build simple expression

    Hi,
    I have a very curious case. I've just downloaded a solution in VS2010 SP1. Everything builds fine except a single RDLC report which fails with a cryptic error:
    Error 17 An unexpected error occurred while compiling expressions. Native compiler return value: ‘-1073741515’.
    Looking at report definition I deleted all report items except a textbox with below definition
    <TextRuns>
    <TextRun>
    <Value>=Parameters!ReportTitle.Value</Value>
    <Style>
    <FontSize>16pt</FontSize>
    <FontWeight>Bold</FontWeight>
    <Color>Navy</Color>
    </Style>
    </TextRun>
    </TextRuns>
    If I simply replace "=Parameters!ReportTitle.Value" for "abc" the project builds fine.
    The mentioned parameter has a default value.
    Any clue why my VS2010 Ultimate SP1 doesn't like to build this simple expression, other devs can build it fine.
    Thanks,
    Lucas

    Hi HGG42,
    Per my understanding that you got the error about using this expression "=Parameters!ReportTitle.Value" in the Textbox when creating the RDLC report, right?
    As you have mentioned that that the parameter have a default value, i would like to know if you have check "Allow Multiple values", if you have check this, you will got some errors, you can uncheck this or you can modify the expression in the textbox
    as:" =join(Parameters!ReportTitle.Value,",") "
    If you haven't check the "Allow Multiple values", the issue can be caused by uthentication problem, please check your application's (if ASP) UserName and Password provided in your service.
    Similar thread below for your reference:
    http://www.c-sharpcorner.com/forums/thread/234749/rdlc-unexpected-error-occurred-while-compiling-expression.aspx
    http://forums.asp.net/t/1923313.aspx?Native+compiler+error+1073741502+
    If you still have any problem, please feel free to ask.
    Regards
    Vicky Liu

  • Af:commandImageLink property expressions evaluated more than once

    hi
    An image link like this ...
    <af:commandImageLink text="commandImageLink 1" id="cil1"
                         rendered="#{r_tryCommandImageLink.myCImageLinkRendered}"/>... that gets its rendered property value from a managed-bean method like this ...
    public class TryCommandImageLink
         protected int fIsMyCImageLinkRenderedCallCount = 0;
         public boolean isMyCImageLinkRendered()
              System.out.println("TryCommandImageLink.isMyCImageLinkRendered() : begin"
                   + " : count = " + (++fIsMyCImageLinkRenderedCallCount));
              return true;
    }... results in output like this ...
    TryCommandImageLink.isMyCImageLinkRendered() : begin : count = 1
    TryCommandImageLink.isMyCImageLinkRendered() : begin : count = 2
    TryCommandImageLink.isMyCImageLinkRendered() : begin : count = 3
    TryCommandImageLink.isMyCImageLinkRendered() : begin : count = 4
    TryCommandImageLink.isMyCImageLinkRendered() : begin : count = 5So, the managed-bean method is called 5 times.
    See also this example application created using JDeveloper 11.1.1.5.0,
    at http://www.consideringred.com/files/oracle/2011/EvaluatedMoreThanOnceApp-v0.01.zip
    question
    - (q1) Why is the EL expression for the rendered property of a af:commandImageLink evaluated 5 times?
    (A similar issue (Re: af:commandButton text EL expression evaluated twice) in forum thread "af:commandButton text EL expression evaluated twice" seems to be resolved (e.g. in tryCommandButton.jspx in EvaluatedMoreThanOnceApp-v0.01.zip).)
    many thanks
    Jan Vervecken

    Thanks for your reply John.
    John Stegeman wrote:
    ... 1). Do you know during which phases it's being called (you could put a phase listener that just logs so that you can see)Please consider the modified example application
    at http://www.consideringred.com/files/oracle/2012/EvaluatedMoreThanOnceApp-v0.02.zip
    It shows that the isMyCImageLinkRendered() method is called during the jsfRenderResponse phase:
    MyLogPagePhaseListener.beforePhase() : ( 9) jsfRestoreView : /faces : /tryCommandImageLink
    MyLogPagePhaseListener.afterPhase()  : ( 9) jsfRestoreView
    MyLogPagePhaseListener.beforePhase() : ( 9) jsfRestoreView : /faces : /tryCommandImageLink
    MyLogPagePhaseListener.afterPhase()  : ( 9) jsfRestoreView
    MyLogPagePhaseListener.beforePhase() : ( 0) initContext : /faces : /tryCommandImageLink
    MyLogPagePhaseListener.afterPhase()  : ( 0) initContext
    MyLogPagePhaseListener.beforePhase() : ( 1) prepareModel : /faces : /tryCommandImageLink
    MyLogPagePhaseListener.afterPhase()  : ( 1) prepareModel
    MyLogPagePhaseListener.beforePhase() : (14) jsfRenderResponse : /faces : /tryCommandImageLink
    MyLogPagePhaseListener.beforePhase() : ( 8) prepareRender : /faces : /tryCommandImageLink
    MyLogPagePhaseListener.afterPhase()  : ( 8) prepareRender
    TryCommandImageLink.isMyCImageLinkRendered() : begin : count = 1
    TryCommandImageLink.isMyCImageLinkRendered() : begin : count = 2
    TryCommandImageLink.isMyCImageLinkRendered() : begin : count = 3
    TryCommandImageLink.isMyCImageLinkRendered() : begin : count = 4
    TryCommandImageLink.isMyCImageLinkRendered() : begin : count = 5
    MyLogPagePhaseListener.afterPhase()  : (14) jsfRenderResponseIf the link is clicked, it also seems to be called during the phases jsfApplyRequestValues, jsfProcessValidations and jsfUpdateModelValues, resulting 8 calls:
    MyLogPagePhaseListener.beforePhase() : ( 0) initContext : /faces : /tryCommandImageLink
    MyLogPagePhaseListener.afterPhase()  : ( 0) initContext
    MyLogPagePhaseListener.beforePhase() : ( 1) prepareModel : /faces : /tryCommandImageLink
    MyLogPagePhaseListener.afterPhase()  : ( 1) prepareModel
    MyLogPagePhaseListener.beforePhase() : (10) jsfApplyRequestValues : /faces : /tryCommandImageLink
    TryCommandImageLink.isMyCImageLinkRendered() : begin : count = 1
    MyLogPagePhaseListener.afterPhase()  : (10) jsfApplyRequestValues
    MyLogPagePhaseListener.beforePhase() : (11) jsfProcessValidations : /faces : /tryCommandImageLink
    TryCommandImageLink.isMyCImageLinkRendered() : begin : count = 2
    MyLogPagePhaseListener.afterPhase()  : (11) jsfProcessValidations
    MyLogPagePhaseListener.beforePhase() : (12) jsfUpdateModelValues : /faces : /tryCommandImageLink
    TryCommandImageLink.isMyCImageLinkRendered() : begin : count = 3
    MyLogPagePhaseListener.afterPhase()  : (12) jsfUpdateModelValues
    MyLogPagePhaseListener.beforePhase() : ( 5) validateModelUpdates : /faces : /tryCommandImageLink
    MyLogPagePhaseListener.afterPhase()  : ( 5) validateModelUpdates
    MyLogPagePhaseListener.beforePhase() : (13) jsfInvokeApplication : /faces : /tryCommandImageLink
    MyLogPagePhaseListener.afterPhase()  : (13) jsfInvokeApplication
    MyLogPagePhaseListener.beforePhase() : ( 7) metadataCommit : /faces : /tryCommandImageLink
    MyLogPagePhaseListener.afterPhase()  : ( 7) metadataCommit
    MyLogPagePhaseListener.beforePhase() : (14) jsfRenderResponse : /faces : /tryCommandImageLink
    MyLogPagePhaseListener.beforePhase() : ( 8) prepareRender : /faces : /tryCommandImageLink
    MyLogPagePhaseListener.afterPhase()  : ( 8) prepareRender
    TryCommandImageLink.isMyCImageLinkRendered() : begin : count = 4
    TryCommandImageLink.isMyCImageLinkRendered() : begin : count = 5
    TryCommandImageLink.isMyCImageLinkRendered() : begin : count = 6
    TryCommandImageLink.isMyCImageLinkRendered() : begin : count = 7
    TryCommandImageLink.isMyCImageLinkRendered() : begin : count = 8
    MyLogPagePhaseListener.afterPhase()  : (14) jsfRenderResponse
    John Stegeman wrote:... 2). Does the same behaviour occur with the visible property?In a similar way I tried:
    <af:commandImageLink text="commandImageLink to try visible" id="cil1"
                         visible="#{r_tryCImageLinkVisible.myCImageLinkVisible}"/>This results in 2 calls during the jsfRenderResponse phase:
    MyLogPagePhaseListener.beforePhase() : ( 9) jsfRestoreView : /faces : /tryCImageLinkVisible
    MyLogPagePhaseListener.afterPhase()  : ( 9) jsfRestoreView
    MyLogPagePhaseListener.beforePhase() : ( 9) jsfRestoreView : /faces : /tryCImageLinkVisible
    MyLogPagePhaseListener.afterPhase()  : ( 9) jsfRestoreView
    MyLogPagePhaseListener.beforePhase() : ( 0) initContext : /faces : /tryCImageLinkVisible
    MyLogPagePhaseListener.afterPhase()  : ( 0) initContext
    MyLogPagePhaseListener.beforePhase() : ( 1) prepareModel : /faces : /tryCImageLinkVisible
    MyLogPagePhaseListener.afterPhase()  : ( 1) prepareModel
    MyLogPagePhaseListener.beforePhase() : (14) jsfRenderResponse : /faces : /tryCImageLinkVisible
    MyLogPagePhaseListener.beforePhase() : ( 8) prepareRender : /faces : /tryCImageLinkVisible
    MyLogPagePhaseListener.afterPhase()  : ( 8) prepareRender
    TryCImageLinkVisible.isMyCImageLinkVisible() : begin : count = 1
    TryCImageLinkVisible.isMyCImageLinkVisible() : begin : count = 2
    MyLogPagePhaseListener.afterPhase()  : (14) jsfRenderResponseIf the link is clicked, still 2 calls during the jsfRenderResponse phase:
    MyLogPagePhaseListener.beforePhase() : ( 0) initContext : /faces : /tryCImageLinkVisible
    MyLogPagePhaseListener.afterPhase()  : ( 0) initContext
    MyLogPagePhaseListener.beforePhase() : ( 1) prepareModel : /faces : /tryCImageLinkVisible
    MyLogPagePhaseListener.afterPhase()  : ( 1) prepareModel
    MyLogPagePhaseListener.beforePhase() : (10) jsfApplyRequestValues : /faces : /tryCImageLinkVisible
    MyLogPagePhaseListener.afterPhase()  : (10) jsfApplyRequestValues
    MyLogPagePhaseListener.beforePhase() : (11) jsfProcessValidations : /faces : /tryCImageLinkVisible
    MyLogPagePhaseListener.afterPhase()  : (11) jsfProcessValidations
    MyLogPagePhaseListener.beforePhase() : (12) jsfUpdateModelValues : /faces : /tryCImageLinkVisible
    MyLogPagePhaseListener.afterPhase()  : (12) jsfUpdateModelValues
    MyLogPagePhaseListener.beforePhase() : ( 5) validateModelUpdates : /faces : /tryCImageLinkVisible
    MyLogPagePhaseListener.afterPhase()  : ( 5) validateModelUpdates
    MyLogPagePhaseListener.beforePhase() : (13) jsfInvokeApplication : /faces : /tryCImageLinkVisible
    MyLogPagePhaseListener.afterPhase()  : (13) jsfInvokeApplication
    MyLogPagePhaseListener.beforePhase() : ( 7) metadataCommit : /faces : /tryCImageLinkVisible
    MyLogPagePhaseListener.afterPhase()  : ( 7) metadataCommit
    MyLogPagePhaseListener.beforePhase() : (14) jsfRenderResponse : /faces : /tryCImageLinkVisible
    MyLogPagePhaseListener.beforePhase() : ( 8) prepareRender : /faces : /tryCImageLinkVisible
    MyLogPagePhaseListener.afterPhase()  : ( 8) prepareRender
    TryCImageLinkVisible.isMyCImageLinkVisible() : begin : count = 1
    TryCImageLinkVisible.isMyCImageLinkVisible() : begin : count = 2
    MyLogPagePhaseListener.afterPhase()  : (14) jsfRenderResponseQuestion (q1) remains.
    regards
    Jan

  • EL Expression Evaluator

    JDeveloper Team,
    I am trying use the EL Evaluator for a simple JSF application and I do not have much success with it. The "Evaluate" button is disabled even after reaching the breakpoint. I am unable to enter any expression for evaluation. Can you please provide me with information on how to make it work with JSF application? Thank you for your support and consideration.
    Bala Raman.

    Frank,
    Thank you for your response. It is not that I do not have an alternative or lack of this feature is hindering my progress. It is certainly a nice to have and also I raised it since it was explicitly stated in ADF documentation. So, I would appreciate if you could let us know if this feature is/will be supported and if so, would it be supported for both JSF and ADF applications? If not, please remove it from the documentation as it might cause others to explore the feature that may not exist. Have a wonderful day.
    Thank you,
    Bala Raman.

  • How can i measure only the valley voltages of a sine wave in labview 7 express evaluation version?

    I am trying to convince my company to send me to purchase labview and send me to classes for labview.
    I am trying to put together a small demo for them using the Labview 7 express evaluatin copy that I recieved.
    What I am wondering is how can filter out everything besides the valley peaks on a sine wave.
    What I am trying to accomplish, is create an example showing that Labview can sameple from a sine wave, read about 5 "valley" points of the wave, evaluate these based on a value that i can define, and signal pass or fail.
    attached is a picture of what i have so far
    Ryan
    LV 7.1
    Attachments:
    progress.bmp ‏3841 KB

    Hi,
    I built a VI using LabVIEW 7.0 that detects the valleys in a sine wave. It uses the 'Peak detector' VI that I believe is available in the evaluation version.
    (Functions palette >> All Functions >> Analyze >> Signal Processing >> Time Domain >> Peak Detector)
    I have attached a VI as well as the screen shots its front panel and block diagram.
    I hope this helps.
    Sincerely,
    Feroz
    Attachments:
    valley_detector_bd.jpg ‏36 KB
    valley_detector_fp.jpg ‏72 KB
    valley_detector.vi ‏29 KB

Maybe you are looking for