Dear Robert Leleu,
Thanks very much for your help.
I have followed your advise and my problem has been solved.
However, I have also made some alteration, instead of loading
all the data, and then going to the required record, I have modified
the script in the opening form to do a filtering instead. Here is the
code from the on_open event  of the opening form:

hk_thisform.set_mode(hk_thisform.designmode)

file=open("/home/egbert/tmp/memoire.txt")
MusikID=file.read()
file.close()

myfilter="MusikID = " + MusikID

hk_thisform.datasource().set_filter(myfilter,False)
hk_thisform.datasource().disable()
hk_thisform.datasource().enable()
hk_thisform.set_mode(hk_thisform.viewmode)

I am not terribly happy with the use of an external file to carry the
information forward, it would be better if it could be passed internally
from the calling form to the opening form. Maybe this will be implemented
with the next release of Knoda.

Thanks again
Egbert



Robert Leleu <[EMAIL PROTECTED]> wrote: En réponse au message du 21/7, et avec 
l'aide d'un pythoniste, je 
procède ainsi:
Respondante al mesaĝo de la 21-a julio, helpita de pitonfakulo, mi 
skribis tiel:
Answering the 7/21 message, having been helped by a python specialist, I 
use:

Dans le formulaire d'appel, dans la séquence double clic
En la petanta paĝo, en la duopaalklakilo
In the calling form double-klick script

idchoisi=hk_this.datasource().column_by_name("idcleunik")
file=open("/home/bobby/tmp/memoire.txt","w")
file.write(idchoisi.asstring())
file.close()
myform=hk_this.datasource().database().new_formvisible()
myform.load_form("F_identite")
myform.set_mode(myform.viewmode)


Dans le formulaire appelé, dans la séquence à l'ouverture
En la petota paĝo, en la malfermilo
In the called form, in the opening script:

file=open("/home/bobby/tmp/memoire.txt")
idchoisi=file.read()
file.close()
col=hk_this.datasource().column_by_name("idcleunik")
result=col.find(idchoisi)
hk_this.datasource().goto_row(result)




-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Hk-classes-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hk-classes-discuss


       
---------------------------------
 Yahoo! Answers - Get better answers from someone who knows. Tryit now.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Hk-classes-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hk-classes-discuss

Reply via email to