<?xml version="1.0" ?>

<kc>

<title>GNUe Traffic</title>

<editor contact="mailto:psu@burdonvale.co.uk">Peter Sullivan</editor>

<issue num="122" date="17 Jul 2006 12:00:00 -0800" />

<headquote>Summertime in #gnuenterprise - &quot;<i>we have a first day 
rainy after a long very hot period when you do not know where to hide 
- maybe refrigerators</i>&quot;</headquote>


<intro>
  This newsletter mainly covers the the #gnuenterprise IRC channel, 
  with occasional coverage of the three main mailing lists 
  (gnue-announce, gnue and gnue-dev) for the 
  <a href="http://www.gnuenterprise.org">GNU Enterprise</a> 
  project.
</intro>


<section 
   title="Further trouble-shooting with the wx 2.6 drivers"
   subject="[IRC] 20 Jun 2006"
   archive="http://www.gnuenterprise.org/irc-logs/gnue-public.log.2006-06-20"
   author="Peter Sullivan" 
   contact="mailto:psu@burdonvale.co.uk" 
   startdate="20 Jun 2006 12:00:00 -0800"
   enddate="21 Jun 2006 12:00:00 -0800">

<topic>Forms</topic>
<topic>Common</topic>

<mention>Peter Sullivan</mention>

<p>Further to 
<kcref title="Layout in GNUe Forms with wx 2.6 driver" subject="[IRC] 22 May 2006" />,
Reinhard M&#252;ller (reinhard) suggested to James Thompson (jamest) 
<quote who="Reinhard M&#252;ller">if you are bored, you can try again the 
wx26 uidriver</quote>, as Johannes Vetter (johannesV) had done 
<quote who="Reinhard M&#252;ller">some massive changes and it might 
be that your issues with fscking up the boxes are solved</quote>.
James said that, although he was busy, <quote who="James Thompson">i 
really need to get that tested, as the dropdown box issues in 2.4 
are preventing some selections from being allowed</quote>. So he 
was keen to have a version of GNUe Forms that worked with the user 
interface driver for wx 2.6 as soon as possible.</p>

<p>Trying Johannes' new code for GNUe Forms with his existing GNUe 
Forms Definitions, James found problems  - 
<quote who="James Thompson">none of which are due to anything 
wrong with what you've done - it's all in my forms</quote>, where 
he had been relying on 'features' (such as overlapping text boxes) 
that Johannes had treated as 'bugs' and now fixed. Johannes confirmed 
that <quote who="Johannes Vetter">overlaping is now being checked ...
not only for boxes but for all widgets</quote>. He added, 
<quote who="Johannes Vetter">if you click the detail-button you'll 
see the offending line in your XML-File - this makes debuging</quote> 
a GNUe Form Definition (gfd) <quote who="Johannes Vetter">a lot 
easier</quote>. James reported that all five of his existing 
GNUe Form Definitions were not working with the new code - but 
<quote who="James Thompson">i would still imagine it's something 
funky I'm doing in the form</quote> rather than a problem with 
Johannes' code. He noted that, on the last one, the problem 
that he had been having with the dropdown menu had been fixed, 
but the form now <quote who="James Thompson">aborts on 
query</quote>.</p>

<p><editorialize who="Peter Sullivan">Note that the lack of any 
guarantees on backward compatability, even with 'features'/'bugs'
is one of the reasons why GNUe Forms remains at a version 
number below 1.0 as of time of writing, as discussed further in 
<kcref title="Forms approaching version 1.0?" subject="[IRC] 13 Apr 2006" />.
</editorialize></p>

<p><a href="http://www.gnuenterprise.org/irc-logs/gnue-public.log.2006-06-20">The
mext day</a>, Reinhard <quote who="Reinhard M&#252;ller">noticed that 
dialog boxes in the wx26 driver are not modal - the &quot;go to 
record&quot; box and the about box both allow the main form to 
be clicked while the box is still open - then the cursor even 
blinks in the main form - but I can't type anything</quote>. 
Later, Johannes reported <quote who="Johannes Vetter">the dialogs 
*are* shown modal ... i would say it's a bug in wx that 
the mouse-click is sent to (and handled by) the parent-window</quote>. 
He confirmed that, when using the user interface drivers on Microsoft 
Windows and Mac OS X, the focus stayed on the dialog box, and 
correctly ignored any clicks on the parent form. Reinhard wondered if 
this was a problem specific to the GTK2 desktop he was using under 
GNU/Linux - <quote who="Reinhard M&#252;ller">I think for gtk2 modal 
dialogs *always* allow the main window to be focussed again</quote>. 
Johannes confirmed that it was not possible to access the 
menu options in the parent form whilst there was a dialog 
box open, for both Microsoft Windows and the old wx version 
2.4 drivers.</p>

</section>


