I'm working in a small app.
One of the things that it does is creating an excel. It makes a sheet called Instructions with data that is not going to be modified.
Where should I save that information?
I don't feel like writting it in a script file is correct. At the end is going to be something like a dataset.
I would prefer not to use one. We want to be a simple "import project" with little to no configuration. Setting a db would add complexity that I would prefer not to have.
My first thought was a .txt file that is inside the project.
You could also use a dictionary held in the top-level of a project script. You can search on the forum about using system.util.getGlobals() for such a thing.
You can always use a sql lite db connection through ignition will will just write to a file for you. No installs required.
If you intend to get information out of this .txt file in a structure way (like a list of lists like in your example) you will need be creating a lot more work for yourself to correctly right and read from that than it would be to setup a sql lite database. I would consider this a foot gun. Use a memory dataset or document tag, top level variable, or a sql lite database - all these already solved writing/reading structured data.
Permanent information in the gateway will not be directly available in Vision scope. You will need to use database queries or system.util.sendRequest().
I am guessing it’s control flow logic on excel sheet page 1 given your example? In which case it should be in your code directly anyways imo. If its not you need to be more specific.
And where are the users going to see this, in vision or perspective? And if they are not, why does it need to be in the project at all, seems more like documentation?
It's going to be in an excel that the our tool is going to create from scratch. You execute a function in the designer console and automatically it's going to create a xlsx file with all the data I just described before.