*** reinhard has joined #gnuenterprise *** btami has joined #gnuenterprise *** kilo has joined #gnuenterprise *** johannesV has joined #gnuenterprise good morning good morning *** sjc has joined #gnuenterprise *** johannesV_ has joined #gnuenterprise *** johannesV has quit IRC *** johannesV_ has quit IRC *** johannesV has joined #gnuenterprise *** johannesV_ has joined #gnuenterprise palim palim *** dimas has joined #gnuenterprise ping pong hello all *** reinhard has quit IRC *** johannesV has quit IRC *** johannesV_ has quit IRC *** johannesV has joined #gnuenterprise *** reinhard has joined #gnuenterprise *** yure has joined #gnuenterprise *** havoc_ has joined #gnuenterprise *** havoc has quit IRC *** holycow has quit IRC johannesV: in postgresql using native boolean datatype, if the db engine gets a NULL value for that, what does it do? does it default to False? *** docelic has quit IRC *** sjc has quit IRC None? ? johannesV: the firebird dbdriver uses a boolean domain without 'DEFAULT 0' clause for boolean values if i use a checkbox on a form, and create a new record without touching the checkbox field it doesn't saved without any error message! * johannesV phone ... bbl *** btami has quit IRC back ok, so what's the matter with that boolean thingy ? hmm ok there is a checkbox on the form, and we want to create a new record we do NOT touch the checkbox and None is sent to the db driver for the field the checkbox is linked to and firebird does not stores it as Boolean is a smallint domain there allowing only 1 or 0 well, i think if you don't touch the checkbox it won't be sent back to the database and it does not know what to do with None since the field hasn't been changed what sql-command results if you do this (check with --debug-level=3) is the boolean column included in the insert statement ? i don't think it will * kilo just dismangled his database... yeah, doing such a test with my postgres only contains those fields which i've changed. so the untouched checkbox is not included in the insert-statement so if you have defined a 'default' value for a column which is not given in the statement or beeing null, the db will set it's value to this default kilo, i think your domain should allow 0, 1 and NULL anyway ... where is it defined... creation.py yeah but it's defined without a null constraint ... :( i mean without nulls beeing allowed i'm just checking it with a testcase on my firebird here thx ok, got it we need to change Creation.py for interbase a bit ... kilo, please svn update and retry ... thx but i am still tring to rebuild the db first... what about to put gnue installation on samba share for all windows users? would that work? i want this: http://www.daskeyboard.com/images/face-profile-bigger.jpg thx johannesV, it works noe great :) anybody, how to compare variable with cfield in ? cconst ? how to put in cconst for example what mx.DateTine.now() would return? Time in forms ? yes you migth want to use a parameter instead of a const ... any examples of that? appserver's sample.gfd instead of cconst you'll use cparam *** jamest has joined #gnuenterprise johannesV: if I put setParameter somewhere in ON-INIT will it be done before datasource initialization? hmm, not sure, you might have to try ok strange day today I actually get stuff done I'm completely unused to this feeling do you get the stuff done by others or by yourself :) both ;-) :) are datasources stable again? what do you mean with "stable"? stable as in "should work": yes stable as in "no planned changes any more": no as i jamest can put into production with a reasonable expectation that it won't purge my sales table :) there haven't been an major changes for a few weeks and AFAICT several people use svn here nothing is sweeter than purging a sales table... ok my warehouse people just told me they are ready (after 6 month delay) to start using my stuff but i'm using a more recent svn than i have in production that that stuff *** kilo has quit IRC hmmm one side effect of the new datasources forms simpleQuery trigger function no longer has access to the fields in a datasource other than then PK (the oid field in postgresql's case) i'd imagine because nothing ever calls the referenceField function for datasources that aren't attached to blocks sounds logical you have a datasource w/o block and you use that for a simpleQuery? yes i use these as lookup datasources maybe simpleQuery could be changed to implicitly reference fields that are given in the query well hmmm in this case i'm referencing the UPC code of an item to pull the make, model, description you don't define at all which fields to query which are not part of the query right so it's another case of select * right? i don't even think the trigger namespace has a way to reference fields yes so I'm wondering if simpleQuery should accept a list of field names that should be pulled or if there is a better, cleaner way to do this was thinking exactly the same list of field names as parameter to simple Query hmmm that parameter would have to be passed to createResultSet too it should *not* (IMHO) do an implicit referenceField becuause if you first simpleQuery foo and bar and then, later, on the same datasource simpleQuery baz and frob the second query will do a select foo, bar, baz, frob or what would you think? i was just wondering about that with simpleQuery (my usage) that case wouldn't happen and even if it did it would only pull a few fields that I could ingore ignore sure however but it is not *correct* :-) i don't like it anyway I am wondering why you don't use master/detail ? but I guess the case is a little more complex than I see i do this for lookups the user enters into the zipcode field 66502 a simpleQuery looks up the city, state and puts Manhattan, KS in the city state fields zip, city, state all existing in the customer block are they read only form entries, or are they redundant data in customer? in our system they are stored with the records ok legacy thing i have disabled the hand editing but that was the simple case in my current case i'm looking up item info based upon the upc code for our warehouse app to validate the item they are shipping matches the model number in our inventory warehouse works with a barcode scanner, phone reps work from model numbers anyway you think that could be done with master detail? independently whether it makes sense in a specific case to use simpleQuery or not * jamest thought it would be overkill to have a whole block for this :) if we want to have that function, it needs the fieldlist parameter IMHO I always did a block for such stuff I had pretty much the same in my hotline app showing phone and email on form for the selected customer etc and looking up whether customer has support contract the nice thing would be if you made, in the simple case, zipcode a detail of customer the query would run automatically hmmm.. or not? i wonder if simple query should reference the fields, perform the query, then unreference the fields I think passing the fields to createResultSet would be better i didn't think master/detail did lookups on focus out jamest: you're right, it doesn't you would have to make the zipcode entry a lookup field tied to the zipcode datasource wait crap I'm getting old createResultSet doesn't accept field references please ignore everything I've said so far should do the trick doh! :q ergh wrong window i saw explicitfields in the code and didn't think anything of it :) it wasn't you? then it must have been jcater who invented it at least it was already there when I started bbl phone *** btami has joined #gnuenterprise new login dialog? yes brand new :) any troubles? should actually be upward compatible (kinda) nope what's it do different? but it has some new nice features like it can ask for stuff like company in a multi-company environment with dropdowns showing all available companies hows that work with datasources? brb phone again all companies data in a single backend? why could parameters's default setting not work when for the same form works when passed from command line? hmmm sorry works now my one use of parameter shows a type setting of sting string but strange, i only restart navigator jamest: all companies in a single db is what appserver supports now as the first alternative we plan to eventually extend it to further alternatives like separate tables per company separate db per company however appserver would take care for that does the login system still generally follow the same principle? and as a user you enter your company when you log in yes in which it asks the database driver what fields are needed for logging in? cool yes *** yure has quit IRC I saw all the code in the login handler however for example appserver says "I need username, password, and company" (if configured to have authentication and multi company) and also with company passes a list of valid selections so the user gets presented a dropdown instead of an entry or, even better, 2 dropdowns; one with company code and the other with company name so he can select whatever he likes more could be also default setting from user's profile or config dimas: right hmmm i used to do block.clear() block.field.set("value") block.field2.set("value") block.commit() to commit to blocks that didn't have a UI attached with latest svn block.commit() claims depreciated and doesn't work however form.commit() gives no error but doesn't commit anything either would this usage have changed? this block.commit vs. form.commit is actually a quite old topic IIRC AFAICT form.commit should do it form.commit should commit all blocks that have changes yes johannesV: OnActivation is fired later hmmm what's happening is that the data entry blocks are unbound and the bound block is not accessed by the user the form.commit() seems to leave the form in a state of unsaved so they clear the block which rolls back the insert statement that was issued against the hidden block the form.commit() should actually do everything: insert statement, commmit statement, and (if not turned off) requery statement that is what it reads like johannesV: working with On-Startup dimas, great ! bbl *** dcmwai has joined #gnuenterprise jamest: you're finding out something? (just as a forewarning: I will have to leave in about 1.5 hours) my guess (I've been out of the code a while) I'm not sure it's still guaranteed that a block will have at least an empty resultSet so the logic of when an empty resultSet is created might have changed to be related to display? a block will still always have at least one record is that still true? I knew it was at one point and if the resultSet is empty, a new record will be inserted yes i'm not seeing where it's going wrong yet ok, well I'll close my kate editor and stay out :) odd the commit is resulting in an immediate rollback w/o error huh? the backend gets a commit and does a rollback? or you call commit and the backend gets a rollback? did you look at --debug-level=3 ? yeah, sorry user * jcater hands jamest a mallet that should help w/that pesky user problem DB003: 0:01:23.271 [Connection:259] DBSIG2 Statement: INSERT INTO item_transactions (target, type, source_key, qty, note, source, item_id, item_sheet_cost) VALUES (%(new_target)s, %(new_type)s, %(new_source_key)s, %(new_qty)s, %(new_note)s, %(new_source)s, %(new_item_id)s, %(new_item_sheet_cost)s) DB003: 0:01:23.271 [Connection:260] DBSIG2 Parameters: {'new_type': 'decrease', 'new_source': 'shipping', 'new_target': 'onhand', 'new_item_id': 3693, 'new_item_sheet_cost': None, 'new_qty': '1', 'new_source_key': 'jamest', 'new_note': 'APP:shipping.gfd'} DB003: 0:01:23.273 [Connection:493] DBSIG2 Rollback oh my issuing a block.clear() now issues a rollback against the connection? didn't it do that since ever? I can't remember changing *that* however it might be that we misread something iirc, it's done that for as long as I remember not saying that's correct ok, then I say it's correct :) with the (new, appserver specific) situation that insert/update/delete statements can arrive at the backend before the commit is done a clear *has to* do the rollback to undo these statements that's not the issue actually that situation is not exactly appserver specific, could also happen with 2-tier if you have triggers or stored procedures at one time I had unbound datasources well, still do actually it contains a statesetrow that block isn't tagged as saved during commit a statesetrow? static so it's actually a static datasource? er, yes, sorry *** SachaS has joined #gnuenterprise the main block the users interact with isn't bound to anything i did used to use an unbound ds but i had to add the staticsetrow at some point because actually it should be unbound my understanding always was that static should be only be used read-only that was how it originally was i don't remember what changed i'll flip it back and see what breaks :) *** titopbs has joined #gnuenterprise hmmm at first sight the static datasource should have no bound fields at all so it should never enter a "dirty" state except when it serves as a master... *** dcmwai has quit IRC *** wendall911 has joined #gnuenterprise *** sjc has joined #gnuenterprise *** johannesV has quit IRC *** wendall911 has quit IRC *** johannesV has joined #gnuenterprise *** btami has quit IRC off to lug meeting cu *** reinhard has quit IRC *** mnemoc has quit IRC *** mnemoc has joined #gnuenterprise *** SachaS has quit IRC *** SachaS has joined #gnuenterprise *** sjc has quit IRC *** Amorphous has quit IRC *** sjc has joined #gnuenterprise *** Amorphous has joined #gnuenterprise *** Morphous has joined #gnuenterprise *** mnemoc has quit IRC *** mnemoc has joined #gnuenterprise *** johannesV has quit IRC *** SachaS has quit IRC *** sjc has quit IRC *** titopbs has quit IRC *** sjc has joined #gnuenterprise *** sjc has quit IRC *** kilo has joined #gnuenterprise *** jamest has left #gnuenterprise *** titopbs has joined #gnuenterprise *** kilo has quit IRC *** titopbs has quit IRC *** wendall911 has joined #gnuenterprise *** mdean has joined #gnuenterprise *** wendall911 has quit IRC