<section 
   title="New releases needed?"
   subject="[IRC] 21 Jun 2006"
   archive="http://www.gnuenterprise.org/irc-logs/gnue-public.log.2006-06-21"
   author="Peter Sullivan" 
   contact="mailto:psu@burdonvale.co.uk" 
   startdate="21 Jun 2006 12:00:00 -0800"
   enddate="21 Jun 2006 12:00:00 -0800">

<topic>Forms</topic>
<topic>Common</topic>
<topic>Reports</topic>

<p>Bajusz Tam&#0225;s (btami) noted that <quote who="Bajusz Tam&#0225;s">the 
latest released gnue-reports</quote> no longer worked with the 
last official release of GNUe Common, as <quote who="Bajusz Tam&#0225;s">it 
needs GRParser .py and GRSources from</quote> the current  
development version of GNUe Common. Reinhard M&#252;ller (reinhard) 
suggested <quote who="Reinhard M&#252;ller">should we do a release 
of gnue-reports now? would that help?</quote> Tam&#0225;s said 
that it was really GNUe Common that was the problem. Reinhard 
said <quote who="Reinhard M&#252;ller">so we might want to look into 
releases for common and reports at least</quote>. However, he did 
not <quote who="Reinhard M&#252;ller">want to release forms in the 
middle of this stuff we are doing</quote> until it was more 
stable. He expected that the existing 
<quote who="Reinhard M&#252;ller">latest release of forms *should* work 
with</quote> the current development version of GNUe Common if they 
did a new release as of time of writing.</p>

</section>


<section 
   title="Object IDs used in GNUe where there is no primary key"
   subject="[IRC] 26 Jun 2006"
   archive="http://www.gnuenterprise.org/irc-logs/gnue-public.log.2006-06-26"
   author="Peter Sullivan" 
   contact="mailto:psu@burdonvale.co.uk" 
   startdate="26 Jun 2006 12:00:00 -0800"
   enddate="26 Jun 2006 12:00:00 -0800">

<topic>Forms</topic>
<topic>Common</topic>

<p>It was asked whether having an object ID field was necessary for databases being 
accessed by GNUe. Reinhard M&#252;ller (reinhard) said <quote who="Reinhard M&#252;ller">we 
currently depend on oids - because they are the only way of safely identifying a 
new record that has just been inserted if the primary key has been set by a db 
trigger</quote>. It was pointed out that, with Oracle at least, database-generated 
object IDs were not guranteed to remain the same over time. James Thompson 
(jamest) had not heard this, but in any case pointed out that 
<quote who="James Thompson">postgresql 8.1 has depreciated the OID and no longer 
created them on tables unless specifically told too during the create table 
statemnet - this burns me quite a bit :)</quote> However, he had been under the 
impression that the data access code for GNUe <quote who="James Thompson">only 
used the OID if a PK field wasn't defined for that table</quote> - if you 
defined what field or fields made up the primary key as part of the datasource 
definition, it would use these instead of requiring an object ID. 
He did this all the time with things like RMA numbers or order numbers - 
<quote who="James Thompson">the user doesn't enter the PK value nor does the 
form - they save the new record and then the rma number assigned just pops up on 
their screen in the uneditable field :)</quote>. This would normally be done by 
automatically re-querying the record after save - <quote who="James Thompson">but 
I also seem to recall some dbsig drivers returning info from the execute of the 
insert</quote>. Reinhard confirmed this.</p>

</section>


<section 
   title="Problem with dropdowns validation fixed"
   subject="[IRC] 28 Jun 2006"
   archive="http://www.gnuenterprise.org/irc-logs/gnue-public.log.2006-06-28"
   author="Peter Sullivan" 
   contact="mailto:psu@burdonvale.co.uk" 
   startdate="28 Jun 2006 12:00:00 -0800"
   enddate="29 Jun 2006 12:00:00 -0800">

<topic>Forms</topic>

<p>Reinhard M&#252;ller (reinhard) reported a problem with 
<quote who="Reinhard M&#252;ller">dropdowns (or other entries with 
a list of allowed values)</quote> - 
<quote who="Reinhard M&#252;ller">currently when a wrong value is 
entered, the complete entry is deleted and the field is set back 
to empty - and the cursor moves out of the entry - and no error 
message is displayed. I consider this a bug and would think the 
correct behaviour would be - display error message in status line, 
beep, leave the input as it was (so I can just correct my typo) 
and leave the focus in the entry</quote>. This was agreed.</p>

<p>Later, Reinhard reported an 
<quote who="Reinhard M&#252;ller">interesting problem - 
I've managed to block tabbing out of a control as long as the 
entered value is invalid - so when you hit tab or enter gnue-forms 
just beeps and shows an error message. However I seem to have no 
means to block moving the focus to another widget with the mouse - 
so you can still click out of a control even when the value is 
invalid - does anybody have any idea about this?</quote> Later, 
he thought he had <quote who="Reinhard M&#252;ller">found a solution 
that behaves fairly reasonable - but I guess it needs testing on 
different</quote> user interfaces.</p>

