HELP - Trouble inserting

Why does dreamweaver close when trying to insert items such as images, swf etc.
When i try to insert things such as images or swf files in dreamweaver cs6, the program just closes. I go insert > image (click on it) and it just closes. No crash information etc (windows 7).
I tried reopening dreamweaver and trying to insert image, but closes again.
I tried restarting the computer and opeing dreamweaver to insert image, but closes.
Any suggestions?

Which version of DW?
Are you working with Valid HTML Code?
     Code Validation Tools
     CSS - http://jigsaw.w3.org/css-validator/
     HTML - http://validator.w3.org/
Does this happen in all sites/pages or just one?
What happens if you make a new page -- File > New > Blank > HTML > Layout [none] and insert an image?
Nancy O.

Similar Messages

  • Trouble inserting Flash in CS5.5

    I just upgraded to CS5.5 and am having trouble inserting a Flash file into Dreamweaver. When I used CS4, I would open the html file that Flash created in the Publish process. I would copy and paste the top part of that file -- the <script> info into the header of my dreamweaver code. Then in the location where I wanted the Flash file to be I would paste the code from the Flash html that started with <!--url's used in the movie--> and ended with </noscript>.
    However, the files I just created in Flash using all the same Publish settings as I used previously (I think!) look completely different. There is nothing like either of these sections that I previously used to insert the Flash code into Dreamweaver. Here is a comparison of the 2 Flash html files so you can see what I'm talking about.
    Flash html in CS4:
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Firestone</title>
    <script language="JavaScript" type="text/javascript">
    <!--
    //v1.7
    // Flash Player Version Detection
    // Detect Client Browser type
    // Copyright 2005-2008 Adobe Systems Incorporated.  All rights reserved.
    var isIE  = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;
    var isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false;
    var isOpera = (navigator.userAgent.indexOf("Opera") != -1) ? true : false;
    function ControlVersion()
        var version;
        var axo;
        var e;
        // NOTE : new ActiveXObject(strFoo) throws an exception if strFoo isn't in the registry
        try {
            // version will be set for 7.X or greater players
            axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");
            version = axo.GetVariable("$version");
        } catch (e) {
        if (!version)
            try {
                // version will be set for 6.X players only
                axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");
                // installed player is some revision of 6.0
                // GetVariable("$version") crashes for versions 6.0.22 through 6.0.29,
                // so we have to be careful.
                // default to the first public version
                version = "WIN 6,0,21,0";
                // throws if AllowScripAccess does not exist (introduced in 6.0r47)       
                axo.AllowScriptAccess = "always";
                // safe to call for 6.0r47 or greater
                version = axo.GetVariable("$version");
            } catch (e) {
        if (!version)
            try {
                // version will be set for 4.X or 5.X player
                axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");
                version = axo.GetVariable("$version");
            } catch (e) {
        if (!version)
            try {
                // version will be set for 3.X player
                axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");
                version = "WIN 3,0,18,0";
            } catch (e) {
        if (!version)
            try {
                // version will be set for 2.X player
                axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
                version = "WIN 2,0,0,11";
            } catch (e) {
                version = -1;
        return version;
    // JavaScript helper required to detect Flash Player PlugIn version information
    function GetSwfVer(){
        // NS/Opera version >= 3 check for Flash plugin in plugin array
        var flashVer = -1;
        if (navigator.plugins != null && navigator.plugins.length > 0) {
            if (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]) {
                var swVer2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : "";
                var flashDescription = navigator.plugins["Shockwave Flash" + swVer2].description;
                var descArray = flashDescription.split(" ");
                var tempArrayMajor = descArray[2].split(".");           
                var versionMajor = tempArrayMajor[0];
                var versionMinor = tempArrayMajor[1];
                var versionRevision = descArray[3];
                if (versionRevision == "") {
                    versionRevision = descArray[4];
                if (versionRevision[0] == "d") {
                    versionRevision = versionRevision.substring(1);
                } else if (versionRevision[0] == "r") {
                    versionRevision = versionRevision.substring(1);
                    if (versionRevision.indexOf("d") > 0) {
                        versionRevision = versionRevision.substring(0, versionRevision.indexOf("d"));
                var flashVer = versionMajor + "." + versionMinor + "." + versionRevision;
        // MSN/WebTV 2.6 supports Flash 4
        else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.6") != -1) flashVer = 4;
        // WebTV 2.5 supports Flash 3
        else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.5") != -1) flashVer = 3;
        // older WebTV supports Flash 2
        else if (navigator.userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 2;
        else if ( isIE && isWin && !isOpera ) {
            flashVer = ControlVersion();
        return flashVer;
    // When called with reqMajorVer, reqMinorVer, reqRevision returns true if that version or greater is available
    function DetectFlashVer(reqMajorVer, reqMinorVer, reqRevision)
        versionStr = GetSwfVer();
        if (versionStr == -1 ) {
            return false;
        } else if (versionStr != 0) {
            if(isIE && isWin && !isOpera) {
                // Given "WIN 2,0,0,11"
                tempArray         = versionStr.split(" ");     // ["WIN", "2,0,0,11"]
                tempString        = tempArray[1];            // "2,0,0,11"
                versionArray      = tempString.split(",");    // ['2', '0', '0', '11']
            } else {
                versionArray      = versionStr.split(".");
            var versionMajor      = versionArray[0];
            var versionMinor      = versionArray[1];
            var versionRevision   = versionArray[2];
                // is the major.revision >= requested major.revision AND the minor version >= requested minor
            if (versionMajor > parseFloat(reqMajorVer)) {
                return true;
            } else if (versionMajor == parseFloat(reqMajorVer)) {
                if (versionMinor > parseFloat(reqMinorVer))
                    return true;
                else if (versionMinor == parseFloat(reqMinorVer)) {
                    if (versionRevision >= parseFloat(reqRevision))
                        return true;
            return false;
    function AC_AddExtension(src, ext)
      if (src.indexOf('?') != -1)
        return src.replace(/\?/, ext+'?');
      else
        return src + ext;
    function AC_Generateobj(objAttrs, params, embedAttrs)
      var str = '';
      if (isIE && isWin && !isOpera)
        str += '<object ';
        for (var i in objAttrs)
          str += i + '="' + objAttrs[i] + '" ';
        str += '>';
        for (var i in params)
          str += '<param name="' + i + '" value="' + params[i] + '" /> ';
        str += '</object>';
      else
        str += '<embed ';
        for (var i in embedAttrs)
          str += i + '="' + embedAttrs[i] + '" ';
        str += '> </embed>';
      document.write(str);
    function AC_FL_RunContent(){
      var ret =
        AC_GetArgs
        (  arguments, ".swf", "movie", "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
         , "application/x-shockwave-flash"
      AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
    function AC_SW_RunContent(){
      var ret =
        AC_GetArgs
        (  arguments, ".dcr", "src", "clsid:166B1BCA-3F9C-11CF-8075-444553540000"
         , null
      AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
    function AC_GetArgs(args, ext, srcParamName, classid, mimeType){
      var ret = new Object();
      ret.embedAttrs = new Object();
      ret.params = new Object();
      ret.objAttrs = new Object();
      for (var i=0; i < args.length; i=i+2){
        var currArg = args[i].toLowerCase();   
        switch (currArg){   
          case "classid":
            break;
          case "pluginspage":
            ret.embedAttrs[args[i]] = args[i+1];
            break;
          case "src":
          case "movie":   
            args[i+1] = AC_AddExtension(args[i+1], ext);
            ret.embedAttrs["src"] = args[i+1];
            ret.params[srcParamName] = args[i+1];
            break;
          case "onafterupdate":
          case "onbeforeupdate":
          case "onblur":
          case "oncellchange":
          case "onclick":
          case "ondblclick":
          case "ondrag":
          case "ondragend":
          case "ondragenter":
          case "ondragleave":
          case "ondragover":
          case "ondrop":
          case "onfinish":
          case "onfocus":
          case "onhelp":
          case "onmousedown":
          case "onmouseup":
          case "onmouseover":
          case "onmousemove":
          case "onmouseout":
          case "onkeypress":
          case "onkeydown":
          case "onkeyup":
          case "onload":
          case "onlosecapture":
          case "onpropertychange":
          case "onreadystatechange":
          case "onrowsdelete":
          case "onrowenter":
          case "onrowexit":
          case "onrowsinserted":
          case "onstart":
          case "onscroll":
          case "onbeforeeditfocus":
          case "onactivate":
          case "onbeforedeactivate":
          case "ondeactivate":
          case "type":
          case "codebase":
          case "id":
            ret.objAttrs[args[i]] = args[i+1];
            break;
          case "width":
          case "height":
          case "align":
          case "vspace":
          case "hspace":
          case "class":
          case "title":
          case "accesskey":
          case "name":
          case "tabindex":
            ret.embedAttrs[args[i]] = ret.objAttrs[args[i]] = args[i+1];
            break;
          default:
            ret.embedAttrs[args[i]] = ret.params[args[i]] = args[i+1];
      ret.objAttrs["classid"] = classid;
      if (mimeType) ret.embedAttrs["type"] = mimeType;
      return ret;
    // -->
    </script>
    </head>
    <body bgcolor="#c9aad0">
    <!--url's used in the movie-->
    <!--text used in the movie-->
    <!-- saved from url=(0013)about:internet -->
    <script language="JavaScript" type="text/javascript">
        AC_FL_RunContent(
            'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
            'width', '175',
            'height', '66',
            'src', 'Firestone',
            'quality', 'high',
            'pluginspage', 'http://www.adobe.com/go/getflashplayer',
            'align', 'middle',
            'play', 'true',
            'loop', 'true',
            'scale', 'showall',
            'wmode', 'transparent',
            'devicefont', 'false',
            'id', 'Firestone',
            'bgcolor', '#c9aad0',
            'name', 'Firestone',
            'menu', 'true',
            'allowFullScreen', 'false',
            'allowScriptAccess','sameDomain',
            'movie', 'Firestone',
            'salign', ''
            ); //end AC code
    </script>
    <noscript>
        <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="175" height="66" id="Firestone" align="middle">
        <param name="allowScriptAccess" value="sameDomain" />
        <param name="allowFullScreen" value="false" />
        <param name="movie" value="Firestone.swf" /><param name="quality" value="high" /><param name="wmode" value="transparent" /><param name="bgcolor" value="#c9aad0" />    <embed src="Firestone.swf" quality="high" wmode="transparent" bgcolor="#c9aad0" width="175" height="66" name="Firestone" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" />
        </object>
    </noscript>
    </body>
    </html>
    FLASH html (different video) in CS5.5:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
        <head>
            <title>AfrWomen</title>
            <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
            <style type="text/css" media="screen">
            html, body { height:100%; background-color: #000000;}
            body { margin:0; padding:0; overflow:hidden; }
            #flashContent { width:100%; height:100%; }
            </style>
        </head>
        <body>
            <div id="flashContent">
                <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="200" height="54" id="AfrWomen" align="middle">
                    <param name="movie" value="AfrWomen.swf" />
                    <param name="quality" value="high" />
                    <param name="bgcolor" value="#000000" />
                    <param name="play" value="true" />
                    <param name="loop" value="true" />
                    <param name="wmode" value="transparent" />
                    <param name="scale" value="showall" />
                    <param name="menu" value="true" />
                    <param name="devicefont" value="false" />
                    <param name="salign" value="" />
                    <param name="allowScriptAccess" value="sameDomain" />
                    <!--[if !IE]>-->
                    <object type="application/x-shockwave-flash" data="AfrWomen.swf" width="200" height="54">
                        <param name="movie" value="AfrWomen.swf" />
                        <param name="quality" value="high" />
                        <param name="bgcolor" value="#000000" />
                        <param name="play" value="true" />
                        <param name="loop" value="true" />
                        <param name="wmode" value="transparent" />
                        <param name="scale" value="showall" />
                        <param name="menu" value="true" />
                        <param name="devicefont" value="false" />
                        <param name="salign" value="" />
                        <param name="allowScriptAccess" value="sameDomain" />
                    <!--<![endif]-->
                        <a href="http://www.adobe.com/go/getflash">
                            <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
                        </a>
                    <!--[if !IE]>-->
                    </object>
                    <!--<![endif]-->
                </object>
            </div>
        </body>
    </html>
    HELP!!!!!

    OK, firstly, you can open the site an Dreamweeaver CS 4 and insert your flash video, but with CS 5.5 Adobe decided that Flash support should be something they should deprecate. And there is good reason.
    Mobile devices don't handle Flash very well. iPhones and iPads simply won't play it and many of the Android devices make a video into a slide show with sound.
    With CS 5.5 though, you can make an HTML5 document that understands the <video> tag. This will allow you to directly embed a video into a website without needing any plugin. There is a complete explanation and tutorial here:
    Webmonkey: Embed Video in your web page using HTML5
    From the article, here's the source:
    <video width="560" height="340" controls>
      <source src="path/to/myvideo.mp4" type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"'>
    <source src="path/to/myvideo.ogv" type='video/ogg; codecs="theora, vorbis"'>
    </video>
    That's it! You can add additional stuff, like an image placeholder and so on, but really, you're looking at four lines of code here. Now, with the Flash stuff, Adobe, which supported Flash, wrote all of the code for you. While that was easy, it was a lot more complicated and, of course, clients on your site had to have the Flash plugin to see the video.
    Your doctype declatation is XHTML 1.0 strict. You will need to change your doctype to HTML5 thusly:
    <!DOCTYPE html>
    <html lang="en">
    Then after your head tag, declare your character set:
    <meta charset="UTF-8">
    Lastly, you will need to make sure that your server understands the ogg Theora MIME type. Download your .,htaccess file from your remote server and add the following lines to the end of that file:
    AddType audio/ogg .oga
    AddType video/ogg .ogv
    AddType application/ogg .ogg
    AddHandler application-ogg .ogg .ogv .oga
    You may also be able to add these MIME types from your server's control panel.
    Then, you're finished with Flash—forever.

  • I am residing in India and have purchased Ipad 3 from US, I have lost my invoice and also the small pin which helps in inserting sim card, Can anyone help me how can I get a copy of duplicate invoice from India and a PIN for my Ipad 3

    Dear Friends,
    I have purchased Ipad 3 from the US but unfortunately while returning back to India I have lost in transit the copy of Invoice and a tiny PIN which helps in inserting 3G card.
    Can anyone help me how can I get the duplicate copy of my invoice and an extra PIN from India and whether any Apple Store in India can issue me the duplicate copy of Invoice for the product purchased from US and also are the require to issue me an extra PIN on request.
    Thanking you all in anticipation....
    Regards,
    Bankim Mehta

    You can use a paper clip instead of the PIn that came with the iPad.
    http://support.verizonwireless.com/clc/devices/knowledge_base.html?id=54813
     Cheers, Tom

  • Need Help in Inserting first ever record

    I need help in inserting my first ever record from an OAF page.
    I've created an AM 'MasterAM', added 'MasterVO' to it. Created a Page CreatePG which has a submit button, id = Apply
    Below is processRequest of CreateCo
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    if (!pageContext.isFormSubmission()) {
    am.invokeMethod("createRecord", null);
    and below is processFormRequest
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    if (pageContext.getParameter("Apply") != null)
    OAViewObject vo = (OAViewObject)am.findViewObject("MasterVO1");
    am.invokeMethod("apply");
    pageContext.forwardImmediately("OA.jsp?page=/abcd/oracle/apps/per/selfservice/xxdemo/webui/CreatePG",
    null,
    OAWebBeanConstants.KEEP_MENU_CONTEXT,
    null,
    null,
    true,
    OAWebBeanConstants.ADD_BREAD_CRUMB_NO);
    Below are 'createRecord' and 'apply' in MasterAMImpl
    public void createRecord(){
    OAViewObject vo = (OAViewObject)getMasterVO1();
    if (!vo.isPreparedForExecution()) {
    vo.executeQuery();
    Row row = vo.createRow();
    vo.insertRow(row);
    row.setNewRowState(Row.STATUS_INITIALIZED);
    public void apply() {
    getTransaction().commit();
    When I run the page, it opens and I try to enter some data and press Apply. it does not insert into the table.
    Could anyone help me out.
    My jdeveloper version is 10.1.3.3.0.3

    I am facing the same issue.
    rows get inserted into the tbale, but only whol columns have the data.
    all the attributes are correctly mapped to view instance and view attribute.
    My VO has 1 EO and , i have joined another table to get desctriptions of the field.
    could that be the problem ?
    ex :
    select item , desc
    from t , master
    where t.cola=master.colb
    table t is the custom table I want the data to go in. but only who columns appear after commiting.
    any clues ?

  • Need some help after inserting CMS system

    Hi on my site ive inserted an CMS system from Cushy. It all work that isnt the problem. The problem is that my page is a mess now.. The only thing ive addes is a cms code so im hoping the solution isnt hard to do.
    There are three pages that are complete changed.
    The home page
    http://www.vakantiewoningeninsuriname.nl/index.html
    The text colomn right under is moved.How can i place this back?
    on http://www.dorff.nl/ you can see how it was before i add the CMS.
    The next page is:
    http://www.vakantiewoningeninsuriname.nl/bezienswaardighedenparamaribo.html
    You can see there is a lot extra space between the head and the text. And you see that the text is not only at the right side anymmore.
    This is how it should be:
    http://www.dorff.nl/bezienswaardighedenparamaribo.html
    The same goes for this page:
    http://www.vakantiewoningeninsuriname.nl/prijzen.html
    And this is how it have to be:
    http://www.dorff.nl/prijzen.html
    Hope you can help, thank you for looking..
    Regards Brian

    Dear Nancy,
    Thank you for your response,
    I will try to explain again what is wrong. On my site you see this page:
    http://www.vakantiewoningeninsuriname.nl/prijzen.html
    Problem is that the picture below is on the right side of the page instead of the left like the other pictures.
    On:
    http://www.dorff.nl/prijzen.html
    You can see how it should looks.. Pictures to the left and text on the right. Dont know what happened when im adding the Cuschy CMS. Hope you can see what is wrong.
    Regards Brian
    Date: Wed, 2 May 2012 13:04:14 -0600
    From: [email protected]
    To: [email protected]
    Subject: Need some help after inserting CMS system
        Re: Need some help after inserting CMS system
        created by Nancy O. in Dreamweaver - View the full discussion
    Change this:
    Prijzen
    Bij ons kunt u terecht met elk budget. Wij hebben woningen voor mensen die een langere tijd blijven maar ook voor vakantiegangers. Daarom hebben wij verschillende prijzen gehanteerd.
      to this: <!Begin CushyCMS>
    h2. Prijzen
    Bij ons kunt u terecht met elk budget. Wij hebben woningen voor mensen die een langere tijd blijven maar ook voor vakantiegangers. Daarom hebben wij verschillende prijzen gehanteerd.
    <!end CushyCMS>   Nancy O.Alt-Web Design & PublishingWeb | Graphics | Print | Media  Specialists  http://alt-web.com/http://twitter.com/altweb http://alt-web.blogspot.com/
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4374962#4374962
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4374962#4374962. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Dreamweaver by email or at Adobe Forums
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Help me please haveing trouble inserting fireworks HTML to dreamweaver

    when trying to insert a fireworks html that i exported from
    fireworks mx using the export wizard as soon as i choose the file
    to insert into dreamweaver i get an error message that says
    A script in file C:\Program Files\Macromedia\Dreamweaver
    MX\Configuration\Shared\MM\Scripts\insertFireworksHTML. js has been
    running for a long time. Do you want to continue?
    When i click yes it just comes up with the same message
    multiple times and than after a couple times and than goes back to
    the begging and does not do anything
    I do not know why it is doing this it does this on multiple
    computers that i have tried it on

    You can try this simple fix -
    Quit DW.
    Find this file-
    C:\Documents and Settings\<username>\Application
    Data\Macromedia\Dreamweaver
    8\Configuration\WinFileCache-*.dat
    (these folders are normally hidden - you may have to use
    Explorer > Tools >
    Folder Options to unhide them)
    and delete it.
    Restart DW. Works better?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "homeydog2323" <[email protected]> wrote in
    message
    news:e0sbe3$70c$[email protected]..
    > when trying to insert a fireworks html that i exported
    from fireworks mx
    > using
    > the export wizard as soon as i choose the file to insert
    into dreamweaver
    > i get
    > an error message that says
    >
    > A script in file C:\Program Files\Macromedia\Dreamweaver
    > MX\Configuration\Shared\MM\Scripts\insertFireworksHTML.
    js has been
    > running for
    > a long time. Do you want to continue?
    >
    > When i click yes it just comes up with the same message
    multiple times and
    > than after a couple times and than goes back to the
    begging and does not
    > do
    > anything
    >
    > I do not know why it is doing this it does this on
    multiple computers that
    > i
    > have tried it on
    >

  • Please Help.JTable insert styled text

    Hi all java guru,
    on post http://forum.java.sun.com/thread.jsp?forum=57&thread=485469 i've depicted my scenario in which i have a JTable where i want to add styled text.
    i've implemented a CustomTableModel that maintains information about text style, in such way that when renderer cell, i can rebuild exact text with its style....same method is adopted for CellEditor.
    It is possible to have more than one JTable in my application....then to correctly handle all JTables ' put them in a vector and during editing and rendering i find current focusable/selected JTable and edit/render it.
    Clearly i maintain information about style of text when i insert it, that is when i insert text, i update my CustomTableModel...same thing must be done when i delete text from JTable...that is, i must update CustomTableModel too in this case.
    Because my CellEditor is a JEditorPane component (extend it) i've registered document associated to it to a DocumentListener that notify every time that a remove operation is happens.
    What is the problem now???problem is that when i finish to edit a cell and click on another cell i've got a removeUpdate(DocumenEvent e) event, and i can't distinguish it.....it seems a real remove event....
    In this case(when i change cell) the code that is executes returns wrong result and invalidate all the rest.
    I think error is where i register celleditor , now i do it in CustomCellRenderer class that extend JEditorPane and implements TableCellRenderer.
    Please help me...this is a great trouble that invalidate all my work :(
    Any new idea is welcome.
    regards,
    anti-shock

    Hi stanislav, of course i can...you're a myth :)
    public class CustomCellEditor extends AbstractCellEditor implements TableCellEditor {
           CellEditor cellArea;
         JTable table;
         public CustomCellEditor(JTable ta) {
              super();
              table = ta;
              // this component relies on having this renderer for the String class
              MultiLineCellRenderer renderer = new MultiLineCellRenderer();
              table.setDefaultRenderer(String.class,renderer);
         public Object getCellEditorValue() {
              return cellArea.getText();
         public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected,     int row, int column) {
              int start = 0;
              int end = 0;
                                               // Get current selected table
              TableEditor tb = (TableEditor) TableEditor.getSelectedTable();
              TableModel model = (TableModel) tb.getModel();
              Vector fontInfo = model.getFontFor(row,column);
              CellEditor cellArea = (CellEditor) ((CustomCellEditor)tb.getCellEditor (row,column)).getCellEditor();
              Document doc = cellArea.getDocument();
              String content = tb.getValueAt(row,column).toString();     
              if (doc!=null && fontInfo.size()>0 && !content.equals("")) {
                                                     // This method reads from model and get right style info
                                                     // for current text, and restore them
                                                     restoreFontWithAttributes(doc,fontInfo,content);
              else
                   cellArea.setText(tb.getValueAt(row,column).toString());
              cellArea.rowEditing = row;
              cellArea.columnEditing = column;
              cellArea.lastPreferredHeight = cellArea.getPreferredSize().height;
              return cellArea;
          * @return
         public CellEditor getCellEditor() {
              return cellArea;
         public class CellEditor extends JEditorPane {
              private CellStyledEditorKit k;
              public CellEditor() {
                    super("text/plain","");
                    k = new CellStyledEditorKit();
                    setEditorKit(k);
                    // I tried to add document here, but i have had wrong behavior
                   doc = new DocumentListener() {
                   public void removeUpdate(DocumentEvent e) {
                      // Get current selected table
                      TableEditor tb = (TableEditor) TableEditor.getSelectedTable();
                      TableModel model = (TableModel) tb.getModel();
                      model.updateFontInfo();
                   getDocument().addDocumentListener(doc);
    }Ok, stan...this is my CustomCellRenderer class....as i have already said, i have some style text info mainteined by CustomTableModel associated with JTable.
    I update CustomTableModel every time that an insert and remove operation happens.
    If i add a DocumentListener to CellEditor (that rapresents editor cell of my table) happens that, if i remove some character from an editing cell, i got a removeUpdate event.....and this is right!!! But if i change cell (e.g. supposing editing cell(1,1), click on cell(2,1) then stop edit cell(1,1) and start edit cell(2,1)) i got a removeUpdate event, that I don't wait for to me..
    Look at this:
    empty cell | some text
    cell 0 ------- cell1
    supposing you're in cell1 and you have finished to insert "some text".Then click on cell0, that is empty....then document associated with CellArea(extend JEditorPane) before of the click on cell0 had some text, but after click have no text, then for it a removeUpdate is happens.....and is that one i got..
    it's as if an unique document is associated to all cells, while should be one document for each cell (i hope this is right).
    Clearly, i've same code for renderer, in such way that i can restore style of text on rendering.
    Hope is clear....if U have any idea or suggestion please give to me.
    Tnx a lot Stanislav..
    regards,
    anti-shock

  • Help! inserting pdf document

    i'm trying to insert a pdf file in a table
    i'm not sure about the difference between blob and bfiles.
    if anybody could help me, it'd be great

    On 02 Jan 2009 in macromedia.dreamweaver, Michael White
    wrote:
    > I received a pdf document in the mail from a client,
    however when I
    > try to upload this file to the server I get the error:
    > "There was no response from the server while
    transferring the file
    > xyz.pdf"
    >
    > and the FTP log:
    >
    > The file
    >
    "/home/masons1/public_html/Masonic_Decree_GM_of_NY_0911-05-08.pdf"
    > was skipped.
    >
    > I have tried renaming the file to "a.pdf"
    >
    > I have no trouble opening the pdf locally.
    > Any thoughts?
    Any chance that the size of the PDF puts you over your file
    quota on
    the server?
    Joe Makowiec
    http://makowiec.net/
    Email:
    http://makowiec.net/contact.php

  • Need help to insert and update records in MDM

    Hi ,
    I am trying to develop an webdynpro application which can create and update records in tables of a repository of MDM . For example .. I want to insert values and later update values in Vendor table.
    I am new to webdynpro and MDM. If any one can help step by step or can send a sample code which I can be ready to use that would be great help.
    If anyone can have a sample code .. kindly mail to "[email protected]"
    It is urgent. Please help.
    Regards,
    Niraj
    Edited by: Niraj Kumar on May 23, 2008 6:50 AM

    Hi Niraj,
    Are u going to work with webdynpro Java/ABAP?
    some materials which are found useful are sent.
    Cheers,
    Mary

  • Need help with INSERT and WITH clause

    I wrote sql statement which correctly work, but how i use this statment with INSERT query? NEED HELP. when i wrote insert i see error "ORA 32034: unsupported use of with clause"
    with t1 as(
    select a.budat,a.monat as period,b.vtweg,
    c.gjahr,c.buzei,c.shkzg,c.hkont, c.prctr,
    c.wrbtr,
    c.matnr,
    c.menge,
    a.monat,
    c.zuonr
    from ldw_v1.BKPF a,ldw_v1.vbrk b, ldw_v1.bseg c
    where a.AWTYP='VBRK' and a.BLART='RV' and a.BUKRS='8431' and a.awkey=b.vbeln
    and a.bukrs=c.bukrs and a.belnr=c.belnr and a.gjahr=c.gjahr and c.koart='D'
    and c.ktosl is null and c.gsber='4466' and a.gjahr>='2011' and b.vtweg='01'
    ,t2 as(
    select a.BUKRS,a.BELNR, a.GJAHR,t1.vtweg,t1.budat,t1.monat from t1, ldw_v1.bkpf a
    where t1.zuonr=a.xblnr and a.blart='WL' and bukrs='8431'
    ,tcogs as (
    select t2.budat,t2.monat,t2.vtweg, bseg.gjahr,bseg.hkont,bseg.prctr,
    sum(bseg.wrbtr) as COGS,bseg.matnr,bseg.kunnr,sum(bseg.menge) as QUANTITY
    from t2, ldw_v1.bseg
    where t2.bukrs=bseg.bukrs and t2.belnr=bseg.BELNR and t2.gjahr=bseg.gjahr and BSEG.KOART='S'
    group by t2.budat,t2.monat,t2.vtweg, bseg.gjahr,bseg.hkont,bseg.prctr,
    bseg.matnr,bseg.kunnr
    ,t3 as
    select a.budat,a.monat,b.vtweg,
    c.gjahr,c.buzei,c.shkzg,c.hkont, c.prctr,
    case when c.shkzg='S' then c.wrbtr*(-1)
    else c.wrbtr end as NTS,
    c.matnr,c.kunnr,
    c.menge*(-1) as Quantity
    from ldw_v1.BKPF a,ldw_v1.vbrk b, ldw_v1.bseg c
    where a.AWTYP='VBRK' and a.BLART='RV' and a.BUKRS='8431' and a.awkey=b.vbeln
    and a.bukrs=c.bukrs and a.belnr=c.belnr and a.gjahr=c.gjahr and c.koart='S'
    and c.ktosl is null and c.gsber='4466' and a.gjahr>='2011' and b.vtweg='01'
    ,trevenue as (
    select t3.budat,t3.monat,t3.vtweg, t3.gjahr,t3.hkont,t3.prctr,
    sum(t3.NTS) as NTS,t3.matnr,t3.kunnr,sum(t3.QUANTITY) as QUANTITY
    from t3
    group by t3.budat,t3.monat,t3.vtweg, t3.gjahr,t3.hkont,t3.prctr,t3.matnr,t3.kunnr
    select NVL(tr.budat,tc.budat) as budat,
    NVL(tr.monat,tc.monat) as monat,
    NVL(tr.vtweg,tc.vtweg) as vtweg,
    NVL(tr.gjahr, tc.gjahr) as gjahr,
    tr.hkont as NTS_hkont,
    tc.hkont as COGS_hkont,
    NVL(tr.prctr,tc.prctr) as prctr,
    NVL(tr.MATNR, tc.MATNR) as matnr,
    NVL(tr.kunnr, tc.kunnr) as kunnr,
    NVL(tr.Quantity, tc.Quantity) as Quantity,
    tr.NTS as NTS,
    tc.COGS as COGS
    from trevenue TR full outer join tcogs TC
    on TR.BUDAT=TC.BUDAT and TR.MONAT=TC.MONAT and TR.GJAHR=TC.GJAHR
    and TR.MATNR=TC.MATNR and TR.KUNNR=TC.KUNNR and TR.QUANTITY=TC.QUANTITY
    and TR.VTWEG=TC.VTWEG and TR.PRCTR=TC.PRCTR
    Edited by: user13566113 on 25.03.2011 5:26

    Without seeing what you tried it is hard to say what you did wrong, but this is how it would work
    SQL> create table t ( n number );
    Table created.
    SQL> insert into t
      2  with test_data as
      3    (select 1 x from dual union all
      4     select 2 x from dual union all
      5     select 3 x from dual union all
      6     select 4 x from dual)
      7  select x from test_data;
    4 rows created.
    SQL>

  • Need help in Insertion of Element in DefaultStyledDocument

    Hello:
    I am developing an XML editor by extending the DefaultStyledDocument of javax.swing.text package. I am not able to insert an element in the document.
    This is what I have done: (I need to insert one BranchElement, with two leaf child elements.)
    I inserted the text in the document corresponding to the first child element using insertString() method. In the insertUpdate() method of the document, I am creating the branch element and its first child covering the inserted text. I then call the insertUpdate() method of DefaultStyledDocument. Similarly, I insert text corresponding to the second child and modify the element structure inside insertUpdate() and then call the insertUpdate() of DefaultStyledDocument().
    At the end of the execution, the element structure is okay, but all the inserted text also becomes a part of the previous element.
    for example,
    if I have the following element structure at the beginning: (element offsets are in the square brackets besides their names, child elements are indented.)
    html [0 2]
    start-leaf [0 1]
    end-leaf [1 2]
    and I insert body at position 1 with its two children (each of length 1)
    I get the following element structure:
    html [0 4]
    start-leaf [0 3] //why this?
    body [1 3]
    start-leaf[1 3] //why this instead of [1 2]?
    end-leaf [2 3]
    end-leaf [3 4]
    And, I am not able to see the Views corresponding to the inserted elements.
    (I tried without modifying the element structure explicitely, but it doesn't work that way.Also, I am able to remove elements from the document. In that case also I am following a similar logic: remove the data from the document using remove() method and modify the element structure inside removeUpdate(). and it seems to work fine.)
    Can anyone please help me understand why this is happening?
    Thanks a lot!

    like this ??
    SQL> Create Table t1
      2  (a Number,
      3   b Number);
    Table created
    SQL>  Create Table t2
      2  (a Number,
      3   b Number,
      4   c Number Not Null);
    Table created
    SQL>  Insert Into t1 Values (1,2);
    1 row inserted
    SQL> commit;
    Commit complete
    SQL>  Insert Into t2 Select t.*,3 From t1 t;
    1 row inserted
    SQL> commit;
    Commit complete
    SQL> select * from t1;
             A          B
             1          2
    SQL> select * from t2;
             A          B          C
             1          2          3
    SQL> hope this helps you

  • Need help in insert statment query

    Hi,
    I have a table T1 with values like
    col1
    1
    2
    3
    4
    I need to write insert statment for t2 as
    insert into t2(col1,col2) values ('AA',select col1 from t1);
    The output of T2 should be
    col1 col2
    AA 1
    AA 2
    AA 3
    AA 4
    Any help in modifying the query.
    Ashish

    What is wrong with this?
    INSERT INTO id_own_dw.id_t_dw_org_dq_tgt
           (cost_center_cod_vc_old,
            cost_center_cod_vc_new
         SELECT '3016052',<<<_-- this you can replace with your varibale in pl/sql block
                cost_center_cod_vc
           FROM id_own_dw.id_t_dw_msl_org_cctr2mkdiv
          WHERE busi_unit_cod_vc = '3016496'

  • URGENT HELP PLSQL INSERT?

    I have view with 2 columns and a table with two cols.
    I need to INSERT into Table 1 from VIEW DISTICT CUST_JOB_ID WHERE SALARY is
    40,000 . in this CASE ABC(23000+21000) > 40,000 . INSERT SYSDATE. (This is a batch job running in the night). PQR is INSERTED and NOT HIJ into new table. VIEW1
    CUST_JOB_ID, SALARY
    ABC.. 23000
    ABC.. 21000
    DEF 39000
    XYZ.. 54000
    PQR .. 47000
    HIJ ... 15000
    TABLE1
    CUST_JOB_ID DATE
    ABC ............. 12/13/06
    XYZ .............. 5/4/ 05
    Thanks for advance help.
    Tigre.

    SQL> with employee as
      2   (select 'ABC' cust_job_id, 23000 salary from dual
      3    union all
      4    select 'ABC' cust_job_id, 21000 salart from dual
      5    union all
      6    select 'DEF' cust_job_id, 39000 salart from dual
      7    union all
      8    select 'XYZ' cust_job_id, 54000 salart from dual
      9    union all
    10    select 'PQR' cust_job_id, 47000 salart from dual
    11    union all
    12    select 'HIJ' cust_job_id, 15000 salart from dual)
    13  select e.cust_job_id,
    14         e.tot_sal
    15    from (select cust_job_id, sum(salary) tot_sal
    16            from employee
    17          group by cust_job_id) e
    18   where e.tot_sal > 40000
    19  ;
    CUST_JOB_ID    TOT_SAL
    ABC              44000
    PQR              47000
    XYZ              54000
    SQL> your code will look like something below:
      insert into table1
       (cust_job_id, date_column)
      select e.cust_job_id, sysdate
        from (select cust_job_id, sum(salary) tot_sal
                from employee
              group by cust_job_id) e
       where e.tot_sal > 40000

  • Help in inserting rows into a table

    I have a table called acct_fact,
    I need to insert rows in the table using a script but the problem is there's a column called seq_nbr which has random seq nbr of 14character length like 'ZWX98MGD9MVAD6J','ZWX98MG67RVAD6J' etc.,
    While inserting rows I need to generate such seq_nbr for those columns and insert rows into the table, can I use any such mechanism in my insert query to insert such random nbr's while inserting rows into a table.
    If so please suggest me

    Hi Peter,
    Thankyou for the quick reply:)
    can you suggest me how to implement it here in my script snippet:
    while read var_acct_nbr
    do
    echo "update acct_attr set acct_attr_exp_dt ='$ExpDate' where Acct_Attr_Value_Text='15' and acct_attr_exp_dt is null and person_id='LDCarrBillAgrm' and acct_nbr='$var_acct_nbr' ;" >> ./$DirectoryName/SQLQuery_$TimeStamp.sql
    echo "insert into acct_fact values ('$var_acct_nbr','$ExpDate','$ExpTime','*seq_nbr*','N','ProjTereza','Remoção de acordo d; data de expiração: $ExpDate',null,'1','LDE',null);" >> ./$DirectoryName/SQLQuery_$TimeStamp.sql
    done < ./$DirectoryName/ExpireAccts_$TimeStamp.LOG
    the script takes each acct_nbr nbr form a input file and fires an insert statement.
    The one in bold is the column where such sequence need to be inserted.can you help me in implementing the way you suggested in my script i.e., insert statement
    Thanks in Advance:)
    Edited by: rkrish on Jun 27, 2012 3:04 AM

  • Urgent Pl help :Cannot insert Order Group in KONK

    I am not able to insert new Order Group in KONK the number range i select for the Group get added in the number range interval but i can not see any order group which i am trying to insert.
    I have check the transaction SU53 for any authorization object issue but there is no such issue and system is showing the message authorization check was successful.
    Please help its urgent
    points will be awarded

    Hi
    For internal order group number ranges try in T.code: KOT2_OPA
    select the order for which you want to change the number range
    click on change button at the number range, select order group again,
    go to Intervals menu and click on Maintain it will allow you to change the number ranges.
    Regards
    Prasad
    Accenture - Hyd

Maybe you are looking for