Quote from sinmorph on December 27, 2022, 3:38 amHey there, a question;
Is it possible to read and wirte to a text file and read the contents and wirte the contents from a text field? or is that visual neo win>?
I am making a calender which has all the days o fthe week and several rows of input, like say 13:00 lunch with luis...
i want to save these inputs to a text file and read them upon opening the software, i knew a way in visual neo win but cant find the right thing to do in web, cheers!p.s - is it possible to save variables in a file too, is that maybe a better solution..
regards
Sinmorph
Hey there, a question;
Is it possible to read and wirte to a text file and read the contents and wirte the contents from a text field? or is that visual neo win>?
I am making a calender which has all the days o fthe week and several rows of input, like say 13:00 lunch with luis...
i want to save these inputs to a text file and read them upon opening the software, i knew a way in visual neo win but cant find the right thing to do in web, cheers!
p.s - is it possible to save variables in a file too, is that maybe a better solution..
regards
Sinmorph

Quote from susan on December 27, 2022, 6:04 amWith apps you make with VisualNEO Web, in general, everything is normally stored on the web server that is hosting your app. In the Files actions, there is the FileToVar action that reads a file from the server, but saving a variable back to the server as a text file is more complicated because of the way the web works.
So, instead of using text files, often a database is involved, and you can use methods like explained in these tutorials on YouTube. But if you want to use only text files, the neoPhpSamples folder in the Sample Apps has a couple of examples that show how to do it.
With apps you make with VisualNEO Web, in general, everything is normally stored on the web server that is hosting your app. In the Files actions, there is the FileToVar action that reads a file from the server, but saving a variable back to the server as a text file is more complicated because of the way the web works.
Quote from Gaev on December 27, 2022, 6:15 pm@sinmorph
I am making a calender which has all the days o fthe week and several rows of input, like say 13:00 lunch with luis...
i want to save these inputs to a text file and read them upon opening the softwarea) Do you want to save this information in a Text file on a server (i.e. to be shared with other users) ? ... or just on the one device ?
b) What is the approximate maximum number of "rows" of information do you anticipate being stored at any one time ?
As pointed by @susan, it is preferable to use databases for storing/retrieving information in WebApps, especially if this information is to be shared amongst different users.
However, for non-shared information of a small size, you might consider storing this information on Local Storage; responses to my questions will determine suitability of deploying such a technique, as well as a fast way of doing so.
I am making a calender which has all the days o fthe week and several rows of input, like say 13:00 lunch with luis...
i want to save these inputs to a text file and read them upon opening the software
a) Do you want to save this information in a Text file on a server (i.e. to be shared with other users) ? ... or just on the one device ?
b) What is the approximate maximum number of "rows" of information do you anticipate being stored at any one time ?
As pointed by @susan, it is preferable to use databases for storing/retrieving information in WebApps, especially if this information is to be shared amongst different users.
However, for non-shared information of a small size, you might consider storing this information on Local Storage; responses to my questions will determine suitability of deploying such a technique, as well as a fast way of doing so.

Quote from luishp on December 27, 2022, 7:11 pm@sinmorph I think you are probably looking for something like neoLocalStorage.
This included plugin allows saving and retrieving information in a local device but, for security reasons, not in files but in local storage.
Local storage is a way of saving the key-value pair in the web browser and the best part about it is that there is no expiration date meaning that data will still be there in the browser even if you reload the page.
You can save simple variables or complex JSON objects including many variables or Array items.Regards.
@sinmorph I think you are probably looking for something like neoLocalStorage.
This included plugin allows saving and retrieving information in a local device but, for security reasons, not in files but in local storage.
Local storage is a way of saving the key-value pair in the web browser and the best part about it is that there is no expiration date meaning that data will still be there in the browser even if you reload the page.
You can save simple variables or complex JSON objects including many variables or Array items.
Regards.
Quote from sinmorph on January 8, 2023, 3:29 amAll awesome anwsers guys @susan & @gaev and @luishp
Thank you for taking the time to help me out on this, it has 7 rows and a character limit aswell which i got working, its like a calender that holds info about that particular day, and is going to be structured by a mon,tue,wed,thurs,fri,sat,sun left to right in the lower part of the project, i want to be able to store per day, in a txt file locally, say have a folder called weekdays in the appdirectory and then store the data per day and per line, i fiugred this out in the demo version of neobook for windows (will consider maybe also purchasing a license) and experimented with it and got it kind of working, but i opted for the neo web version due to the possibility to run it on a smartphone or similar device. so when i touch the coresponding field and change it, after typing in the entry i want to save that to the txt files coresponding to each day, like say having a weekplanner on your fridge and a pen to fill the small blocks, anyway the last two weeks have been off with my daughter and wife now its back to tackling this awesome software, again thanks for your help, i have still a lot to learn and since i do not know how to code and am impaired as of calculus, this will be a challenge haha,
cheers!
Sinmorph
All awesome anwsers guys @susan & @gaev and @luishp
Thank you for taking the time to help me out on this, it has 7 rows and a character limit aswell which i got working, its like a calender that holds info about that particular day, and is going to be structured by a mon,tue,wed,thurs,fri,sat,sun left to right in the lower part of the project, i want to be able to store per day, in a txt file locally, say have a folder called weekdays in the appdirectory and then store the data per day and per line, i fiugred this out in the demo version of neobook for windows (will consider maybe also purchasing a license) and experimented with it and got it kind of working, but i opted for the neo web version due to the possibility to run it on a smartphone or similar device. so when i touch the coresponding field and change it, after typing in the entry i want to save that to the txt files coresponding to each day, like say having a weekplanner on your fridge and a pen to fill the small blocks, anyway the last two weeks have been off with my daughter and wife now its back to tackling this awesome software, again thanks for your help, i have still a lot to learn and since i do not know how to code and am impaired as of calculus, this will be a challenge haha,
cheers!
Sinmorph