PDA

View Full Version : Removing products from .asp order form



manx
October 24th, 2003, 05:20 AM
How do you remove products (item #'s) from the .asp order form?


Thanks

Mateo1721
October 24th, 2003, 07:10 AM
In the backoffice, in the section to update prices, uncheck any items that you do not want.

smokey
October 24th, 2003, 07:14 AM
all you have do is use a case statement on the xml that returned. I haven't tested but it should work


xmlItemID = item.getAttribute("id")
Select Case xmlItemID
Case 1, 5, 6
'do nothing
Case Else
xmlItemNum = item.getAttribute("itemNum")
xmlItemName = item.getAttribute("itemName")
xmlItemPrice = item.getAttribute("itemPrice")
response.write "<option value=""" & server.HTMLEncode(xmlItemNum) & """"
If MedicationOrdered = xmlItemNum or itemNum = xmlItemNum Then
response.write " selected"
End If
response.write ">" & server.HTMLEncode(xmlItemName) & " - " & _
formatCurrency(xmlItemPrice) & "</option>" & vbCrLf
End Select

manx
October 24th, 2003, 09:03 AM
Thanks to both of you! smileys/smiley1.gif


It would be easier for me to just uncheck the items in the backoffice though. smileys/smiley5.gif

redex
October 24th, 2003, 09:18 AM
Hey, Smokey is a programmer. Give him a break smileys/smiley8.gif

smokey
October 24th, 2003, 09:20 AM
Thanks redex. I just like to make on my side so I have complete control over what I want to accomplish.

manx
October 24th, 2003, 10:45 AM
Hey, give me a break smileys/smiley9.gif-- I'm computer CHALLENGED smileys/smiley29.gif


I do know how to turn it on though and can almost move that thing and click it sometimes. smileys/smiley24.gif

Mateo1721
October 24th, 2003, 10:55 AM
Hey, its a start.you'll be programming in no timesmileys/smiley17.gif