How to update the table when change list item in classic report

hi ,
i worked with apex 4.2 and i create normal classic report with one select list(named loved)Column ,now i want to update table when user change the list with new value ,i can't create dynamic action to do this,i create check box with primary key and loop for check item to update the table but i can't get the value of list item. and for more speed the user want to do this when change the list value.
my question
1- how to do this by javascript and get the value from list item and update the table with new value
2- is i must use API to create list item so i can get the value of item in report or what.
Thanks
Ahmed

I coded the following to give you direction:
1. In the "Element Attributes" section of the DEPTNO column, I call a javascript function as:
onchange = "javascript:updateTable(this);"2. I wrote a simple javascript function that shows an alert when the user changes the select list as:
<script language="JavaScript" type="text/javascript">
function updateTable(pThis)
    var vRow = pThis.id.substr(pThis.id.indexOf('_')+1);
    alert('Row# - '+ vRow + ' has the value - ' + pThis.value);
</script>Now, you can call a AJAX on-demand process inside the javascript function to update the database value.

Similar Messages

  • How to update the table value in the valuechange event?

    I have an input field in the datatable with the valueChangeListener
    <rich:dataTable id="cart" value="#{cart.cartList}" var="item">
    <h:inputText value="#{item.cost}" id="qty" valueChangeListener="#{items.updateCost}" onchange="submit()">
    <h:outputText value="#{item.errorMsg}"> </h:outputText>
    in the backing bean
         Item item = (Item) model.getRowData();
    // do some update, if the cost too larger, change to max_cost
         item.setCost(max_cost);
         item.setErrorMsg("Error Msg");
    After calling the valuechange method, the screen output doesn't update the cost.
    How to update the table value in the valuechange event?

    As you're misusing the valueChangeListener to set another input field, you need to skip the update model values phase. Otherwise the value set in the valueChangeListener will be overridden by the submitted value. You can do this by calling the FacesContext#renderResponse() inside the valueChangeListener method. This will shift the current phase immediately to the render response phase, hereby skipping the update model values and invoke application phases.

  • How to display the count of a list item in Sharepoint Designer?

    How to display the count of a list item in Sharepoint Designer? please reply with the proper code line to add for this.

    Hello,
    What version of sharepoint you are using? Try below approach:
    http://sharepointlogics.com/2010/03/total-count-of-items-in-list-in.html
    Hope it could help
    Hemendra: "Yesterday is just a memory,Tomorrow we may never see"
    Whenever you see a reply and if you think is helpful, click "Vote As Helpful"! And whenever
    you see a reply being an answer to the question of the thread, click "Mark As Answer
    Please feel free to unmark answer if does not resolves your problem.

  • How to update the table available in BADI method

    Hi Friends,
    I have to implement one badi ME_REQ_POSTED for purchase requistion, in this badi  I have to read first line item and do
    some check...if that check is true i need to update subsequent line item (line 20, 30, 40 or so) with purchase group and MRP controller.
    In this BADI i have method POSTED, in this method parameter IM_EBAN is a table which i need to modify with my different
    values for purchase group and MRP controller.
    Kindly let me know how to update this table, so the changes can be reflected in purchase requistion.
    Since when I tried to directly modify the table in a loop, system throw one error stating IM_EBAN can not be modified.
    kindly help.
    pradeep

    hi
    I have implemented this exit but it does not stop at it while saving Purchase requistion. But my previous BADI stops at it when saving.
    Kindly guide.

  • How to reload the screen when changing languages in JavaFX 2?

    I'm beginner with javaFX and i need to change language of the screen. but i have no idea how to reload the screen when the language was changed. The application have a button where have the language available. I want just refresh screen when the user change language.
    Here is the start method to show the stage.
        @Override
        public void start(Stage stage) throws Exception
            this.stage = stage;
            Locale locale = Locale.getDefault();
            ResourceBundle rb = ResourceBundle.getBundle("resources/Label",locale);
            loader = new FXMLLoader(getClass().getResource("FXMLDocument.fxml"),rb);
            root = (Parent)loader.load();
            FXMLDocumentController controller = (FXMLDocumentController) loader.getController();
            controller.setMain(this);
            scene = new Scene(root);
            stage.setScene(scene);
            stage.show();
    here is the function to change the language(in the same class with start function),the rb is the new ResourceBundle:
        public void refresh(ResourceBundle rb)
              //change the language here
    1. I don't want to use the resourceBundle to get value in resource file and set label in scene one by one.like following:
    this.btnLabel.setText(rb.getString(key.test));
    2. I don't want to reload the scene,like following:
        public void refresh(ResourceBundle rb)
             try
                loader = new FXMLLoader(getClass().getResource("FXMLDocument.fxml"),rb);
                root = (Parent)loader.load();
                scene.setRoot(root);
                FXMLDocumentController controller = (FXMLDocumentController) loader.getController();
                controller.setMain(this);
            catch(Exception err)
                err.printStackTrace();
    So do we have a solution to just set the resourceBundle and reload the scene easier?
    Thanks and best regards!

    Your option 2 (reload the FXML for the scene using the new resource bundle as a parameter), is the way this would normally be done and what I would recommend.
    Failing that, you could use option 1 of individually resetting the label text of labeled items (I don't really recommend this).
    Why don't you want to use option 2?
    Perhaps it is because there is some internal state of the UI which differs from the initial state when the the UI is first loaded (e.g. user has typed text in a text field and you want to preserve that).  If that's the case you will need to either go with your option 1 of individually resetting the label text of labeled items, or implement something which preserves the UI state and user data by saving it in memory or to disk, reloading the UI via the FXMLLoader (essentially your option 2), then restoring the UI state and user data to what it was before the language change.  Preserving and restoring the modified state seems complicated to me if you have a lot of state, so I wouldn't really advise this approach unless you really needed it.

  • How to set the number of rows displayed in a classical report at runtime?

    Hi,
    Our customer has several standard client hardware configuration and would like to enable end users to choose their 'display profile' at login time. This 'display profile' would contain predefined values for these hardware configurations and supposed to set various paramters that should define the number of rows displayed in a classical report region.
    I tried to provide parameters on the report region but it refused to accept anything but numerical values. Is it possible to do this?
    Regards, Tamas

    The link is to the closest linkable point in the documentation to the description of the Number of Rows (Item) attribute.
    It sounds like you have been trying to enter&mdash;unsuccessfully&mdash;an item name or substitution string into the Number of Rows attribute. The Number of Rows (Item) attribute is the one that actually allows you to do this. Click on the flashlight icon beside it to get a list of items from the application.

  • How to update a table when exception?

    The form contains only 1 block, a control block, which will trigger a oracle report when user save it.
    It will insert a record into a table. If report generate successfully, it will update the status to completed and vice versa.
    How can I do so? Because in the exception block, it will rollback the record inserted and cannot update the status anymore.
    {color:#000000}Begin
    INSERT ..........
    Some Processing......
    Call Report.......
    UPDATE the status .......
    Exception
    When OTHERS THEN
    UPDATE the status .......
    End{color}
    Thanks.

    If there is only a control block, forms will not do any commit, so you have to put a commit; at the end of your procedure, both in the main and in exception blocks.
    You can then suppress the 'No changes to commit' message.
    Best practice approach would be to have a stored procedure coded as autonomous transaction.

  • Update the table when Document successfull with BDC

    Hi,
        I am changing the Billing document header and item level using BDC call Transaction. When the document is success fulley saved at that time I have to modify the flag in the table with 'X', when it fails or if it has errors I have to set the Flag as 'F'. Could please any body tell me how can I do this.
    Thanks & Regards
    Venkat

    Hi,
    In the call transaction do the following :
    Data : it_msg type standard table of bdcmsgcoll.
      CALL TRANSACTION VA01 USING it_bdcdata
                       MODE   'N' 
                       UPDATE 'A'
                       MESSAGES INTO it_msg.
    READ TABLE it_msg INTO  wa_msg WITH KEY msgtyp = 'E'
                                              msgtyp = 'W'.
    if sy-subrc eq 0.
    update ZTABLE set flag = `F`
            where <condition>.
    else.
    update ZTABLE set flag = `X`
            where <condition>.
    endif.
    Best regards,
    Prashant
    Message was edited by: Prashant Patil
    Message was edited by: Prashant Patil

  • How to update the tables either in its entirety or not at all

    We want update more than two tables at one time,for example we code following:
    update A set ***
    update B set ***
    we first update A, but sometimes B can not be updated sucessful,
    How to update A&B tables in its entirety?  Or, if any one of these tables can not be updated sucessful,two talbes don't update at all.
    Thank you very much?

    hi,
    You want to update or not update at all that means either Update or rollback.
    So Put A COMMIT WORK statement after the update starement.
    It will either fully update or Automatically Rollback the whole
    Processing.
    Regards
    Sumit Agarwal

  • How to update old POs when changing a supplier name?

    Hi,
    Can anyone advise on how to update supplier details on old POs when we update a supplier name?
    Thanks.

    Hi,
    You dont want to do any updation in Old PO even its in Approved and Closed status.
    System will automatically update the name in All PO when you update the supplier name in Suppliers form.
    Thank you
    Regards
    M.R.Sivasooriyan

  • How to refresh the table after change value in the VO programatically?

    Hi,
    I like to update my table by using a popup. My problem is that the table does not refresh after I change the value in the table's VO by the popup.
    There is another table in the popup, and the popup is triggered by a command button. An af:showPopupBehavior is nested in the button. The method of the button in backing bean is as following,
    public void accountcodeButtonClicked(DialogEvent dialogEvnt) {
    ViewObject volisttable=am.getAcChartValidateView1();
    String nowcode=volisttable.getCurrentRow().getAttribute("Code").toString();
    ViewObject vobasetable=am.getGlDetailView1();
    vobasetable.getCurrentRow().setAttribute("AccountCode",nowcode);
    The partialTrigger of the base table's column AccountCode points to the triggering button.
    I do not know why the base does not refresh after the above method is executed.
    Please me.
    Stephen

    Hi,
    kind of a shame that after so many years of ADF the message that updates should be through the binding layer hasn't gone through ;-)
    You change the underlying business service, which doesn't impact the binding layer the way you do it. So here is what you can try in the same order
    - 1. RequestContext.getCurrentInstance().addPartialTarget(<table reference>)
    - 2. If 1. doesn't show the changed data, try and re-execute the iterator that is the base of the table. If this works then the effect you see is caused because you ignore using the binding layer
    Frank

  • HT5538 How to update the devices: after Change of Apple ID & Password

    I changed my Apple ID name and password using my PC and was already verified. 
    How do I update the Icloud account settings in my Iphone4 and Ipod Touch 5th generation
    with my new Apple ID?  My old Apple ID Account name is greyed and cannot be edited in my devices. 
    And still prompts for a password with my old Apple ID in the prompt message.

    Hi ilayski,
    Sign out of the iTunes & Apps store and then sign in with your new AppleID. Delete the iCloud account, and then create a new one using your new AppleID.
    Hope this helps!
    Cheers,
    GB

  • ADF Master Form / Detail editable table : how to update the table ?

    Hello,
    I'm using ADF faces with entity objects.
    Here is a simple explanation of the model :
    Table DOCUMENT --> Table LINEA DOCUMENT can have 0 or several row in the LINE table. Model is quite simple.
    I'd like to create JSF pages to create and update DOCUMENT/LINE items.
    I began with the Edit one :
    In my DataControls I have something like :
    AllDocuments
    |
    +- Id
    |
    +- Name
    |
    +-> AllDocumentLines
          |
          +- IdLine
          |
          +- ValueI created a form with the "AllDocuments" items having navigation and submit button.
    I created an editable table with "AllDocumentLines" items.
    The values are correctly filled.
    My questions are :
    - Which kind of "button" I have to add at the end of each row of the table to :
    * validate the update if "Value" changes ? I tried to drag/drop the related Create button but it stays disabled.
    * delete the row
    - Which button can I put to "Add" a new row ?
    I searched the forum but can't find answers of my problem.
    Edit: I'm using JDeveloper 11.1.1.3.0
    Edited by: Christophe on Jul 2, 2010 5:12 PM

    For creating a record drag the createInsert operation and for delete drag the delete operation - just make sure to drag the operation from the right VO in the data control palette.
    The you can drag the commit and rollback operations from the AM level - and you can change the "Disabled" properties of the buttons to false.

  • How to restrict the user to change ALV layout for Standard Report Output

    Dear All,
    How can i restict the Users to change Output layout of Standard ALV reports,
    kindly suggest to solve the issue.
    Regards,
    Niranjan.G

    Hi NIranjan,
    In the ALV function module , the i_save can have the below paramater values.
    You can add based on your requirement.
    I_SAVE = SPACE Layouts cannot be saved.
    I_SAVE = 'U' Only user-defined layouts can be saved.
    I_SAVE = 'X' Only global layouts can be saved.
    I_SAVE = 'A' Both user-defined and global layouts can be saved.
    Check the Authorization Object - S_ALV_LAYO  in SUIM (Objects by Complex Search)
    Activity -23.
    Edited by: Raj on Jul 13, 2010 3:05 PM

  • How to print the data as a bold letters in classical report

    Hi Friends,
                I want to print the some data in the classical  report as a   BOLD letters.  What is the way to do..
    Thanks and Regards,
    Surya

    Hi Surya,
    Am pasting some data from help.sap.com , I think the addition of LINE to the command as shown below might be necessary:
    REPORT demo_list_print_control LINE-SIZE 60.
    TABLES spfli.
    PRINT-CONTROL FUNCTION: 'SABLD' LINE 1,
                            'SAOFF' LINE 2,
                            'SAULN' LINE 3.
    GET spfli.
      WRITE: / spfli-carrid,   spfli-connid,  spfli-cityfrom,
               spfli-airpfrom, spfli-cityto,  spfli-airpto.
    If in table T02DD, the printer control characters for the print-control codes SABLD, SAOFF, and SAULN are defined as in the figure above, the system formats the output as follows:
    1996/03/13 SPFLI 1
    AA 0017 NEW YORK JFK SAN FRANCISCO SFO
    AA 0064 SAN FRANCISCO SFO NEW YORK JFK
    DL 1699 NEW YORK JFK SAN FRANCISCO SFO
    DL 1984 SAN FRANCISCO SFO NEW YORK JFK
    LH 0400 FRANKFURT FRA NEW YORK JFK
    The print format for the first line is set to bold, using the print-control code SABLD. The print-control code SAOFF turns off bold style, starting from the second line. Using the print-control code SAULN, the system underlines all lines starting from line 3.
    Cheers,
    Aditya

Maybe you are looking for

  • Saving pdf files in reader

    How do I set up a pdf file, with fields so a person with acrobat reader can save the file without having to just print it out? I have taken out all security features, but they still can't save the file.

  • Field / Column for Minus/Plus sign in Query

    Hello In Query Designer I would like to create a column that shows the sign '+' or '-' when a key figure KF1 is below 0 or above. How do I do this? It has to be a separate column. I already created a calculated key figure KF2 that has as formula ABS

  • What type of bag do you have?

    Hello everyone, I am trying to decide which type of bag to get (sleeve, backpack, or side bag). So I was just wondering what type all of you have gotten and what your reason for getting it is. Thank you so much for any input as I it will greatly help

  • Help: Oracle lite 10.3.0.1.0 and symbian 9 s60

    Greetings, I installed the oracle litle server, I have a client installed windows 32, and synchronizes works, the problem is when I want to install a client for symbian, first how to enable the client for Oracle Lite Symbian OS v7 and OS v7/UIQ2.1 in

  • Code for image shadow effect

    iWeb creates very nice shadows. Is it a separate image created on the fly or some javascript? Is there any way to get the code that generates that effect? I'd like to extend it to other pages that weren't made in iWeb. Thanks in advance. Mike