It is currently 3 December 2020, 4:37 Advanced search

Reading/Writing Values to text file

Questions and answers on how to best use Instant Developer

Reading/Writing Values to text file

Postby john w » 18 November 2020, 15:43

Users have a hard time with sessions timing out. He loses the values he has entered, when he returns to work on the screen. These are not database values they are calculated values and there are hundreds of system users.

Is there a process of saving those values, so they are not lost and has to reenter them when a new session. I was wondering about using a text file, so the title of the thread. I would need to save the work done and reload when the user returns. There must be another way that is better...perhaps a cookie, or similar.

Thanks in advance for any suggestions.
Regards

John W
User avatar
john w
 
Posts: 617
Joined: 24 October 2012, 16:29
Location: Apple Valley, Minnesota USA

Re: Reading/Writing Values to text file

Postby r.bianco » 18 November 2020, 16:02

Hi Jhon, I would try this as a workaround:

https://doc.instantdeveloper.com/?ARTID ... E&LANG=eng
only work and no play makes jack a dull boy
r.bianco
 
Posts: 4265
Joined: 8 November 2010, 16:46

Re: Reading/Writing Values to text file

Postby john w » 18 November 2020, 16:38

Will that keep the session alive? If so you have given me what I need. I am pretty excited by the possibility.
Regards

John W
User avatar
john w
 
Posts: 617
Joined: 24 October 2012, 16:29
Location: Apple Valley, Minnesota USA

Re: Reading/Writing Values to text file

Postby john w » 18 November 2020, 16:43

Where is the best place to set the Refresh Interval property. It needs something to fire it, does it need a timer?

Would it make sense to add a timer at the application level and the add a proc to the timer that sets the refreshinterval = x ? Or would it be better at the individual form level?

Any thoughts?
Regards

John W
User avatar
john w
 
Posts: 617
Joined: 24 October 2012, 16:29
Location: Apple Valley, Minnesota USA

Re: Reading/Writing Values to text file

Postby john w » 18 November 2020, 19:32

I tried a few things but finally placed the 'refreshinterval' property in application Initialize event. Early testing shows it to be working. I am pretty optimistic this will be solution to long standing source of aggravations for my users.

Thanks!
Regards

John W
User avatar
john w
 
Posts: 617
Joined: 24 October 2012, 16:29
Location: Apple Valley, Minnesota USA

Re: Reading/Writing Values to text file

Postby r.bianco » 19 November 2020, 7:43

I'm glad to hear it.
You are welcome :)
only work and no play makes jack a dull boy
r.bianco
 
Posts: 4265
Joined: 8 November 2010, 16:46


Return to Tips & Tricks

Who is online

Users browsing this forum: No registered users and 6 guests

cron