Adding 2 values

Hi,
I need to add 2 values in my jsf page am trying with
<af:inputText id="XXCreateManualPerDataVOExperienceGained"
*value="#{(#{bindings.XXCreateManualPerDataVOExperienceGained.longValue} + #{bindings.XXCreateManualPerDataVOAssignedWorkExperience.longValue})}"* label=""
required="#{bindings.XXCreateManualPerDataVOExperienceGained.mandatory}"
rows="#{bindings.XXCreateManualPerDataVOExperienceGained.displayHeight}"
columns="#{bindings.XXCreateManualPerDataVOExperienceGained.displayWidth}"
maximumLength="3" partialTriggers = "XXCreateManualPerDataVOReturnType"
disabled="#{(bindings.XXCreateManualPerPerDataVOReturnType.inputValue=='N') and (manualBean.YNbankst != true) }" >
but it is throwing error. tell me how to achieve this

Hi All,
Am getting the addition of 2 values now. But the problem is it is coming in read only mode. I wasnt it in editable mode.
AM using
<af:inputText id="XXCreateManualPerDataVOExperienceGained"
value="#{bindings.XXCreateManualPerDataVOExperienceGained.inputValue.value + bindings.XXCreateManualPerDataVOAssignedWorkExperience.inputValue.value}"
label=""
required="#{bindings.XXCreateManualPerDataVOExperienceGained.mandatory}"
rows="#{bindings.XXCreateManualPerDataVOExperienceGained.displayHeight}"
columns="#{bindings.XXCreateManualPerDataVOExperienceGained.displayWidth}"
maximumLength="3" partialTriggers = "XXCreateManualPerDataVOReturnType"
disabled="#{(bindings.XXCreateManualPerPerDataVOReturnType.inputValue=='N') and (manualBean.YNbankst != true) }" >
Edited by: 883457 on Dec 18, 2011 7:57 PM

