Apply changes overwrites initial record when editing a datagrid

If I go in to edit record 1 of a datagrid using the pencil icon; use the next/previous buttons to go to another record; then press "Apply Changes", it over writes record 1. Does this happen to anyone else, or is this a bug?
I'm running Apex 4.1.1 on Oracle 11 XE on Windows XP via EPG. This happens with both Internet Explorer 8 and Google Chrome version "17.0.963.56 m".
Thanks,
Tak

I frequently do this for my grids maybe the datagrid has this fucntionality built in to detect changes made by users to rows?
Should I make a custom component that extends?
my current solution is to do this:
<GridColumn  width="140" headerText="Margin (disabled)" headerText.editMode="Margin (editing)" dataField="margin"  editable="false"  editable.editMode="true"  >
                    <itemEditor>
                        <fx:Component>
                            <DefaultGridItemEditor>
                                <fx:Script>
                                    <![CDATA[
                                        override public function set value(newValue:Object):void
                                            textArea.text = newValue != null ? newValue.toString() : "";
                                            this.data.isModifiedClientSide = 1;
                                    ]]>
                                </fx:Script>
                            </DefaultGridItemEditor>
                        </fx:Component>
                    </itemEditor>
                </GridColumn>

Similar Messages

  • Fonts change size and content when edited in photoshop cs6

    When I try editing the type in the document created in Photoshop CS6, some of the fonts I click on change their size, formatting as well as content of what it says.
    It also started happening when I try changing canvas size. All of the fonts that got corrupted somehow, changing their formatting and content as I'm changing the canvas size.
    The document has been created from scratch..
    thanks for your help ahead of time!
    Lana

    I've reset my brush, so "replace current brushes with the default brushes" was taken.

  • Icon was changed to default icon when editting a node on JTree

    I have a tree with icon on nodes. However, when I edit the node, the icon is changed to default icon.
    I don't known how to write the treeCellEditor to fix that one.
    The following is my code:
    package description.ui;
    import java.awt.BorderLayout;
    import java.awt.Component;
    import java.awt.Dimension;
    import java.awt.event.ActionEvent;
    import javax.swing.ImageIcon;
    import javax.swing.JFrame;
    import javax.swing.JScrollPane;
    import javax.swing.JTree;
    import javax.swing.ToolTipManager;
    import javax.swing.WindowConstants;
    import javax.swing.tree.DefaultMutableTreeNode;
    import javax.swing.tree.DefaultTreeCellEditor;
    import javax.swing.tree.DefaultTreeCellRenderer;
    import javax.swing.tree.DefaultTreeModel;
    import javax.swing.tree.TreePath;
    import javax.swing.tree.TreeSelectionModel;
    public class Tree extends javax.swing.JPanel {
         private JTree tree;
         private JScrollPane jScrollPane1;
         public static void main(String[] args) {
              JFrame frame = new JFrame();
              frame.getContentPane().add(new Tree());
              frame.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
              frame.pack();
              frame.show();
         public Tree() {
              super();
              initGUI();
         private void initGUI() {
              try {
                   BorderLayout thisLayout = new BorderLayout();
                   this.setLayout(thisLayout);
                   setPreferredSize(new Dimension(400, 300));
                    jScrollPane1 = new JScrollPane();
                    this.add(jScrollPane1, BorderLayout.CENTER);
                        DefaultMutableTreeNode rootNode = createNode();
                        tree = new JTree(rootNode);
                        tree.getSelectionModel().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION);
                        jScrollPane1.setViewportView(tree);
                        ToolTipManager.sharedInstance().registerComponent(tree);
                        MyCellRenderer cellRenderer = new MyCellRenderer();
                        tree.setCellRenderer(cellRenderer);
                        tree.setEditable(true);
                        tree.setCellEditor(new DefaultTreeCellEditor(tree, cellRenderer));
                        //tree.setCellEditor(new MyCellEditor(tree, cellRenderer));
              } catch (Exception e) {
                   e.printStackTrace();
         private void btRemoveActionPerformed(ActionEvent evt) {
             TreePath path = tree.getSelectionPath();
             DefaultMutableTreeNode selectedNode = (DefaultMutableTreeNode)path.getLastPathComponent();
             ((DefaultTreeModel)tree.getModel()).removeNodeFromParent(selectedNode);
         private DefaultMutableTreeNode createNode() {
             DefaultMutableTreeNode rootNode = new DefaultMutableTreeNode("Doc");
             DefaultMutableTreeNode ch1 = createChuongNode(rootNode, "Ch1");
             DefaultMutableTreeNode ch2 = createChuongNode(rootNode, "Ch2");
             createTextLeafNode(ch1, "title");
             return rootNode;
         private DefaultMutableTreeNode createChuongNode(DefaultMutableTreeNode parent, String name) {
             DefaultMutableTreeNode node = new DefaultMutableTreeNode(new ChapterNodeData(name));
             parent.add(node);
             return node;
         private DefaultMutableTreeNode createTextLeafNode(DefaultMutableTreeNode parent, String name) {
             DefaultMutableTreeNode node = new DefaultMutableTreeNode(new TitleNodeData(name));
             parent.add(node);
             return node;
          private class MyCellRenderer extends DefaultTreeCellRenderer {
                 ImageIcon titleIcon;
                 ImageIcon chapterIcon;
                 public MyCellRenderer() {
                     titleIcon = new ImageIcon(getClass().getClassLoader()
                            .getResource("description/ui/icons/Text16.gif"));
                     chapterIcon = new ImageIcon(getClass().getClassLoader()
                            .getResource("description/ui/icons/Element16.gif"));
                 public Component getTreeCellRendererComponent(
                                     JTree tree,
                                     Object value,
                                     boolean sel,
                                     boolean expanded,
                                     boolean leaf,
                                     int row,
                                     boolean hasFocus) {
                     super.getTreeCellRendererComponent(
                                     tree, value, sel,
                                     expanded, leaf, row,
                                     hasFocus);
                     if (isChapterNode(value)) {
                         setIcon(chapterIcon);
                         setToolTipText("chapter");
                     } else if (isTextLeafNode(value)) {
                         setIcon(titleIcon);
                         setToolTipText("title");
                     return this;
                 protected boolean isChapterNode(Object node) {
                     return ((DefaultMutableTreeNode)node).getUserObject() instanceof ChapterNodeData;
                 protected boolean isTextLeafNode(Object node) {
                     return ((DefaultMutableTreeNode)node).getUserObject() instanceof TitleNodeData;
          private class MyCellEditor extends DefaultTreeCellEditor {
                 ImageIcon titleIcon;
                 ImageIcon chapterIcon;
              public MyCellEditor(JTree tree, DefaultTreeCellRenderer renderer) {
                  super(tree, renderer);
                  titleIcon = new ImageIcon(getClass().getClassLoader()
                         .getResource("description/ui/icons/Text16.gif"));
                  titleIcon = new ImageIcon(getClass().getClassLoader()
                         .getResource("description/ui/icons/Element16.gif"));
              public Component getTreeCellEditorComponent(
                           JTree tree,
                           Object value,
                           boolean isSelected,
                           boolean expanded,
                           boolean leaf,
                           int row) {
                  super.getTreeCellEditorComponent(tree, value, isSelected, expanded, leaf, row);
                  return this.editingComponent;
          abstract class NodeData{
              String name;
              public NodeData(String name) {
                  this.name = name;
              public String getName() {
                  return name;
              public void setName(String name) {
                  this.name = name;
              public String toString() {
                  return name;
          class ChapterNodeData extends NodeData {
              public ChapterNodeData(String s) {
                  super(s);
          class TitleNodeData extends NodeData {
              public TitleNodeData(String attr) {
                  super(attr);
    }

    Arungeeth wrote:
    I know the name of the node... but i cant able to find that nodeHere is some sample code for searching and selecting a node:
        TreeModel model = jtemp.getModel();
        if (model != null) {
            Object root = model.getRoot();
            search(model, root, "Peter");//search for the name 'Peter'
            System.out.println(jtemp.getSelectionPath().getLastPathComponent());
        } else {
            System.out.println("Tree is empty.");
    private void search(TreeModel model, Object o, String argSearch) {
        int cc;
        cc = model.getChildCount(o);
        for (int i = 0; i < cc; i++) {
            DefaultMutableTreeNode child = (DefaultMutableTreeNode) model.getChild(o, i);
            if (model.isLeaf(child)) {
                TreeNode[] ar = child.getPath();
                String currentValue = Arrays.toString(ar);
                if (currentValue.contains(argSearch)) {
                    jtemp.setSelectionPath(new TreePath(ar));
            } else {
                search(model, child, argSearch);
    }

  • Update info record when changing units of measure in material master

    Hello,
    is there any possibility for an automatic change of info record when changing conversion factors in the material master ?
    We have 3 units of measure in our material master: the base unit and 2 alternative units. The first alternative unit is the order unit and the second alternative unit is the order price unit. So in our purchase info records we maintain an order unit, which differs from the base unit and we also maintain an order price unit, which differs from the base unit and the order unit.
    If we now change the conversion factors between the units in the material master, we would like to get an automatic change of the converions in the info record (to order unit and order price unit), which have the same previous conversions.
    For IS R it seems to be implemented (see OSS-Note 975954).
    Is there any solution for a "normal" industry system ?
    Thanks for answering
    Edited by: Britta Heinsen on Jul 23, 2009 1:52 PM

    I don't think such an auto update is available. Infact I came to know that such an update is available in IS-R after reading your query.
    Obviously you an always create a workflow based enhancement that can synchronize the Info-records and material master changes or sort of enhancement which regularly reads the material master change history for such changes and trigger a synchronization by executing change Info-record automatically.

  • Notification Email should be triggered when hit the Apply changes?

    Hi All,
    Am creating a request form similiar to a remedy form,when ever the user create a new request and submit the request.Notification email will be sent to the user and the admin.
    Here when the admin ppl rejects the request,a notification email triggered to the user like request has been rejected .
    I have three radio buttons in the Form
    1.Submitted(default).
    2.Rejected.
    3.Accepted.
    When the admin edit the request and select rejected radio button,and apply changes ,a notification email should be triggered to the user.
    Now i have a after submit process for edit the ,which will be triggered when ever the user hit the apply changes button and it will send notification to both user and admin.
    How to achieve the notification email that should be triggered when the admin rejects the request and submit the form???
    am using apex version 4.0
    when the Admin will select the reject radio button and hit tha apply changes then the notification email should be sent to the user!!
    Always appreciate your help!!!
    Thanks & Regards,
    Ramya.

    Ramya wrote:
    Hi Gurujothi,
    Thanks for your response!.
    I can able to send email now.Thing is i need to send an email like when the admin rejects the request.
    For eg.
    1.Admin opened the request and select the Reject radio button and clicking Applychanges button then the email notification will be sent to the user like,
    Your request has been Rejected.
    2.If the Admin selects the radio button accept radio button and clicked apply changes,start processing about the request then the Email notification will be sent to the user like ,
    Your request has been modified .Request will be notified by the admin.(Working now)
    DO i need to create two separate process for the email notification like
    one is for all the modifications that the user/admin will do in the form ,once the record is created and another process is for Rejection purpose of the Form.But only one Apply changes button is there in the Form.You don't need two page process, In one single process you can acces the page item session values using *:YOUR_ITEM_NAME* bind variable syntax or V function like this V('YOUR_ITEM_NAME')
    So in your PL/SQL code you can easily prepare the email body based on your radio group item's value
    declare
    l_body varchar2(4000);
    begin
    IF :Px_MY_RADIO_GROUP ='R' THEN
      l_body := build your conditional email body for rejected
    ELSIF  :Px_MY_RADIO_GROUP ='A' THEN
      l_body := build your conditional email body approved
    END IF;
    apex_mail.send(
            p_to       => '[email protected]',   -- change to your email address
            p_from     => '[email protected]', -- change to a real senders email address
            p_body     => l_body,
            p_subj     => 'APEX_MAIL Package - Plain Text message');
    end;
    See this http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21674/concept_ses_val.htm#HTMDB03012

  • Apply Find/Change to multiple records at once?

    Hi,
    I'm wondering if there is a way to apply the find/change options I select to all the records I've Data Merged into my InDesign file.
    The placeholders won't import the spaces in my database, example if I have
    InDesign template:     <<bird>>
                                            <<beak>><<beak value>>
    .csv:                              bird,beak,beak value
                                         Eagle,beak:        ,hooked
    I get
    InDesign after Data Merge:  Eagle
                                                     beak:hooked
    No spaces came over with the merge.  If there is an option to preserve spaces, that would be the easiest solution. However, I'm not finding such a command, so I'd like to add a special character after my colons in the .csv and then use ID to find/change that character in every one of my records into a space or two.  Any ideas?
    Thanks.
    edit: Even on a single record, the find/change isn't applying to my output document, either... Its outputting the special character I wrote into the  .csv fields instead of the space it is supposed to change into.
    Message was edited by: EX_Achilles

    Thanks, but I already wrote <space> into the .csv fields where I need spaces. Sometimes I just want a space and it doesn't necessarily come after a colon.  However, that's not really the problem I'm trying to figure out.
    1. The recplacement needs to work across all records, not just the one I'm currently previewing.
    2. The replacement doesn't stay replaced when I do the actual merge.
    *Just so I'm understanding you right, by "search" are you referring to the "find what:" and "replace" are you referring to "Change to:" in the Find/Change Window?

  • Forms inserts rather update on commit_form when changes made in records

    I have created a form in forms builder 10g. These are 3 tables.
    1. Recovery_Shift (Production Shift Information) -- Parent Table
    2. Recovery_Size (Many Size in one Production Shift) -- Child to Table- 1
    3. Recovery_Size_Dtl (Details of the Size Recovered) -- Child to Table- 2
    The form has been created using 3 datablocks correpsonding to the above tables in two canvases.
    In second canvas I have a "Save" Push Button with code "Commit_Form". Whenever I am inserting first time it is ok. After pressing this push button if I make any changes in any record and press the Save button, forms shows unique constraint error. When I disable this constraint in table. The form inserts a new duplicate row in the table.
    The problem is ==>if I make any changes in the form after pressing "Save" button (Commit_form) it inserts the whole row rather updating the row.
    What could be the cause and solution. Please guide. The module is at implimentation stage. Thanks in advance for guidance.
    Tables for your references.
    Table - 1. Recovery_Shift
    SHIFT_ID----------NUMBER(10,0)     --> PK
    RECOVERY_DATE-----DATE     
    SHIFT-------------VARCHAR2(1 Bytes)     
    SHIFT_START_TIME--DATE     
    SHIFT_END_TIME----DATE     
    SUPERVISOR--------VARCHAR2(6 Bytes)     
    OPT---------------VARCHAR2(6 Bytes)     
    ENTRY_BY----------VARCHAR2(6 Bytes)     
    ENTRY_DATE--------DATE     
    VALIDATE_BY-------VARCHAR2(6 Bytes)     
    VALIDATION_DATE---DATE     
    SHIFT_MINUTE------NUMBER(10,0)     
    Table - 1. Recovery_Size
    SIZE_ID-----------NUMBER(10,0)     --> PK
    SHIFT_ID----------NUMBER(10,0)     --> FK
    REJ_STAGE---------VARCHAR2(2 Bytes)     
    ITEM_SIZE---------NUMBER(7,2)     
    ITEM_CLASS--------NUMBER(4,2)     
    ITEM_GROUP--------VARCHAR2(2 Bytes)     
    ITEM_QUALITY------VARCHAR2(3 Bytes)     
    RECOVERED_MTR-----NUMBER(10,2)     
    RECOVERED_TON-----NUMBER(10,3)     
    AUCTION_MTR-------NUMBER(10,2)     
    AUCTION_TON-------NUMBER(10,3)     
    ITEM_SPEC---------NUMBER(2,0)     
    Table - 1. Recovery_Size_Dtl
    SIZE_ID-----------NUMBER(10,0)     --> FK
    LEN_MIN-----------NUMBER(4,2)     
    LEN_MAX-----------NUMBER(4,2)     
    REC_AUC-----------VARCHAR2(1 Bytes)     
    PCS---------------NUMBER(10,0)     
    MTR---------------NUMBER(10,2)     
    TON---------------NUMBER(10,3)     
    SEGMENT-----------VARCHAR2(1 Bytes)
    Message was edited by:
    Vinay Pandey

    for inserting a row it asks for commitThat is normal behavior. When you update or create a record in the Recovery_Size_Detail block, you must commit the record before working on another record.
    I think it may be the cause of problem that there are already saved (commited)records in the form when i am entering more records in 2nd & 3rd table and commiting them.If you are creating new records after the commit, and these new records are duplicates in the database, then the unique constraint error is expected. If you want to ensure the user is not creating duplicate records before trying to commit, then see this:
    http://sheikyerbouti.developpez.com/duplicates/duplicates.htm
    You might try creating the form with just two blocks:
    First block (master): Recovery_Shift
    Second block (detail) Recovery_Size
    Get that to work and test it by updating and creating records. After you are pleased that it works, save it and then add the 3rd block as a detail block for the the 2nd block. Then you have this:
    Block1. Recovery_Shift (master)
    Block2. Recovery_Size (detail for block 1 and master for block 3)
    Block3. Recovery_Size_Detail (detail for block 2)

  • Edit Page;Report;Enable CSV Output;Apply Changes;Page Not Found;wwv_flow

    Hi,
    We have a really annoying error in our application, whereby we are unable to save ANY changes to report attributes if Enable CSV Output is Yes.
    I have many pages with Enable CSV Output set to Yes, and when run, the pages can indeed be exported to Excel, fine so far.
    However, if we do Edit Page, choose Report change Enable CSV Output to No, then apply changes the option is removed ok - BUT if we then set it back to Yes, when we apply changes again we get a Page Not Found error at this address ;
    http://sglas-sand.fm.rbsgrp.net:7780/pls/fdm_uat2/wwv_flow.accept
    We obviously dont need to keep changing this value, but the above demonstrates that our reports do currently support CSV output, but for some recent reason, trying to save a page where this option has been changed to Yes causes this crash.
    We also seem unable to change and save any other attribute when CSV Output is set to Yes. This leaves us in a tricky situation - unable to change our pages unless we are prepared to remove the Export option!
    We were wondering if the support of this this option requires any special processing / objects / etc to be availble / running. Any help greatly appreciated.
    John Nice
    Royal Bank of Scotland - Finance IT

    Hi Scott,
    Thanks for the reply. Our errors were like this in the log ;
    [Thu Feb 22 14:52:33 2007] [error] [client <private ip removed>] ] [ecid: 1172155953:<private ip removed>] :30306:0:1855,0] mod_plsql: /pls/fdm_uat2/wwv_flow.accept HTTP-404 ORA-06550: line 23, column 3:\nPLS-00306: wrong number or types of arguments in call to 'ACCEPT'\nORA-06550: line 23, column 3:\nPL/SQL: Statement ignored\n
    Versions are ;
    Database : 10.2.02
    HTMLDB : 2.2
    Apache : 10g release 2
    Regards,
    John
    Message was edited by:
    John @ RBoS

  • Now, in photoshop elements 9 when editing, colours displayed are not correct, seems gama number has changes ?

    up to now I had no problem when editing photos with photoshop elements 9. Due to an  unknown  reason/event the colours displayed , now, are not correct : it looks like the gama adjustment has been changed and the photo rendition is uncorrect. If I display the same photos with other photo editing software ( DPP from Canon for example, or Xnview) , the colours are correct !!... Can you help me ?
    Thanks  a lot !
    JJ Etienne

    Thank you for trying to help me. In fact, I resolved my problem by changing the default ICC profile for my screen : I entered the parameters settings panel, screen definition and then advanced settings where I could choose another ICC profile.
    Thank you anway !!
    JJ

  • HT1451 when editing info, how do i select multiple items to edit a group? For example, changing the artist name on multiple tracks at once?

    when editing info, how do i select multiple items to edit a group? For example, changing the artist name on multiple tracks at once?

    Same way you select multipl items anywhere else.
    Hold ctrl and click the items you want.
    If they are in consecutive order, click the 1st then Shift click the last.

  • HT1386 When I try to sync changes from my playlist to my iphone the sync process gets to step 7, applying changes and then freezes up, the changes are not being put on my iphone. What do I do to correct this issue?

    When I try to sync changes from my playlist on the computer to my iphone the sync process gets as far as step 7, applying changes, then freezes up and the changes are not getting to my iphnoe.  How do I fix this issue?

    Are all these songs associated with the same Apple ID or were some purchased on another account?
    Are they tagged properly? In the library does it break an album out into several different albums with a few tracks each?
    Check your sync settings for each device. Do you accidentally have only certain songs/albums syncing?

  • Track changes when editing pdf text?

    Is it possible to track chnages when editing the text of a pdf?
    If so, how?
    And if not, is it possible to make all edits I do on a document in another colour to differentiate the original text from my editing text? (Without pressing a colour swatch every time of course...?)
    Many thanks,
    Wendy

    OK, thanks. Now, can I change the colour of the text on all the changes I make then? In the Edit Document Text tool, if I right click, then I get the choice of font and colour. I have changed the colour to red so my edits will stand out and yet when I make a change the text colout does not change.
    Can you help?
    Thanks,
    W

  • Mass upload for info records when price gets changes

    Dear All,
    How to do Mass upload for info records when price gets change.
    Regards,
    Bhargav

    Hi Bhargav,
    Please upload the present price (Map) by  LSMW . When you are doing the transactions  then automatically by selecting option info update price will be updated the  info record in Order Price history
    Regards
    M B Raju

  • How do I reveal the cut points when editing Adobe Connect recording?

    Since the roll-out of AC 9.1, when I edit the timeline of a recording I see the timeline of the position of my cursor ON TOP OF the timeline point of the cut points, therefore I can't see where I'm about to cut a recoring. How to see the cut points when editing the timeline?
    Thanks,
    --Kevin

    Hi Kevin,
    There is a know bug for the black marker overlapping the time-line with a black marker.
    But we have a trick to help you do your editing effectively. Follow the steps mentioned below and you will be able to edit your recording with precision:
    1. Pause the recording from where you want to start your editing.
    2. Double Click on the LEFT marker. It will take both the markers to that point on the recording timeline.
    3. Play the recording and pause the recording again at the point till where you want to edit the recording.
    4. Double Click on the RIGHT marker. It will take the right marker to the end point of your to-be-recording.
    5. Cut and Save.
    Do let us know if this helps!
    Thanks
    Sameer Puri

  • APEX 4 - Edit Application Properties - Apply Changes - Error

    This has seemed to have started after upgrading to Apex 4. We also updated to 4.0.1, and are still having the problem. With any application, if we attempt to apply changes to the application definition it fails...
    Home>Application Builder>Application 104>Shared Components>Edit Application, Defintiion tab. Make a change, then click 'Apply Changes' The browser returns a 404 error. In fact, we don't have to make a change to the values displayed. Just attempting to apply the existing values fails.
    This is the error we receive in the ohs.log...
    [2010-08-31T19:48:35.2479-05:00] [OHS] [ERROR:32] [OHS-9999] [mod_context.c] [host_id: hostname] [host_addr: xxx.xxx.xxx.xxx] [tid: 19] [user: username] [ecid: 004ZmWEhjJ35yW8C3jMMOz0001Lr0004y3] [rid: 0] [VirtualHost: main] MODPLSQL-00261: mod_plsql: /pls/apex/wwv_flow.accept HTTP-404 Failed to execute target procedure ORA-00604: error occurred at recursive SQL level 1\nORA-06502: PL/SQL: numeric or value error: character string buffer too small\nORA-06512: at line 10\nORA-06550: line 35, column 3:\nPLS-00306: wrong number or types of arguments in call to 'ACCEPT'\nORA-06550: line 35, column 3:\nPL/SQL: Statement ignored\n, referer: http://hostname:xxxx/pls/apex/f?p=4000:4001:3485056460649030::NO::FB_FLOW_ID:104
    We're unable to find any cause for the error. Any help would be appreciated.
    Thanks!

    Yes, we still have the logs. No errors from the install or patch to 4.0.1. All packages, procedures, functions are valid.
    And, I just found the problem. We had an 'after servererror on database' trigger enabled without the proper field checks. Disabled the trigger, problem solved.
    Thanks for the help!

Maybe you are looking for