Update forms 6i

Hei, Can someone help me with this: I have two blocks where 3 primary keys are passed from the first block to the next. (there is NO master/deatil relation between them) and when I make a change in a field in the next block(not on the primary keys)and try to update it I get the following error: Unique constraint Violated.

Hei Pamela, Yes you are right BLOCK2 is interpreting the record as NEW. But why?
This is how my program looks: I have block1 with 3 primary keys and a push button.
Both blocks are based on the same table.
BLOCK1 : 3 items: year, week, b_date(with LOV)
and Push button with tigger: WHEN BUTTON PRESSED(GO_BLOCK(BLOCK2'))
BLOCK2: 10 items, the 3 items comes from BLOCK1
WHEN_NEW_BLOCK_INSTANCE(set_block_property('BLOCK2',default_where,
'where basetable.year = :BLOCK1.year and basetable.week = :BLOCK1.week and basetable.b_date = :BLOCK1.b_date);
EXECUTE_QUERY;
When I am in block2 I see the 3 items and try to update other fields. that is when I get the error.
I also tried your way by using pre-quey trigger in stead of WHEN_NEW_BLOCK_INSTANCE. But it is not working.

Similar Messages

  • Need to automatically display update date and user in update form field

    Hi all,
    Hopefully someone can help me with this... I am using dreamweaver cs4 and php/mysql.  I have a database table that will be updated by 1-5 different people at random times.  I have everything set up and working, as far as the update function, delete function, add new, etc.  In my update form the last two fields are Last Updated and Last Updated By.  There are fields in the table called 'last_updated' (formatted in PHPmyadmin as timestamp) and 'last_updated_by'.  But how do I get them to update on their own?  Right now it is showing the first entry into the field which I did in the PHPmyadmin table, but it is not updating automatically.  It would be a nice field to have so that we know who has worked on the table and when it was last updated, without the user manually typing that in, which I am sure they would forget to do.  By the way, users will login to this with a username and password before editing the records.
    This is the code for the last row in the update form with those two fields.  It is pulling the fields from the database table, but they do not update automatically...
    <tr>
              <th class="blackfont" scope="row">
                <div align="right">
                  <label for="last_updated">Last Updated Date:</label></div>
              </th>
              <td colspan="3" class="blackfont"><input name="last_updated" type="text" id="last_updated" tabindex="47" value="<?php echo $row_getMember['last_updated']; ?>" size="15" />
                <label for="last_updated_by">Last Updated By:</label>
                <input name="last_updated_by" type="text" id="last_updated_by"tabindex="48" value="<?php echo $row_getMember['last_updated_by']; ?>" size="15" /></td>
    </tr>
    Thanks!
    Kathy

    Here is all the code the the Admin Login page...
    <?php session_start(); ?><!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/TherapyPetsTemplate2.dwt" codeOutsideHTMLIsLocked="false" -->
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <!-- InstanceBeginEditable name="doctitle" -->
    <title>TPGC Administrative Login Page</title>
    <!-- InstanceEndEditable -->
    <link href="css/twoColFixLtHdr.css" rel="stylesheet" type="text/css" /><!--[if IE 5]>
    <style type="text/css">
    /* place css box model fixes for IE 5* in this conditional comment */
    .twoColFixLtHdr #sidebar1 { width: 230px; }
    </style>
    <![endif]--><!--[if IE]>
    <style type="text/css">
    /* place css fixes for all versions of IE in this conditional comment */
    .twoColFixLtHdr #sidebar1 { padding-top: 30px; }
    .twoColFixLtHdr #mainContent { zoom: 1; }
    /* the above proprietary zoom property gives IE the hasLayout it needs to avoid several bugs */
    </style>
    <![endif]-->
    <script src="JavascriptFiles/mootools.js" type="text/javascript"></script>
    <style type="text/css">
    <!--
    body {
    background-color: #FFF;
    margin-top: 25px;
    margin-bottom: 25px;
    margin-left: 25px;
    margin-right: 25px;
    background-image: url(Images/images-2.jpg);
    background-repeat: repeat;
    .twoColFixLtHdr #container #webstunning_video_player {
    margin-top: 15px;
    border-top-style: none;
    border-right-style: none;
    border-bottom-style: none;
    border-left-style: none;
    -->
    </style>
    <script src="ajxmenu.js" type="text/javascript"></script>
    <style type="text/css">
    <!--
    body,td,th {
    color: #FFF;
    font-size: 100%;
    font-family: Trebuchet MS, Arial, Helvetica, sans-serif;
    .Italic {
    font-style: italic;
    -->
    </style><link rel="stylesheet" href="ajxmenu1.css" type="text/css" />
    <script src="ajxmenu1.js" type="text/javascript"></script>
    <link rel="stylesheet" href="ajxmenu2.css" type="text/css" />
    <script src="ajxmenu2.js" type="text/javascript"></script>
    <link rel="stylesheet" href="ajxmenu4.css" type="text/css" />
    <script src="ajxmenu4.js" type="text/javascript"></script>
    <!-- InstanceBeginEditable name="head" -->
    <script language='JavaScript' type='text/javascript' src='HDWRegistrationAndLogin/validatescripts.js.php'></script>
    <!-- InstanceEndEditable -->
    <script type="text/javascript">
      var _gaq = _gaq || [];
      _gaq.push(['_setAccount', 'UA-28303973-1']);
      _gaq.push(['_trackPageview']);
      (function() {
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
    </script>
    </head>
    <body class="twoColFixLtHdr">
    <div id="container">
    <div id="header">
    <!-- end #header -->
    </div>
    <div class="AJXCSSMenuScYdSZA"><!-- AJXFILE:../ajxmenu4.css -->
    <ul>
    <li><a href="Index.html">Home</a></li>
    <li><a class="ajxsub" href="AboutUs.html">About Us</a>
      <ul>
       <li><a href="AboutUs.html">About Our Group</a></li>
       <li><a href="Board%20of%20Directors.html">Board of Directors</a></li>
       <li><a href="ServicesWeProvide.html">Services We Provide</a></li>
       <li><a href="TPGCintheNews.html">TPGC in the News</a></li>
      </ul>
    </li>
    <li><a href="Facilities.html">Facilities</a></li>
    <li><a class="ajxsub" href="GetStarted.html">Get Involved</a>
      <ul>
       <li><a href="DoesYourPetHaveWhatItTakes.html">Does Your Pet Have What it Takes?</a></li>
       <li><a class="ajxsub" href="GetStarted.html">Get Started</a>
        <ul>
         <li><a href="Training.html">Training</a></li>
         <li><a href="Testing.html">Testing</a></li>
        </ul>
       </li>
      </ul>
    </li>
    <li><a class="ajxsub" href="HowYouCanHelp.html">How You Can Help</a>
      <ul>
       <li><a href="HowYouCanHelp.html">Ways to Help</a></li>
       <li><a href="DonorsList.html">Our Donors and Sponsors</a></li>
      </ul>
    </li>
    <li><a class="ajxsub" href="MemberProfiles.html">Happy Tales</a>
      <ul>
       <li><a href="MemberProfiles.html">Member Profiles</a></li>
       <li><a href="MemberStories.html">Member Stories</a></li>
       <li><a href="Testimonials.html">Testimonials</a></li>
       <li><a href="PhotoGalleries.html">Photo Gallery</a></li>
      </ul>
    </li>
    <li><a href="FAQs.html">FAQs</a></li>
    <li><a href="Links.html">Links</a></li>
    <li><a href="Form-ContactUs.html">Contact Us</a></li>
    <li><a class="ajxsub" href="#">Login</a>
      <ul>
       <li><a href="MemberLogin.php">Member Login</a></li>
       <li><a href="BoardLogin.php">Board Login</a></li>
       <li><a href="AdminLogin.php">Admin Login</a></li>
      </ul>
    </li>
    </ul>
    <br />
    </div>
    <div id="sidebar1">
       <div>
        <div align="center">
        <br />
    <br />
    <div id="Events">
    <br />
    <div class="EventsHeading" id="EventsHeading">Upcoming Events</div>
    <br />
    <span class="EventsText">
          <!--Date-->
          </span>
          <span class="EventsDate">March 11th</span>
          <span class="EventsText">
    <!--Event Name-->      Members Meeting
          <!--Time-->
          </span>
    <span class="EventsTextDescription"><!--Description-->
    <strong class="MemberPageItemFont">CANCELLED! </strong></span>
    <br />   
    <span class="EventsDate">March 25th</span>
          <span class="EventsText">
    <!--Event Name-->Testing
    <!--Time-->
          </span>
    <span class="EventsTextDescription"><!--Description-->
    12-3 pm   At Bethesda North Hospital. Please contact <a href="mailto:[email protected]?Subject=Sign up for Testing March 25th">Elaine Waxler</a> to sign up for testing, or <a href="mailto:[email protected]?Subject=Question about Testing March 25th">Glenna Mockbee</a> for more details.</span>
    <br />
          <span class="EventsDate">April 15th</span>
          <span class="EventsText">
    <!--Event Name-->      Board Meeting
          <!--Time-->
          </span>
    <span class="EventsTextDescription"><!--Description-->
    12-3 pm   At Bethesda North Hospital. Please contact <a href="mailto:[email protected]?Subject=Delta Testing Question">Glenna Mockbee</a> for details.</span>
    <br />
          <span class="EventsDate">May 20th</span>
          <span class="EventsText">
    <!--Event Name-->      Member Luncheon
          <!--Time-->
          </span>
    <span class="EventsTextDescription"><!--Description-->
    10-4 pm   At Bethesda North Hospital. More details to come.</span>
    <br />
    </div>
        </div>
        <br />
          <hr align="center" width="200" />
          <div align="center"><a href="http://www.facebook.com/pages/Therapy-Pets-of-Greater-Cincinnati/324108054289534?skip_nax_ wizard=true#!/pages/Therapy-Pets-of-Greater-Cincinnati/324108054289534?sk=wall" target="_blank"><img src="Images/Facebook.jpg" alt="Facebook" width="144" height="44" border="0" /></a><br />
            <br />
          </div>
          <hr align="center" width="200" />
          <div align="center">
          <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
    <input type="hidden" name="cmd" value="_s-xclick">
    <input type="hidden" name="hosted_button_id" value="TB844UZWVAUVU"><br />
    <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
    <img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
    </form>
    <br />
            <br />
    <hr align="center" width="200" />
    <!-- InstanceBeginEditable name="SideBar" -->
        <div>
         <br />
         <br />
         <br />
         <br />
         <br />
         <br />
         <br />
         <br />
         <br />
         <br />
         <br />
         <br />
         <br />
         <br />
         <br />
         <br />
         <br />
         <br />
         <br />
         <br />
         <br />
         <br />
         <br />
    <br />
    <br />
        </div>
        <!-- InstanceEndEditable --><br />
      <br />
      <br />
          </div>
    </div>
    </div>
    <!-- InstanceBeginEditable name="MainContent" -->
    <div id="mainContent">
    <span class="GreenHeadingH2">Admin Login</span>
      <br />
      <br />
      <br />
      <br />
    <div align="center"> 
      <p><span class="UnderConstructionFont"><em><strong>***UNDER CONSTRUCTION - PLEASE DO NOT USE YET!</strong></em></span>***</p>
      <p> </p>
      <p><span class="UnderConstructionFont"><em>Please login to manage TPGC lists and information.</em></span><em></em></p>
      <p> </p>
      <p>
    <?php if (!$_SESSION["logged_3"]) { ?>
      </p>
      <form id="hdwlogin" name="hdwlogin" method="post" action="http://www.therapypetsofgreatercincinnati.org/AdminPage.php" onsubmit="return HDW_verify_Login(this)">
        <div id="hdwdivlogin">Enter your username:<br />
          <input type="text" name="username" id="username" />
          <br />
          Enter your password:<br />
          <input type="password" name="password" id="password" />
        </div>
        <div id="hdwdivILMP" style="display:none;"> Enter your email:<br />
          <input type="text" name="hdwILMPemail" id="hdwILMPemail" />
          <br />
          <input type="button" onclick="javascript:HDW_submitILMP()" value="Submit" />
          <a href="javascript:HDW_showLogin()">Login Again</a></div>
        <input type="hidden" name="hdwtable" id="hdwtable" value="3" />
        <input type="hidden" name="hdwokurl" id="hdwokurl" value="http://www.therapypetsofgreatercincinnati.org/AdminPage.php" />
        <br />
        <div id="hdwdivLink" >
          <p>
            <input type="submit" name="subbtn" id="subbtn" value="Submit" />
            </p>
          <p><a href="javascript:HDW_showILMP()">I lost my password</a></p>
        </div>
      </form>
      <p>
        <?php } else { ?>
        Logged as <?php echo $_SESSION["logged_username"]; ?>.
        <br />
      <br />
      <a href="javascript:HDW_logout()">Click here to logout</a>.
      <?php } ?>
      </p>
      <p> </p>
       <p><span class="Caption">To change your password, contact <a href="mailto:[email protected]?Subject=Change my TPGC board password">webmaster</a></span><br />
    </div>
    </div>
    <!-- InstanceEndEditable --><br />
    <br class="clearfloat" />
    <div id="footer">
        <p><img src="Images/x-knead[1].gif" width="98" height="47" align="absmiddle" />        Copyright 2012 Therapy Pets of Greater Cincinnati, a 501(c)(3) organization     Last Updated
          <!-- #BeginDate format:Am3 -->02/25/2012<!-- #EndDate -->           Website by <a href="mailto:[email protected]?Subject=Question or Comment for Webmaster">Kathy McRoberts</a>        <img src="Images/terrier15.gif" width="63" height="60" align="absmiddle" />
          <!-- end #footer -->
          <br />
        </p>
    </div>
    <!-- end #container --></div>
    </body>
    <!-- InstanceEnd --></html>

  • Can you move a 'Multiple Image Upload' button  into the 'Update Form'?

    I am able to creat and an Update form and an image upload using the "Update Form Wizard" tool and the "Multiple Image Upload" tool succesfully.
    <br />
    <br />The problem comes when I try to move the "UPLOAD" button inside the Update form. Right now it looks like this:
    <br />http://www.webritesolutions.com/Test/upload/now.JPG
    <br />
    <br />This is how I would like it to show:
    <br />http://www.webritesolutions.com/Test/upload/tryingto.JPG
    <br />
    <br />I want to "Upload" button to go next to the "Update record" button. When I do this I get a javascript error and the "Update record" button is disabled.
    <br />Here is the code of what I tried to do:
    <br />
    <br />
    <br />
    <br />
    <br />
    <table>
    <tr class="KT_buttons">
    <td>
    <?php<br />        // Multiple Upload Helper<br /> echo $muploadHelper->Execute();<br /> ?>
    </td>
    <td colspan="1">
    <input type="submit" name="KT_Update1" id="KT_Update1" value="Update record" />
    <br /></td>
    </tr>
    </table>
    <br />
    <br />Here is the Javascript error:
    <br />http://www.webritesolutions.com/Test/upload/error.JPG
    <br />
    <br />thanks for your help.

    A control can only appear once in the visual tree. So you have to remove it from the Grid before you can add it to the DockPanel.
    This code will move the Border element from the Grid to the DockPanel when you click the button:
    Private Sub Button_Click(sender As Object, e As RoutedEventArgs)
    Dim border = CType(LayoutRoot.FindName("myborder"), Border)
    LayoutRoot.Children.Remove(border)
    contain.Children.Add(border)
    End Sub
    <StackPanel>
    <Grid x:Name="LayoutRoot">
    <Border x:Name="myborder" BorderBrush="Black" BorderThickness="2">
    <TextBlock>...</TextBlock>
    </Border>
    </Grid>
    <DockPanel x:Name="contain" Background="Yellow">
    <TextBlock>2</TextBlock>
    </DockPanel>
    <Button Click="Button_Click" Content="Move"/>
    </StackPanel>
    You can try it for yourself. But please post your code as formatted text and not as embedded images if you want anyone to be able to reproduce your issue and help you in the future.
    Please remember to close your threads by marking helpful posts as answer.

  • Help needed for dynamic update form

    I could really use some advice - I've been asked to build a time tracking application (basically a timesheet) and I have a fair bit done but the part I am really struggling with is the best way to accommodate some of the specifications. I am NOT a programmer (I have some coldfusion experience but nothing really advanced) so I have not managed to sucessfully integrate the various methods I've found on the web so far. The database is created and so are all the queries, and I have also written a cfc to handle the drop-down menu logic needed but I don't really know how to integrate it with the form.
    Our production server has ColdFusion MX7 so all the great functionality in the CF8 examples I can't use.
    The issue is the user should ideally be able to add/edit/delete multiple rows at once- I like CFGRID, and the HTML version seems best. The main issue with the Flash version is the scrolling to get to the insert/delete buttons- I couldn't see how to get rid of that. A separate add and edit form could be ok depending on how easy it is to use.
    One problem I have is that I can't work out how to have default values with the grid (the userID which is a session variable, and the date which is constantly changing- there is a cfcalendar for the user to change date).
    The biggest hurdle is the related select drop-downs I need- it's not quite as simple as the city,state,postcode examples. For the first drop down the pick an option- and for only 2 of those options there is a second drop-down. Anything else and it stops there. For the second drop-down, there are 2 options, and depending on which one of these they pick the 3rd drop-down pulls a query from one or another table in the database (2 entirely different things). The three  options have different database tables. The main timesheet table just stores the id number from those tables (so I also need to display the names on the drop-down from the options tables not the number).
    I played with simple and complicated javascript and coldfusion solutions as well, but because it's a form to update records and also because of the above specs I just couldn't get anything to work right. I tried binding with the cfc and nothing would bind, plus I don't know how to make all happen without a page reload.
    Does anyone have any advice for the best approach to this? As I mentioned I've got tables, queries and even a cfc but I'm not too clear on how to put it all together properly within the constraints of MX7.
    PS I also can't post a lot of code because of where I work- I know that's not helpful but am looking for the best approach to this, then I can work on the details. Right now I am jumping from solution to solution and not getting anywhere.

    Well, a lot of code has come and gone because I couldn't make it work, where I'm currently at is:
    <cfform name="updateform" id="updateform" action="#CurrentPage#?#CGI.QUERY_STRING#">
      <cfgrid name="MainData" height="400" insertbutton="add" deletebutton="remove" query="getMainData" insert="yes" delete="yes" rowheight="20"  selectmode="edit" format="html">
      <cfgridcolumn name="id" display="no">
    <cfgridcolumn name="userID" display="no">
    <cfgridcolumn name="entrydate" display="no">
    <cfgridcolumn name="activityID" >
    <cfgridcolumn name="typeID">
    <cfgridcolumn name="projectID" values="#ValueList(getProjects.id)#" valuesdisplay="#ValueList(getProjects.name)#">
    <cfgridcolumn name="time" width="10">
    <cfgridcolumn name="comment" width="150">
    </cfgrid>
    <cfinput type="hidden" name="entrydate" value="#Session.username#">
    <cfinput type="hidden" name="entrydate" value="#editdate#">
    <cfinput name="update" type="Submit" value="Update">
    </cfform>
    ** for some reason getProjects.name doesn't work and causes an error. I haven't worked out how to get the default inputs for the date and user ID to work either. I also tried binding and a flash form somewhere along the way.
    ** the CFC is below, #ds# didn't work and I had to put in the actual DSN name, not sure why, but anyway this is the logic of the thing. Ideally I would like to use this logic with the cfgrid, but I'm not sure if that is possible? It seems like it would be the most user friendly approach.
    The CFC so far is:
    <cfcomponent>
       <cffunction name="getActivities" access="remote" returnType="query">
            <cfquery name="getActivities" datasource="#ds#">
    SELECT * FROM timesheet_activities
    </cfquery>
            <cfreturn getActivities>
        </cffunction>
        <cffunction name="getTypes" access="remote" returnType="query">
        <cfargument name="Activity" type="any" required="true">
        <cfif ARGUMENTS.Activity EQ "">
            <cfset getType = "">
        <cfelse>
            <cfquery name="getTypes" datasource="#ds#">
            SELECT * FROM timesheet_type
            </cfquery>
        </cfif>
        <cfreturn getTypes>
        </cffunction>
        <cffunction name="GetProjects" access="remote" returnType="query">
        <cfargument name="Activity" type="any" required="true">
        <cfargument name="Type" type="any" required="true">
        <cfif ARGUMENTS.Activity EQ "" OR ARGUMENTS.Type EQ "">
            <cfset LstProjects = "">
        <cfelseif ARGUMENTS.Activity EQ "1" OR "3">
        <cfquery name="getProjects" datasource="#ds#">
    SELECT id,name FROM projectsa
    WHERE completed = 'false'
    </cfquery>
    <cfelse>
    <cfquery name="getEProjects" datasource="#dse#">
    SELECT id,name FROM projectsb
    WHERE statusID = '6'
    </cfquery>
        </cfif>
        <cfreturn getProjects>
        </cffunction>
    </cfcomponent>
    Any attempts to actually use the cfc didn't work. I tried to use it with a normal html update form and got the message- failed to bind, Activity didn't exist. I also tried to bind it to a flash grid. The argument for Activity needs to come from the drop-down Activity type selected. Maybe I'm missing something.
    ETA:
    just moved everything to the live MX7 server (because my dev server is Coldfusion8) and I get the following:
    Attribute validation error for tag CFGRID. The tag does not allow the attribute(s) BINDONLOAD,BIND.
    Does this mean I definitely can't use the CFC with the cfgrid on MX7? Or is there a way to do it?
    Any advice would be greatly appreciated.

  • Update form not returning correct data selection in dropdown menu

    Using CS3 DW along with SQL 2008 R2. I have a number of dropdown menus on an entry form (using VBScript/ASP) that are feed by SQL queries. All data is accepted in the entry form and writes to the table in the database without any issues. I created an Update form and based on a Rec ID clicked on from a list the Update form is presented with all the data in the correct fields except for one dropdown menu. All the other menus go to the correct selection except for the one. Spent 2 days attempting to resolve this. If I change the dropdown menu to a field the correct data is presented when the form comes up, but doesn't allow the user to make a selection from the menu. When I change it back to a dropdown menu the saved selection is not selected - just lists the entire list of items in the menu. Any help or ideas on this is greatly appreciated.

    Hello All,
    Once more thank you. I have sorted the issue out.
    I observed that I was selecting the wrong field. I selected the field matching the record set of the select instead of the field matching the record set of the table I am working as seen on the image belew
    I was selecting this - This is the record set of the table that hold values for the city select list
    Instead of this. This is the record set of the table behind the form I am working on
    My issue is now re-solved.
    Mike

  • Multiple check boxes in an update form using php

    I have a database of the membership of a club. One field in the database is input by checking multiple check boxes. When the insert member record is submitted and multiple check boxes are selected, the information becomes an array of text separated by commas. When the user goes back to the update form, the check boxes are not showing checked in the appropriate fields. Please go to my test site where you will be able to see the code that I have created so far: http://www.usreboot.com/phphelp.php. You will find the php code for the update form in a pdf file located there. You will need a user name and password to look at the update record page. Here you go: user name: wyane, password: wayne. I have submitted this request in the past and have not found success so far. Thanks for your help, Wayne Rowlands

    I am so close. If a member has only one check box checked. I get the check box checked in the update form. Here is the updated code:
    If the member has a number of check boxes checked, none of the check boxes are checked. I am so close. Maybe you can figure out what I am missing.  Thanks, Wayne

  • Multiple check boxes in an update form

    I have a database of the membership of a club. One field in the database is input by checking multiple check boxes. When the insert member record is submitted and multiple check boxes are selected, the information becomes an array of text separated by commas. When the user goes back to the update form, the check boxes are not showing checked in the appropriate fields. Please go to my test site where you will be able to see the code that I have created so far: http://www.usreboot.com/phphelp.php. You will need a user name and password to look at the update record page. Here you go: user name: wyane, password: wayne. I have submitted this request in the past and have not found success so far. Thanks for your help, Wayne Rowlands

    Thanks for getting back with me. I do have two tables. One table is the "members" table where all the information for the members is stored. One of the columns is "currentClubPositions". The database has another table which is "positions" which has the list for the positions that a member of the club could serve on. Members of the club may be serving on a number of positions at once, therefore the check boxes. Also, the club is adding and deleting positions over time, so I wanted an easy way to add them and delete them without having to go into phpmyadmin to do this. I have created a form that updates the "positions" table. The check boxes that show up in the insert member record and update member record are dynamic so that when the table "positions" changes, the forms change dynamically as do the queries to sort the database change dynamicaly. When the check boxes are entered, I use the implode function to make the values an array of text separated by commas and that value is inserted in one field of the members table named "currentClubPosition". I am all ears to hear a better way. Take a look at the web pages (see the original post) that I have created and you will see how all this ties together. Thanks, Wayne Rowlands

  • Problem with ASP "Create form wizard" or "Update form wizard" and "Upload file"

    Until now it used version 3,7 and dinamyc had never had problems with "Create form wizard" or "Update form wizard" and "Upload file" but now when I create the form and shipment a file leaves an error to me:
    Error:
    Error al borrar directorio. Error de seguridad.
    Developer Details:
    Error al borrar directorio. Error de seguridad. El directorio 'E:\web\eds\maqueta\' esta fuera del directorio base 'E:\web\eds\maqueta\fotosactivi2\'. (FOLDER_DEL_SECURITY_ERROR)
    tNG Execution Trace - VIEW
    * tNG_insert.executeTransaction
    o STARTER.Trigger_Default_Starter
    o tNG_insert.doTransaction
    + BEFORE.Trigger_Default_FormValidation
    + tNG_insert.prepareSQL
    + tNG_insert.executeTransaction - execute sql
    + tNG_insert.postExecuteSql
    + AFTER.Trigger_FileUpload*
    + ERROR.Trigger_Default_Insert_RollBack
    * tNG_insert.getRecordset
    * tNG_insert.getFakeRsArr
    * tNG_insert.getLocalRecordset
    * tNG_insert.getFakeRecordset
    * tNG_insert.getFakeRecordset

    Hello,
    Please see this thread http://www.adobeforums.com/cgi-bin/webx/.3bc3c678/2
    for the same problem.
    Regards,
    Razvan RACASANU

  • Adobe Reader not picking up updates in incrementally updated forms

    I am trying to do incremental update on PDF form. I created two forms using Acrobat Pro. One contains an unchecked checkbox and the other contains unselected radio button. In incremental update, the controls are selected. The issue is that on opening the updated form, Adobe Reader doesn't pick up the updated objects and shows the original form with unselected controls. When I try to open the updated forms with Foxit Reader, updated contents are visible with the controls selected. What could be the issue here?
    Incremental update files I created are available at
    http://www.freedrive.com/file/1309817,cb1.pdf
    http://www.freedrive.com/file/1309818,rb1.pdf

    After some testing, i do find that the overrides file is working properly for my base/newly built machines. So, it must be something on a currently deployed machine, so i can fix that.. I guess technically it's working...
    But, i'm noticing that the Internal AAM server it's looking at is not showing all of the updates it should,
    I did see some errors of :
    Downloading http://swupdl.adobe.com/updates/oobe/aam20/mac/PhotoshopCameraRawForElements11-7.1-x64/7.3 .37/7.3.37.xml
    ******** HTTP Error*********
    Failed to open remote file http://swupdl.adobe.com/updates/oobe/aam20/mac/PhotoshopCameraRawForElements11-7.1-x64/7.3 .37/7.3.37.xml
    Downloading update:  AdobeExtensionManagerCS5-5.0/5.0.1
    I usually just do an incremental update (Mac Server running 10.8)
    Do i need to do a Forced Update? or a 1, of re-downloading a fresh copy of everything?
    It's only a couple updates, But one missing, is the latest Photoshop, which i see if i remove the overrides file, but disappears if i use the overrides file.
    Thanks.

  • Problem with update form and date (show 1970-01-01)

    Hi, I've a update form (php/mysql) with many date input field. When my date is 000-00-00 I show 1970-01-01. Why??
    This is the code:
    label for="data_chiusura"><strong>Data chiusura</strong></label>
          <input type="text" name="Data_chiusura" value="<?php echo $string=$row_Recordset1['data_chiusura'];
        if($string == '0000-00-00'){
        $string = '';
        } else {
        $string = date("d-m-Y", strtotime($string));
        }; ?>" id="Data_chiusura">
    Thanks
    k

    Why would the date ever be null? As long as the date has a non-zero, non-null value this function will work correctly.
    I'm a little confused by what you are doing here. So, you are pulling data from a table, and populating forms with it. This particular field is a date field, and the problem is that when the data for that field is a null, you are getting instead a date of 1970-01-01 displayed in that field - is that correct? What do you want to appear there when the data is null? Nothing?

  • TS1394 HOW TO UPDATE FORM MAC OX 10.4.11 TO UP

    HOW TO UPDATE FORM MAC OX 10.4.11 TO UP

    OS numbers and names
    OS X 10.4.x - Tiger
    OS X 10.5.x - Leopard
    OS X 10.6.x - Snow Leopard
    OS X 10.7.x - Lion
    OS X 10.8.x - Mountain Lion
    More about Macs
    The Apple History site has specifications for every Mac ever produced: http://www.apple-history.com/
    Upgrade to Leopard
    Those wishing to upgrade to Leopard should be aware that install disks can be expensive unless you contact Apple. Details: http://lowendmac.com/deals/best-os-x-leopard-prices.html Standard Leopard installers impose several hardware limitations including speed and RAM size but all these restrictions can be overcome. Google for details. Leopard works well at 500 MHz with 1 GB of RAM and many happy users have less than this.
    Upgrade beyond Leopard
    OSs beyond OS X 10.5.8 require an Intel processor. If in doubt check this: Click the apple at the top left of your screen and select 'About this Mac'. This will give you your OS number. Then click 'More Info' to see which processor you have. If it says PowerPC you cannot upgrade to Snow Leopard and above. If you have an Intel Mac it is well worth upgrading to Snow Leopard now and then considering other options after that. You can buy Snow Leopard here: http://store.apple.com/us/product/MC573Z/A
    Upgrade beyond Snow Leopard
    Information about upgrading Snow Leopard to Lion or Mountain Lion: http://store.apple.com/us/product/MD256Z/A
    Important
    Check that your Mac complies with any requirements. If you are not in the US you should use the Change Country link at the bottom of Apple pages.

  • Weird Radio button issue on Insert/Update form

    I recently installed Dreamweaver CS4 and am having a heck of a time with radio buttons on my Dynamic Insert/Update form.
    For some reason, when I update a record, the radio button I had previously selected, is NOT checked.  However, the value is in the mySQL db.
    I've tried this in several different folders, thinking there was a conflict (css, js or whatever) but have had the same issue every time.  I even updated my DDT includes folder but still no luck.
    Has anyone had an issue like this with Dreamweaver CS4 and know how to solve it?
    Also, I should probably add the Dreamweaver CS4 has crashed at least 3 times per day since I installed it less then a week ago.  My computer easily meets the required specs (3.39GHz, 2GB RAM, 75GB HardDrive).   Something is obviously wrong.  Whether its my computer or CS4, I'm not sure.
    Any help is appreciated!
    Thanks!
    Peter T

    OK, I've figured out what the issue is but not why.
    See the code below.  For some reason, where it should be {echo "checked";} its {echo "@@checked@@";}
    Anyone else run into this situation?
                <td><div>
                  <input <?php if (!(strcmp(KT_escapeAttribute($row_rssample_sam['answer_sam']),"1"))) {echo "@@checked@@";} ?> type="radio" name="answer_sam_<?php echo $cnt1; ?>" id="answer_sam_<?php echo $cnt1; ?>_1" value="1" />
                  <label for="answer_sam_<?php echo $cnt1; ?>_1">Yes</label>
                </div>
                  <div>
                    <input <?php if (!(strcmp(KT_escapeAttribute($row_rssample_sam['answer_sam']),"0"))) {echo "@@checked@@";} ?> type="radio" name="answer_sam_<?php echo $cnt1; ?>" id="answer_sam_<?php echo $cnt1; ?>_2" value="0" />
                    <label for="answer_sam_<?php echo $cnt1; ?>_2">No</label>
                  </div>
                  <?php echo $tNGs->displayFieldError("sample_sam", "answer_sam", $cnt1); ?></td>

  • How to create an update form

    I am facing some problems when creating an update form. I have created the form page and the action page. It seems to be working but I have a couple of issues with a list menu and a radio button.
    The code is:
    <!--- Check that ID was provided --->
    <cfif NOT IsDefined("URL.ID")>
      <h1>You did not specify the Alumni ID</h1>
    <cfabort>
    </cfif>
    <!--- Get the alumni record --->
    <cfquery datasource="alumniupdateform" name="queryResults">
    SELECT *
    FROM Alumni
    WHERE ID=#URL.ID#
    </cfquery>
    <!--- Get countries --->
    <cfquery name="Countryquery" datasource="admissions">
          SELECT * FROM Countries ORDER BY CountryName ASC
    </cfquery>
    <!--- Page header --->
    <cfinclude template="includes\header.cfm">
    <!--- Update alumni form --->
    <cfform action="includes\update_action.cfm">
    <!--- Embed primary key as a hidden field --->
    <cfoutput>
    <input type="radio" name="WantRepresent" id="WantRepresent" value="#queryResults.WantRepresent#">
    </cfoutput>
    <cfoutput>
    <input type="hidden" name="ID" value="#queryResults.ID#">
    </cfoutput>
    <table align="center" bgcolor="">
    <tr>
      <th colspan="2">
        <p> </p>
        <p><font size="+1">Update a Alumni Contact</font></p>
        <p> </p></th>
    </tr>
    <tr>
      <td>
       Name:
      </td>
      <td>
       <cfinput type="Text"
                name="aName"
                value="#Trim(queryResults.aName)#"
                message="NAME is required!"
                required="Yes"
                validateAt="onSubmit,onServer"
                size="50"
                maxlength="100">
      </td>
    </tr>
    <tr>
      <td>
       Last Name:
      </td>
      <td><cfinput type="Text"
                name="aLastName"
                value="#Trim(queryResults.aLastName)#"
                message="LAST NAME is required!"
                required="Yes"
                validateAt="onSubmit,onServer"
                size="50"
                maxlength="100"></td>
    </tr>
    <tr>
      <td>
       Company:
      </td>
      <td>
       <cfinput type="Text"
                name="aCompany"
                value="#Trim(queryResults.aCompany)#"
                message="COMPANY is required!"
                required="Yes"
                validateAt="onSubmit,onServer"
                size="50"
                maxlength="100">
                </td>
    </tr>
    <tr>
       <td>E-Mail</td>
       <td><cfinput type="Text"
                name="aEmail"
                value="#Trim(queryResults.aEmail)#"
                message="E-MAIL is required!"
                required="Yes"
                validateAt="onSubmit,onServer"
                size="50"
                maxlength="100"></td>
    </tr>
    <tr>
      <td>
       Preferred Postal Adress::
      </td>
      <td>
       <cfoutput></cfoutput>
       <cfinput type="text"
       name="aPreferredAdress"
       value="#Trim(queryResults.aPreferredAdress)#"
       message="Please provide the company name"
       required="yes"
       validateAt="onSubmit,onServer"
       size="80"
       maxlength="100">
      </td>
    </tr>
    <tr>
      <td>
       Home Phone:
      </td>
      <td>
       <cfinput type="Text"
                name="aHomePhone"
                value="#Trim(queryResults.aHomePhone)#"
                message="Home Phone is required"
                required="Yes"
                validateAt="onSubmit,onServer"
                size="20"
                maxlength="20">
      </td>
    </tr>
    <tr>
      <td>
       Work Phone:
      </td>
      <td><cfinput type="Text"
                name="aWorkPhone"
                value="#Trim(queryResults.aWorkPhone)#"
                message="Work Phone is required"
                required="Yes"
                validateAt="onSubmit,onServer"
                size="20"
                maxlength="20"></td>
    </tr>
    <tr>
      <td>
       Cell Phone:
      </td>
      <td><cfinput type="Text"
                name="aCellPhone"
                value="#Trim(queryResults.aCellPhone)#"
                message="Cell Phone is required"
                required="Yes"
                validateAt="onSubmit,onServer"
                size="20"
                maxlength="20"></td>
    </tr>
    <tr>
       <td>Country:</td>
       <td><!--- Country list --->
       <select name="acountries">
        <cfoutput query="Countryquery">
         <option value="#CountryName#"<cfif Countryquery.CountryName IS queryResults.aCountry>selected</cfif>>#CountryName#</option>
        </cfoutput>
       </select></td>
    </tr>
    <tr>
       <td colspan="2"></td>
       </tr>
    <tr>
       <td colspan="2"> <strong>
            </strong>
            <cfinput type="radio" name="WantRepresent" id="WantRepresent" value="Yes">
            Yes, I want to be a class representative of
    <strong>
      <cfinput type="text" name="aYear" id="aYear" style="visibility:hidden">
    </strong></td>
       </tr>
    <tr>
       <td colspan="2"> </td>
    </tr>
    <tr>
      <td colspan="2" align="center">
       <input type="submit" value="Update">
      </td>
       </tr>
    </table>
    </cfform>
    <!--- Page footer --->
    <cfinclude template="includes\footer.cfm">
    and the action code is this:
    <!--- Update movie --->
    <cfquery datasource="alumniupdateform" name="queryResults">
    SELECT *
    FROM Alumni
    </cfquery>
    <cfquery datasource="alumniupdateform">
    UPDATE Alumni
    SET aName='#Trim(FORM.aName)#',
        aLastName='#Trim(FORM.aLastName)#',
        aCompany='#Trim(FORM.aCompany)#',
        aEmail=#FORM.aEmail#,
        aPreferredAdress='#Trim(FORM.aPreferredAdress)#',
        aHomePhone='#Trim(FORM.aHomePhone)#',
        aWorkPhone='#Trim(FORM.aWorkPhone)#',
        aCellPhone='#Trim(FORM.aCellPhone)#',
        aCountry='#(FORM.acountries)#'
    WHERE Id="#queryResults.ID#"
    </cfquery>
    <!--- Page header --->
    <cfinclude template="includes\header.cfm">
    <!--- Feedback --->
    <cfoutput>
    <h1>Contact '#FORM.aName#' updated</h1>
    </cfoutput>
    <!--- Page footer --->
    <cfinclude template="includes\footer.cfm">
    If someone can help me with this I would really appreciate.
    Thanks

    I see this comment on your form page.
    <!--- Embed primary key as a hidden field --->
    But on your action page, you don't use it.  That's a problem.

  • Update form problems

    Hello,  I've re-done the update form several times and still get the same issue.  I get the correct data from the database in the form fields. I use the server behavior panel to set the update info and everything looks good.  It recognises the primary Key and the appropriate fields.  However clicking the submit button will send the user to the correct page but not update the database.  I'm thinking the problem is in the button ID.  What should the button parameters be and should the button ID be to update the form?  Is there any thing I'm missing?

    Thanks for the response...  Here is the code above the doctype.  I'm just learning so for PHP and mySQL i use the designer a lot.  I'm better with jscript.
    <?php require_once('../Connections/mmhsi.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      if (PHP_VERSION < 6) {
        $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_update"])) && ($_POST["MM_update"] == "form2")) {
      $updateSQL = sprintf("UPDATE contracts SET `Contract Start Date`=%s, `Contract End Date`=%s, `Last Service Date`=%s, `Next Service Date`=%s, `LSD Invoice`=%s, `Contract PO`=%s WHERE ContractID=%s",
                           GetSQLValueString($_POST['Contract Start Date'], "date"),
                           GetSQLValueString($_POST['Contract End Date'], "date"),
                           GetSQLValueString($_POST['Last Service Date'], "date"),
                           GetSQLValueString($_POST['Next Service Date'], "date"),
                           GetSQLValueString($_POST['LSD Invoice'], "text"),
                           GetSQLValueString($_POST['Contract PO'], "text"),
                           GetSQLValueString($_POST['ContractID'], "int"));
      mysql_select_db($database_mmhsi, $mmhsi);
      $Result1 = mysql_query($updateSQL, $mmhsi) or die(mysql_error());
      $updateGoTo = "manage_medgas.php";
      if (isset($_SERVER['QUERY_STRING'])) {
        $updateGoTo .= (strpos($updateGoTo, '?')) ? "&" : "?";
        $updateGoTo .= $_SERVER['QUERY_STRING'];
      header(sprintf("Location: %s", $updateGoTo));
    $colname_GetHospital = "-1";
    if (isset($_GET['HospitalName'])) {
      $colname_GetHospital = $_GET['HospitalName'];
    mysql_select_db($database_mmhsi, $mmhsi);
    $query_GetHospital = sprintf("SELECT * FROM hospitalindex WHERE HospitalName = %s", GetSQLValueString($colname_GetHospital, "text"));
    $GetHospital = mysql_query($query_GetHospital, $mmhsi) or die(mysql_error());
    $row_GetHospital = mysql_fetch_assoc($GetHospital);
    $totalRows_GetHospital = mysql_num_rows($GetHospital);
    $colname_getContract = "-1";
    if (isset($_GET['ContractID'])) {
      $colname_getContract = $_GET['ContractID'];
    mysql_select_db($database_mmhsi, $mmhsi);
    $query_getContract = sprintf("SELECT * FROM contracts WHERE ContractID = %s", GetSQLValueString($colname_getContract, "int"));
    $getContract = mysql_query($query_getContract, $mmhsi) or die(mysql_error());
    $row_getContract = mysql_fetch_assoc($getContract);
    $totalRows_getContract = mysql_num_rows($getContract);
    $colname_getContact = "-1";
    if (isset($_GET['ContractID'])) {
      $colname_getContact = $_GET['ContractID'];
    mysql_select_db($database_mmhsi, $mmhsi);
    $query_getContact = sprintf("SELECT * FROM contractcontacts, contacts WHERE ContractID = %s AND contractcontacts.ContactID=contacts.ContactID", GetSQLValueString($colname_getContact, "int"));
    $getContact = mysql_query($query_getContact, $mmhsi) or die(mysql_error());
    $row_getContact = mysql_fetch_assoc($getContact);
    $totalRows_getContact = mysql_num_rows($getContact);
    ?>

  • Software Updates form apple comand

    I have used this unix comand com.apple.softwareupdate
    CatalogURL "http://yourservername:8088" to set my mac to get updates form a server. How do I reset the my softeware update to get updates form Apple?

    Do you mean you used the following:
    defaults write com.apple.SoftwareUpdate CatalogURL "http://yourservername:8088"
    If so, Software Update should still fall back to the Apple server automatically if your local server is unavailable. However, to remove the local server entry entirely, just use
    defaults delete com.apple.SoftwareUpdate CatalogURL
    Matt

  • Updated form/table in showDetails of Panel Tabbed Component

    When there are multiple showDetail components for Panel Tabbed, if anyone of them has an updated form or table, switching between different showDetail components will cause the system throw mandatory field validation errors.
    It looks like all the mandatory LOV fields are reset to be empty in the previous visited tab. Is this the way that Jdev supposed to work? What should we aware of using updated forms/tables in multiple tabs of Panel Tabbed component?

    That's how it works. That's the reason, I get all the data to pre-populate all the components in the page load itself. When I switch between tabs, I don't re-execute the proc and so it won't reset. I use postback to prevent re-execute the proc. when I switch between tabs.
    Boolean postBackValue = (Boolean)JSFUtils.resolveExpression("#{adfFacesContext.postback}");
    Boolean defaultBooleanValue = new Boolean("false");
    if (postBackValue.equals(defaultBooleanValue)) {
    }

Maybe you are looking for

  • New iPod Touch (4th generation) - Music will not sync

    I just bought an 4th generation iPod Touch.  When syncing my from my Windows PC to the iPod everything syncs perfectly - photos, contacts, bookmarks - but not my music files.  The music sync box is checked.  The playlists are hightligthed, but no luc

  • How can I Route to two proxies or business services with out split join

    Hi, How are you? I´m trying to use a proxy to invoke 2 other proxiers or more at the same time but when trying to build a Split Join is giving an Error about the Security that is in the WSDL which is WSSecurity, so far I think that SPlit Join can´t h

  • OAF: *PG.xml is read-only. Unable to extend the LOVRN to add lovmappings

    Hello All, I am trying to extend the PG.xml to add additional lovmappings using JDev. But the PG.xml is readonly. Unable to create new items on lovmappings! I have imported all the server.xml for the VO extension. That worked fine. ( I tried to add t

  • Throws error on 4,0,3

    On tomcat 4,1,24 this code seams to work just fine. But when I deploy it on webserver, running tomcat 4,0,3 i�t wont work, any sugegstion, where the problem might be? package serverspy; import java.io.*; import java.util.*; import javax.servlet.http.

  • IDVD won't burn my project!!

    I have FCP and I exported using the Quicktime movie option. I took it into iMovie, organized it, and saved it. I went to iDVD, pulled the movies, go to burn the disc and the following happens: I insert the disk when prompted, it then says "waiting fo