Best way to handle SQL update with variable number of fields?
Hello, I'm creating a number of ZSQL methods to insert, update and delete records from several Oracle tables. Everything is working fine with the insert forms (creating new records) and the delete (of course). However, the best way to do the * update * without locking the user into a *very* rigid format is eluding me.. The problem - I would like to populate the form with the existing values and then allow the user to change the ones they want to. Some of the fields in the database are empty and it will always be that way. The length of the update statement will change. Nomatter how I do it, I am having problems with the commas. What is the best way to build the necessary logic into the form? Is there a sample in a product or a How-to somewhere that I can look at? I am assuming I need to create a list externally in a method and use that to determine the comma placement. Is that the "correct" direction? Or is there a better way.. Thank you, Chris Beaumont cbeaumon@msri.org
I removed a product from Control_Panel/Products by checking the checkbox of that item and clicked "delete" button below. While I tring to reimport that product , zope (2.2.1) complains about "Duplicated Ids". Can anyone give a hand? Thanks a lot. Iap, Singuan http://y2fun.com
participants (2)
-
chris@ncafe.com -
iap_y2fun.com