Passant knoda de 0.7.4 (Mandriva KDE) à 0.8.3 (Ubuntu Gnome), je trouve 
que les champs grille dépendants ne fonctionnent plus si ils sont 
rattaché à une requête (il fonctionnent si ils sont rattachés à une table).
Dans une forme d'affichages de données pour un enregistrement de la 
source principale, ces données provenant d'une requête faite sur des 
sources secondaires) j'ai contourné en supprimant la dépendance, et en 
plaçant du code dans l'ouverture du champ-grille affichant les données 
secondaires:

fdb=hk_thisform.datasource() #la source principale//la ĉefa fonto//the 
main datasource
cle=fdb.column_by_name("idcleunik").asinteger()
gdb=hk_this.datasource() #la source secondaire//la malĉefa fonto//the 
secondary source
gdb.set_filter("idcleunik="+str(cle))
gdb.disable()
gdb.enable()


//Plijunigante Knoda_on el 0.7.4 (Mandriva KDE) al 0.8.4 (Ubuntu Gnome), 
mi trovis, ke subordonitaj grilaj kampoj ne plu funkcias se ili afiŝas 
iun peton (ili funkcias se afiŝus tabolon).
En afiŝaĵo pri unu linjo el la ĉefa fonto, kies afiŝitaj linjoj elvenas 
el malĉefa tabolo), mi funkciigis la grilan kampon: mi suprimis la 
subordonon kaj aldonis la supran kodon en la malfermilo de la kampo.

//upgrading Knoda from 0.7.4 (Mandriva KDE) to 0.8.4 (Ubuntu Gnome), I 
found that depending grid fields no longer works when the posted datas 
are those of a query (works if posting datas from a table).
In a form givieng for one lin of a table a list of datas about this 
line, available in a query, I erase the dependace to the main table, and 
wrote some lines of code in the "open" of the grid field...and it works 
again.




-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Hk-classes-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hk-classes-discuss

Reply via email to