Welcome to !

     Modules
· Home
· On-line Shop
· Content
· Downloads
· FAQ
· Feedback
· Forums
· Members List
· Private Messages
· Recommend Us
· Statistics
· Surveys
· Top 10
· Web Links
· Your Account

     Donations



     Login
Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.

     Total Hits
We received
584131
page views since September 2003

     User Info


Warning: Cannot modify header information - headers already sent by (output started at /home/deanjx1/public_html/header.php:32) in /home/deanjx1/public_html/includes/sessions.php on line 249

Warning: Cannot modify header information - headers already sent by (output started at /home/deanjx1/public_html/header.php:32) in /home/deanjx1/public_html/includes/sessions.php on line 250
Total Rekall- An alternative to Microsoft Access: Forums


Warning: Cannot modify header information - headers already sent by (output started at /home/deanjx1/public_html/header.php:32) in /home/deanjx1/public_html/includes/page_header.php on line 529

Warning: Cannot modify header information - headers already sent by (output started at /home/deanjx1/public_html/header.php:32) in /home/deanjx1/public_html/includes/page_header.php on line 531

Warning: Cannot modify header information - headers already sent by (output started at /home/deanjx1/public_html/header.php:32) in /home/deanjx1/public_html/includes/page_header.php on line 532
 Forum FAQForum FAQ   SearchSearch   UsergroupsUsergroups   ProfileProfile   Log inLog in 

Reload Data

 
Post new topic   Reply to topic    Total Rekall Forum Index -> Python Related Issues
View previous topic :: View next topic  
Author Message
Andree
Crewman
Crewman


Joined: Feb 17, 2004
Posts: 4

PostPosted: Thu Sep 02, 2004 7:06 am    Post subject: Reload Data Reply with quote

How can i reload Data from a python script ?
Back to top
View user's profile Send private message
Andree
Crewman
Crewman


Joined: Feb 17, 2004
Posts: 4

PostPosted: Sun Sep 05, 2004 6:45 pm    Post subject: reload Data Reply with quote

Found this:

You can do this with the following code attached to the onClick event of a
button:

def eventFunc (button) :
button.getBlock().doAction(RekallMain.actQuery)
button.getBlock().doAction(RekallMain.actExecute)

This is the same as the user clicking the "Reload Data" tool button (or more
exactly, Clicking the "Start Query" tool followed by "Execute Query"
Back to top
View user's profile Send private message
tsoutherwood
Cadet


Joined: Aug 19, 2004
Posts: 5
Location: Pembury,Kent, England

PostPosted: Wed Sep 15, 2004 10:45 am    Post subject: Reply with quote

Thanks for that - I was trying to figure that out too.

You can also use the Reload macro.

A question - I was looking at the code behind that macro.

Seems to do a .reload() on the form object. But reload() isn't exported to python AFAICS. Is the python scripting not capable of doing everything that is possible in C/C++?

Cheers

Tim

PS

Would the moderator consider adding the previous code snippet into the FAQ/Scripts section?
Back to top
View user's profile Send private message
tsoutherwood
Cadet


Joined: Aug 19, 2004
Posts: 5
Location: Pembury,Kent, England

PostPosted: Wed Sep 15, 2004 4:28 pm    Post subject: Reply with quote

Problem.

The proposed solution is not quite the same unfortunately.

Executing a query/execute will reset the form to displaying the first record and will go slightly pear shaped if modified data is present on the current record (but not yet committed to the RDBMS).

So I would use the Reload macro.

Tim
Back to top
View user's profile Send private message
Post new topic   Reply to topic    Total Rekall Forum Index -> Python Related Issues All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Web site powered by PHP-Nuke

All logos and trademarks in this site are property of their respective owner. The comments are property of their posters, all the rest © 2003 by John Dean and Mike Richardson
You can syndicate our news using the file backend.php or ultramode.txt
Web site engine's code is Copyright © 2003 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.620 Seconds