[JSF 2] Update the total of an editable column from a dataTable

Hi,
i am using JSF 2.
I would like to update a field which is outside a dataTable and is the sum of a column from a dataTable.
The fields of this column are editable, so the user can change the quantities.
Then he clicks on a button and it should update the total.
I have been thinking about working with the DataModel of the list i use to populate that dataTable but i am still trying to find out what the DataModel can do for me in that case.
What about listeners ? events ?
Any suggestion ?
Thanks.

Hi,
i am using JSF 2.
I would like to update a field which is outside a dataTable and is the sum of a column from a dataTable.
The fields of this column are editable, so the user can change the quantities.
Then he clicks on a button and it should update the total.
I have been thinking about working with the DataModel of the list i use to populate that dataTable but i am still trying to find out what the DataModel can do for me in that case.
What about listeners ? events ?
Any suggestion ?
Thanks.

Similar Messages

  • I made order on 14 sep but until now the total price not yet deducted  from my master card .. can u check plz .. 02 order under my id account  ********* thanks

    i made order on 14 sep but until now the total price not yet deducted  from my master card .. can u check plz .. 02 order under my id account  *******thanks
    <Edited by Host>

    Check your order status here http://store.apple.com/us/help/viewing_changing_orders if it was order on Apple's Online Store, or here... http://store.apple.com/us/account/home 
    Good luck!

  • How to wrte the MDX language in 'Edit Column Formual' in Answer

    Hi Experts,
    Is itpossible to implement the following requirement in OBIEE 11G ?
    How to wrte the MDX language in 'Edit Column Formual' in Answer, like below express in Logic Layer in BMM:
    EVALUATE_AGGR('MAX( %1.members,[Is_Close])', "Sales Cube"."Sales".""."Sales"."Gen5,Time" )
    or
    EVALUATE_AGGR('MAX( Time.currentmember.siblings,%1)', "Sales Cube"."Sales".""."Sales"."Is_Close" )

    Hi JaiG ,
    I have done it, but is it possible to write MDX in Answer? I also look at the 'EVALUATE_AGGR' function in 'Edit Column Formual'.
    The reason I want to do is that some column is dynamical calculation.
    For example:
    I want to Count Store for Sales,so in ESSBASE it has one flag column,if one store has sales in one day, it will be '1', else '0'.
    However, it sum the flag column in ESSBASE Or logical layer in OBIEE for MDX, it will generate wrong result when I select several days.
    The expected result is that I want to calculate MAX store count in several days, not sum. How to write MDX? Thanks.
    The current case is as below:
    I select one day , it will be correct result, such as 1600 stores.
    If I select one more days, it will be sum stores in these days, not MAX. such as 4700 stores(3 days).

  • Update the profile values at responsiblity level from backend

    HI Team ,
    Find sql for Updating the profile values at responbility level from backend?
    Thanks,
    Chandu

    Please also see:
    How to Change Profile Option Value Without Forms? (Doc ID 943710.1)
    APPS.FND_PROFILE
    http://etrm.oracle.com/pls/et1211d9/etrm_pnav.show_details?c_name=FND_PROFILE&c_owner=APPS&c_type=PACKAGE&c_detail_type=source
    http://etrm.oracle.com/pls/et1211d9/etrm_pnav.show_details?c_name=FND_PROFILE&c_owner=APPS&c_type=PACKAGE%20BODY&c_detail_type=source
    Thanks,
    Hussein

  • How do I update the ios on an iphone 4 from version 4.2.8 to the most updated verision?

    How do I update the ios on an iphone 4 from versioon 4.2.8 to the most recent? 

    Plug your phone to your PC - open itunes - itunes should automatically see that your phone needs an upgrade.
    Make sure you backup prior to updating.
    YOu may also need to update your itunes.

  • Update the firmware on my airport express from 7.4.2 to 7.5.2

    When I press update the firmware on my airport express from 7.4.2 to 7.5.2 using the airport tool says:
    This device and its network service is temporarily unavailable. will you continue?
    When I press deliberately and pressed into the code goes started to download the update, but come quickly with this message:
    Airport Utility could not find the AirPort wireless device after restarting. You may need to select your network manage network connections and try again.
    But my airport lights up green as if it works and I may well be on the net and listen wireless music.
    How do I get updated firmware?

    Chances are, the update was downloaded and installed successfully.
    Try powering down your entire network....every device.....order is not important
    Wait a few minutes
    Start the modem first and let it run for 2-3 minutes by itself
    Start the next device connected to the modem the same way
    Continue starting devices one at a time about a minute apart until everything is powered back up
    What happens?

  • Why isn't Calculate updating the Totals fields?

    i have created a multipage document. each has a column with amounts, and a total row at the bottom of the page. the first page lists checks. the second page lists only cash.
    the first page has two other fields "Total Checks" and Total Cash". each is set to sum the total of the appropriate page. finally there is a Grand Total field that sums the Total Checks and Total Cash.
    The problem is, the entries update the column total as soon as they are entered, but the Totals don't.
    I have checked to ensure no fields are locked, and all are number-formatted. i have rechecked the calculation tab many times but the problem remains.
    also, does anyone have a manual in pdf form?
    is it acceptable to attach the file?
    one lemming

    You just need to set the field calculation order (which is not the same thing as the tab order) to whatever makes sense for your form. Currently, it is not set correctly. Exactly how you change it depends on the version of Acrobat you're using. In Acrobat 9, go into form editing mode and select: Forms > Edit Fields > Set Field Calculation Order

  • How can labview update the string control (text-edit box) after we have pressed the carriage return key on the keyboard during text-editing within that box?

    Dear readers,
    I have been trying to work out how to get labview to detect the event when a 'string' control has been modified, where the user has finished editing the string either by 1) pressing the enter key on the keyboard, or by 2) taking the focus away from the string control again. For example.. if I use the mouse to click on the string control and then I type 1234 into the box, I would like to have a routine that does something once the user hits the Enter key of the keyboard, or when the user takes the focus away from the string control again by clicking on something else. I would like the routine to respond even when the user didn't change anything in the text box (such as when we mouse-click on the edit box to go into edit mode, and then mouse-click on something else to remove the focus with no changes to the contents in edit-box).
    The purpose of my routine is to have a edit-box for a user to change for example the centre-frequency of a vector network analyser, so that the centre-frequency of the network analyser can change once the user finishes entering a new value in the text-edit box by hitting Enter key after the number is keyed in. Even if the user has clicked on the edit box, but changes their mind by mouse-clicking on something else to remove focus from the edit box, I would still like labview to detect the event when the control loses focus, so that the centre frequency can be updated anyway (to the same value that was already in the edit box).
    So far, I've tried set the string control option to 'limit to single line', so that I can try to scan for a carriage return .. '\n' ... pattern in the string. Unfortunately this doesn't work because labview doesn't seem to attach the '\n' to the end of that single line.
    Could someone please suggest ways to set a flag when a user hits Enter during text-edit mode of a string control, or when focus has been removed from the string control?
    While I've only described my problem for controlling a single control parameter on the gpib device, I'd like to make this feature work so that I can do the same kind of thing with other control parameters as well.
    Thanks so much in advance.
    Kenny

    Hi Kenny,
    instead of using the event structure, you can directly achieve to what you want by the KeyFocus property of the string control.
    - Enable Limit to single line option
    - Create the property KeyFocus in read mode and connect an indicator
    Each time you click on the string to modify it KeyFocus is True; when you click away or hit Enter KeyFocus is False.
    You can toggle your settings when KeyFocus changes from True to False.
    Alberto

  • Total for an editable column (ALV)

    Hi experts!
    I developed an WD ALV and I need to display totals for a column.
    The problem is, this column is editable, the user could to put some values in some rows of the table and when he press ENTER Key, all values ​​entered should be added and displayed in Total.
    How can to do this?
    Thx in advance.
    Danilo

    Hi Dear ,
    When u press the Enter key after the calculation for that column , u have to refresh or reload the all the contents of the ALV to context for that ALV where it is binded.
    Check the below code :
    data:
      lr_comp_alv    type ref to if_wd_component_usage,
      lr_comp_if_alv type ref to iwci_salv_wd_table,
      lr_config      type ref to cl_salv_wd_config_table.
      data: lr_column_settings type ref to if_salv_wd_column_settings,
            lr_column          type ref to cl_salv_wd_column,
            lr_column_header   type ref to cl_salv_wd_column_header.
      data : lt_column type salv_wd_t_column_ref,
             ls_column type salv_wd_s_column_ref.
      data:  lr_field_amnt type ref to cl_salv_wd_field.
      data: lv_aggr_rule   type ref to cl_salv_wd_aggr_rule.
      data: lr_sort_rule   type ref to cl_salv_wd_sort_rule.
      data  fs_flight      like line of ls_sflight.  
    *... ALV Component Usage
      lr_comp_alv = wd_this->wd_cpuse_alv_test( ).
      if lr_comp_alv->has_active_component( ) is initial.
        lr_comp_alv->create_component( ).
      endif.
      lr_comp_if_alv = wd_this->wd_cpifc_alv_test( ).
    *... Configure ALV
      lr_config = lr_comp_if_alv->get_model( ).
    call method lr_config->if_salv_wd_table_settings~set_selection_mode
        exporting
          value = cl_wd_table=>e_selection_mode-multi_no_lead.
      lt_column = lr_column_settings->get_columns( ).  
    loop at lt_column into ls_column.
        case ls_column-id.  
          when 'PRICE'.  " this is the column id where u want the total
    * aggregate field
            call method lr_config->if_salv_wd_field_settings~get_field
              exporting
                fieldname = 'PRICE' "  this is the column name
              receiving
                value     = lr_field_amnt.
    * create aggregate rule as total (if u need subtotal also...)
            call method lr_field_amnt->if_salv_wd_aggr~create_aggr_rule
              exporting
                aggregation_type = if_salv_wd_c_aggregation=>aggrtype_total
              receiving
                value            = lv_aggr_rule.
        endcase.
    endloop.
    endmethod.  
    Regards
    Aisurya puhan
    Edited by: Aisurya Puhan on Jun 29, 2011 8:06 PM

  • Error:the ipod cannot be updated. the disc could not be read from or writte

    May sound silly I am sorry, new to this. Just got an ipod shuffle and have gone through all troubleshooting suggestions ie: restore ipod, reinstall software etc. Am getting an error: "The ipod "administrator's ipod" cannot be updated. The disc could not be read from or written to". This occurs when I click and drag a playlist from the source section to my ipod in the source section. Getting a wee bit discouraged by reading all the problems associated with this ipod and am hoping for an easy fix to slide past further frustration. Please help. Thank you muchly.
      Windows XP  

    Go to the iPod Shuffle Support Page, look around in there, and follow the troubleshooting steps in the article entitled "Can't be written to" or words to that effect.

  • How to calculate the total of a calculated column in a list view at the end of the view?

    I have a view with the following columns ProductName, Quantity, Price, Total The total column is a calculated column which is the product of quantity and price. I want to place the sum of the total column by the end of the list view. I can do this with
    the price and quantity but not with the total column. how do I do this?

    You can use SharePoint Designer and calculate the total in xslt view. Refer to the following post for more information
    http://community.bamboosolutions.com/blogs/bambooteamblog/archive/2009/04/24/how-to-total-calculated-columns-in-a-sharepoint-list.aspx
    http://blog.metrostarsystems.com/2012/12/03/jennys-sharepoint-tip-sum-calculated-columns/
    Cheers,

  • BDOC's to update the custom fields in R/3 from the CRM sales order

    Dear All,
    I need a small help.
    My requirement is as follows.
    When ever a sales order is created in CRM, an outbound delivery will be automatically created in the R/3 system.
    There are some fields in the CRM sales order which are not there in the R/3 system.So I have to create these fields in the LIKP and LIPS tables in R/3 which is not a problem.
    But I have to copy these fields from CRM to the LIKP and LIPS tables in R/3 when ever a sales order is created and saved in CRM. (This should happen automatically)
    So could anyone tell me whether there are any BDOC’s available to update the sales order info in the LIKP and LIPS tables and also any BADI which can be trigger for this purpose.
    Thanks in advance.
    Regards
    Shafath

    Hi,
    Thanks a lot. You have given a good solution.
    But a small correction.
    Sales Order is not transferred from CRM to R/3. The system is creating (automatically) a delivery in the r/3 system for the sales order created in CRM (Here we will not have the sales order in R/3), so we don’t have an entry in VBAK and VBAP tables.
    When we create a sales order in CRM and save , the delivery in R/3 is created and the sales order is not transferred to R/3.
    So while saving the sales order itself in CRM, I need to trigger a badi to update the LIKP and LIPS tables by calling a RFC (which needs to be developed in R/3).
    So I need a badi which triggers when the sales order is saved and which tells whether the sales order is saved without errors or not (because delivery in R/3 is created for only those orders which are created and saved without errors in CRM)  and returns the sales order number.
    It will be helpful if you can send some info on this.
    Any how thanks a lot for your quick response.
    Regards
    Shafath

  • Does eFSU support to update the 12.2(33)SXI6 images from "vz " to "mz" ?

    We want to update the IOS from s72033-adventerprise_wan-vz.122-33.SXI6.bin to s72033-adventerprise_wan-mz.122-33.SXI6.bin
    Does eFSU support ?

    No, eFSU does not work when you go from a moulder code to a non- code or vice versa.
    BTW, it is good idea to use non-moulder code, as Cisco is not developing moulder codes any more
    HTH

  • To see the content of a BLOB column from sqlplus

    Hi,
    I have a table which has a BLOB column.
    The blobs are text files.
    Is there a way to check the content of blob column from sqlplus itself.
    Thanks.

    There's no information about versin of database
    If you're using 11g, then refer to this link:
    http://dbathoughts.blogspot.com/2008/05/blob-support-in-sqlplus.html
    If you're using 10g, then refer to this link
    http://www.experts-exchange.com/Database/Oracle/Q_20419597.html
    Kamran Agayev A. (10g OCP)
    http://kamranagayev.wordpress.com

  • Getting the distinct person or group column from a splist

    Hi,
    I am trying to get a distinct user type column from my splist. customerUserID is my column name which of type "Person or Group".
    I am having multiple entries in my splist. i want to pas  my curentoggedinuser and compare it against the values from the "customerUserID".
     i tried  using the linq ,but it fails.
    can someone pls help whats the code i need to try.
    DataTable dt = items.GetDataTable();
    DataView dtview = new DataView(dt);
    DataTable dtdistinct = dtview.ToTable(true, "customerUserID");
    bool exists = dtdistinct.Select().ToList().Exists(row => row["customerUserID"].ToString().ToUpper().Equals(SPContext.Current.Web.CurrentUser.LoginName.ToString()));
    if (exists == true ) break;
    am trying teh above code,but i am unable to get the distinct value[ i need only one record ].
    but the above doesnt evaluate to true , eventhough ia m having the correct values in my splist.
    Das

    Hi,
    Please refer to the following blog
    https://rmanimaran.wordpress.com/2011/05/20/get-distinct-values-from-a-sharepoint-list-along-with-where-condition/
    Please don't forget to mark it answered, if your problem resolved or helpful.

