Form updates SQL but refuses to forward to correct page

Can anyone see what is wrong with this script?
All I am doing is creating a new entry on an MySQL database then forwarding the visitor to the same page with ?msg=thanks appended to the URL so that I can display a different page saying they have successfully added their name to the database.
For some reason all I get in the URL is ALWAYS exactly the same page and a ? added to the URL. Whatever I place in the $insertGoTo clause I always get it coming back to the same page.
Any ideas?
The full URL of the demo page is: http://www.maisonhomeinteriors.com/JoinOurMailingListTEST.php
Here is the script for the page:
THANKS
<?php require_once('Connections/maison_connection.php'); ?>
<?php $urladmin = (isset($_GET["admin"])) ? $_GET["admin"] : ""; ?>
<?php $urlupdate = (isset($_GET["update"])) ? $_GET["update"] : ""; ?>
<?php $urlmsg = (isset($_GET["msg"])) ? $_GET["msg"] : ""; ?>
<?php $urlstore = (isset($_GET["store"])) ? $_GET["store"] : ""; ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
  $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
  $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
  switch ($theType) {
    case "text":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;   
    case "long":
    case "int":
      $theValue = ($theValue != "") ? intval($theValue) : "NULL";
      break;
    case "double":
      $theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
      break;
    case "date":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;
    case "defined":
      $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
      break;
  return $theValue;
$editFormAction = $_SERVER['PHP_SELF'];
if (isset($_SERVER['QUERY_STRING'])) {
  $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "contactUsForm")) {
  $insertSQL = sprintf("INSERT INTO MailingList (Name, Phone, Email, Address1, Address2, Address3, Town, County, PostCode, MailOut) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)",
                       GetSQLValueString($_POST['name'], "text"),
                       GetSQLValueString($_POST['phone'], "text"),
                       GetSQLValueString($_POST['email'], "text"),
                       GetSQLValueString($_POST['address1'], "text"),
                       GetSQLValueString($_POST['address2'], "text"),
                       GetSQLValueString($_POST['address3'], "text"),
                       GetSQLValueString($_POST['town'], "text"),
                       GetSQLValueString($_POST['county'], "text"),
   GetSQLValueString($_POST['postcode'], "text"),
                       GetSQLValueString($_POST['Store'], "text"));
  mysql_select_db($database_maison_connection, $maison_connection);
  $Result1 = mysql_query($insertSQL, $maison_connection) or die(mysql_error());
$insertGoTo = "JoinOurMailingListTEST.php?msg=thanks";
  if (isset($_SERVER['QUERY_STRING'])) {
    $insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
    $insertGoTo .= $_SERVER['QUERY_STRING'];
  header(sprintf("Location: %s", $insertGoTo));
mysql_select_db($database_maison_connection, $maison_connection);
$query_addToMailingList = "SELECT * FROM MailingList";
$addToMailingList = mysql_query($query_addToMailingList, $maison_connection) or die(mysql_error());
$row_addToMailingList = mysql_fetch_assoc($addToMailingList);
$totalRows_addToMailingList = mysql_num_rows($addToMailingList);
?><!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Maison - Join Our Mailing List</title>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
function MM_nbGroup(event, grpName) { //v6.0
  var i,img,nbArr,args=MM_nbGroup.arguments;
  if (event == "init" && args.length > 2) {
    if ((img = MM_findObj(args[2])) != null && !img.MM_init) {
      img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src;
      if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array();
      nbArr[nbArr.length] = img;
      for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
        if (!img.MM_up) img.MM_up = img.src;
        img.src = img.MM_dn = args[i+1];
        nbArr[nbArr.length] = img;
  } else if (event == "over") {
    document.MM_nbOver = nbArr = new Array();
    for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args[i])) != null) {
      if (!img.MM_up) img.MM_up = img.src;
      img.src = (img.MM_dn && args[i+2]) ? args[i+2] : ((args[i+1])? args[i+1] : img.MM_up);
      nbArr[nbArr.length] = img;
  } else if (event == "out" ) {
    for (i=0; i < document.MM_nbOver.length; i++) {
      img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; }
  } else if (event == "down") {
    nbArr = document[grpName];
    if (nbArr)
      for (i=0; i < nbArr.length; i++) { img=nbArr[i]; img.src = img.MM_up; img.MM_dn = 0; }
    document[grpName] = nbArr = new Array();
    for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
      if (!img.MM_up) img.MM_up = img.src;
      img.src = img.MM_dn = (args[i+1])? args[i+1] : img.MM_up;
      nbArr[nbArr.length] = img;
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
function MM_validateForm() { //v4.0
  if (document.getElementById){
    var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
    for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=document.getElementById(args[i]);
      if (val) { nm=val.name; if ((val=val.value)!="") {
        if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
          if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';
        } else if (test!='R') { num = parseFloat(val);
          if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
          if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
            min=test.substring(8,p); max=test.substring(p+1);
            if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
      } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; }
    } if (errors) alert('The following error(s) occurred:\n'+errors);
    document.MM_returnValue = (errors == '');
function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
//-->
</script>
<link href="cssStyles/maisonCSS.css" rel="stylesheet" type="text/css" />
</head>
<body onload="MM_preloadImages('images/navigationRH/RHnavigation_05OVER.gif','images/navigation RH/RHnavigation_07.gif','images/navigationRH/RHnavigation_09.gif','images/navigationRH/RHn avigation_10.gif','images/navigationRH/RHnavigation_13.gif','images/navigationRH/RHnavigat ion_05.gif','images/navigationRH/RHnavigation_07OVER.gif','images/navigationRH/RHnavigatio n_09OVER.gif','images/navigationRH/RHnavigation_10OVER.gif','images/navigationRH/RHnavigat ion_13OVER.gif')">
<div id="infoText">
<table width="701" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>
  <h1>Join our Mailing List</h1>
<p> </p>
<p>&bull; <span class="redType"><a href="JoinOurMailingList.php?admin=yes">FREE ENTRY</a> INTO  OUR MONTHLY EMAIL PRIZE
      DRAW OF &pound;25 MAISON VOUCHERS</span></p>
<p>&bull; Receive information about new products and special promotions</p>
<p>&bull; Invitations to launch parties in Richmond and Tunbridge Wells</p>
<p>&bull; Invitation to the opening of the new store in Dorking - opening soon!</p>
<p> </p>
           <?php if ($update == "updated") { ?>
              <p class="redType">THE DATABASE HAS BEEN UPDATED TO ADD THIS CUSTOMER</p><p> </p>
                        <?php } ?>
<?php if ( $urlmsg <> "thanks" ) { ?>
<form id="contactUsForm" name="contactUsForm" method="POST" action="<?php echo $editFormAction; ?>">
  <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#efefd4" class="formTextRL">
      <tr>
        <td> </td>
        <td> </td>
        <td colspan="3"> </td>
      </tr>
      <tr>
        <td> </td>
        <td width="10"> </td>
        <td colspan="3"><h1>please complete
          the form to join our mailing list</h1>
          <p class="catalogHeading"> </p>
              <p class="boldItalicsNotes">Maison is committed to the privacy of your personal information.
              We will not make your name available to any other companies and
              will only contact you occassionally with specific offers or events
              that may be of interest to you.</p>
              </td>
        </tr>
      <tr>
        <td> </td>
        <td> </td>
        <td colspan="3"> </td>
      </tr>
      <tr>
        <td class="formHeadingsRR">nearest<br />
          Store</td>
        <td width="10"> </td>
        <td colspan="3" align="left" valign="bottom">
        <p class="chooseStore">
          <label>
            <input type="radio" name="Store" value="2" id="Store_0" />
            Tunbridge Wells</label>        
          <label>
            <input type="radio" name="Store" value="3" id="Store_1" />
            Richmond</label>        
          <label>
            <input type="radio" name="Store" value="4" id="Store_2" />
            Dorking</label>        
          <label>
            <input name="Store" type="radio" id="Store_3" value="1" checked="checked" />
            No Local Store</label>
        </p>
        </td>
            <tr>
        <td> </td>
        <td> </td>
        <td colspan="3"> </td>
      </tr>
      <tr>
        <td class="formHeadingsRR">name</td>
        <td width="10"> </td>
        <td colspan="3"><input name="name" type="text" class="formFields" id="name" /></td>
      </tr>
      <tr>
        <td> </td>
        <td> </td>
        <td colspan="3"> </td>
      </tr>
      <tr>
        <td class="formHeadingsRR">email</td>
        <td width="10"> </td>
        <td colspan="3"><input name="email" type="text" class="formFields" id="email" /></td>
      </tr>
      <tr>
        <td> </td>
        <td> </td>
        <td colspan="3"> </td>
      </tr>
      <tr>
        <td class="formHeadingsRR">phone</td>
        <td width="10"> </td>
        <td colspan="3"><input name="phone" type="text" class="formFields" id="phone" /></td>
      </tr>
      <tr>
        <td> </td>
        <td> </td>
        <td colspan="3"> </td>
      </tr>
      <tr>
        <td class="formHeadingsRR">address 1</td>
        <td width="10"> </td>
        <td colspan="3"><input name="address1" type="text" class="formFields" id="address1" /></td>
      </tr>
      <tr>
        <td> </td>
        <td> </td>
        <td colspan="3"> </td>
      </tr>
      <tr>
        <td class="formHeadingsRR">address 2</td>
        <td width="10"> </td>
        <td colspan="3"><input name="address2" type="text" class="formFields" id="address2" /></td>
      </tr>
      <tr>
        <td> </td>
        <td> </td>
        <td colspan="3"> </td>
      </tr>
      <tr>
        <td class="formHeadingsRR">address 3</td>
        <td width="10"> </td>
        <td colspan="3"><input name="address3" type="text" class="formFields" id="address3" /></td>
      </tr>
      <tr>
        <td> </td>
        <td> </td>
        <td colspan="3"> </td>
      </tr>
      <tr>
        <td class="formHeadingsRR">town</td>
        <td width="10"> </td>
        <td colspan="3"><input name="town" type="text" class="formFields" id="town" /></td>
      </tr>
      <tr>
        <td> </td>
        <td> </td>
        <td colspan="3"> </td>
      </tr>
      <tr>
        <td class="formHeadingsRR">county</td>
        <td width="10"> </td>
        <td colspan="3"><input name="county" type="text" class="formFields" id="county" /></td>
      </tr>
      <tr>
        <td> </td>
        <td> </td>
        <td colspan="3"> </td>
      </tr>
      <tr>
        <td class="formHeadingsRR">postcode</td>
        <td width="10"> </td>
        <td colspan="3"><input name="postcode" type="text" class="formFields" id="postcode" /></td>
      </tr>
      <tr>
        <td> </td>
        <td> </td>
        <td colspan="3"> </td>
      </tr>
      <tr>
        <td class="formHeadingsRR"> </td>
        <td> </td>
        <td colspan="3">
        <?php if ($urladmin == "yes") { ?>
          <input name="joinMailingList2" type="submit" id="joinMailingList2" onclick="MM_validateForm('name','','R','postcode','','R');return document.MM_returnValue" value="YES! please add me to the Maison Mailing List" />
          <?php } ?>
          <?php if ($urladmin <> "yes") { ?>
        <input name="joinMailingList2" type="submit" id="joinMailingList2" onclick="MM_validateForm('name','','R','email','','RisEmail','address1','','R','town','', 'R','postcode','','R');return document.MM_returnValue" value="YES! please add me to the Maison Mailing List" />
           <?php } ?>
                  <a href="ContactUs.php" target="_self" class="commentText"></a></td>
        </tr>
      <tr>
        <td> </td>
        <td> </td>
        <td> </td>
        <td> </td>
        <td class="formSpacerWidth"> </td>
      </tr>
      <tr>
        <td> </td>
        <td width="10"> </td>
        <td><input name="reset2" type="reset" id="button" onclick="MM_goToURL('parent','http://www.maisonhomeinteriors.com/index.php');return document.MM_returnValue" value="NO, please do NOT add me to the mailing list" /> </td>
        <td align="right"><a href="ContactUs.php" target="_self" class="commentText">CONTACT US</a></td>
        <td class="formSpacerWidth"> </td>
      </tr>
      <tr>
        <td colspan="5"> </td>
        </tr>
    </table>     
      <input type="hidden" name="MM_insert" value="contactUsForm" />
</form>
<?php } ?>
<?php if ( $urlmsg == "thanks" ) { ?>
<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#efefd4" class="formTextRL">
      <tr>
        <td class="formHeadingsRR"> </td>
        <td width="10"> </td>
        <td> </td>
    </tr>
      <tr>
        <td class="formHeadingsRR"> </td>
        <td width="10"> </td>
        <td><h1>Thank you for joining
          our mailing list</h1></td>
    </tr>
      <tr>
        <td class="formHeadingsRR"> </td>
        <td width="10"> </td>
        <td><h3>You have been entered into the latest monthly prize draw.</h3></td>
    </tr>
      <tr>
        <td class="formHeadingsRR"> </td>
        <td width="10"> </td>
        <td><a href="WeddingList.php" target="_self"></a></td>
    </tr>
          <tr>
        <td class="formHeadingsRR"> </td>
        <td width="10"> </td>
        <td><a href="ContactUs.php" target="_self" class="commentText">CONTACT US</a></td>
    </tr>
      <tr>
        <td class="formHeadingsRR"> </td>
        <td width="10"> </td>
        <td align="left"><a href="WeddingList.php" target="_self"></a></td>
    </tr>
  </table> 
    <?php } ?>
<p> </p>
<h4><strong>Congratulations to the following who have won the prize draw of &pound;25 in Maison Gift Vouchers&hellip;</strong></h4>
<p>Jayne McCarthy, who has won the September 2010 prize draw.</p>
<p>Eileen Leahy, who has won the August 2010 prize draw.</p>
<p>Jane Peirce, who has won the July 2010 prize draw.</p>
<p>Carolyn Morris, who has won the June 2010 prize draw.</p>
<p>Juliet Peters, who has won the May 2010 prize draw.</p>
<p>Mrs H Hunter, who has won the April 2010 prize draw.</p>
<p>Mrs Sarah Simpson, who has won the March 2010 prize draw.</p>
<p>Mrs Katya Wright, who has won the February 2010 prize draw.</p>
<p>Fern Canning, who has won the January 2010 prize draw.</p>
<p>Mrs D Grange, who has won the December 2009 prize draw.</p>
<p>Stephanie Campbell, who has won the November 2009 prize draw.</p>
<p>Claire Langstaff, who has won the October 2009 prize draw.</p>
<p>Mrs Bodenham, who has won the September 2009 prize draw.</p>
<p>Catherine Dench, who has won the August 2009 prize draw.</p>
<p>Jana Severinova, who has won the July 2009 prize draw.</p>
<p> </p></td>
  </tr>
</table>
<div id="giftVoucher"><img src="images/joinOurMailingList/DemoVoucher.jpg" width="200" height="100" /></div>
</div>
<div id="mailingListPromoMask"></div>
<? require_once("navigationTopNoHeadings.php"); ?>
<? require_once("navigation.php"); ?>
</html>
<?php
mysql_free_result($addToMailingList);
?>

colinwalton wrote:
For some reason all I get in the URL is ALWAYS exactly the same page and a ? added to the URL. Whatever I place in the $insertGoTo clause I always get it coming back to the same page.
The problem is almost certainly caused by the blank line between these blocks of code:
<?php require_once('Connections/maison_connection.php'); ?><?php $urladmin = (isset($_GET["admin"])) ? $_GET["admin"] : ""; ?>
<?php $urlupdate = (isset($_GET["update"])) ? $_GET["update"] : ""; ?>
<?php $urlmsg = (isset($_GET["msg"])) ? $_GET["msg"] : ""; ?>
<?php $urlstore = (isset($_GET["store"])) ? $_GET["store"] : ""; ?>
<?php
if (!function_exists("GetSQLValueString")) {
There must be NO whitespace or other output before the call to header().
See the following article for a detailed explanation: http://kb2.adobe.com/community/publishing/505/cpsid_50572.html.

Similar Messages

  • ERROR: Updatable SQL Query already exists on page 20.

    Hello,
    I created a tabular form, then added a where clause and started getting the following error:
    Error in mru internal routine: ORA-20001: no data found in tabular form
    So I deleted all components of the tabular form (region, buttons, branches and process) and started building it again from scratch. This is a strategy that has worked for me a number of times in HTML DB. Unfortunately now I get the following error when trying to build a new tabular form:
    Updatable SQL Query already exists on page 20.You can only add one updatable SQL query per page. Select a different page.
    What is the logic that throws this error. I'm 99% convinced I've cleared the page of any updatable SQL, is there something on the application level I should also clear out?
    Thanks!

    Ignore this, problem solved. It seems I do have SQL reports that are marked as updatable even though they are just plain reports.
    Sorry.

  • Issue with showing input forms for update SQL statement

    Hi guys - I'm currently doing a college project and I'm not overly experienced in the area of Java/JSP but I'm having an issue with a project. I have a JSP project inserting, viewing and deleting rows from a database but having an issue getting the update/modify function working in my project.
    If I hardcode values into my variables and launch the project it updates fine, but I believe theres an issue with how I'm calling the existing rows. I wish for the user to be able to view the rows from the database and modify as they wish. Once they submit the modifications, I want the row to be updated. Can anyone see where the problem might exist in my code below? I hope it's something small, but I'm not able to fix it at the moment and would apreciate anyone's help! :)
    The problem I'm facing at the moment is the input boxes for displaying the current rows from the database are not even showing up..
    ModifyNode.jsp:
    <%@page contentType="text/html" pageEncoding="UTF-8"%>
    <%@page import="suaspackage.NodeManager" %>
    <jsp:useBean id="AddNode" scope="session" class="suaspackage.NodeManager"/>
    <%@ page language="java" %>
    <%@ page import="java.sql.*" %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
       "http://www.w3.org/TR/html4/loose.dtd">
    <html>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
            <title>Suas</title>
        </head>
        <body
        <%! // Class level declarations
            Connection dbCon; // interface type in java SQL
            ResultSet rs; // interface type in java SQL
            String serverName = "localhost";
            String nodeID;
            String valowneremail;
            String valownersms;
            boolean bFirstTime;
            %>
            <%
            bFirstTime = true;
            if(request !=null){
                if(request.getParameter("submit") != null){
                    nodeID = "6";
                    valowneremail = request.getParameter("OwnerEmail");
                    valownersms = request.getParameter("OwnerSms");
                    bFirstTime = false;
                    AddNode.update(nodeID, valowneremail, valownersms);
            %>
            %>
        <%
            try{
            Class.forName("com.mysql.jdbc.Driver"); // SQLServer specifics 1
            dbCon = DriverManager.getConnection( // SQLServer specifics 2
                    "jdbc:mysql://" + serverName + ":3306" + "/suasdb", "root", "9631");
            Statement stmt;
            String sqlString = "select nodeid, node, owneremail, ownersms from nodemanager";
            stmt = dbCon.createStatement();
            rs = stmt.executeQuery(sqlString);
            } catch (ClassNotFoundException e){
                out.write("<B><CENTER><P>");
                out.write("Error loading class for Suas database connection: </P><P>");
                out.write(e.toString());
                out.write("</B></CENTER></P>");
                } catch (SQLException e){
                    out.write("<B><CENTER><P>");
                    out.write("Error accessing Suas database connection: </P><P>");
                    out.write("</B></CENTER></P>");
            if(rs!=null){
        %>
    <jsp:include page="includeheader.jsp" />
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><img src="images/pagemarker_nodemanager.jpg" alt="Node manager" width="176" height="55"></td>
        </tr>
      </table>
             <jsp:include page="includenodemenu.jsp" />
    <TABLE WIDTH="75% BORDER="0" CELLPADDING="5" ALIGN="CENTER">
    <TR BGCOLOR="#9ddc4f">    </TR>
    <br>
    <TR BGCOLOR="#9ddc4f">
      <TH>Node ID</TH>
      <TH>Node</TH>
      <TH>Owner E-Mail Address</TH>
      <TH>Owner SMS Number</TH>
      <TH></TH>
    </TR>
             <%  } else {
                %>
    <% while (rs.next()){
        %>
    <FORM>
    <TR BGCOLOR="#d7eabf">
        <TD><%=rs.getString("nodeid")%></TD>
        <TD><%=rs.getString("node")%></TD>
        <TD><INPUT size="20" type="text" name="OwnerEmail" value="<%=rs.getString("owneremail")%>"</TD>
        <TD><INPUT size="20" type="text" name="OwnerSms" value="<%=rs.getString("ownersms")%>"</TD>
        <TD><INPUT type="submit" name="submit" value="Save"></TD>
    </TR>
    <% }
        %>
        </body>
    </html>
    {code}
    The relevant part of my NodeManger package:
    {code}
        public void update(String updateNodeId, String valEmail, String valSMS) throws ClassNotFoundException, SQLException{
            try{
                String updateSQL;
                String nodeid = updateNodeId;
                String updateowneremail = valEmail;
                String updateownersms = valSMS;
                Connection dbCon;
                Statement stmt;
                ResultSet rs;
                String serverName = "localhost";
                Class.forName("com.mysql.jdbc.Driver"); // SQLServer specifics 1
                dbCon = DriverManager.getConnection( // SQLServer specifics 2
                 "jdbc:mysql://" + serverName + ":3306" + "/suasdb", "root", "9631");
                updateSQL = "update nodemanager SET owneremail='" + updateowneremail + "', ownersms='" + updateownersms + "' WHERE nodeid='" + nodeid + "'";
                stmt = dbCon.createStatement();
                stmt.execute(updateSQL);
            } catch (ClassNotFoundException e){
                throw(e);
            } catch (SQLException e){
                throw(e);
        }{code}
    Edited by: daveomcgee on Apr 9, 2009 8:03 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    I support what ThomYork suggests. Learn how to properly separate database/business logic from your view logic. Learn how to use servlets and JSPs together. Read abourt DAO classes. Learn how to build a view in JSPs using taglibs (JSTL to begin with).
    You might think it is too much work, but if you learn this stuff the wrong way now, it is going to be that much harder converting to the clean, readable, reusable and maintainable way later on.

  • HT201210 i tray to update my iphone but refused to update iOS 6.and give me note there is problem in dawn loud . please tell me what can i do?dawn loud

    i tray to update my iphone but refused to update iOS 6.and give me note there is problem in dawn loud . please tell me what can i do?dawn loud

    Error 2, 4 (or -4), 6, 1000, 9006
    Follow Troubleshooting security software. Often, uninstalling third-party security software will resolve these errors.
    There may be third-party software that modifies your default packet size in Windows by inserting a TcpWindowSize entry into your registry. Your default packet size being set incorrectly can cause these errors. Contact the manufacturer of the software that installed the packet size modification for assistance or follow this article by Microsoft: How to reset Internet Protocol (TCP/IP).
    Verify that access to ports 80 and 443 are allowed on your network.
    Verify that communication to albert.apple.com or photos.apple.com is not blocked by a firewall, or other Internet security setting.
    Discard the .ipsw file, open iTunes and attempt to download the update again. See the steps underAdvanced Steps > Rename, move, or delete the iOS software file (.ipsw) below for file locations.
    Restore your device while connected to a different network.
    Restore using a different computer.

  • My Mac refuses to open certain pages e.g. google/facebook for a weird reason "Your flash player may be out of date and you need to update it", but my flash player is up to date.

    My Mac refuses to open certain pages e.g. google/facebook for a weird reason "Your flash player may be out of date and you need to update it", but my flash player is up to date. I tried to install a new flash player version "setup.exe" but it said the file cannot be opened because the application is not supported on MAC OS X, does anyone have same problem? please help.
    Thanks

    i dont use google chrome,

  • HT204152 I am unable to update my App  store Updations. the reason being billing problem asking to update payment method.many times i updated my credit card details but refusing from the system .how can i update my app store updations like  Face book etc.

    I am unable to update my App  store Updations. the reason being billing problem asking to update payment method.Many a  times i updated my credit card details but refusing from the system .how can i update my app store updations like  Face book etc....Using ! phone 6plus  .IOS8.3

    What do you mean by 'refusing from the system', if you are getting an error message then what does it say ?
    For a credit card to have a chance of being accepted it needs to be registered to the same name and address (including format and spacing etc) that you have on your iTunes account, and have been issued by a bank in the country where you and your iTunes account are. If it is and if you are getting a 'declined' message then you could check with the card issuer to see if it's them that are declining it, and if not then try contacting iTunes Support (these are user-to-user forums) and see if they know why it's being declined : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption
    If when trying to download you are getting a message about a 'problem with a previous purchase' then that implies that iTunes wasn't able to collect the money for your last purchase. If that is the case then you won't be able to download anything else (including app updates) until you've paid off what you owe : Pay an unpaid balance in the iTunes Store - Apple Support
    If you aren't getting the 'problem with a previous purchase' message then try logging into your account (not when trying to download something) and see if you get the 'none' option so that you can remove the card's details and be able to download updates to your apps : Change or remove your payment information from your iTunes Store account (Apple ID) - Apple Support

  • After update to IOS 6.0, on the iPhone 4 and 4s, emails can not be forwarded. I tried to resync, but the update does not show the forwarding buttons anymore.

    After update to IOS 6.0, on the iPhone 4 and 4s, emails can not be forwarded. I tried to resync, but the update does not show the forwarding buttons anymore.

    Have the same issues here, 3GS 5.0.1. Did you find any solutions until today ?
    I restored my phone, power up/down but nothing helps with my issues
    greetings
    /Edit:
    Maybe I should read carefully your text so I can give you some more information.
    my phone was updated via itunes.
    some hours ago the phone charged up to 5% but than directly draining to zero...
    can't help me with these issues...

  • Query running ok in SQL but giving error in form trigger

    Hi guys
    here is the query
    SELECT NVL(BGM_PERAMT,0) INTO PERAMT FROM BROKERAGE_MASTER
    WHERE     BGM_BROKERAGETYPE = 'BR01' AND BGM_PERAMT <> 0
    The above query working fine in SQL but giving following error in when_button_pressed trigger
    [In a host language program, all records have been fetched. The return code from the fetch was +4 indicating that all records have been returned from the SQL query. ]
    please give me the solution for this problem.
    It is very urgent
    regards
    asha

    ok below is the code
    CURSOR RESALE_BROKERAGE IS SELECT am_brokerCd resalebrcd,'' resalesbrcd,NVL(SUM(AM_AMT),0) RESALE_AMT,COUNT(AM_RESALENO) TOTCNT,NVL(SUM(AM_UNITSAPPLD),0) RESALE_UNITS
    FROMRNT_RESALE_MASTER
    WHERE am_brokercd is not null AND AM_PROCTAG='Y' AND
    (to_date(to_char(AM_PROCDT,'DD/MON/YYYY')) BETWEEN
    to_date(to_char(:rnt_broker_date.fromdt,'DD/MON/YYYY')) AND
    to_date(to_char(:rnt_broker_date.todate,'DD/MON/YYYY')))
    GROUP BY am_brokerCd
    UNION
    SELECT AM_BROKERCD resalebrcd,     
    am_subbrokercd resalesbrcd,
    NVL(SUM(AM_AMT),0) RESALE_AMT,COUNT(AM_RESALENO) TOTCNT,
    NVL(SUM(AM_UNITSAPPLD),0) RESALE_UNITS
    FROM RNT_RESALE_MASTER
    WHERE     am_brokercd is not null AND AM_PROCTAG='Y' AND AM_BROKERCD = 'ARN-9760' AND (to_date(to_charAM_PROCDT,'DD/MON/YYYY')) BETWEEN
    to_date(to_char(:rnt_broker_date.fromdt,'DD/MON/YYYY')) AND
    to_date(to_char(:rnt_broker_date.todate,'DD/MON/YYYY')))
    GROUP BY AM_BROKERCD,am_subbrokercd;
    Asha

  • I have many questions, I have called Support,  they refuse to forward or give me Tech Support See Be

    Hi,
    I have many questions, and have had a very frustrating time to get in touch with the correct person.
    I have called support twice, both times even though it was a technical question about cloud, they refused to forward my calls and told me there is NO technicall support for Cloud and that I have to place my questions here in the forum.
    I am CONTINUALLY told to change my password, 2 and 3 times a week.  I am a sysAdmin, my passwords are a MINIMUM of 13 Char/UP/Lower/Number/Special Combo, always have been. They work out to a 100% approval in any algorythm checker.   Yes, I was one of the persons who had their password stolen which has caused me a tad bit of inconvenience, but such is life.   Is This Normal? I have gone on twitter a few times to verify the emails, I have got them so often.
    My "Cloud Sync" Hasn't worked since PhotoShop's Site Closed, I know this beause I stored my 20gigs of files, .ai,  and .eps, .psd eveything that I couldn't move to Revel (which btw, I never got a refund for having to purchase the revel account 20gigs, when photoshop was closed, which also was never refunded.) 
    I actually wasn't too worried about the cloud issue because I only work at home, if I go somewhere else.. work's not going with me
    Since about three weeks ago and currently I am having NOTHING but problems with cloud, The errors in my Event Log are NUMEROUS
    Activation context generation failed for "C:\Program Files (x86)\Adobe\Adobe Dreamweaver CC\Dreamweaver.exe".Error in manifest or policy file "" on line . A component version required by the application conflicts with another component version already active. Conflicting components are:. Component 1: C:\Windows\WinSxS\manifests\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0. 7601.17514_none_fa396087175ac9ac.manifest. Component 2: C:\Windows\WinSxS\manifests\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.76 01.17514_none_41e6975e2bd6f2b2.manifest.
    In xml form:
    - <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event"> 
    - <System>
    <Provider Name="SideBySide" />
    <EventID Qualifiers="49409">80</EventID>
         <Level>2</Level>
        <Task>0</Task>
      <Keywords>0x80000000000000</Keywords>
       <TimeCreated SystemTime="2014-03-28T08:07:04.000000000Z" />
       <EventRecordID>2269809</EventRecordID>
       <Channel>Application</Channel>
       <Computer>Celtic-Surfer</Computer>
      <Security />
    </System>
           <EventData>
          <Data>C:\Windows\WinSxS\manifests\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7 601.17514_none_fa396087175ac9ac.manifest</Data>
      <Data>C:\Windows\WinSxS\manifests\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.760 1.17514_none_41e6975e2bd6f2b2.manifest</Data>
    <Data />
    <Data />
    <Data />
    <Data />
    <Data />
      <Data />
    <Data />
    <Data />
    <Data>C:\Program Files (x86)\Adobe\Adobe Dreamweaver CC\Dreamweaver.exe</Data>
    <Data />
    <Data />
    <Data />
    <Data />
    <Data />
    <Data />
    <Data />
    <Data />
    <Data />
    </EventData>
    </Event>
    manifest for x86/64bit at both dll files compiled so I cannot review their content.
    However it should be noted at this time, I did not invoke Dreamweaver, the Cloud did, and this is not the first time.
    This particular error occured 5 times in 3 seconds.
    Same two errors at 3:49pm on the 28th.
    Today, I went and bought a new solid state drive. Brand New Fresh OS, Downloaded Cloud, CC, and of course The Edge Products, which I dearly love btw.       Everything seems to be working fine, EXCEPT,
    1.) where did CS6 Products Go?
    2.) Why after being a Faithful Product User/Cloud Supporter for the Last two years, after going through all the trials and tribulations with Adobe, am I being asked to renew my license for a "One Time Per Year Fee" which is MORE than my monthly amount? ( deal: 599.80; payments at 49.95 per month is 599.40 Go Figure? ) So, I'm being asked to pay the same amount, make it a single payment and get half the software, litterally.   Did I miss a paticularly important anouncement?
    3.) EVERYONE OF MY IRREPLACABLE FILES IN MY CLOUD ALL MY AI FILES, are gone. Yesterday, it would seem My having the SYNC TURNED OFF was over-ridden by the system (Adobes) and they have upload 'garbage' files, and my original files, the caligraphy files are no longer there. My gorgeous image of a little boy with flowers is no longer there. I PAID ALMOST A GRAND for these files. Stored them on Adobe, because, well, you deal with images, so you're the best right, that's why I bought extra storage on photoshop.com, then was told I would have to move to revel, but not the ai, eps, or pdf and i don't remember about png's. files, so I moved everything to revel (purchased the extra storage there.) AND put everything on the cloud and turned off my file sync.  Not everyone is an idiot, maybe something is turned off, there's a reason for it, how dare someone override MY SETTINGS. They could have emailed, called, chat, google chat, irc, or snail mailed me, it's pretty easy to get my attention.
    I could just cry.
    lost my files,
    asked to pay one time instead on monthy, and there's not even a discount and no additional incentive. Lost the ability to work without having to be connected to the internet, which will be delimited here very shortly since I'm on comcast.
    and the worst, the very absolutely worst part is this is the SECOND time in a row now, I've had an issue with Adobe that has gone on for over a year while support TELLS ME A PAYING CUSTOMER, that 'gee, sorry, no support for cloud" , "No I can't forward you to a tech" (direct quote) and "The Only support for any cloud issues is the forum"
    How can I handle this in the future, my nerves just can't take it anymore. Seriously, I'm just shaking now I'm so upset about this and I really hate writing something like this, or airing issues in public that really should be, imho, private.

    Hi Ken,
    Wow, I've logged into adobe and never seen your response until now.
    I need to make the forums more of a daily stop I guess.
    Thank you for your response, When I go to the Archives, it states I have none. In addition, previously when I'd tried to move items to the archive, they just disappeared  
    Currently my desktop is not connecting at all, Everytime I connect, it's states "We have now logged you out" and requests I login again.
    I have of course rebooted,
    Gone into taskmanager, killed all the relevant threads,  tried again to login through the desktop, no luck, I'll have to uninstall it, make sure the threads are killed, then reboot it and then reinstall it, but I've not had the time to do that.
    On another note, and just as a point of reference, myself, personally, I hate these "cloud" file repositories (not to be confused with adobe cloud services which I love) but the file repositories themselves imho, are a blackhole of resource usage when one doesn't/isn't using them,
    Is there a way we can use it more of a "ftp" sort of thing, when I want to I can  put files there?  There is no way to "Download" the repository, no way to download the folders.. only individual files and then it takes I think three different steps before the download starts.. I find this very inhibiting.  Just an fyi. for what it's worth.
    Please, feel free to contact me,
    I'm on g+ chat [email protected]

  • Forms update vs. database trigger

    Hi,
    I learn oracle forms using sample schema HR.
    This schema has a trigger "update_job_history" that fires AFTER UPDATE OF "job_id", "department_id" ON "employees"....
    Now,( in forms) when I want to update just employee's salary trigger fires.
    Forms obviously take all items as being updated as I read from the beginning of error message:
    UPDATE EMPLOYEES SET EMPLOYEE_ID=:1,FIRST_NAME=:2,LAST_NAME=:3,EMAIL=:4,PHONE_NUMBER=:5,HIRE_DATE=:6,JOB_ID=:7,SALARY=:8,COMMISSION_PCT=:9,MANAGER_ID=:10,DEPARTMENT_ID=:11 WHERE ROWID=:12 etc.
    (This error appears only If I update the same employee the second time - that's when a unique key in job_history table gets violated...)
    My question is How can I update only certain items so the triggers fires only when I do update "job_id" or "department_id"
    Is it an issue I should take care of in -pre/on-update triggers?
    Thanks in advance for any suggestion on how to go about this.

    Hello,
    Yah, this will surely help. Sorry for my previous post. I was thinking in terms of PL/SQL, but just consults the forms and it a should work fine.
    Set Update Changed Columns Only to Yes in the following circumstances:
    To save on network traffic, if you know an operator will primarily update only one or two columns.
    To avoid re-sending large items that are not updated, such as images or LONGs.
    To fire database triggers on changed columns only. For example, if you implement a security scheme with a database trigger that fires when a column has been updated and writes the userid of the person performing the update to a table.

  • Manual tabular form "Update Process"

    Hello,
    i made a tabular form manually,
    now i want to add an update process, but its not working?
    I created a Button "P_UPDATE" and i added a Process which listens to the P_UPDATE Button.
    i used the following PL/SQL script:
    for i in 1..htmldb_application.g_f01.count
    loop
    update MATCHUMSATZ
    set PARTNER_ID = replace(htmldb_application.g_f10(i),'%'||'null%',NULL),
    RECH_DATUM = replace(htmldb_application.g_f02(i),'%'||'null%',null),
    RECH_NR= htmldb_application.g_f06(i),
    PROV_GRUNDLAGE= htmldb_application.g_f08(i),
    KUNDE= htmldb_application.g_f14(i),
    VERTRIEBSART_ID = replace(htmldb_application.g_f17(i),'%'||'null%',NULL)
    where id = htmldb_application.g_f01(i);
    end loop;
    This is an example which i customized from: http://www.oracle.com/technology/products/database/application_express/howtos/tabular_form.html
    I suppose that 'htmldb_application.g_f01' is the ID of the table 'MATCHUMSATZ'.
    Why is there replace() and sometimes not ?
    Would be glad if anybody could help me!
    Phil

    Hi Phil,
    You can add in the in-built MRU update process that will do this for you. When you add a process, select Data Manipulation then Multi Row Update, then follow the prompts to link it to your table.
    In your code snippet, htmldb_application.g_f01 refers to the first column in your form (even if this is hidden). Normally this is the Primary Key for the table on which the form is based. htmldb_application.g_f02 refers to the second column and so on, although you can assign any number from 1 to 50 to each field when you create the sql statement.
    The replace() function is used because some of the fields will contain %null% which needs to be converted to null before updating the table.
    Regards
    Andy

  • How to make column headers in table in PDF report appear bold while datas in table appear regular from c# windows forms with sql server2008 using iTextSharp

    Hi my name is vishal
    For past 10 days i have been breaking my head on how to make column headers in table appear bold while datas in table appear regular from c# windows forms with sql server2008 using iTextSharp.
    Given below is my code in c# on how i export datas from different tables in sql server to PDF report using iTextSharp:
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using System.Windows.Forms;
    using System.Data.SqlClient;
    using iTextSharp.text;
    using iTextSharp.text.pdf;
    using System.Diagnostics;
    using System.IO;
    namespace DRRS_CSharp
    public partial class frmPDF : Form
    public frmPDF()
    InitializeComponent();
    private void button1_Click(object sender, EventArgs e)
    Document doc = new Document(PageSize.A4.Rotate());
    var writer = PdfWriter.GetInstance(doc, new FileStream("AssignedDialyzer.pdf", FileMode.Create));
    doc.SetMargins(50, 50, 50, 50);
    doc.SetPageSize(new iTextSharp.text.Rectangle(iTextSharp.text.PageSize.LETTER.Width, iTextSharp.text.PageSize.LETTER.Height));
    doc.Open();
    PdfPTable table = new PdfPTable(6);
    table.TotalWidth =530f;
    table.LockedWidth = true;
    PdfPCell cell = new PdfPCell(new Phrase("Institute/Hospital:AIIMS,NEW DELHI", FontFactory.GetFont("Arial", 14, iTextSharp.text.Font.BOLD, BaseColor.BLACK)));
    cell.Colspan = 6;
    cell.HorizontalAlignment = 0;
    table.AddCell(cell);
    Paragraph para=new Paragraph("DCS Clinical Record-Assigned Dialyzer",FontFactory.GetFont("Arial",16,iTextSharp.text.Font.BOLD,BaseColor.BLACK));
    para.Alignment = Element.ALIGN_CENTER;
    iTextSharp.text.Image png = iTextSharp.text.Image.GetInstance("logo5.png");
    png.ScaleToFit(105f, 105f);
    png.Alignment = Element.ALIGN_RIGHT;
    SqlConnection conn = new SqlConnection("Data Source=NPD-4\\SQLEXPRESS;Initial Catalog=DRRS;Integrated Security=true");
    SqlCommand cmd = new SqlCommand("Select d.dialyserID,r.errorCode,r.dialysis_date,pn.patient_first_name,pn.patient_last_name,d.manufacturer,d.dialyzer_size,r.start_date,r.end_date,d.packed_volume,r.bundle_vol,r.disinfectant,t.Technician_first_name,t.Technician_last_name from dialyser d,patient_name pn,reprocessor r,Techniciandetail t where pn.patient_id=d.patient_id and r.dialyzer_id=d.dialyserID and t.technician_id=r.technician_id and d.deleted_status=0 and d.closed_status=0 and pn.status=1 and r.errorCode<106 and r.reprocessor_id in (Select max(reprocessor_id) from reprocessor where dialyzer_id=d.dialyserID) order by pn.patient_first_name,pn.patient_last_name", conn);
    conn.Open();
    SqlDataReader dr;
    dr = cmd.ExecuteReader();
    table.AddCell("Reprocessing Date");
    table.AddCell("Patient Name");
    table.AddCell("Dialyzer(Manufacturer,Size)");
    table.AddCell("No.of Reuse");
    table.AddCell("Verification");
    table.AddCell("DialyzerID");
    while (dr.Read())
    table.AddCell(dr[2].ToString());
    table.AddCell(dr[3].ToString() +"_"+ dr[4].ToString());
    table.AddCell(dr[5].ToString() + "-" + dr[6].ToString());
    table.AddCell("@count".ToString());
    table.AddCell(dr[12].ToString() + "-" + dr[13].ToString());
    table.AddCell(dr[0].ToString());
    dr.Close();
    table.SpacingBefore = 15f;
    doc.Add(para);
    doc.Add(png);
    doc.Add(table);
    doc.Close();
    System.Diagnostics.Process.Start("AssignedDialyzer.pdf");
    if (MessageBox.Show("Do you want to save changes to AssignedDialyzer.pdf before closing?", "DRRS", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Exclamation) == DialogResult.Yes)
    var writer2 = PdfWriter.GetInstance(doc, new FileStream("AssignedDialyzer.pdf", FileMode.Create));
    else if (MessageBox.Show("Do you want to save changes to AssignedDialyzer.pdf before closing?", "DRRS", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Exclamation) == DialogResult.No)
    this.Close();
    The above code executes well with no problem at all!
    As you can see the file to which i create and save and open my pdf report is
    AssignedDialyzer.pdf.
    The column headers of table in pdf report from c# windows forms using iTextSharp are
    "Reprocessing Date","Patient Name","Dialyzer(Manufacturer,Size)","No.of Reuse","Verification" and
    "DialyzerID".
    However the problem i am facing is after execution and opening of document is my
    column headers in table in pdf report from
    c# and datas in it all appear in bold.
    I have browsed through net regarding to solve this problem but with no success.
    What i want is my pdf report from c# should be similar to following format which i was able to accomplish in vb6,adodb with MS access using iTextSharp.:
    Given below is report which i have achieved from vb6,adodb with MS access using iTextSharp
    I know that there has to be another way to solve my problem.I have browsed many articles in net regarding exporting sql datas to above format but with no success!
    Is there is any another way to solve to my problem on exporting sql datas from c# windows forms using iTextSharp to above format given in the picture/image above?!
    If so Then Can anyone tell me what modifications must i do in my c# code given above so that my pdf report from c# windows forms using iTextSharp will look similar to image/picture(pdf report) which i was able to accomplish from
    vb6,adodb with ms access using iTextSharp?
    I have approached Sound Forge.Net for help but with no success.
    I hope anyone/someone truly understands what i am trying to ask!
    I know i have to do lot of modifications in my c# code to achieve this level of perfection but i dont know how to do it.
    Can anyone help me please! Any help/guidance in solving this problem would be greatly appreciated.
    I hope i get a reply in terms of solving this problem.
    vishal

    Hi,
    About iTextSharp component issue , I think this case is off-topic in here.
    I suggest you consulting to compenent provider.
    http://sourceforge.net/projects/itextsharp/
    Regards,
    Marvin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Unable to update SQL Server thru XI using JDBC Adapter

    Hi,
    I am trying to update SQL Server. When I run the scenario I get Success status in sxmb_moni, But when I see in SQL server nothing is getting updated. Can anybody let me know where I may be doing wrong?
    Thanks In Advance.
    Yaseen.

    Hi Yaseen,
    Just go through this link, to see how to install the JDBC drivers,
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3867a582-0401-0010-6cbf-9644e49f1a10
    Regards,
    Bhavesh

  • ORA-01031: insufficient privileges in PL/SQL but not in SQL

    I have problem with following situation.
    I switched current schema to another one "ban", and selected 4 rows from "ed"
    alter session set current_schema=ban;
    SELECT * FROM ed.PS WHERE ROWNUM < 5;
    the output is OK, and I get 4 rows like
    ID_S ID_Z
    1000152 1
    1000153 1
    1000154 1
    1000155 1
    but following procedure is compiled with warning
    create or replace
    procedure proc1
    as
    rowcnt int;
    begin
    select count(*) into rowcnt from ed.PS where rownum < 5;
    end;
    "Create procedure, executed in 0.031 sec."
    5,29,PL/SQL: ORA-01031: insufficient privileges
    5,2,PL/SQL: SQL Statement ignored
    ,,Total execution time 0.047 sec.
    Could you help me why SELECT does work in SQL but not in PL/SQL procedure?
    Thanks.
    Message was edited by:
    MattSk

    Privs granted via a role are only valid from SQL - and not from/within stored PL/SQL code.
    Quoting Tom's (from http://asktom.oracle.com) response to this:I did address this role thing in my book Expert one on one Oracle:
    <quote>
    What happens when we compile a Definer rights procedure
    When we compile the procedure into the database, a couple of things happen with regards to
    privileges.  We will list them here briefly and then go into more detail:
    q    All of the objects the procedure statically accesses (anything not accessed via dynamic SQL)
    are verified for existence. Names are resolved via the standard scoping rules as they apply to the
    definer of the procedure.
    q    All of the objects it accesses are verified to ensure that the required access mode will be
    available. That is, if an attempt to UPDATE T is made - Oracle will verify the definer or PUBLIC
    has the ability to UPDATE T without use of any ROLES.
    q    A dependency between this procedure and the referenced objects is setup and maintained. If
    this procedure SELECTS FROM T, then a dependency between T and this procedure is recorded
    If, for example, I have a procedure P that attempted to 'SELECT * FROM T', the compiler will first
    resolve T into a fully qualified referenced.  T is an ambiguous name in the database - there may be
    many T's to choose from. Oracle will follow its scoping rules to figure out what T really is, any
    synonyms will be resolved to their base objects and the schema name will be associated with the
    object as well. It does this name resolution using the rules for the currently logged in user (the
    definer). That is, it will look for an object owned by this user called T and use that first (this
    includes private synonyms), then it will look at public synonyms and try to find T and so on.
    Once it determines exactly what T refers to - Oracle will determine if the mode in which we are
    attempting to access T is permitted.   In this case, if we as the definer of the procedure either
    owns the object T or has been granted SELECT on T directly or PUBLIC was granted SELECT, the
    procedure will compile.  If we do not have access to an object called T by a direct grant - the
    procedure P will fail compilation.  So, when the object (the stored procedure that references T) is
    compiled into the database, Oracle will do these checks - and if they "pass", Oracle will compile
    the procedure, store the binary code for the procedure and set up a dependency between this
    procedure and this object T.  This dependency is used to invalidate the procedure later - in the
    event something happens to T that necessitates the stored procedures recompilation.  For example,
    if at a later date - we REVOKE SELECT ON T from the owner of this stored procedure - Oracle will
    mark all stored procedures this user has that are dependent on T, that refer to T, as INVALID. If
    we ALTER T ADD  some column, Oracle can invalidate all of the dependent procedures. This will cause
    them to be recompiled automatically upon their next execution.
    What is interesting to note is not only what is stored but what is not stored when we compile the
    object. Oracle does not store the exact privilege that was used to get access to T. We only know
    that procedure P is dependent on T. We do not know if the reason we were allowed to see T was due
    to:
    q    A grant given to the definer of the procedure (grant select on T to user)
    q    A grant to public on T (grant select on T to public)
    q    The user having the SELECT ANY TABLE privilege
    The reason it is interesting to note what is not stored is that a REVOKE of any of the above will
    cause the procedure P to become invalid. If all three privileges were in place when the procedure
    was compiled, a revoke of ANY of them will invalidate the procedure - forcing it to be recompiled
    before it is executed again. Since all three privileges were in place when we created the procedure
    - it will compile successfully (until we revoke all three that is). This recompilation will happen
    automatically the next time that the procedure is executed.
    Now that the procedure is compiled into the database and the dependencies are all setup, we can
    execute the procedure and be assured that it knows what T is and that T is accessible. If something
    happens to either the table T or to the set of base privileges available to the definer of this
    procedure that might affect our ability to access T -- our procedure will become invalid and will
    need to be recompiled.
    This leads into why ROLES are not enabled during the compilation and execution of a stored
    procedure in Definer rights mode. Oracle is not storing exactly WHY you are allowed to access T -
    only that you are. Any change to your privileges that might cause access to T to go away will cause
    the procedure to become invalid and necessitate its recompilation. Without roles - that means only
    'REVOKE SELECT ANY TABLE' or 'REVOKE SELECT ON T' from the Definer account or from PUBLIC. With
    roles - it greatly expands the number of times we would invalidate this procedure. If some role
    that was granted to some role that was granted to this user was modified, this procedure might go
    invalid, even if we did not rely on that privilege from that role. ROLES are designed to be very
    fluid when compared to GRANTS given to users as far as privilege sets go. For a minute, let's say
    that roles did give us privileges in stored objects. Now, most any time anything was revoked from
    ANY ROLE we had, or any role any role we have has (and so on -- roles can and are granted to roles)
    -- many of our objects would become invalid. Think about that, REVOKE some privilege from a ROLE
    and suddenly your entire database must be recompiled! Consider the impact of revoking some system
    privilege from a ROLE, it would be like doing that to PUBLIC is now, don't do it, just think about
    it (if you do revoke some powerful system privilege from PUBLIC, do it on a test database). If
    PUBLIC had been granted SELECT ANY TABLE, revoking that privilege would cause virtually every
    procedure in the database to go invalid. If procedures relied on roles, virtually every procedure
    in the database would constantly become invalid due to small changes in permissions. Since one of
    the major benefits of procedures is the 'compile once, run many' model - this would be disastrous
    for performance.
    Also consider that roles may be
    q    Non-default: If I have a non-default role and I enable it and I compile a procedure that
    relies on those privileges, when I log out I no longer have that role -- should my procedure become
    invalid -- why? Why not? I could easily argue both sides.
    q    Password Protected: if someone changes the password on a ROLE, should everything that might
    need that role be recompiled?  I might be granted that role but not knowing the new password - I
    can no longer enable it. Should the privileges still be available?  Why or Why not?  Again, arguing
    either side of this is easy. There are cases for and against each.
    The bottom line with respect to roles in procedures with Definer rights are:
    q    You have thousands or tens of thousands of end users. They don't create stored objects (they
    should not). We need roles to manage these people. Roles are designed for these people (end users).
    q    You have far fewer application schema's (things that hold stored objects). For these we want
    to be explicit as to exactly what privileges we need and why. In security terms this is called the
    concept of 'least privileges', you want to specifically say what privilege you need and why you
    need it. If you inherit lots of privileges from roles you cannot do that effectively. We can manage
    to be explicit since the number of development schemas is SMALL (but the number of end users is
    large)...
    q    Having the direct relationship between the definer and the procedure makes for a much more
    efficient database. We recompile objects only when we need to, not when we might need to. It is a
    large efficiency enhancement.
    </quote>

  • Sender JDBC Communication Update SQL Command Problem!

    Hi all,
    I am trying to do a SENDER JDBC Scenario in XI.
    I fetch the Records from the table Once per day based on the Current Date.
    I do not have any Update Credentials in the table.
    I can only perform Select Querry.
    But when i am trying to configure the SENDER JDBC Channel its asking me to enter value for Update SQL Command in Sender JDBC communication channel Process Parameters.
    Its not accepting BLANK or ' * '  Values.
    But i have only Select Querry credentials in the table. I can only pick the values cant Update the tables but.
    In the Above scenario how can i configure the Sender JDBC CC without Updating the Table after fetching the value?
    Please Advice
    Regards,
    Senthilprakash.

    Hi,
    Specify the Update SQL Statement value as .
    http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm
    Thanks
    SaNv...
    Edited by: Sãnthosh Kûmãr  V on Oct 8, 2008 10:44 AM
    Edited by: Sãnthosh Kûmãr  V on Oct 8, 2008 10:45 AM

Maybe you are looking for

  • /dev/null link destroyed. Need help

    I have Forms 6i applications deployed on the internet under Oracle 9iAS 1.0.2.2 on Solaris 2.9 64 bits OS. I am starting the 9iAS running the command "apachectl startssl" as 'root' because that's the only way I am able to grab port 443. However as so

  • Folder Actions will not work - tried everything

    Recently Folder Actions simply stopped working on 10.6.4. They worked fine before then recently just stopped working. I've tried everything I can think of, including: 1. completely removing enabling & disabling & enabling folder actions through the s

  • Error trying to Analytic Workspace using latest version AWM 10.1.0.4

    Windows XP Professional Oracle 10g with latest patch 4163362 (10.1.0.4) Installed AWM 10.1.0.4 Installed GLOBAL schema Started AWM 10.1.0.4 Connected to Database,everything fine Expanded Schema Folder, navigated to GLOBAL schema Right mouse click, se

  • Not able to open Logic 9 in 32 bit mode

    Hello, Even if I have checked "open in 32 bit mode" checked in the Logic Pro app, it still opens in 64 bit mode. Why is this happening? I need to run 32 bit mode for certain plug-ins, and to be able to bounce audio to movie. Please help! Thanks, Joe

  • Time out period for PO approvals in worklist

    Hi all, Can any one know how to check the time out period for PO approvals in worklist other thant workflow builder like from system adminstrator or a query etc., Thanks in advance, Regards, Pramod