Insert new tags after root element

Hi,
I'm trying to insert new tags immediately after the root element in a DOM tree. The data to be inserted is being passed to the program as a string parameter. I've used Dom4J to add the data as a new element immediatelty after the root. Problem is, I'm not able to extract the content as a String from the document object. Here's my sample code :
String addStr = "<div class=\"test2\">Test Val1</div><div class=\"test2\">Test Val2</div>";
SAXReader reader = new SAXReader();
String xml = "<div class=\"discussionThread dt\"><div class=\"dt_subject\">2011 IS HERE!</div></div>";
Document document = reader.read(new StringReader(xml));
DefaultElement newElement = new DefaultElement("div");
newElement.addAttribute("class", "test");
newElement.add(new DefaultText(addStr));
List content = document.getRootElement().content();
if (content != null ) {
        content.add(0, newElement);
}There are couple of issues with this approach.
1. I'm not able to find a way to convert the Document object content to String. The only API reference is asXML() which converts the document to a xml and sends it back as String. As a result of this, it adds a <xml> tag at the top.Also,the content within the added String has been parsed and converted to &gt; , &lt;
Here's the output
<?xml version="1.0" encoding="UTF-8"?>
<div class="discussionThread dt"><div class="test">&lt;div class="test2"&gt;Test Val1&lt;/div&gt;&lt;div class="test2"&gt;Test Val2&lt;/div&gt;</div><div class="dt_subject">2011 IS HERE!</div></div>Just wanted to know if there's a better way to do this. Any pointers will be highly appreciated.
-Thanks

from oracle documentation...
Old and new values are available in both BEFORE and AFTER row triggers. A new column value can be assigned in a BEFORE row trigger, but not in an AFTER row trigger (because the triggering statement takes effect before an AFTER row trigger is fired). If a BEFORE row trigger changes the value of new.column, then an AFTER row trigger fired by the same statement sees the change assigned by the BEFORE row trigger.
for more details read the documentation