Similar Messages

  • No data found due to cost element adding leading values in report

    Hi Experts,
    I have an issue where when the run the analyser with some values in variable screen it is displaying the output correctly in analyser tool. I am filtering the cost element with a single value for ex 4545000 and I have kept that in rows . Still the report is working fine.  But then when I go back to variable screen and change the input for ex instead of period 3 if I change it to 4 , output is null since the cost element is adding leading values to the existing value in the filter and displaying no result.  for ex 4545000 is getting added with controlling area 0050 and its searching for 00500004545000 and since this is not the cost element value its not displaying output..
    Any ideas how to rectify this or is it a analyser tool issue..
    Thanks in advance
    Kishore

    Hi,
    In my system it looks like this:
    Note that superior infoobject to 0costcenter is 0co_area
    Hope this helps,
    Leszek

  • Maintaining operating concern after adding new value field

    Hello,
    I added a new value field to our live operating concern,maintained the data structure throguh KEA0(Maintain operating concern).The changes are transported from Development to Quality,Changes were reflected in Q system.After testing in Q system transports were pushed to production system.The new value field is added to the operating concern. When i check the log for KEA0 in production system it displayed one message like:
    Field VV088 was added to the reference structure
    Message no. KE782.You probably either  changed the operating concern or SAP-EIS aspect, and added the field VV099 to the definition.
    The added a CO-PA value field:
    In this case, the field is added to the definition or the summarization levels. This invalidates all existing levels. Consequently, you need to activate them again and fill them with data.
    In production system maintaining operating concenr or KEAO is only in display mode.Is it needed to regenerate the operating concern once again in production, how to do it. Is the message talking about the KEDV summarization levels.?
    thanks
    rahul

    Hi,
    No no ....KEDV is nothing to do here....that is creation of summarization in CO-PA.
    Since you added new value field you necessarily have to Regenerate the operating concern...
    Use Tcode KEA0...go to Environment tab...there the status of Cross client part  and client specific part both will be in RED....now just click on the Cross client (candle button)...now the system would regenerate the operating concern...once it is over do the same for the client specific...
    Beware when you do regenerate the operating concern no body can enter any transaction in that server since it is cross client table ...hence better do it after business hours.
    Hope this helps!
    Running KEDU with rebuild is relevant only when you already have created summarization and called up the same in the CO-PA report "options" tab. If you did not created the summarization you are nothing to do with KEDU.
    Next: The new value field has to be transported to PRD and hence even in PRD we have to do the regeneration manually.
    Regards,
    Velumani
    Message was edited by: Velumani Arunachalam
    Message was edited by: Velumani Arunachalam

  • Impact of adding new value fields in ongoing operating concern.

    Hi All,
    Want to know the steps of adding new value fields in the existing operating concern in COPA?
    What is the overall impact of addition of New Value fields in the running Operating Concern?
    How do we test the addition of new value fields?
    Is the addition of New Value fields to the running Operating Concern advisable?
    Your support and advice is highly anticipated and appreciated.
    Thanks & Regards
    9819528669

    HI,
    please search in SCN forum before you post:
    Re: Adding a ValueField to an existing Operating Concern?
    Best regards, Christian

  • Changing Time Zone (stsadm tzmove) = Error: Adding a value to a 'datetime' column caused an overflow

    After updating timezone.xml и RGNLSTNG.xml files for my SharePoint 2010 (SP2 - 14.0.7015.1000)
    I have to run this command to Update time zone on calendar events:
    stsadm -o tzmove -name "russ2014" -update all
    But this cause an error: Adding a value to a 'datetime' column caused an overflow
    ULS log event: System.Data.SqlClient.SqlException: Adding a value to a 'datetime' column caused an overflow.  The statement has been terminated.
    How to fix this?

    Hi,
    Whether you added new time zone definition to your timezone.xml 
    and  RGNLSTNG.xml files.  if not, please provide the details about what content you updated in timezone.xml and RGNLSTNG.xml files.
    The stsadm.exe –o tzmove command does not work for new time zone definition changes. 
    This command is designed for making changes in the existing time zone, 
    not for creating a new time zone definition.
    After you modify the Timezone.xml and Regnlstng.xml files to include the new time zone definition, you must restart Internet Information Services (IIS).
     To do this, click Start, click Run, type
    iisreset in the Open box, and then click
    OK.
    Try to do IIS restart, compare the results.
    Best Regards,
    Lisa Chen
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact 
    [email protected]

  • Adding DVM values at run time

    Hi,
    I am trying to adding domain values to DVM at run time,
    it is getting added to DVM at that movement ,bt
    when i redeploy the service I am not able to see the changes.
    so help required regarding this

    Hello
    That is the solution to his problem, by the sounds of it when he redploys his code he gets the old values (the one in his code) if he migrates it to the MDS when he redeploys it won't change. This will seperate his deployment from run time configuration values which is a good idea.
    Best Regards Tristan

  • Adding key values continuously

    Hi,
    I want to add some key-values in a hashtable continuously i.e for example
    Hashtable cv = new Hashtable();
    cv.put(key1,value1); //added key-value
    The next time I execute the above code, the previous value will not be there, but only the current value. I want both the previous value and next value.
    i.e. cv should contain [key1=value1, key2=value2]
    How to achieve this?
    Please help me in this regard.
    Thanks in Advance....

    Hi,
    What happens here is
    class Dymmy {
    private Hashtable cv = new Hashtable();
    public void addValue(Object key, Object value) {
    List values = (List)cv.get(key);
    if (values == null) {
    values = new LinkedList();
    values.add(value);
    cv.put.(key, values);
    When I invoke the class first time cv contains [key1=value1]
    When I invoke the class second time cv again contains [key1=value1] instead it should contain [key1=value1,key2=value2]
    If I invoke it third time cv should contain [key1=value1,key2=value2,key3,value3] ...

  • Expression question: keep adding to value

    Hi!
    I want to animate the cameras z-position based on an audio track. I have converted the audio to keyframes, but now I'm stuck trying to figure out how to feed the audio peak values to the cameras z-position so that they keep adding to each other.
    Simply linking the camera z-position to the keyframe data will make the camera fly back and forth, but I need it to keep going forward in a pulsating motion. So when there is a peak in the audio amplitude, the camera moves more rapidly forward and when there is a flat waveform the camera stays put or moves only slightly.
    Is this possible to do?

    This Position expression should work. Adjust mult to set the sensitivity (how much it moves in response to the audio) and minVal to set how much it moves when there is no audio.
    mult = 10;
    minVal = 5;
    L = thisComp.layer("Audio Amplitude");
    aud = L.effect("Both Channels")("Slider");
    accum = 0;
    for (f = timeToFrames(inPoint); f <= timeToFrames(); f++){
      accum += Math.max(aud.valueAtTime(framesToTime(f)),minVal);
    value + [0,0,accum*mult]
    If you have separated the Camera's dimensions, change the last line to this to make it suitable for Z Position:
    value + accum*mult
    Dan

  • Adding more Values to the Column Link in Apex

    Hi,
    Is there any possibility of adding extra or more values to the column link in Apex. I already have 3 Column Name and Values linked to a different report.
    Eg:-
    Column Link:
    Link Text : #COUNT#
    Name       Value
    DATE #DATE#
    PRICE #PRICE#
    COST #COST#
    I want to add one more Name like 'ID' and corresponding and Value #ID#.
    Please Help...
    Thanks in Advance..
    Edited by: user13561710 on Jan 10, 2011 9:20 AM
    Edited by: user13561710 on Jan 10, 2011 12:34 PM

    Thanks Varad,
    But it didn't worked, The page has option to link only 3 values.
    My Target is 'Page in this Application" not a URL.
    I used your format and if you apply changes and come back the whole thing is dissappeared and even the link to page in application is inactive.
    Is there any other way???
    Thanks
    Edited by: user13561710 on Jan 10, 2011 10:49 AM
    Edited by: user13561710 on Jan 10, 2011 12:35 PM

  • Complex MySQL Query, Grouping By Invoice Number and Adding Multiple Values To Insert Into Database

    I have a table that looks like the above. I need to be able to update values in a database based on an ioID (the invoice number)
    The value I need to add is the hours times the uSalary, however as you will notice above the hours can and well have been added on an ongoing basis. For example:
    smarotti has added 4.5 (0.5 + 4.0) hours for the ioID 14190 (last 2 rows) for a total cost of $143.55
    So what I need is to have the value $143.55 update the record 14190 (ioID) on a new column (userCost)
    So:
    the userID - ddevries did 1 hour worth of work at the rate of $23.20 that needs to be update on the record 8026
    the userID - kmurtha did 20 (.5 + .25 + 6.5 + .25 + 6.5 + 6) hours worth of work $696 (20 * 34.80) that needs to be update on the record 9462
    make sense? anyone have any thoughts on how to go about doing this?
    Thanks
    Vern

    Okay
    assuming you add the column to your table the query would look like the below:
    UPDATE workers
                    INNER JOIN (SELECT
                                                    round(SUM(hours*uSalary),1) AS cost,
                                                    ioID,
                                                    userid
                                            FROM
                                                    workers
                                            GROUP BY ioID, userid ) b
                    ON workers.ioID = b.ioID
            SET workers.userCost=b.cost
    WHERE workers.ioid = b.ioID
    AND     workers.userID = b.userID
    Or if you would just like to query the data:
    SELECT  round(SUM(hours*uSalary),1) AS usercost,ioID,userid
    FROM workers
    GROUP BY ioID, userid

  • Adding parametric value to role programmatically

    I would like to add a large number of parametric values to a parametric role and I have tried the following code to do so:
    String sql = "Select distinct majorcode from GS_Contacts";
    Fuego.Lib.Role rl = Role.find(name:"GS_Department");
    if(rl != null){
              foreach(row in DynamicSQL.executeQuery(sql, externalResource))
                   String param = row[1]+"";
                   logMessage(param);
                   rl.addParameter(param);
    }In studio I get an error: Role 'GS_Department' could not be updated to this server. Reason: 'Invalid process definition. Trying to add a role (organization:GSE, commonName:GS_Department:180001GC) and the field Identification Number cannot be null.
    And in Weblogic, I get no error, but the values are not added.
    I need to do a one-time load of 260 values, and then make the editable later (adding and deleting from this initial list).
    Thanks in advance.

    Hi Shannon,
    The Fuego.Fdi.DirOrganizationalRole has an array parametricValues that you have to manipulate in order to add or remove parameters to that role, after manipulating it call the methos update().
    The Fuego.Fdi.DirHumanParticipant has an array rolesAssignment of type Fuego.Fdi.RoleAssignment that you have to manipulate to add or remove role assignments to a participant, the after call update() for the DirHumanParticipant.
    HTH

  • Xslt code - adding suffix value

    Hello SAP experts,
    May we seek advise from you on a working xslt code for adding suffix?
    Source:  012345
    Target: 012345HELLO
    The suffix 'HELLO' will be placed at the end of the value.
    Please advise.
    Thanks!
    Gerberto!

    take reference as follows:
    <Name><xsl:value-of select="concat($fname, $lname)"/></Name>
    In your case
    <Name><xsl:value-of select="concat($srcnode, 'HELLO)"/></Name>
    Regards
    Liang

  • Error adding double values

    Processing in my application requires adding huge double values,
    for instance i am adding 36561584400629760 and 1152062986011661
    and instead of getting 37713647386641421 I get 37713647386641424.
    Does somebody have a clue as to what the problem could be?
    I tried using BigInteger and primitive double datatypes.
    Thanks

    doubles precision is about 16 digits. Try this     BigDecimal bd1 = new BigDecimal("36561584400629760"),
                  bd2 = new BigDecimal("1152062986011661");
         System.out.println(bd1.add(bd2));
    or
         BigInteger bi1 = new BigInteger("36561584400629760"),
                  bi2 = new BigInteger("1152062986011661");
         System.out.println(bi1.add(bi2));

  • FM for adding a values in perticuler date

    hi All
    i want to know a FM name by which i can add some values like 10 days or 2 or 23 days(variable days value) in a given perticuler date.
    regards
    Atul

    Hi Atul
    Please use the following code snippet.
      DATA: act_date   TYPE d,
            dys        TYPE p,
            mon        TYPE p,
            yrs        TYPE p,
            ttl_yrs    TYPE p
                       VALUE 0,
            round      TYPE p
                       DECIMALS 2
                       VALUE '0.50',
            act_month(2) TYPE p,
            test_date  TYPE d,
            corr_date  TYPE d.
      act_date = date.
    LOW-DATE = 01/01/1800, HIGH-DATE = 31/12/9999 - Core assumes this
      IF ( date <> '99991231' OR
            sign = '-' ) AND
          ( date <> '18000101' OR
            sign <> '-' ).
        IF sign = '-'.
          dys = - days.
          mon = - months.
          yrs = - years.
          round = - round.
        ELSE.
          dys = days.
          mon = months.
          yrs = years.
        ENDIF.
    adding/subtracting the number of days from sy-datum or actual date
        act_date = act_date + dys.
    modifying the month accordingly
        IF mon <> 0.
          CLEAR act_month.
          act_month = act_date+4(2).
          IF mon > 11 OR
             mon < -11.
            ttl_yrs = mon / 12 - round.
            mon = mon - ttl_yrs * 12.
          ENDIF.
          mon = act_month + mon.
    if month is negative (that is if previous year)
          IF mon <= 0.
            ttl_yrs = ttl_yrs - 1.
            mon = mon + 12.
          ELSEIF mon > 12. " if next year
            ttl_yrs = ttl_yrs + 1.
            mon = mon - 12.
          ENDIF.
          UNPACK mon TO act_date+4(2).
        ENDIF.
    modify the year
        ttl_yrs = yrs + ttl_yrs.
        act_date(4) = act_date(4) + ttl_yrs.
        corr_date = act_date.
        DO.
          test_date = 1 + corr_date - 1.
          IF test_date = corr_date.
            EXIT.
          ENDIF.
          IF sign = '-'.
            corr_date6(2) = corr_date6(2) - 1.
          ELSE.
            corr_date+6(2) = '01'.
            corr_date = corr_date + 32.
            corr_date+6(2) = '01'.
          ENDIF.
        ENDDO.
        act_date = corr_date.
      ENDIF.
      calc_date = act_date.
    Regards
    Harsh

  • HashSet - Adding Integer values - Error Class Excpetion Help

    I am trying to add integers into the HashSet it is not allowing me to add it? does it mean that I cannot add integers. I also tried using the Integer class to input the values, still getting the same error. The Error is in the line : ts.add(3);
    Any thoughts why such an error ?
    The error that I get is :
    java TreeTest
    Exception in thread "main" java.lang.ClassCastException: java.lang.String
    at java.lang.Integer.compareTo(Integer.java:35)
    at java.util.TreeMap.compare(TreeMap.java:1093)
    at java.util.TreeMap.put(TreeMap.java:465)
    at java.util.TreeSet.add(TreeSet.java:210)
    at TreeTest.main(TreeTest.java:12)
    PK
    import java.util.*;
    class TreeTest
         public static void main(String[] args)
              TreeSet ts = new TreeSet();
              ts.add("Z");
              ts.add("A");
              ts.add("P");
              ts.add(3);
              ts.add(new Integer(1));
              ts.add(new Integer(7));
              System.out.println("The size is \t" + ts.size());
    }

    hii,
    In the TreeSet the elements you add should be of same class type.
    otherwise it can't do the sorting process.can u sort alphabets and numeric together? if u are adding Integer type only add int values or objs.if u want to add String add that n String objs.
    try the following code
    import java.util.*;
    class TreeTest
         public static void main(String[] args)
              try
              TreeSet ts = new TreeSet();
              int a=3;
              //ts.add("Z");
              //ts.add("A");
              //ts.add("P");
              ts.add(new Integer(7));
              ts.add(new Integer(1));
              ts.add(a);
              System.out.println("The size is \t" + ts.size());     
              catch (Exception e)
                   System.out.println(e);     
    }

  • One thread adding/updating value  and other thread getting values....issue

    am using a spring bean (singleton) and this is how it looks like
    public class MySingletonService {
    private Map<String, List<TaskVO>> alerts = new HashMap<String, List<TaskVO>>();
    //spring will call this method every 15 minutes
    public void pollDatabase() {
    //initialize the alerts instance variable and create/fill the alerts instance variable with new alerts for the employee(from database) .The key for the hashmap is the employee id
    //some client code (e.g. GUI) will call this method to get the alert for the operator id.This can be called anytime to get the latest info from the alert Map
    public List<TaskAlertVO> getOutstandingAlerts(String operatorId) {
    return alerts.get(operatorId);
    The issue here is that when getOutstandingAlerts is invoked by a thread,some other thread(Spring) calling the pollDatabase method might be updating the value.Please give me some idea and solution to get around this issue.
    I was thinking of creating a copy of alerts instance variable in the getOutstandingAlerts method and then use the copy to find the key and return the alert for that operator id.This way we dont have to worry about data conflict.
    Please advice

    Manjit wrote:
    jtahlborn wrote:
    if the pollDatabase() method is getting a complete new copy of the alerts every time, and the alerts map isn't being modified at all after load, then you can just:
    - make the alerts member variable volatible
    - create a new HashMap each time pollDatabase() is called, fill it in, and then assign it to the alerts member variable. Jtalhorn,I think I got your point.Basically you are suggesting that by creating a brand new map in each pollDatabase operation, then I dont have to worry about get operation ,simply because the client code is still looking at old memory location(old copy) and hence should not worry about values getting changes by pollDatabase method.
    I got it.
    But the small doubt is that why even I should bother about making the instance variable volatile ? Your suggestion should work without making it volatilebecause volatile ensures correct memory visibility between threads. if you didn't use volatile, then a caller to getOutstandingAlerts() could see some partially initialized/corrupt version of the map.

Maybe you are looking for