Ask a Question related to Dreamweaver AppDev, Design and Development.
-
newflavour #1
List/Menu set value equal to
I have a list/menu that I have manually entered the values to and then applied
DWMX 04's Dynamic list server behaviour to so that it initially selects the
value stored in the database. However it's not selecting anything.
I can output the field value using:
<%=(registrations.Fields.Item("paymentStatus").Val ue)%>
The recordset code is:
<%
Dim registrations__MMColParam
registrations__MMColParam = "1"
If (Request.Form("registrationID") <> "") Then
registrations__MMColParam = Request.Form("registrationID")
End If
%>
<%
Dim registrations
Dim registrations_numRows
Set registrations = Server.CreateObject("ADODB.Recordset")
registrations.ActiveConnection = MM_dsn_botr_STRING
registrations.Source = "SELECT * FROM tbl_Users WHERE registrationID = " +
Replace(registrations__MMColParam, "'", "''") + ""
registrations.CursorType = 0
registrations.CursorLocation = 2
registrations.LockType = 1
registrations.Open()
registrations_numRows = 0
%>
The form code is:
<select name="paymentStatus">
<option value="Not Yet Received" <%If (Not
isNull((registrations.Fields.Item("paymentStatus") .Value))) Then If ("Not Yet
Received" = CStr((registrations.Fields.Item("paymentStatus").V alue))) Then
Response.Write("SELECTED") : Response.Write("")%>>Not Yet Received</option>
<option value="Received" <%If (Not
isNull((registrations.Fields.Item("paymentStatus") .Value))) Then If ("Received"
= CStr((registrations.Fields.Item("paymentStatus").V alue))) Then
Response.Write("SELECTED") : Response.Write("")%>>Received</option>
<option value="Processing" <%If (Not
isNull((registrations.Fields.Item("paymentStatus") .Value))) Then If
("Processing" = CStr((registrations.Fields.Item("paymentStatus").V alue))) Then
Response.Write("SELECTED") : Response.Write("")%>>Processing</option>
<option value="Approved" <%If (Not
isNull((registrations.Fields.Item("paymentStatus") .Value))) Then If ("Approved"
= CStr((registrations.Fields.Item("paymentStatus").V alue))) Then
Response.Write("SELECTED") : Response.Write("")%>>Approved</option>
</select>
your help is appreciated.
thanks,
mark.
newflavour Guest
-
How to list menu items in the "Comments" menu?
well, now i have a problem ,which can not list the submenu of "Comments" and "Tools" menu? Did anyone meet this problem before? Details : I use... -
List/Menu Form hides dropdown Menu
http://2006.maximizer.com/about/customers/index.html when you scroll over 'company' in the main navbar at the top of the page, you'll see what... -
List/Menu help
My submit button is not corresponding to my pull down menu. I have a pull down menu with two values (google, ebay)....as soon as you select one and... -
List menu ?
how to a retrieve the value from a database and put it into a list menu ? -
Menu/list ( menu ) in topframe and mouse scrolling
I've made a menu ( with an arrow next to it and the choices appear when you click that arrow - I forgot what this is called in English :))in the... -
newflavour #2
Re: List/Menu set value equal to
ok, while cooking dinner I had a brain wave. What if DW wasn't the issue but my
DB was.
Well, I opened the DB and changed the column "paymentStatus" from 'memo' to
'text' and it now works. This is fine for now, but does anyone have a fix for
DB columns that are set to 'memo'?
newflavour Guest



Reply With Quote