Maybe you are looking for

  • Airprint unable to find HP Laserjet 1536dnf via Zyxel P-660HN-F1z

    Airprint is very disappointed. I recently baught *HP Laserjet 1536dnf* *which Apple and HP says it is Airprint enabled* only to find that it doesn't work. And I think both Apple and HP may blame it on Zyxel but the one who is frustrating is a custome

  • View Options default settings

    I am fairly new to iTunes/iPod. Recently got 80 GB video iPod that I use with Win XP. I want to change the default settings for View Options. I don't want several of the categories that are selected by default and I want to permanently add other cate

  • Jar file download

    I have an applet served from orion application server. There are several Jar files that need to be downloaded to the client in order for the application to work. I noticed in JRE 1.3.1 when a Jar file was downloading a pop up with status Bar appeared

  • How to send IDOC as IDOC XML with out touching IR

    Hi Guru's, I have a scenario, where i need to transfer IDOC into Just IDOC XML.. No Mapping is done... I know v can do without touching repository objects.. As Per Bhavesh said in one of the blog.....no need to import idoc into repository.. I am just

  • Change layout for text email to landscape instead of potrait

    I success send the text report to email. But how can I change layout for my text email to landscape instead of potrait. I am using FM SO_DOCUMENT_SEND_API1 to send an emails.