Hi all,

Finally I found out that Justin's second method does work for this case. 
The case I tested earlier is a 'mixed one' rather than a clear 
implementation. Thanks a lot.

Best Regards,
-Yongzhi


On Monday, June 29, 2015 at 2:14:32 PM UTC-7, [email protected] wrote:
>
> Hi all,
>
> Actually I used the following code in my form definition:
>
> myform = form.Form(
> ...
>     form.Textbox('et', form.notnull, vet,
>                  description="Ending Time",
>                  maxlength="16",
>                  value = timestring(2),
>                  ),
> ...
> )   
>
> Where function timestring(2) returns the ending time stamp of the records 
> of a given log file. I tried both methods Justin Davis mentioned but they 
> didn't work for some reason.  Thank you for your help!
>
> Best Regards,
> -Yongzhi
>
> On Thursday, June 25, 2015 at 4:34:25 PM UTC-7, [email protected] wrote:
>>
>> Hi all,
>>
>> Basically I have the following code in my form definition:
>>
>> myform = form.Form(
>> ...
>>     form.Textbox('et', form.notnull, vet,
>>                  description="Ending Time",
>>                  maxlength="16",
>>                  value = value_End
>>                  ),
>> ...
>> )    
>>     
>> Where 'et' returns a Ending Time string. I have a real-time monitoring 
>> tool which gathers metrics then dumps the record with time stamp into a 
>> log. When webpy starts, it will scan that log file and filter out both the 
>> starting time & ending time of the records. These two strings would be 
>> shown in two Textbox as guideline. Since the monitoring tool keeps running 
>> and new records would be appended into the log file, I hope this 
>> information would be updated in every page load. Otherwise an old time 
>> stamp may confused the users. 
>>
>> How can I force this textbox field to be updated on every page load? I 
>> found out a similar discussion but the trick doesn't work for my case. 
>> Thanks a lot. 
>>
>> https://groups.google.com/forum/#!topic/webpy/47COULPAOuY
>>
>> Best Regards,
>> -Yongzhi
>>
>>
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/webpy.
For more options, visit https://groups.google.com/d/optout.

Reply via email to