Problem inserting FLV into template based page DW8

Error when inserting an FLV into a template based page.
The error is: "Making this change would require changing code
that is locked by a template or translator. The change will be
discarded."
I thought perhaps something was wrong with my code so I
created a new page in DW8, with one word of text. Saved the new
page as a template with the one word of text made into an editable
region. Created a page based on that template and attempted to
insert a FLV file into the editable region (using Insert > Media
> Flash Video). I still get the error message. I've attached the
code for this page.
I also get the error message when I go through the tutorial
Presenting
Video with the Flash Video Component in Dreamweaver 8. Using
the files provided in the tutorial.
Is the only workaround for this the one I found here?:
http://med.stanford.edu/irt/web/references/flash_video_installation.html.
Steps are under heading "Workaround for Locked Code insert error"
near bottom of page.
Any help is appreciated.
Jen

> Is the only workaround for this the one I found here?:
>
http://med.stanford.edu/irt/web/references/flash_video_installation.html.
> Steps
> are under heading "Workaround for Locked Code insert
error" near bottom
> of
> page.
This workaround *will* work....
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
==================
"kilmeny21" <[email protected]> wrote in
message
news:[email protected]...
> Error when inserting an FLV into a template based page.
>
> The error is: "Making this change would require changing
code that is
> locked
> by a template or translator. The change will be
discarded."
>
> I thought perhaps something was wrong with my code so I
created a new page
> in
> DW8, with one word of text. Saved the new page as a
template with the one
> word
> of text made into an editable region. Created a page
based on that
> template and
> attempted to insert a FLV file into the editable region
(using Insert >
> Media >
> Flash Video). I still get the error message. I've
attached the code for
> this
> page.
>
> I also get the error message when I go through the
tutorial
>
http://www.adobe.com/devnet/flash/articles/flv_tutorial.html.
Using the
> files
> provided in the tutorial.
>
> Is the only workaround for this the one I found here?:
>
http://med.stanford.edu/irt/web/references/flash_video_installation.html.
> Steps
> are under heading "Workaround for Locked Code insert
error" near bottom
> of
> page.
>
> Any help is appreciated.
> Jen
>
>
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN"
> "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html xmlns="
http://www.w3.org/1999/xhtml"><!--
InstanceBegin
> template="/Templates/index.dwt"
codeOutsideHTMLIsLocked="false" -->
> <head>
> <meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1" />
> <!-- InstanceBeginEditable name="doctitle" -->
> <title>Untitled Document</title>
> <!-- InstanceEndEditable -->
> <!-- InstanceBeginEditable name="head" --><!--
InstanceEndEditable -->
> </head>
>
> <body>
> <!-- InstanceBeginEditable name="temp"
-->Text<!-- InstanceEndEditable -->
> </body>
> <!-- InstanceEnd --></html>
>