<p><a href="http://www.gnuenterprise.org/irc-logs/gnue-public.log.2006-06-28">The 
next day</a>, Johannes Vetter did some testing of this fix on other user 
interfaces. He reported that using the wx 2.6 user interface driver 
in GNU/Linux seemed to work -  <quote who="Johannes Vetter">clicking 
into another entry moves the UI-focus to that entry, but keeps GF-focus 
in the dropdown. entering new text goes still into the dropdown - the 
errormessage appears in the statusline.</quote> But the same 
form using the native Microsoft Windows 32 user interface driver was not 
working as intended - <quote who="Johannes Vetter">On win32, clicking 
into another entry moves both ui- and gf-focus into the new field, no 
message, no error. the value of the dropdown is the first one 
which was available depending on my input</quote>. However, using 
the wx 2.6 user interface driver in Microsoft Windows worked fine.</p>

</section>


<section 
   title="Displaying grids in GNUe Forms with wx 2.6"
   subject="[IRC] 29 Jun 2006"
   archive="http://www.gnuenterprise.org/irc-logs/gnue-public.log.2006-06-29"
   author="Peter Sullivan" 
   contact="mailto:psu@burdonvale.co.uk" 
   startdate="29 Jun 2006 12:00:00 -0800"
   enddate="06 Jul 2006 12:00:00 -0800">

<topic>Forms</topic>

<p>Further to 
<kcref title="Grid support in GNUe Forms" subject="[IRC] 13 Jun 2002" />, 
Johannes Vetter (johannesV) reported a <quote who="Johannes Vetter">response 
on the wx-mailing list regarding the grid problem - 
looks like some guys have implemented a grid-control (derived from wx.grid) 
which is capable of handling multiple rows per logical record - but it 
appears as the have troubles with selecting a row as well as moving 
around in a logical way. i've installed gnuecash yesterday to get a look 
at how they did it there ...</quote>.</p>

<p><a href="http://www.gnuenterprise.org/irc-logs/gnue-public.log.2006-07-06">A
few days later</a>, Reinhard M&#252;ller (reinhard) noted that 
<quote who="Reinhard M&#252;ller">wow, zipgrid looks very nice already</quote>. 
Johannes said that there was still some tidying-up to do on the 
code, <quote who="Johannes vetter">and it supports only default-entries</quote>
as of time of writing. He posted some screenshots from 
<a href="http://www.gnuenterprise.org/~johannes/zipgrid-gtk.png">GTK</a> and 
<a href="http://www.gnuenterprise.org/~johannes/zipgrid-xp.png">Windows</a>, 
noting that <quote who="Johannes Vetter">the best thing is it is done 
with just a few lines of gfd-code</quote>, giving the lines of code 
used to generate the sample grid.</p>

</section>


<section 
   title="Current status of GNUe Reports"
   subject="[IRC] 06 Jul 2006"
   archive="http://www.gnuenterprise.org/irc-logs/gnue-public.log.2006-07-06"
   author="Peter Sullivan" 
   contact="mailto:psu@burdonvale.co.uk" 
   startdate="06 Jul 2006 12:00:00 -0800"
   enddate="06 Jul 2006 12:00:00 -0800">

<topic>Reports</topic>

<p>Reinhard M&#252;ller (reinhard) asked 
<quote who="Reinhard M&#252;ller">anybody using gnue-reports on 
windows?</quote> He wanted <quote Who="Reinhard M&#252;ller">to know 
whether you can print directly - or you have to generate a pdf 
which you then manually print</quote>? Later, Bajusz Tam&#0225;s 
(btami) said that text-only reports could be printed 
directly to a printer, and <quote who="Bajusz Tam&#0225;s">if use xml 
formatter, can print to a gdi printer - text, html, escp,..</quote>, 
adding <quote who="Bajusz Tam&#0225;s">if you don't select 
a printer, it will pop up a selection dialog.</quote> He noted 
that all of this applied only to the current development 
<quote who="Bajusz Tam&#0225;s">version of reports, released doesn't 
works</quote>. He noted <quote who="Bajusz Tam&#0225;s">reports 
is far from a polished state</quote> as of time of writing.</p>

<p>Reinhard was <quote who="Reinhard M&#252;ller">approaching a 
project where we would need a number of reports - most of them 
probably being simple lists of records (maybe with master/detail, 
but nothing complicated)</quote>. Tam&#0225;s noted that the text-only  
version of reports did not support master/detail yet - 
<quote who="Bajusz Tam&#0225;s">there was no work on reports 
lately</quote>. Reinhard said <quote who="Reinhard M&#252;ller">we'll 
have to decide whether we use reports or do some manual python 
(maybe reportlab) based solution</quote>. Tam&#0225;s felt it would be 
better <quote who="Bajusz Tam&#0225;s">to use/enhance gnue-reports - if 
everyone using custom report solution, it will be never 
finished</quote> - <quote who="Bajusz Tam&#0225;s">as i see, the engine 
itself is ready, the filters need more work</quote>.</p>

</section>

</kc>