*** johannesV has joined #gnuenterprise *** reinhar1 has joined #gnuenterprise *** reinhar1 is now known as reinhard *** btami has joined #gnuenterprise good morning good morning *** dimas has quit IRC *** SachaS has joined #gnuenterprise *** kilo has joined #gnuenterprise good morning hoi *** SachaS is now known as SachaLunch *** SachaLunch is now known as SachaS *** btami has quit IRC *** johannesV_ has joined #gnuenterprise *** johannesV has quit IRC *** jamest_ has joined #gnuenterprise *** johannesV_ has quit IRC jamest_: sorry if this is a dumb question what is the easiest way to enforce uniqueness of a database column? (other than creating an unique index which will result in db exceptions to be thrown at the user) um in forms? what type of data ? yes, in forms normal string I did a PRE-FOCUSOUT trigger in which a query a second datasource pointing to the same table to find out whether the value already exists but that doesn't seem too elegant *** SachaS has quit IRC *** johannesV has joined #gnuenterprise *** derek has joined #gnuenterprise *** kilo has quit IRC *** jcater has joined #gnuenterprise *** SachaS has joined #gnuenterprise *** jamest_ is now known as jamest jamest: any hint? er, whoops postgresql? sqlite but actually that shouldn't matter i don't think that would catch dupe entries in the form my users get the dupe entry sql error it don't catch them if you make both entries at the same commit reinhard: that's what I ment by dupe entries in the form :) ok, so you simply pass the SQL backend error to the user same for enforcing referential integrity? (e.g. making sure no master is deleted as long as details exist) something i've done in postgresql is setup on update triggers on my invoice table that block updates after the invoice has been faxed to customer i'm thinking that the error message generated by that trigger is displayed nicely by forms well, wx24, i've not looked at 2.6 yet but i doubt that's an option for sqlite should be at least as nice in 26 :) doesn't 2.6 hide the error though ? unless you click details jamest: depends you get the exception text with clicking "details" you get the SQL statement that caused the error (in case of an SQL error) well, actually my question is answered then yes, it would show however, I don't want to pass backend error messages to the user *** jcater has quit IRC my users are confused by it as they look too techy and they are (what is a problem for me) in English generally i wonder if we need a per form mapping of some sort so you can define "If you get this error. Display this instead" I've thought about the same, but that would mean to parse backend error messages depending on what backend you use and probably even on the backend version maybe also on the current locale the backend runs on anyway, thanks bb bbl reinhard: well, in application cases couldn't you regex it as you are in control of the platform and honestly i would think this more of a specific application implentation issue so saying replace any message that reads like ".*foo.*" with "You are hosed. Fire your programmer and go home." could be understood to be very, very dependent upon the specific install *** jcater has joined #gnuenterprise jamest: might be possible that I could however it would take away the possibility to migrate to a different backend easily still I think I will sleep over this once or twice :) was mainly curious how you do it, which you have answered perfectly :) my process is as follows James Speaking. Yeah, i got an error on form foobar. ok, what does the error say I dunno, i closed it. ok, try again and give me the error message hmmm, worked that time unless it's monday then it's "yeah, i got an error last friday. I probably should have wrote it down" but in either case that's over 1/2 my error reports :) half of mine are "The internet isn't working" lol too true could you imagine the fun you could have with a squid proxy on that one "Just a minute. I'll reboot it" then a redirect to a "Internet Reboot in Progress.....Please wait." rofl I love that idea jamest: I know these users you mean they're yours? * jamest wants to ship them back to you we support some software that blocks order entry if you had an error in an important program run * jamest wonders if air holes in the box are really needed so I get calls "the computer tells me that order entry is blocked" "did you have an error message in program run x yesterday?" "yes, I had, but after hitting ctrl-W the error message went away, so I thought it was ok again " (where ctrl-w is the key to close the error message window) lol i had one last month where they we running a credit card payment through the payment form i told them it was a dupe transaction so they waited 10 minutes and tried again dupe = duplicate of course, 10 minutes later was past the window our clearing house uses to detect dupes, so the system happily charged the customers card a second time I get that one a lot too I had one do a manual transaction for $3000 but was supposed to be 30.00 that one of course was my fault since I should've had some limits set up despite the fact that the manual system is only for over-rides i.e., non-standard stuff so set a $5 max and make them work up in increments of that my favorite recent one was... "can you come look at my system it is getting errors" so promptly go to persons desk.... they pull up some fancy wedding planner site.. and go to login and on login get all sorts of mysql errors at which point i tell them it is a problem on the website (that has nothing to do with their job) and it isn't something we can "fix" you should have seen the utter look of disgust and discontent that I was "refusing" to fix the wedding planner site and so her wedding was going to be a miserable failure :) yeah I moved customer service from konq to firefox in disgust, one of the reps came back to my temporary workstation *** johannesV has quit IRC jcater: just give them lynx err, sorry had a user in disgust, one of the reps came back to my temporary workstation "I can't get to one of my needed sites" the site.... tennesseelottery.com or better yet emacs with w3-mode "what do you mean you can't surf the web? Did you make sure and press Esc x w3" *** SachaS has left #gnuenterprise *** kilo has joined #gnuenterprise *** jamest has quit IRC good night *** reinhard has quit IRC *** kilo has quit IRC *** derek has quit IRC *** jcater has quit IRC