Similar Messages

  • Must insert new content into body element-

    I'm using 1.4.0_01-b03 with JEditPane and the HTMLToolKit. Up until this afternoon everything was working fine. Now randomly, I am getting the following stack trace. I am loading using setPage(URL url) to set the contents. The contents of the page being load have not changed.
    Any clues?
    java.lang.RuntimeException: Must insert new content into body element-
         at javax.swing.text.html.HTMLDocument$HTMLReader.generateEndsSpecsForMidInsert(HTMLDocument.java:1878)
         at javax.swing.text.html.HTMLDocument$HTMLReader.<init>(HTMLDocument.java:1854)
         at javax.swing.text.html.HTMLDocument$HTMLReader.<init>(HTMLDocument.java:1729)
         at javax.swing.text.html.HTMLDocument$HTMLReader.<init>(HTMLDocument.java:1724)
         at javax.swing.text.html.HTMLDocument.getReader(HTMLDocument.java:125)
         at javax.swing.text.html.HTMLEditorKit.read(HTMLEditorKit.java:227)
         at javax.swing.JEditorPane.read(JEditorPane.java:504)
         at javax.swing.JEditorPane.read(JEditorPane.java:522)
         at javax.swing.JEditorPane$PageLoader.run(JEditorPane.java:551)

    I ran into the same problem. I wanted to display programmatically created content which had images loaded from the jar file. I found that the following works, but I don't know why other ways fail.
    URL url = getClass().getResource("page.html");
    InputStream pageInput = getClass().getResourceAsStream("page.html");
    // Read and modify page.html into variable "content"
    html = new JEditorPane("text/html", "");
    ((HTMLDocument) html.getDocument()).setBase(url);
    html.setText(content);

  • Insert new column after get then XML

    Hello,
    I use Oracle 8i and SQL Utility. I want to do a query and after that, modify or insert the values of some elements.
    xmlgen.clearBindValues;
    xmlgen.setBindValue('vCity', vCity);
    xmlSQL := 'select name, depto from emp where city = :vCity';
    xmlString := xmlgen.getXML(xmlSQL);
    Now, I want to read each line and modify
    the name or depto values before create the
    XML file. How can I do this?
    Thanks,
    Arthur Rafael

    Again, it depends.
    If you just want to fix your query
    Create Table TABLE AS
    Select column1, to_char(column2) column2, column3 from Table1
    UNION
    Select column1, column2, column3 from Table2;If you want to fix Table1
    ALTER TABLE table1
      ADD( column2_varchar2 VARCHAR2(30) );
    UPDATE table1
       SET column2_varchar2 = to_char( column2 );
    ALTER TABLE table1
      DROP( column2 );
    ALTER TABLE table1
      RENAME COLUMN column2_varchar2 TO column2Taking a step back, though, why are you creating a new table that is the result of unioning two other tables? Is this a one-time data model change? Or is this part of some ongoing process?
    Justin

  • Is it possible to add new tags after i accidentally deleted some?

    I was renaming all the new coloured tags on my MacBook and i accidentally deleted some of the tags. I now dont have enough for all my different subjects but can see no option to add new tags, is it possible?

    What I've done to create new tags from scratch is to create a throwaway text file called "tag test" (or something like that) and temporarily place it on my Desktop for easy access. Then, in Finder, I select the "tag test" file and click the "Edit Tags" icon in the toolbar at the top of the Finder window. (The "Edit Tags" icon looks like a horizontal switch.) From there, you can create a brand-new tag (say, "Tag 1"). After you press Enter, "Tag 1" will appear in the Tags list in the Sidebar. Two-finger click "Tag 1" in the Sidebar, and from the contextual menu, select the color you would like to apply. (You may also rename "Tag 1" to something else if you choose.)
    Repeat this process as many times as necessary in order to recreate all the tags you'd like -- and then delete the "tag test" file.
    Hope that helps.

  • "open a new tab" buttton on the toolbar does not insert new tab after current

    I want the open a new tab button at the right end of the tab bar to open a new tab after the currently open tab the same way the browser does when the browser.tabs.insertRelatedAfterCurrent profile option is set to true.
    This current behavior is VERY annoying as I always have many tabs open and then have to scroll all the way to the right of the tab bar and drag the new tab back to where I want it, which is always following the currently active tab.
    Not sure if this was ever supported but if not I used to run Tabberwoky which no longer works and I've become quite fond of the feature and I need to make Firefox 8 do this.
    Please tell me how, not that I can't or should do it some other way.
    Thanks.

    That did it! Sure saves me trying to figure out how to write an extension to do it but if there is a simple example similar to my request that the source code is available for so I can take a look at it to see how its done the link to it would be appreciated.
    Thanks for the help!

  • How can I restore lost tags after optimizing Elements 10?

    Today, after moving some folders that were incorrectly located (based on year/month/date) back to their proper location, I optimized the catelog.  I then discovered that all my keyword tags were missing, but the image caption and description ("Notes") were not lost.  This amounts to approximately 10 years worth of images.
    Why did did I lose all the keyword tags?  How can I recover them?  I have not closed or restarted the Elements Organizer, nor have I tried to Repair the catalogs for fear of overwriting something that cannot be corrected.  When should the repair catelog be used?
    I am using a Dell desktop computer with Windows XP.  We have an external HD for backup that is supposed to be constantly syncing for backup.
    Where do we go from here.

    When I  last posted questions and answers about this problem with the computer at work, I as at home, but had left the computer on and did not close the program.  Today, when I returned to address the problem as suggested above, I discovered the program had closed. Since my staff knew not to close it, I suspect that an automatic update from Microsoft for Windows or some other automatic caused a restart of the system.
    When I re-opened the PE 10 Organizer all the keyword tags were present.  This was in spite of have not had the opportunity to try any of the much appreciated suggestions.  I do not know how the proble become solved but am glad it did.
    While the problem has been resolved, it would be helpful to understand about writing information to a file so that the keywords are saved to the image file, which would be a way to save that information in addition to have the information saved in the catalog itself.
    By the way, exactly where is the catalog file saved?  Does it save with multiple versions in case a newer one gets corrupted or lost?
    Thank those of you who stepped in to help me with this problem.
    John

  • How to insert multiple attributes to root elements

    Hi,
    I have to costruct a request to a service in which all the multipul ements shold be populated as attributes.
    The elements should be retrived from response from an intermediate service callout.
    Is there any function to do that..

    Try this. Be careful that your element does not go deeper than 1 desendant or else you will get concatenating data.
    for $mydoc in $root
    return element { node-name($mydoc) } (: element constructor notation :)
    { $mydoc/@*, (:add existing attributes :)
         for $el in $mydoc/* (: element constructor sub-nodes :)
    return attribute {local-name($el)}{data($el)}
    I used http://www.xqueryfunctions.com/xq/functx_add-attributes.html as a guide.

  • Insert BASE tag into HTMLDocument problem

    Hi,
    I've made a prog that read the HTML content from an URL, and write it into a file. But before writing it, I'd like to change the content to add <BASE href="http://www.site.com"></BASE> into the head part of the HTMLDocument. In my prog, I've made a insertBeforeEnd(...) to insert the <BASE> tag, but it's not inserted. I've made another insertBeforeEnd(...) to insert "hello world" (just for test) and it's inserted into the HTMLDocument. Can someone help me ? thanks a lot.
    My prog :
    import java.io.*;
    import java.net.*;
    import javax.swing.text.*;
    import javax.swing.text.html.*;
    public class InsertIntoHTML {
       public static void main(String[] args) {
          URL                  url = null;
          HttpURLConnection      conn;
          HTMLEditorKit         htmlKit;
          HTMLDocument         htmlDoc;
          InputStream            in;
          Element               head;
          boolean               ignoreCharSet = true;
          htmlKit = new HTMLEditorKit();
          htmlDoc = new HTMLDocument();
          try {
             url = new URL("http://www.google.com/");
          catch (java.net.MalformedURLException e) {}
          htmlDoc.putProperty(Document.StreamDescriptionProperty, url);
          htmlDoc.putProperty("IgnoreCharsetDirective", Boolean.TRUE);
          // read www.yahoo.com into HTML document
          try {
             conn = (HttpURLConnection) url.openConnection();
             in = conn.getInputStream();
             Reader reader = new InputStreamReader(in);
             Class c = Class.forName("javax.swing.text.html.parser.ParserDelegator");
             HTMLEditorKit.Parser parser = (HTMLEditorKit.Parser) c.newInstance();
             htmlDoc.setParser(parser);
             HTMLEditorKit.ParserCallback htmlReader = htmlDoc.getReader(0);
             parser.parse(reader, htmlReader, ignoreCharSet);
             htmlReader.flush();
          catch (javax.swing.text.BadLocationException ex) {}
          catch (java.lang.ClassNotFoundException e) {}
          catch (java.lang.InstantiationException e) {}
          catch (java.lang.IllegalAccessException e) {}
          catch (java.io.IOException e) {}
          htmlDoc.setBase(url);
          // find <HEAD> tag into HTML document
          head = getHeadElement(htmlDoc);
          try {
             // insert <BASE> tag into <HEAD> element
             htmlDoc.insertBeforeEnd(head, "<BASE href=\"http://www.google.com/\"></BASE>");
             htmlDoc.insertBeforeEnd(head, "Hello world !");
          catch (javax.swing.text.BadLocationException e) {}
          catch (java.io.IOException e) {}
          // write HTML document into file named yahoo.html      
          try {
             htmlKit.write(new FileOutputStream(new File("google.html")), htmlDoc, 0, htmlDoc.getLength());
          catch (java.io.FileNotFoundException e) {}
          catch (java.io.IOException e) {}
          catch (javax.swing.text.BadLocationException e) {}
       // Find first element into HTML document equals to tag parameter
       public synchronized static final Element findElement(Element root, HTML.Tag kind) {
          if(root == null) return(null);
          if(matchElementType(root, kind)) {
             return(root);
          int count = root.getElementCount();
          if(count > 0) {
             for(int i = 0 ; i<count ; i++) {
                Element child = root.getElement(i);
                Element e = findElement(child, kind);
                if(e != null)
                   return(e);
       return(null);
       public synchronized static final boolean matchElementType(Element e, HTML.Tag kind) {
          return(e.getAttributes().getAttribute(StyleConstants.NameAttribute) == kind);
       // Find HEAD element into HTML document
       public synchronized static final Element getHeadElement(HTMLDocument doc) {
          return(findElement(doc.getRootElements()[0], HTML.Tag.HEAD));

    first, thanks dvorhra09 for your help. unfortunately, if I use &lt; and &gt; instead of '<' and '>', the <BASE> tag is no more interpreted by my browser when the file is loaded, and the <BASE> tag is displayed textually. below, is what I tested :
    htmlDoc.insertBeforeEnd(head, "&lt;BASE href=\"http://www.google.com/\"&gt;&lt;/BASE&gt;");

  • Indesign CS3 XML Root element?? , Java Script

    Is there any way to tag the root element using javascript?
    The three usual ways without JS would be:
    Rename the tag in the tag pallete.
    Select and Retag the Element in the Structure.
    Or import an xml to replace the structure.
    This is the closest information I could find, thanks to Dave Saunders
    http://jsid.blogspot.com/2006/07/emaciated-anonymous-invisible-parent.html
    ~Mike

    Does this help:
    app.documents[0].xmlElements[0].markupTag.name = "Fred";
    Dave

  • Inserting a new line after each tag of an xml

    Hi,
    I am having a requirement where i need to insert a newline after each tag<> of an xml. I am sending an xml to target system using JMS adapter and the target system has UNIX as OS.
    In unix system if we see the output xml, it will be in a single string as shown
    <?xml version="1.0" encoding="ISO-8859-1"?><messages><Field1\><Field2\>.........................</messages>
    But the desired output should be in the below format
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <messages>
    <Field1\>
    <Field2\>
    </messages>
    And there should not be any indentation for the xml. It should be in the above format it self.

    Hi,
    I believe this can be achieved through XSLT or JAVA Mapping.
    Please refer to the following link:
    XSLT Mapping:
    Inserting a new line after each tag of an xml
    JAVA Mapping:
    In Java Mapping ,all you have to do is to make a code that does a search and replace.
    Hope this helps,

  • Refresh jTable after inserting new data into the Database

    Hey all,
    I'm using Netbeans 6.5 to create a Desktop Application which is connected to a Java DB (Derby).
    The first simple steps were all very successfull:
    Create the jTable and bind it to the Database => everything works fine. When the application starts it correctly shows all data from the database.
    The problem starts when I try to insert new data to the database.
    For that reason I've created textfields and a button "Save". When I press the button it successfully inserts the data to the database but they are not displayed in the jTable (when the application starts they are all there, they are not updated at runtime) . I've tried table.invalidate() and table.repaint() but they just don't work.
    Any help will be GREATLY appreciated. But please have in mind that most of the code is Netbeans-generated and most of it not editable.
    Many thanks in advance.
    George

    Once again you are right my friend. I jumped to conclusion way too fast, when I shouldn't. (Give me a break, I've been busting my head with this well over a week). The response I saw when I did that was that indeed a line is added to the jTable. Because I falsly set the index of the object to be added to be second to last the row appeared on the table, what I didn't see at the time was that the last one disappeared. Hmm...
    A new adventure begins...
    So after a few hours of messing around with it here are my observations:
    1) It was not an observable list. When I add the new element with employeesList.add(newEmp); , the table gets notified but a get a bunch of exceptions:
    xception in thread "AWT-EventQueue-0" java.lang.IndexOutOfBoundsException: Index: 84, Size: 84
            at java.util.ArrayList.RangeCheck(ArrayList.java:546)
            at java.util.ArrayList.get(ArrayList.java:321)
            at org.jdesktop.swingbinding.impl.ListBindingManager$ColumnDescriptionManager.validateBinding(ListBindingManager.java:191)
            at org.jdesktop.swingbinding.impl.ListBindingManager.valueAt(ListBindingManager.java:99)
            at org.jdesktop.swingbinding.JTableBinding$BindingTableModel.getValueAt(JTableBinding.java:713)
            at javax.swing.JTable.getValueAt(JTable.java:1903)
            at javax.swing.JTable.prepareRenderer(JTable.java:3911)
            at javax.swing.plaf.basic.BasicTableUI.paintCell(BasicTableUI.java:2072)
            at javax.swing.plaf.basic.BasicTableUI.paintCells(BasicTableUI.java:1974)
            at javax.swing.plaf.basic.BasicTableUI.paint(BasicTableUI.java:1897)
            at javax.swing.plaf.ComponentUI.update(ComponentUI.java:154)
            at javax.swing.JComponent.paintComponent(JComponent.java:743)
            at javax.swing.JComponent.paint(JComponent.java:1006)
            at javax.swing.JViewport.blitDoubleBuffered(JViewport.java:1602)
            at javax.swing.JViewport.windowBlitPaint(JViewport.java:1568)
            at javax.swing.JViewport.setViewPosition(JViewport.java:1098)
            at javax.swing.plaf.basic.BasicScrollPaneUI$Handler.vsbStateChanged(BasicScrollPaneUI.java:818)
            at javax.swing.plaf.basic.BasicScrollPaneUI$Handler.stateChanged(BasicScrollPaneUI.java:807)
            at javax.swing.DefaultBoundedRangeModel.fireStateChanged(DefaultBoundedRangeModel.java:348)
            at javax.swing.DefaultBoundedRangeModel.setRangeProperties(DefaultBoundedRangeModel.java:285)
            at javax.swing.DefaultBoundedRangeModel.setValue(DefaultBoundedRangeModel.java:151)
            at javax.swing.JScrollBar.setValue(JScrollBar.java:441)
            at javax.swing.plaf.basic.BasicScrollBarUI.scrollByUnits(BasicScrollBarUI.java:907)
            at javax.swing.plaf.basic.BasicScrollPaneUI$Handler.mouseWheelMoved(BasicScrollPaneUI.java:778)
            at javax.swing.plaf.basic.BasicScrollPaneUI$MouseWheelHandler.mouseWheelMoved(BasicScrollPaneUI.java:449)
            at apple.laf.CUIAquaScrollPane$XYMouseWheelHandler.mouseWheelMoved(CUIAquaScrollPane.java:38)
            at java.awt.Component.processMouseWheelEvent(Component.java:5690)
            at java.awt.Component.processEvent(Component.java:5374)
            at java.awt.Container.processEvent(Container.java:2010)
            at java.awt.Component.dispatchEventImpl(Component.java:4068)
            at java.awt.Container.dispatchEventImpl(Container.java:2068)
            at java.awt.Component.dispatchMouseWheelToAncestor(Component.java:4211)
            at java.awt.Component.dispatchEventImpl(Component.java:3955)
            at java.awt.Container.dispatchEventImpl(Container.java:2068)
            at java.awt.Component.dispatchEvent(Component.java:3903)
            at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4256)
            at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3965)
            at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3866)
            at java.awt.Container.dispatchEventImpl(Container.java:2054)
            at java.awt.Window.dispatchEventImpl(Window.java:1801)
            at java.awt.Component.dispatchEvent(Component.java:3903)
            at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
            at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
            at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
            at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
            at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
            at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    Exception in thread "AWT-EventQueue-0" java.lang.IndexOutOfBoundsException: Index: 84, Size: 84
            at java.util.ArrayList.RangeCheck(ArrayList.java:546)
            at java.util.ArrayList.get(ArrayList.java:321)
            at org.jdesktop.swingbinding.impl.ListBindingManager$ColumnDescriptionManager.validateBinding(ListBindingManager.java:191)
            at org.jdesktop.swingbinding.impl.ListBindingManager.valueAt(ListBindingManager.java:99)
            at org.jdesktop.swingbinding.JTableBinding$BindingTableModel.getValueAt(JTableBinding.java:713)
            at javax.swing.JTable.getValueAt(JTable.java:1903)
            at javax.swing.JTable.prepareRenderer(JTable.java:3911)
            at javax.swing.plaf.basic.BasicTableUI.paintCell(BasicTableUI.java:2072)
    ... and a lot morewhich from my poor understanding means that the jTable succesfully notices the change but it is not able (??) to adjust to the new change. What is more interesting is that when I plainly add the element to the end of the list (without an idex that is), a blank row appears at the end of my Table. The weird thing is that I've bound the table to some text fields below it, and when I select that empty row all the data appear correctly to the text fields.
    I tried going through:
                    org.jdesktop.observablecollections.ObservableCollections.observableList(employeesList).add(newEmp);as well as
                    help = org.jdesktop.observablecollections.ObservableCollections.observableListHelper(employeesList);
                    help.getObservableList().add(newEmp);
                    help.fireElementChanged(employeesList.lastIndexOf(newEmp));and
                    obsemployeesList = org.jdesktop.observablecollections.ObservableCollections.observableList(employeesList);
                    obsemployeesList.add(newEmp);and I still get the same results (both the exeptions and the mysterious empty row at the end of the table
    So, I'm again in terrible need of your advice. I can't thank you enough for the effort you put into this.
    Best regards,
    George
    Edited by: tougeo on May 30, 2009 11:06 AM
    Edited by: tougeo on May 30, 2009 11:21 AM
    Edited by: tougeo on May 30, 2009 11:30 AM

  • Custom SharePoint 2010 designer page throws "The data source control failed to execute the insert command" exception while adding the new item after the August 13, 2013 CU has installed

    We have the SharePoint Server 2010 with SP1 environment on which the custom SP2010 designer pages were working as expected before the
    August 13, 2013 CU has installed. But, getting the below exception while trying to add the new item after the CU has installed.
    Error while executing web part: System.NullReferenceException: Object reference not set to an instance of an object.     at Microsoft.SharePoint.WebControls.SPDataSourceView.ExecuteInsert(IDictionary values)     at
    System.Web.UI.DataSourceView.Insert(IDictionary values, DataSourceViewOperationCallback callback) 3b64c3a0-48f3-4d4a-af54-d0a2fc4553cc
    06/19/2014 16:49:37.65  w3wp.exe (0x1240)                        0x1300 SharePoint Foundation        
     Runtime                        tkau Unexpected Microsoft.SharePoint.WebPartPages.DataFormWebPartException: The data source control
    failed to execute the insert command. 3b64c3a0-48f3-4d4a-af54-d0a2fc4553cc    at Microsoft.SharePoint.WebPartPages.DataFormWebPart.InsertCallback(Int32 affectedRecords, Exception ex)     at System.Web.UI.DataSourceView.Insert(IDictionary
    values, DataSourceViewOperationCallback callback)     at Microsoft.SharePoint.WebPartPages.DataFormWebPart.FlatCommit()     at Microsoft.SharePoint.WebPartPages.DataFormWebPart.HandleOnSave(Object sender, EventArgs e)    
    at Microsoft.SharePoint.WebPartPages.DataFormWebPart.RaisePostBackEvent(String eventArgument)     at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)     at System.Web.UI.Page.ProcessRequestMain(Boolean
    inclu... 3b64c3a0-48f3-4d4a-af54-d0a2fc4553cc
    06/19/2014 16:49:37.65* w3wp.exe (0x1240)                        0x1300 SharePoint Foundation        
     Runtime                        tkau Unexpected ...deStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) 3b64c3a0-48f3-4d4a-af54-d0a2fc4553cc
    I have tried changing the "DataSourceMode" as below, now the insert command is working, but update command is not working.
    <SharePoint:SPDataSource runat="server" DataSourceMode="ListItem" />
    Also, the lookup dropdown fields are displaying the value as "<a href="Daughterhttp://cpsp10/sites/Employees/_layouts/listform.aspx?PageType=4&ListId={8F62F444-FB6A-4F03-9522-C4696B45DCD1}&ID=10&RootFolder=*">Daughter</a>"
    instead of only "Daughter".
    Please provide the solution to get rid of this issue.
    Thanks
    Ramasubbu

    Try below:
    http://social.technet.microsoft.com/Forums/en-US/ae910269-3a0c-4506-844b-e8bc89d95b71/data-source-control-failed-to-execute-the-insert-command
    http://blog.jussipalo.com/2012/01/sharepoint-2010-data-source-control.html
    While there can be many causes for this generic error message, in my case the first parameter or ddwrt:DataBind function inside the SharePoint:FormFields element was
    'i' and I was working with an Edit Form. Changing it to
    'u' as it was with every other FormField fixed the issue.
    <SharePoint:FormField runat="server" id="ff1{$Pos}" ControlMode="Edit" FieldName="Esittaja" __designer:bind="{ddwrt:DataBind('u',concat('ff1',$Pos),'Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@Esittaja')}"
    />
    Explanation:
    DataBind operation type parameters (the first parameter) are listed below:
    'i' stands for INSERT,
    'u' stands for UPDATE,
    'd' stands for DELETE.
    http://webcache.googleusercontent.com/search?q=cache:d9HHY4I7omgJ:thearkfloats.blogspot.com/2014/03/sharepoint-2010-data-source-control.html+&cd=4&hl=en&ct=clnk&gl=in
    If this helped you resolve your issue, please mark it Answered

  • Can we insert new Detail Section After Report Footer in Crystal Report

    Hi All,
                Is it possible to  insert new  'detail' section  after  ' Report Footer' in the Crystal Report, i know this  is possible in 'detail' section where you can insert new detail one after another, but i want to  insert another  ' detail' section after Report Footer according  my required  result.
    Regards
    Rahul

    Hi Rahul...........
    Open Crystal Report and go to Insert option and select SubReport. From here you can create Subreport........
    Check below links....
    http://msdn.microsoft.com/en-us/library/ms227520%28v=vs.80%29.aspx
    http://www.youtube.com/watch?v=JVNkhj_rnMY
    Regards,
    Rahul

  • Do I need an account to place Photoshop elements on a new computer after deactivating or will the serial number suffice?

    di I need an account to place photoshop elements on a new computer after deactivating or will the serial number suffice?

    PSE only requires a serial number.
    Mylenium

  • I've bought my 1st Mac, since than I've replaced my old disk to a new one - and at the lab they created my new admin's name as admin.. I've changed it after 'root'ing - and now I can't find my photos either at iPhoto/photo booth,what can I do to restore ?

    I've bought my 1st Mac, since than I've replaced my old disk to a new one - and at the lab they created my new admin's name as admin.. I've changed it after 'root'ing - and now I can't find my photos either at iPhoto/photo booth, what can I do to restore restore them, they are very importent to me !!!
    Please I'll be thankfull.

    I stated that I did try to do all of this when I first set up the new computer...I did do the Setup Assistant numerous times but my old computer kept freezing half way through.  Even if I did it when I first got the new computer back in Septemeber, I would have had the same issue b/c my old computer has been 'broken' for a while.  My old computer can't handle doing too much at once and I think the setup and then migration functions I tried were too much.  That's why I was hoping I could use the migration function piecemeal.  I wish I could just check off the exact files and folders I want vs. having to choose it at the 'user' level...that's too much for my old computer to have to transfer.

Maybe you are looking for

  • Skew, Warp, Resize and Nest a video in Photoshop???

    I would like to know how to skew, warp and resize a video inside of photoshop cs4.  I would also like to know how to nest multiple video files into one file. I am new to Photoshop, I am looking for some tutorials but unable to find any. Thanks

  • '' is missing - loosing links to JPG's

    Hi I'm Working in FCP Studio 2. Timeline is 720p ProRes 422. All the footage is jpg's. I'm part of a 3 suites editorial section without a server which means that the projects and media are updated manually every morning. i ran into a big problem the

  • Network settings lost after update to 10.5.7 after each shutdown

    After my machine is shutdown or restarted my airport settings are lost and my mac fails to connect to my network. Each time I reboot the mavhine i have to manually enter the network details. In my case, my router is not broadcasting the SSID (which i

  • Import apple mails to outlook 2011

    Having trouble in moving my mails to outlook 2011 for mac. Gone through a lot of forums and forum sites but none provided the right solution. Tried the the IMAP procedure but it takes long time. Don't have that much time to waste. Have got around 100

  • Quicktime Pro key

    I bought Quicktime Pro online and have recieved three emails from apple but none display what I paid for, A QUICKTIME KEY. I have looked at my account online and there is no key associated with my order. I have also called apple support for quicktime