Similar Messages

  • #PAGE.CUSTOMIZEPAGE# substitution tag problem on template based pages

    I've created an Unstructured UI template that includes the #PAGE.CUSTOMIZEPAGE# substitution tag.
    It works fine on a normal page, but it doesn't render the 'Customize' link if the page is based on a template. I know that I am authorized to customize the page, because a Portal Smart Link on the same page allows me to do just that. Does anybody know whether there are any issues with this substitution tag on template based pages? (I've used the #PAGE.EDITPAGE# tag in the same Unstructured UI Template with no problems on either normal, or template based pages.)
    Oracle Portal Version 10.1.2.0.2.
    I started this thread on the Portal - General forum, but now realise it's more relevant here.
    Original thread: Customize Page link not rendered on template-based sub page.
    Thanks
    Matthew

    Just a guess, but it seems that the site uses server side includes (the shtml extension and there is a ssi include in your template). You will probably need a testserver running (like XAMPP) on your local system to preview this in a browser.
    Grtz

  • Inserting Text into a web page

    I need to know how to insert text into a webpage, like google, search, and then get the result.
    Using the wonders of the internet I have been able to display a webpage, and see the HTML code that is generated, however, I don't know how to insert text into a web page, or get the result.
    Any help, or pointing into the right direction would be appreciated.

    What do you mean by insert into web page? Like
    prefill data on a form?
    Or like a search on google? What are you using to
    do this?
    I am guessing based on the info you gave in your
    question, that you might want to just look at the url
    of the page. For example search on google and you
    will see the text entered into the search field
    inside the url. Learn from that and develop a url
    that will search for the text you want to insert.
    If I am not understanding you, please clarify.Right now, I'm using the URL to search for me, which will work, but the search can be different from website to website, and I would like something closer to an automated form filler if I need to implement something like this again.
    Of course, something like an automated form filler would probably work better, if I were able to retreve the results

  • How can I insert a widget slideshow into a template-based page in Dreamweaver

    HI, I Have a question that has been nagging me for the last three hours.
    I have been trying to insert a slideshow into a template based document using the insert widget function in Dreamweaver CS 5.5.  The problem is that I contine to get the error that
        "This widget requires code that must be inserted into the head of the current document.  Insertion cannot happen because the head of this document is read only."
    I have tried to edit the template file in order to make the head tag into an editable region.  I have tried to resolve the problem by eliminating the
    <!-- #BeginEditable "doctitle" --> function call and instead using the <!-- InstanceBeginEditable name="head" -->
    function, but all that does is grey out all the code on the page following the this function call.  The other side effect of using this method is that the child documents do not even have a header anymore.
    I do not know if this is just a lack of understanding how this works, or if there is a bug in Dreamweaver.
    Any help in this subject wold be appreciated. 
    The original HTML for the template in question is below.
    Header 1
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
    <html>
    <head>
    <!-- #BeginEditable "doctitle" -->
    <title>Priental Solar, Solar, Photovoltaik, PV Anlagen</title>
    <!-- #EndEditable -->
    <META NAME="Title" CONTENT="Priental Solar, Solar, Photovoltaik, PV Anlagen</">
    <META NAME="Author" CONTENT="Priental Solar, Solar, Photovoltaik, PV Anlagen">
    <META NAME="Publisher" CONTENT="Priental Solar, Solar, Photovoltaik, PV Anlagen">
    <META NAME="Copyright" CONTENT="printEFFECTS  GbR 2011">
    <META NAME="Revisit" CONTENT="After 14 days">
    <META NAME="Keywords" CONTENT="Sonnenenergie, Solar, Photovoltaik, Photovoltaik energie, solarmodul, solarmodule, solaranlagen, solarenergie, solaranlage, pv anlage, erneuerbare energie, pv anlagen, solarenergie photovoltaik">
    <meta name="abstract" content="Sonnenenergie, Solar, Photovoltaik, Photovoltaik energie, solarmodul, solarmodule, solaranlagen, solarenergie, solaranlage, pv anlage, erneuerbare energie, pv anlagen, solarenergie photovoltaik">
    <META NAME="Description" CONTENT="Hier können Sie kostenlos ein Angebot für eine PV Anlage (Photovoltaikanlage) anfordern. Priental Solar ist Ihr Partner für Planung und Installation von Photovoltaikanlagen">
    <META NAME="Abstract" CONTENT="Priental Energiesysteme & Priental Solar, Solar, Photovoltaik, PV Anlagen</">
    <meta name="classification" content="Priental Energiesysteme & Priental Solar, Solar, Photovoltaik, PV Anlagen">
    <META NAME="audience" CONTENT=" Alle ">
    <META NAME="Robots" CONTENT="INDEX,FOLLOW">
    <META NAME="Language" CONTENT="Deutsch">
    <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
    <link rel="stylesheet" href="../style.css" type="text/css">
    <link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
    </head>
    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
    <div class="back">
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="100%" align="center">
            <table width="900" border="0" cellspacing="0" cellpadding="0" height="10">
              <tr>
                <td height="10"></td>
              </tr>
            </table>
            <table width="900" border="0" cellspacing="0" cellpadding="0" height="142">
              <tr>
                <td>
                  <table width="900" border="0" cellspacing="0" cellpadding="0" height="142">
                    <tr>
                      <td width="645"><a href="../index.html"><img src="../images/top-1-2_01.jpg" width="645" height="142" border="0"></a></td>
                      <td width="255" background="../images/top-1-2_02.jpg"> </td>
                    </tr>
                  </table>
                </td>
              </tr>
            </table>
            <table width="900" border="0" cellspacing="0" cellpadding="5" height="20" bgcolor="#CCCCCC">
              <tr>
                <td bgcolor="#003366">
                  <div align="right">   <a href="../kont_schreiben.php" class="linkGrey">Kontakt</a>     <span class="linkGrey">|</span>     <a href="../anfahrt.htm" class="linkGrey">Anfahrt</a>    <span class="linkGrey">|</span>     <a href="../Impressum.htm" class="linkGrey">Impressum</a>    </div>
                </td>
              </tr>
            </table>
            <table width="900" border="0" cellspacing="0" cellpadding="5" height="3" bgcolor="#99CC33">
              <tr>
                <td bgcolor="#99CC33"> </td>
              </tr>
            </table>
            <table width="900" border="0" cellspacing="0" cellpadding="0" height="450">
              <tr>
                <td valign="top">
                  <table width="900" border="0" cellspacing="0" cellpadding="3">
                    <tr>
                      <td valign="top" width="180" bgcolor="#99CCCC">
                        <table width="180" border="0" cellpadding="10">
                          <tr>
                            <td bgcolor="99CC33">
                              <div align="left"><a href="../index.html" class="linkmmenu2">Startseite</a></div>
                            </td>
                          </tr>
                          <tr>
                            <td bgcolor="99CC33">
                              <div align="left"><a href="../Solaranlagen.htm" class="linkmmenu2">Solaranlagen</a></div>
                            </td>
                          </tr>
                          <tr>
                            <td bgcolor="99CC33">
                              <div align="left"><a href="../BHKW.htm" class="linkmmenu2">BHKW</a></div>
                            </td>
                          </tr>
                          <tr>
                            <td bgcolor="99CC33">
                              <div align="left"><a href="../heimkraftwerk.htm" class="linkGrey"><span class="linkmmenu2">Priental Heimkraftwerk</span></a></div>
                            </td>
                          </tr>
                           <tr>
                            <td bgcolor="99CC33">
                              <div align="left"><a href="../FAQ.html" class="linkGrey"><span class="linkmmenu2">Heimkraftwerk FAQ</span></a></div>
                            </td>
                          </tr>
                          <tr>
                            <td bgcolor="99CC33">
                              <div align="left"><a href="../Brandsicherung.htm" class="linkmmenu2">Brandsicherung</a></div>
                            </td>
                          </tr>
                          <tr>
                            <td bgcolor="99CC33">
                              <div align="left"><a href="../Solar-Lexikon.htm" class="linkmmenu2">Solarlexikon</a></div>
                            </td>
                          </tr>
                          <tr>
                            <td bgcolor="99CC33">
                              <div align="left"><a href="../Team.htm" class="linkmmenu2">&Uuml;ber
                                uns / Team</a></div>
                            </td>
                          </tr>
                          <tr>
                            <td bgcolor="99CC33">
                              <div align="left"><a href="../1_Referenzen4_70KwP.htm" class="linkmmenu2">Referenzen</a></div>
                            </td>
                          </tr>
                          <tr>
                            <td bgcolor="99CC33">
                              <div align="left"><a href="../newsletter_anm.php" class="linkmmenu2">Anmeldung News</a></div>
                            </td>
                          </tr>
                          <tr>
                            <td bgcolor="99CC33">
                              <div align="left"><a href="../pdf/empfehlung_heimkraftwerk.pdf" target="_new" class="linkmmenu2">Empfehlungen</a></div>
                            </td>
                          </tr>
                        </table>
                      </td>
                      <td width="20" bgcolor="#99CCCC"> </td>
                      <td valign="top" width="660" align="left" bgcolor="#FFFFFF">
                        <table width="660" border="0" cellspacing="8" cellpadding="0" height="450" bordercolor="#999933" bgcolor="#F0F8FB" align="left">
                          <tr>
                            <td align="left"><!-- #BeginEditable "content" -->{content}<!-- #EndEditable --></td>
                          </tr>
                        </table>
                      </td>
                    </tr>
                  </table>
                </td>
              </tr>
            </table>
            <table width="900" border="0" cellspacing="0" cellpadding="5" height="25" bgcolor="#003366">
              <tr>
                <td height="10" align="left">     <span class="txtBottomSm">BERATUNG
                  | PLANUNG | KOMPLETTSERVICE</span></td>
              </tr>
            </table>
            <table width="900" border="0" cellspacing="0" cellpadding="0" height="60" bgcolor="99CC33">
              <tr>
                <td height="10">
                  <table width="860" border="0" cellspacing="0" cellpadding="20">
                    <tr>
                      <td align="left"><!-- #BeginEditable "bottom" -->{bottom}<!-- #EndEditable --></td>
                    </tr>
                  </table>
                </td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
    </div>
    </body>
    </html>

    Thanks for the response.
    Unfortunately, I have tried it, but continue to recieve the same error message.  I have double checked the syntax and positioning of the editable regions, and they match yours completely.  In the child page everything is editable.  Do you have any other suggestions for this perplexing problem?  Thanks
    Here is the syntax of the header tag from the child page showing all of the editable regions:
    Header 1
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
    <html><!-- #BeginTemplate "/Templates/comp.dwt" --><!-- DW6 -->
    <head>
    <!-- #BeginEditable "doctitle" -->
    <title>Priental Solar, Solar, Photovoltaik, PV Anlagen</title>
    <!-- #EndEditable -->
    <!-- #BeginEditable "meta" -->
    <META NAME="Title" CONTENT="Priental Solar, Solar, Photovoltaik, PV Anlagen</">
    <META NAME="Author" CONTENT="Priental Solar, Solar, Photovoltaik, PV Anlagen">
    <META NAME="Publisher" CONTENT="Priental Solar, Solar, Photovoltaik, PV Anlagen">
    <META NAME="Copyright" CONTENT="printEFFECTS  GbR 2011">
    <META NAME="Revisit" CONTENT="After 14 days">
    <META NAME="Keywords" CONTENT="Sonnenenergie, Solar, Photovoltaik, Photovoltaik energie, solarmodul, solarmodule, solaranlagen, solarenergie, solaranlage, pv anlage, erneuerbare energie, pv anlagen, solarenergie photovoltaik">
    <meta name="abstract" content="Sonnenenergie, Solar, Photovoltaik, Photovoltaik energie, solarmodul, solarmodule, solaranlagen, solarenergie, solaranlage, pv anlage, erneuerbare energie, pv anlagen, solarenergie photovoltaik">
    <META NAME="Description" CONTENT="Hier können Sie kostenlos ein Angebot für eine PV Anlage (Photovoltaikanlage) anfordern. Priental Solar ist Ihr Partner für Planung und Installation von Photovoltaikanlagen">
    <META NAME="Abstract" CONTENT="Priental Energiesysteme & Priental Solar, Solar, Photovoltaik, PV Anlagen</">
    <meta name="classification" content="Priental Energiesysteme & Priental Solar, Solar, Photovoltaik, PV Anlagen">
    <META NAME="audience" CONTENT=" Alle ">
    <META NAME="Robots" CONTENT="INDEX,FOLLOW">
    <META NAME="Language" CONTENT="Deutsch">
    <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
    <!-- #EndEditable -->
    <!-- #BeginEditable "head" -->
    <link rel="stylesheet" href="style.css" type="text/css">
    <link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
    <!-- #EndEditable -->
    </head>

  • Problem inserting flv file in template generated page

    http://www.jdcdemo.com/blf8/video.html
    I am attempting to add a page with flv videos of a client's
    tv commercials. I want to use the template I have used to create
    most of the other pages on the site. It works well and I have had
    no problems. When I attempt to add the flv file to the page, I get
    this error: "Making this change would require changing code that is
    locked by a template or translator. The change will be discarded."
    Just for grins, I tried dragging a jpeg onto the page and
    that worked fine with no error. I use the Lynda dot com tutorials
    and as far as I can tell, I am following the correct procedure.
    Being now at my wits end, I will appreciate comments from those who
    know much more than I.
    TIA,
    Joie

    The problem is that when you are putting the flv in a child,
    when your
    dialog box pops up, uncheck "Prompt useres to download Flash
    Player if
    neccasary"
    That should do it.
    Gary
    "camelbreath" <[email protected]> wrote in message
    news:gd023l$2dn$[email protected]..
    >
    http://www.jdcdemo.com/blf8/video.html
    > I am attempting to add a page with flv videos of a
    client's tv
    > commercials. I
    > want to use the template I have used to create most of
    the other pages on
    > the
    > site. It works well and I have had no problems. When I
    attempt to add the
    > flv
    > file to the page, I get this error: "Making this change
    would require
    > changing
    > code that is locked by a template or translator. The
    change will be
    > discarded."
    >
    > Just for grins, I tried dragging a jpeg onto the page
    and that worked fine
    > with no error. I use the Lynda dot com tutorials and as
    far as I can tell,
    > I am
    > following the correct procedure. Being now at my wits
    end, I will
    > appreciate
    > comments from those who know much more than I.
    > TIA,
    > Joie
    >
    >
    >
    >

  • Inserting javascript into template

    What I would like to do is have the same slideshow play on the right sidebar on all the pages of the website.  This is Javascript.  The engine and data folders are already on the server.
    www.wranglergirl.net
    The directions say to upon publishing the slideshow, to take the html generated code and enter it in the Head and Body tags (where I want it displayed, which is the sidebar) respectively.  Now, I opened the .dwt file and removed the existing content from the sidebar, but after saving, the html pages still had the content there - I since removed it from each page, but don't want to keep doing that.
    However, The Missing Manual says to.. Insert, HTML, Script Objects, Script.  Is doing that at the insertion point on the template correct?  Do I still have to enter the HTML code from the slideshow software?  Confused!
    This is a free template I got from Adobe.
    Amy

    It does.  Editable regions are created for child pages.  If you create an editable region and insert content into it, when you create a new child page, the content will be there.  If you edit the content in the template that is in the editable region, the changes will not be made to the existing child pages.
    So if you have a template, with an editable region, and you insert content into that editable region, any child pages that were previously made will not have this new contest inserted into them.
    Gary

  • Problem inserting data into database (increment problem)

    I have a servlet page that gets various data from a bean and executes multiple SQL statements to store this data. Beacuase i want to insert data into a number of tables that are related with a one to many relationship I am not using the auto increment function in mySQL. Instead i have created a counter bean that increments each time the servlet is involked. I am using this counter to set the primary key ID in the quesiton table that i insert data into and I am alos inserting it into another table as a foreign key which relates a number or records in the outcomes table to one record in the question table. I am havin a few problems getting it to work.
    Firstly the bean counter works but when the tomcat server is shutdown the counter is reset which will cause conflicts in the database no doubt and secondly even though i have not shut my server down i seem to be getting the following error saying there is a duplicate key even though there is no data in the database.
    Here is the exception.
    javax.servlet.ServletException: Duplicate entry '4' for key 1     org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:825)     org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:758)
    org.apache.jsp.authoring.question_005fmanager.process_005fquestion_jsp._jspService(process_005fquestion_jsp.java:469)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause
    java.sql.SQLException: Duplicate entry '4' for key 1
    com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2851)
    com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1531)     com.mysql.jdbc.ServerPreparedStatement.serverExecute(ServerPreparedStatement.java:1366)     com.mysql.jdbc.ServerPreparedStatement.executeInternal(ServerPreparedStatement.java:952)     com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1974)     com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1897)     com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1758)     org.apache.jsp.authoring.question_005fmanager.process_005fquestion_jsp._jspService(process_005fquestion_jsp.java:140)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)     org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    My code is here
    // gets the feedback string parameters
         if(request.getParameterValues("feedbackBox") != null)
                   String[] feedbackList = request.getParameterValues("feedbackBox");
                   questionData.feedback = feedbackList;
         //gets the session username variable
         String insertQuestion1__username = null;
         if(session.getValue("MM_Username") != null){ insertQuestion1__username = (String)session.getValue("MM_Username");}
         //Creates a new mySQL date
         java.sql.Date currentDate = new java.sql.Date((new java.util.Date()).getTime());
         //goes thorugh each element of the scores array and calculates maxScore 
         questionData.maxScore = 0;
         for (int i = 0; i < questionData.scores.length; i++) {
                   questionData.maxScore = questionData.maxScore + questionData.scores;
         //increments count;
         synchronized(page) {
    appCounter.increaseCount();
         int counter = appCounter.count;
         Driver DriverinsertQuestion = (Driver)Class.forName(MM_connQuestion_DRIVER).newInstance();
         Connection ConninsertQuestion1 = DriverManager.getConnection(MM_connQuestion_STRING,MM_connQuestion_USERNAME,MM_connQuestion_PASSWORD);
         questionData.numOutcomes = questionData.choices.length;
         while (counter != 0)
              int questionID = counter;
              PreparedStatement insertQuestion1 = ConninsertQuestion1.prepareStatement("INSERT INTO Question.question (Question_ID, Topic_ID, Description, Image, Author, Created_Date, Max_Score, Question_Type) VALUES (" + questionID + ", '" + questionData.topicID + "', '" + questionData.questionText + "', '" + questionData.questionImage + "', '" insertQuestion1__username "', '" + currentDate + "', " + questionData.maxScore + ", '" + questionData.questionType + "') ");
              insertQuestion1.executeUpdate();          
         Driver DriverinsertQuestion2 = (Driver)Class.forName(MM_connAnswer_DRIVER).newInstance();
         Connection ConninsertQuestion2 = DriverManager.getConnection(MM_connAnswer_STRING,MM_connAnswer_USERNAME,MM_connAnswer_PASSWORD);
         PreparedStatement insertQuestion2 = ConninsertQuestion2.prepareStatement("INSERT INTO Answer.question (Question_ID, Question_Description, Question_Type, Topic, Number_Outcomes, Question_Wording) VALUES ('" counter "', '" questionData.questionLabel "', '" questionData.questionType "', '" questionData.questionType "', '" questionData.topicID "', '" questionData.numOutcomes "', '" questionData.questionText "' ) ");
         insertQuestion2.executeUpdate();
         Driver DriverinsertOutcomes = (Driver)Class.forName(MM_connAnswer_DRIVER).newInstance();
         Connection ConninsertOutcomes = DriverManager.getConnection(MM_connAnswer_STRING,MM_connAnswer_USERNAME,MM_connAnswer_PASSWORD);
         for (int i=0; i < questionData.numOutcomes; i ++)
         PreparedStatement insertOutcomes = ConninsertOutcomes.prepareStatement("INSERT INTO Answer.outcome (Question_ID, Outcome_Number, Outcome_Text, Score, Feedback) VALUES ( '" counter "', '" i "', '" +questionData.choices[i]+ "', '" +questionData.scores[i]+ "', '" +questionData.feedback[i]+ "' ) ");
         insertOutcomes.executeUpdate();
    Does anyone know where i am going wrong or how to fix this problem. I would like to know wheter i am doing this the right way. Is thjis the most practical way to use a counter bean or is there a better safer way to do it.
    Suggestions would be mcuh appreciated
    Thanks

    hi Narendran,
        i declared itab as follows
    DATA:      tb_final TYPE STANDARD TABLE OF ztable,
                       wa_final TYPE ztable.    "work area
    i am populating tb_final as follows:
                 wa_final-vkorg = wa_ycostctr_kunwe-vkorg.
                  wa_final-vtweg = wa_ycostctr_kunwe-vtweg.
                  wa_final-spart = wa_ycostctr_kunwe-spart.
                  wa_final-kunwe = wa_ycostctr_kunwe-kunwe.
                  wa_final-kondm = wa_ycostctr_kunwe-kondm.
                  wa_final-kschl = wa_ycostctr_2-kschl.
                  wa_final-hkont = wa_ycostctr_2-saknr.
                  wa_final-kostl = wa_ycostctr_kunwe-kostl.
            APPEND wa_final TO tb_final.
                  CLEAR wa_final.
    here i am not populating Mandt field.
    finally in tb_final am not getting the proper data .
    kindly help me.
    Thanks,
    Praveena

  • Inserted .flv into Dreamweaver messes CSS

    When I insert a Flash move (.flv) in my website (using Dreamweaver CS3) it messes upu my div boxes and all my webpage collapses. I tried to get rid of some div boxes to check if my CSS causes problems, however after inserting .flv my div boxes that contains this file shrink/collapse.
    Here are URL with the web page without inserted flash move and others URLs with inserted flash move and deleted some of div boxes.
    http://www.k-state.edu/elp/lab/BookReviews.html
    http://www.k-state.edu/elp/lab/BookReviews2.html
    http://www.k-state.edu/elp/lab/BookReviews3.html 
    I am new in using CSS as well as using Flahs professional and really would appretiate any hint/idea to move me from this "dead end"
    lina

    My, but you do like JavaScript, don't you?
    I can't spend much time in the JS, but for some reason the navigation.js in http://www.k-state.edu/elp/lab/BookReviews_7.html is adding KSU_twoColumn to your body tag so that it comes out as
    <body class="KSU_fixed KSU_left1 KSU_twoColumn">
    Which results in the margin-right property of KSU_maincontent to 0 by re-writing it thusly:
    body.KSU_twoColumn div#KSU_mainContent {
      margin-right:0;
    Now, I have no idea why navigation.js doesn't do that for http://www.k-state.edu/elp/lab/BookReviews_7A.html as well. In there, your <body> stays as:
    <body class="KSU_fixed KSU_left1">
    And the KSU_maincontent properties stay as defined in the CSS:
    div#KSU_mainContent {
      margin-right:190px;
      margin-top:0;
      padding:16px 25px 20px 20px;
    I don't understand the need to complicate simple CSS with JavaScript appending the classes, but if Jeff Croft (author of the class appender function in navigation.js) is still available to you, I recommend asking him for help.
    Mark A. Boyd
    Keep-On-Learnin' :-)

  • Can not create template based page with customized page type.

    I built a customized page type (with persepective attribute) and wanted to build pages with this type. If the new pages do not based on any template, it works fine. However, if I wanted to use a template, the page type was set back to "standard"!
    Steps to reproduce it:
    1. create a new page type - test page type.
    2. create a new template = test template.
    3. create a new page - test page.
    3.1 choose the page type to be "test page type"
    3.2 fill in the form including the new attribute info.
    3.2 choose the page template to be 'test template"
    3.3 click finish
    4. click the properties of "test page", it shows that the page type is "standard" and the new attribute information is gone!
    If in step 3.2, no template is chosen, the properties of the new page shows the page type is "test page type".
    I tried to find a workaround.
    1. create a page with "test page type".
    2. covert the new page to template.
    I got this error message:
    Error while copying page. (WWC-44262)
    (WWC-00000)
    Looks like customized page type and template can not coexist. Is this a bug?

    How long should the upgrade take? And should it be attempted on a production (infrastructure on machine 1/middle-tier on machine 2) Windows 2000 architecture? Or should be wait for 9.0.4? Or ... should I ask this in a TAR? Thanks!
    Mike

  • Can not build a template based page with customized page type.

    I built a customized page type (with persepective attribute) and wanted to build pages with this type. If the new pages do not based on any template, it works fine. However, if I wanted to use a template, the page type was set back to "standard"!
    Steps to reproduce it:
    1. create a new page type - test page type.
    2. create a new template = test template.
    3. create a new page - test page.
    3.1 choose the page type to be "test page type"
    3.2 fill in the form including the new attribute info.
    3.2 choose the page template to be 'test template"
    3.3 click finish
    4. click the properties of "test page", it shows that the page type is "standard" and the new attribute information is gone!
    If in step 3.2, no template is chosen, the properties of the new page shows the page type is "test page type".
    I tried to find a workaround.
    1. create a page with "test page type".
    2. covert the new page to template.
    I got this error message:
    Error while copying page. (WWC-44262)
    (WWC-00000)
    Looks like customized page type and template can not coexist. Is this a bug?

    How long should the upgrade take? And should it be attempted on a production (infrastructure on machine 1/middle-tier on machine 2) Windows 2000 architecture? Or should be wait for 9.0.4? Or ... should I ask this in a TAR? Thanks!
    Mike

  • Inserting HTML into a web page

    On a previous thread I asked how to insert ones own code into a page created in iWeb.Some kind person told me how to do it,namely: find the html page in iMac on my hard drive,in TextEdit insert the code that I want and click Save.It all worked fine. However when I go back into my web page in iWeb and make a change followed by upload, the code that I inserted in TextEditor is wiped.Is there any way that I can insert my own code into a web page and not get it wiped when I make other changes in iWeb and upload to the server? Thanks in advance

    Nope, this is how it works. If you make a change to a page like this post-publishing, and later re-publish, you have to make the html changes again! Set up a Find/Replace command in MassReplaceIt and you can do this very quickly. You can save your queries so you can make all of your changes with one click the next time you save.
    Download here:
    http://www.hexmonkeysoftware.com

  • Inserting rows into table Based on Column Values.

    Hi,
    I am trying to inserting rows into a table based on Column.
    Id      Name        
    Data
    N 105.1.1
    http://www.example.com/New/105.1.1
    U 105.1.2               http://www.example.com/Used/105.1.2
    S 105.1.3               http://www.example.com/Sold/105.1.3
    I want a table like this. 
    I want to insert Data column value based on Id and Name Columns
    If Id = N and Name = 105.1.1 then Data value should be insert as   http://www.example.com/New/105.1.1
    If Id = U and Name = 105.1.2 then Data value should be  insert as  http://www.example.com/Used/105.1.2
    If Id = S and Name = 105.1.3 then Data value should be insert as   http://www.example.com/Sold/105.1.3
    Can you please help us to write query to insert above Data Column values based on Id and Name Columns.

    INSERT INTO tbl (col) SELECT
    CASE WHEN id='N' and Name='105.1.1 ' THEN 'http://www.example.com/New/105.1.1'
              WHEN id='U' and Name='105.1.2 ' THEN 'http://www.example.com/New/105.1.2'
    END col
    FROM anothertbl
    Sorry , cannot test it right now.
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Does adobe have alternatives for inserting photos into templates?

    I have just downloaded this software in the hope that I can use some template files. They are eps and elements 13 doesn't support it.
    In addition to this the only other thing that I wanted elements for was to remove backgrounds. I can't find a tutorial on that. The only one listed is for CC.
    The only use I have for the software is to insert photos into a sublimation template. Do Adobe have an alternative that can do this?

    Please review this and get back with issues that need additional clarification:
    How to import my images into templates for sublimation blanks [was: inserts]? [was: HELP]
    As for EPS files, Irfanview will open them, and then you can save them as JPEG files and open them in PSE.
    Irfanview is a terrific program, free: www.irfanview.com

  • Problem - Inserting Records into Hashed Tables

    Help for an ABAP Newbie...
    How do I insert records into a hashed table?
    I am trying the following, but get the error message,
    *You cannot use explicit or implicit index operations with types "HASHED TABLE" or "ANY TABLE".  "LT_UNIQUE_NAME_KEYS" has the type "HASHED TABLE".
    TYPES: BEGIN OF idline,
        id TYPE i,
        END OF idline.
      DATA: lt_unique_name_keys TYPE HASHED TABLE OF idline WITH UNIQUE KEY id,
            ls_unique_name_key LIKE LINE OF lt_unique_name_keys.
    " Create a record and attempt to insert it into the internal table.
    " Why does this cause a compilation error message?
    ls_unique_name_key-id = 1.
      INSERT ls_unique_name_key INTO lt_unique_name_keys.
    Thanks,
    Walter

    INSERT ls_unique_name_key INTO TABLE lt_unique_name_keys.

  • Problem inserting date into MS SQL Server

    I am trying insert date into MS SQL Server database. First I used Statement and when I insert the date only date used to be inserted properly and the time used to be always 12:00:00 AM. I tried PreparedStatement and when I insert I get an error message:
    SQL Error: [Microsoft][ODBC SQL Server Driver]Optional feature not implemented
    I have attached the code.
    GregorianCalendar cal = new GregorianCalendar();
    java.util.Date dtm = (java.util.Date)cal.getTime();
    SimpleDateFormat formatOb = new SimpleDateFormat("dd/MM/yy hh:mm:ss");
    String date= (String)formatOb.format(dtm);
    dateCreated = new java.sql.Date(formatOb.parse(date).getTime());
    PreparedStatement psmt = con.prepareStatement("INSERT INTO Resume (ResumeName, Summary, Skills, OtherInformation, Interests, Memberships, Languages, Category, DateCreated, SupervisorName) VALUES(?,?,?,?,?,?,?,?,?,?)");
    psmt.setString(1, name);
    psmt.setString(2, summary);
    psmt.setString(3, skills);
    psmt.setString(4, info);
    psmt.setString(5, interest);
    psmt.setString(6, member);
    psmt.setString(7, language);
    psmt.setString(8, category);
    psmt.setDate(9, dateCreated);
    psmt.setString(10, loginName);
    psmt.executeUpdate();
    Any suggestions will be really helpful.

    Thanks,
    I changed the field in the database of DateCreated to timestamp, but when I insert the some binary data is inserted into the database. something like 0000000000000017D.
    I installed jtds-0.8.1 driver from source forge. but when try to connect to the database I get an error as:
    Connection refused: connect
    Error: Connection refused: connect
    I have attached the code for setting the driver and url also.
    private String driver = "net.sourceforge.jtds.jdbc.Driver";
    private String url = "jdbc:jtds:sqlserver://TEKKATTE:1433/placement;TDS=7.0";

Maybe you are looking for