Update multiple records with update button???
I was wondering if someone could explain how I can use the developer tool box to update multiple records at once.
I have a repeat region with a title and a check box if the item is active. I would like to update all records of the table at once. I have see folks state the developer tool box can do this. However I am not sure how..
I am using php with mysql dreamweaver cs3
Hi Chris,
that can be done with first creating an ADDT "dynamic list", means to apply ADDT´s "Dynamic List Wizard" to an empty page -- this list will provide checkboxes for all displayed records, and here´s where you can select the to-be-updated (or deleted) records.
Besides creating the list, this wizard will also be creating a blank "form" php page in the same directory, which is by default "tied" to the created list -- you´ll just need to open this blank document with DW and apply ADDT´s "Create Dynamic Form Wizard" to it. However, this form will contain all required routines for single and multiple updates, depending on how many records you select in the list.
Cheers,
Günter Schenk
Adobe Community Expert, Dreamweaver
Similar Messages
-
Adding Multiple Records with Express
Hello All,
We have a CRUD application written in Express 2.0 that allows users to
enter part numbers and associated information. Our part numbers are
structured as a prefix, alpha, suffix and 'M' or 'P' number variations :
1 AB 2 P3 for example. We have provided functionality to allow the
user to enter multiple P or M variations all at once, say 1 AB 2 P1 thru
P100,
using a dialog box where they enter the starting number, ending number
and step.
The problem comes in the AddRecordsToSave method.
This method correctly builds the array of BusinessClass needed to be
passed to the Save method, however, the Save method adds only the
initial record (the one from the original Express data entry screen)
to the database.
I have traced the problem to the BusinessClient.Update method called
from
Save. I believe I am missing some query information that should be
built into
AddRecordsToSave, but I am completely unsure of how to provide this.
As you can see in the attached code, we are using the LogAttr method to
post
changes. Apparently this is not enough. What am I missing here?
The InstanceStatus key of the added records is set to ST_EMPTY by
default....
I have tried forcing this to ST_UPDATE, only to receive an error that it
should
be ST_EMPTY......?? I am confused. If anyone can shed some light on this
for me,
I would appreciate it. Thanks for any help.
Scott Guman E-mail: [email protected]
IRM Analyst II Phone: (610) 709-2144
Mack Trucks, Inc. Fax: (610) 709-4713
Allentown, PA 18105Hi There,
If attr is not specified in your LogAttr() call, the
BusinessClass
will be put in the update state but not attributes will
be logged.
That may be the reason why only the displayed record(
fetched from
the DB ) is getting logged, but not the new records.
I think you should use ATTR_SIMPLE with LogAttr. This
will cause
all the attributes to be logged and a proper query to
be built
to insert the newly created record. I am no Express
Guru,
but it works fine for me. Also, try not to modify
InstanceStatus directly.
Sometimes it might lead to inconsistencies. The online
help
The Add Records to Save example really helps.
Good luck!
Ajith Kallambella. M.
Forte Systems Engineer,
International Business Corporation
-----Original Message-----
From: Scott Guman [SMTP:[email protected]]
Sent: Wednesday, September 16, 1998 9:34 AM
To: 'Forte Users'
Subject: Adding Multiple Records with Express
Hello All,
We have a CRUD application written in Express 2.0 that
allows users to
enter part numbers and associated information. Our
part numbers are
structured as a prefix, alpha, suffix and 'M' or 'P'
number variations :
1 AB 2 P3 for example. We have provided functionality
to allow the
user to enter multiple P or M variations all at once,
say 1 AB 2 P1 thru
P100,
using a dialog box where they enter the starting
number, ending number
and step.
The problem comes in the AddRecordsToSave method.
This method correctly builds the array of BusinessClass
needed to be
passed to the Save method, however, the Save method
adds only the
initial record (the one from the original Express
data entry screen)
to the database.
I have traced the problem to the BusinessClient.Update
method called
from
Save. I believe I am missing some query information
that should be
built into
AddRecordsToSave, but I am completely unsure of how to
provide this.
As you can see in the attached code, we are using the
LogAttr method to
post
changes. Apparently this is not enough. What am I
missing here?
The InstanceStatus key of the added records is set to
ST_EMPTY by
default....
I have tried forcing this to ST_UPDATE, only to receive
an error that it
should
be ST_EMPTY......?? I am confused. If anyone can shed
some light on this
for me,
I would appreciate it. Thanks for any help.
Scott Guman E-mail:
[email protected]
IRM Analyst II Phone: (610) 709-2144
Mack Trucks, Inc. Fax: (610) 709-4713
Allentown, PA 18105
<< File: AddRecordsToSave.txt >>
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/> -
Multiple records with select option
i have to use select option in selection screen, which wl take the multiple values but that select option wont act as a range, the select option is a session name from sm35, the table from where data is retrieved is APQI, i have used a parameter before using select option ,like:
selection-screen begin of line.
parameters: P_grpid like apqi-groupid.
select-options: s_grpid like apqi-groupid.
selection-screen end of line.
AT-SELECTION SCREEN ON VALUE REQUEST FOR p-GRPID. " previous situation
{the code starts
FM F4 selection is called}
AT-SELECTION SCREEN ON VALUE REQUEST FOR S_GRPID-low. " CURRENT situation
FM F4 selection is called}
now when i give data in slection screen for s_grpid-low then it works as a parametr, but it doesnt take multiple values at s_grpid when i have alos mentioned the same for s_grpid-high.
Please tell me how to achive multiple records with select option, or u can also send a sample code if you have..
Thanks
SwarnaliHello Swarnali,
You need to fill internal table of select-option once you got into the event AT SELECTION-SCREEN ON VALUE REQUEST FOR so_carr-LOW.
so sudo code will be:
AT SELECTION-SCREEN ON VALUE REQUEST FOR so_carr-LOW.
Select data from table.
so_carr-LOW = value
append so_carr.
You can also use NO INTERVAL to suppress the so_carr-HIGH value on selection screen.
Thanks,
Augustin. -
Insert multiple records with php
please help me
I have a problem in a multiple input records
please help ...............
example script:
<?php require_once('Connections/koneksi.php'); ?>
<?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"] == "form1")) {
$insertSQL = sprintf("INSERT INTO mhs (NIM, NAMAMHS, ALAMAT) VALUES (%s, %s, %s)",
GetSQLValueString($_POST['NIM'], "text"),
GetSQLValueString($_POST['NAMAMHS'], "text"),
GetSQLValueString($_POST['ALAMAT'], "text"));
mysql_select_db($database_koneksi, $koneksi);
$Result1 = mysql_query($insertSQL, $koneksi) or die(mysql_error());
$insertGoTo = "baru.php";
if (isset($_SERVER['QUERY_STRING'])) {
$insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
$insertGoTo .= $_SERVER['QUERY_STRING'];
header(sprintf("Location: %s", $insertGoTo));
$maxRows_Recordset1 = 10;
$pageNum_Recordset1 = 0;
if (isset($_GET['pageNum_Recordset1'])) {
$pageNum_Recordset1 = $_GET['pageNum_Recordset1'];
$startRow_Recordset1 = $pageNum_Recordset1 * $maxRows_Recordset1;
mysql_select_db($database_koneksi, $koneksi);
$query_Recordset1 = "SELECT * FROM mhs";
$query_limit_Recordset1 = sprintf("%s LIMIT %d, %d", $query_Recordset1, $startRow_Recordset1, $maxRows_Recordset1);
$Recordset1 = mysql_query($query_limit_Recordset1, $koneksi) or die(mysql_error());
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
if (isset($_GET['totalRows_Recordset1'])) {
$totalRows_Recordset1 = $_GET['totalRows_Recordset1'];
} else {
$all_Recordset1 = mysql_query($query_Recordset1);
$totalRows_Recordset1 = mysql_num_rows($all_Recordset1);
$totalPages_Recordset1 = ceil($totalRows_Recordset1/$maxRows_Recordset1)-1;
?><!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=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<p> </p>
<form action="<?php echo $editFormAction; ?>" method="post" name="form1" id="form1">
<table border="1">
<tr>
<td>NIM</td>
<td>NAMAMHS</td>
<td>ALAMAT</td>
<td> </td>
</tr>
<?php do { ?>
<tr>
<td><?php echo $row_Recordset1['NIM']; ?></td>
<td><?php echo $row_Recordset1['NAMAMHS']; ?></td>
<td><?php echo $row_Recordset1['ALAMAT']; ?></td>
<td><table align="center">
<tr valign="baseline">
<td nowrap="nowrap" align="right">NIM:</td>
<td><input type="text" name="NIM" value="" size="32" /></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="right">NAMAMHS:</td>
<td><input type="text" name="NAMAMHS" value="<?php echo $row_Recordset1['NAMAMHS']; ?>" size="32" /></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="right">ALAMAT:</td>
<td><input type="text" name="ALAMAT" value="<?php echo $row_Recordset1['ALAMAT']; ?>" size="32" /></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="right"> </td>
<td> </td>
</tr>
</table></td>
</tr>
<?php } while ($row_Recordset1 = mysql_fetch_assoc($Recordset1)); ?>
</table>
<input type="hidden" name="MM_insert" value="form1" />
<input type="submit" value="Insert record" />
</form>
<p> </p>
</body>
</html>
<?php
mysql_free_result($Recordset1);
?>PowerMilk wrote:
I want to update multiple rows with one click on the submit button.Unfortunately, it doesn't work. What is wrong in the code?
It would be more helpful if you were to say what happens. "It doesn't work" isn't very helpful.
However, a quick look at your code reveals that your hidden field that contains the ID is outside the loop (repeat region) in your form. Move it inside the loop like this:
<?php do { ?>
<tr>
<td><input name="dag[]" type="text" value="<?php
echo $row_rsWijzigOpeningsuren['dag']; ?>" size="15" maxlength="15"
/></td>
<td><input name="voormiddag[]" type="text" value="<?php echo
$row_rsWijzigOpeningsuren['voormiddag']; ?>" size="15" maxlength="15"
/></td>
<td><input name="namiddag[]" type="text" value="<?php echo
$row_rsWijzigOpeningsuren['namiddag']; ?>" size="15" maxlength="15"
/></td>
</tr>
<input name="id[]" type="hidden" value="<?php echo $row_rsWijzigOpeningsuren['id']; ?>" />
<?php } while ($row_rsWijzigOpeningsuren = mysql_fetch_assoc($rsWijzigOpeningsuren)); ?> -
Edit multiple records with BC4J and Struts-JSP
Hi everybody,
I'm building BC4J components using entities and views and JSP business components. How can I edit and update multiple records at a time with Struts-Jsp ? Have someone already an example (with JSP and ActionForm code) ?
thank youHi,
Nobody have an example ? Is it so difficult ?
Thanks -
Sort multiple records with textfield
Hi everyone!
I want to sort from the backend all the products in a site.
First, i use the repeat region server behavior, to list all the products. Added a textfield in each record, with the value of it's position (1, 2, 3, 4, etc).
How can i update that?
Just like Joomla! has in it's backend. A list with all the articles created, and the ability to change the order of the articles, changing it's number and pressing "save".
Hope you guys understand me, my english is very very poor...
Thanks in advance
Cheers!
A pic to better understanding:Since you refer to Joomla, I presume you want to do this with PHP/MySQL.
Basically, you need to put your repeat region in a form, and submit the values of the product IDs and the new order numbers as arrays. To do this with PHP, you add a pair of square brackets after the form elements' names like this:
<input type="text" name="product_id[]" value="....
<input type="text" name="order[]" ...
When the form is submitted, $_POST['product_id'] will contain an array of the primary keys, and $_POST['order'] will contain an array of the values inserted in the order text boxes.
You then need to create a loop to update the existing records in the database. The following is not the full code, but should show you the basic principle:
// connect to database
for ($i = 0, $len = count($_POST['product_id']); $i < $len; $i++) {
$sql = 'UPDATE products SET order = ' . mysql_real_escape_string($_POST['order'][$i]
. ' WHERE product_id = ' . mysql_real_escape_string($_POST['product_id'][$i];
mysql_query($sql);
This loops through the $_POST['product_id'] array and updates each record with the appropriate value for order. The SQL query assumes that both product_id and order are numeric data types. -
I have written a routine that loads a Hex file, checks for record marker,length,address etc then loads the data into a table on front panel. However, my routine only loads single record hex files. I need to be able to load multiple record files, I need to identify the ':' colon record marker start for each record in the hex file, I just can't see how to loop my routine so that all records with ':' prefix marker are loaded.
Jeff,
I'm not exactly sure of what you are trying to do. Is it possible you could post your code, or a screen shot of the diagram in question, so that I can get a better understanding, and possibly offer some assistance?
I am familiar with hex files, but not with the : marker separating records. This may be able to be solved with simple text parsing, and as I am not familiar with how you are retrieving and/or displaying the files, I require more information.
Thanks -
Selecting multiple checkboxes with a button
Hi, I'm currently making a booking form with a clickable map. I'm trying to figure out the way to select multiple checkboxes (i.e. a zone on the map) with one button/checkbox. Thanks!
Just give them all the same name (and export value) and when you tick one, the others will be ticked automatically as well.
-
Delete multiple records with MDM WebService
Hi everyone!
I'm using an MDM Web Service with delete functionality. It identifies records to be deleted either by internal ID or by defined field value. The point is that i need this web service to delete all records with one specific value in specific field (lets say all the records with value "hidden" in field "VISIBILITY").
But when I try to map value "hidden" of the field "VISIBILITY" to the web service input in BPM it says in tracing that there are multiple fields with that value in the table (certainly there are) and that it can't process them. Cause it doesn't support multiple processing. Is there any way to do that?
Thanks in advance,
PeterHi Peter,
I guess you can do that if you first retrieve the internalIDs of the to be deleted records:
Do a search for the records with the field value.
Then you will receive the internalIds of them.
Then you can put these internalIds to the delete records webservice. Each in a new element of the record identification.
I hope this helps!
Best regards,
Stefan Brauneis -
Display multiple records with CSS
PHP MySQL
I have a MySQL table with several columns and multiple
records... it is easy
to display these records in a <table> using the repeat
record server
behavior applied to the <tr> that displays the records.
I would like to do this with CSS and eleminate
<table>'s
My question is can this be done displaying the records in a
<div> using the
repeat record server behavior?
Or is this just one of those things that a <table> is
required?
JeffDisplaying rows of data is actually the reason tables were
originally
invented. :)
You need a table with the number of columns for your data and
two rows. The
first row is for the column headers. The second row is for
the PHP
placeholder that will be replaced with data. Apply the repeat
region to
this second row either for all rows or the number of rows you
desire to
display on one page .. in which case you would also use
recordset paging.
(previous, next)
Nancy Gill
Adobe Community Expert
Author: Dreamweaver 8 e-book for the DMX Zone
Co-Author: Dreamweaver MX: Instant Troubleshooter (August,
2003)
Technical Editor: DMX 2004: The Complete Reference, DMX 2004:
A Beginner''s
Guide, Mastering Macromedia Contribute
Technical Reviewer: Dynamic Dreamweaver MX/DMX: Advanced PHP
Web Development
"Jeff" <[email protected]> wrote in message
news:erindt$i70$[email protected]..
> PHP MySQL
> I have a MySQL table with several columns and multiple
records... it is
> easy to display these records in a <table> using
the repeat record server
> behavior applied to the <tr> that displays the
records.
>
> I would like to do this with CSS and eleminate
<table>'s
> My question is can this be done displaying the records
in a <div> using
> the repeat record server behavior?
> Or is this just one of those things that a <table>
is required?
>
> Jeff
> -
Multiple Records with USB-5113
Does the high speed digitizer USB-5133 has the multi-records feature?
I tried many ways to program this feature with error "not suffisent memory on board"
Need help.
Harold Hebert
National Research Council CanadaHi Harold,
The NI 5132/5133 does not support Multiple Record Acquisition or Continuous Acquisition, which is why you are running into problems. I have included a link to a KnowledgeBase Article that discusses this issue and includes some benchmarks.
NI USB-5132/5133 Acquisition Benchmarks
http://digital.ni.com/public.nsf/allkb/ED7EC255D9FC1C1E862573A10059C902?OpenDocument
Steve B -
How to return multiple record with Oracle Native Web Service?
Dear all,
I would like to know that the oracle native web service can be able to return multiple records to client or not?
I successfully developed the oracle native web service for returning single record but the next challenge is to develop web service in order to return multiple record (like Employees data base on each department)
Thank and Regards,
ZenoniI successfully developed the oracle native web service for returning single record but the next challenge is to develop web service in order to return multiple record (like Employees data base on each department)You could return a list (multiple values/records) in XML format (using XMLType or CLOB), or CSV, or JSON, or whatever.
function get_employees (p_department_id in number) return clob
as
begin
return 'your_xml_string_here';
end get_employees;It would be up to the client (the caller of the web service) to extract the values from whatever format you decide upon, of course.
- Morten
http://ora-00001.blogspot.com -
Update multiple records with one submit?
I can't for the life of me figure out how to do this. I have checkboxes with primary key id's listed as the value in a repeat region. I want to perform an update on 2 columns for all id's checked.
SUDEO CODE
<form>
<cfoutput query ....
other textfields...
<input name="checkbox" type="checkbox" id="checkbox" value="#table.id#" />
</cfoutput>
SUBMIT BUTTON
</form>
My update statement:
UPDATE table
SET column1 = 1, column2 ='whatever'
WHERE id IN (<cfqueryparam cfsqltype="cf_sql_integer" value="#TRIM(FORM.checkbox)#">)
</cfquery>
It only updates if I check one box, does nothing when more than one is selected.
I also tried looping over the update statement but nothing seems to work.You were missing the list attribute to cfqueryparam (you can also
replace the cfif with a null attribute on the cfqueryparam but it has
the disadvantage of sending the query to the db: null="#Not
Len(Trim(form.checkbox))#").
<cfif Len(Trim(form.checkbox))>
<cfquery ...>
UPDATE table
SET column1 = 1, column2 = 'whatever'
WHERE id IN (<cfqueryparam cfsqltype="cf_sql_integer"
value="#form.checkbox#" list="true">)
</cfquery>
</cfif>
Mack -
Update multiple records with Update Command Dreamweaver 8.0.2 - ASP VBScript
Dreamweaver 8.0.2 - Language ASP – VBScript
I’m trying to update more than one record at a time
using checkboxes. I’ve successfully done this numerous times
prior to Dreamweaver 8.0.2.
Before Dreamweaver 8.0.2, I would create a page with a
recordset, form, checkbox and repeat region and pass the ID to
another page containing an ‘Update Command’. The code
on the Update page looked similar to the following:
<%
if(Request.QueryString("MemberID") <> "") then
spMemberApproving__MMColParam = Request.QueryString("MemberID")
%>
<%
set spMemberApproving = Server.CreateObject("ADODB.Command")
spMemberApproving.ActiveConnection =
MM_connIssuesManager_STRING
spMemberApproving.CommandText = "UPDATE tblMembers SET
MemberApproved = 1 WHERE MemberID IN (" +
Replace(spMemberApproving__MMColParam, "'", "''") + ")"
spMemberApproving.CommandType = 1
spMemberApproving.CommandTimeout = 0
spMemberApproving.Prepared = true
spMemberApproving.Execute()
Response.Redirect("default.asp")
%>
However, in Dreamweaver 8.0.2 when you fill out the Update
Command dialog box, Dreamweaver asks you to provide the
‘Type’ and ‘Size’ for the variables (see:
http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=4e6b330a
That being said and done, the code on the Update page looks
like the following:
<%
' IIf implementation
Function MM_IIf(condition, ifTrue, ifFalse)
If condition = "" Then
MM_IIf = ifFalse
Else
MM_IIf = ifTrue
End If
End Function
%>
<%
if(Request.QueryString("MemberID") <> "") then
spMemberApproving__MMColParam = Request.QueryString("MemberID")
%>
<%
Set spMemberApproving = Server.CreateObject ("ADODB.Command")
spMemberApproving.ActiveConnection =
MM_connIssuesManager_STRING
spMemberApproving.CommandText = "UPDATE tblMembers SET
MemberApproved = 1 WHERE MemberID IN (?) "
spMemberApproving.Parameters.Append
spMemberApproving.CreateParameter("MMColParam", 202, 1, 10,
MM_IIF(Request.QueryString("MemberID"),
Request.QueryString("MemberID"), spMemberApproving__MMColParam
spMemberApproving.CommandType = 1
spMemberApproving.CommandTimeout = 0
spMemberApproving.Prepared = true
spMemberApproving.Execute()
Response.Redirect("default.asp")
%>
The Update Command works perfectly when only 1 record is
being updated. However, when I try to update more than one record I
get the following error:
Error Type:
ADODB.Command (0x800A0D5D)
Application uses a value of the wrong type for the current
operation.
/issues_manager/admin/members_approving.asp, line 27
Can anyone help me out?Yes, this is a bug in Dreamweaver 8.0.2. The only workaround
is to stay with
8.0.1 or to hand-code the query. Adobe removed most of the
useful ways to
use Commands and Recordsets in 8.0.2 and limited it to basic
queries.
Tom Muck
co-author Dreamweaver MX 2004: The Complete Reference
http://www.tom-muck.com/
Cartweaver Development Team
http://www.cartweaver.com
Extending Knowledge Daily
http://www.communitymx.com/
"Button1" <[email protected]> wrote in message
news:[email protected]...
> Dreamweaver 8.0.2 - Language ASP ? VBScript
>
> I?m trying to update more than one record at a time
using checkboxes.
> I?ve
> successfully done this numerous times prior to
Dreamweaver 8.0.2.
>
> Before Dreamweaver 8.0.2, I would create a page with a
recordset, form,
> checkbox and repeat region and pass the ID to another
page containing an
> ?Update Command?. The code on the Update page looked
similar to the
> following:
>
> <%
> if(Request.QueryString("MemberID") <> "") then
> spMemberApproving__MMColParam =
> Request.QueryString("MemberID")
> %>
>
> <%
>
> set spMemberApproving =
Server.CreateObject("ADODB.Command")
> spMemberApproving.ActiveConnection =
MM_connIssuesManager_STRING
> spMemberApproving.CommandText = "UPDATE tblMembers SET
MemberApproved = 1
> WHERE MemberID IN (" +
Replace(spMemberApproving__MMColParam, "'", "''") +
> ")"
> spMemberApproving.CommandType = 1
> spMemberApproving.CommandTimeout = 0
> spMemberApproving.Prepared = true
> spMemberApproving.Execute()
>
> Response.Redirect("default.asp")
> %>
>
> However, in Dreamweaver 8.0.2 when you fill out the
Update Command dialog
> box,
> Dreamweaver asks you to provide the ?Type? and ?Size?
for the variables
> (see:
>
http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=4e6b330a
>
>
>
> That being said and done, the code on the Update page
looks like the
> following:
>
> <%
> ' IIf implementation
> Function MM_IIf(condition, ifTrue, ifFalse)
> If condition = "" Then
> MM_IIf = ifFalse
> Else
> MM_IIf = ifTrue
> End If
> End Function
> %>
>
> <%
> if(Request.QueryString("MemberID") <> "") then
> spMemberApproving__MMColParam =
> Request.QueryString("MemberID")
> %>
> <%
>
> Set spMemberApproving = Server.CreateObject
("ADODB.Command")
> spMemberApproving.ActiveConnection =
MM_connIssuesManager_STRING
> spMemberApproving.CommandText = "UPDATE tblMembers SET
MemberApproved = 1
> WHERE MemberID IN (?) "
> spMemberApproving.Parameters.Append
> spMemberApproving.CreateParameter("MMColParam", 202, 1,
10,
> MM_IIF(Request.QueryString("MemberID"),
Request.QueryString("MemberID"),
> spMemberApproving__MMColParam & ""))
> spMemberApproving.CommandType = 1
> spMemberApproving.CommandTimeout = 0
> spMemberApproving.Prepared = true
> spMemberApproving.Execute()
>
> Response.Redirect("default.asp")
> %>
>
>
> The Update Command works perfectly when only 1 record is
being updated.
> However, when I try to update more than one record I get
the following
> error:
>
> Error Type:
> ADODB.Command (0x800A0D5D)
> Application uses a value of the wrong type for the
current operation.
> /issues_manager/admin/members_approving.asp, line 27
>
>
> Can anyone help me out?
>
> -
Submiting multiple forms with one button
I have a form that has a cfform within it. The cfform has a
cfloop in it that includes an id and a dropdown list box that
includes a new id. I want to transfer one id to another. I want the
user to be able to click on one button that would update all the
rows in the table with the new id.
If there are 3 rows in the query, the user would select an
entry in a dropdown for each row and upon clicking on the submit
button all three rows would be updated with the id selected from
the dropdown.
Any suggestions?
Thanks for the help!
GaryThere isn't a way to set this up using the Paypal payment integrated into FormsCentral using seperate forms for each child, you can set up one form so they can register additional children and then pay in one session, but if you need each child to be a unique form submission it can not be set up to pay for multiple at once.
Thanks,
Josh
Maybe you are looking for
-
Since updating my iPad 2 to ios8, it safari has been slow and crashing and some of the apps acting wierd. The password app doesn't work at all so had to find another way of retrieving all my passwords. Very very dissapointing. It appears from these f
-
Newest itunes update wont load 2-22-06
I downloaded the newest update for itunes and now it will not open. Tried restarting. Tried deleting the program completely and re-installing using the disc that came with my nano and still....it will not load when i double click on it. What can i do
-
Making the whole flash video a link
Hello, It's been awhile since I've worked with flash and I can't remember how to make an animation a link. Not just adding a button that links to a site, but the whole animation itself is actually a link so that when you hover over any part at any ti
-
No password prompt from ASA 5500 for certificate enrollment
Greetings, I work in a lab testing interoperability between Avaya and Cisco VoIP products. I am setting up an environment to test Avaya 96x1 phones with VPN using SCEP going thru an ASA 5510 to a backend IP PBX. Environment: Windows Server 2008 R2,
-
Hi All, Talent profile is not opening under MSS. I have gone through notes mentioned and the below threads (i have the exact problem), but those did not solved my issue. It is worked till yesterday. after some time it is not working and no other butt