MELDAW Posted April 12, 2023 Report Share Posted April 12, 2023 Hello everyone, I was wondering if there is a function or a way to list all the CSV files in get all the names in texte file? What i am trying to do is the same thing when we are in uniapps and we get all the Data tables names then we can select them. Thank you. Link to comment Share on other sites More sharing options...
ORSO2001 Posted April 12, 2023 Report Share Posted April 12, 2023 hi MELDAW, where the CSV file will be located/stored and who/when/how the CSV files will be created?...i mean you will created a CSV file referred at the current data then when the day is gone you will saved it or user will create its own, let me say, "recipe" then you want recall these? or you know from the begin what will be the CSV files name?...other!? Link to comment Share on other sites More sharing options...
MELDAW Posted April 13, 2023 Author Report Share Posted April 13, 2023 Hi ORSO, The CSV files will be created by the function Store DTI, so it will be created in SD Data Tables folder when they press the save button, So let's say I have recipe1, recipe2, recipe3, saved in Data Tables folder as CSV files, now i want to add a combo box, that can shows me all the CSV files in the Data Tables folder. Link to comment Share on other sites More sharing options...
MELDAW Posted April 13, 2023 Author Report Share Posted April 13, 2023 Also I want to load the csv file by the function Load DTI, when i choose it in the combo box. Link to comment Share on other sites More sharing options...
ORSO2001 Posted April 13, 2023 Report Share Posted April 13, 2023 Hi MELDAW, ok...i don't know how complex is the recipe...but I can suggest to think about the implemetation of the recipe "name" in the struct that already contain the datas for the recipe...so you will just append the new receipe in just one file and you will navigate in this file to check/show the receipes that users had insert...so will be not needed some files browser to check what files was created...hope that is clear and that can be acceptable for you. Link to comment Share on other sites More sharing options...
MELDAW Posted April 13, 2023 Author Report Share Posted April 13, 2023 Hi ORSO So I will just have one file? but how this navigation will happen? Link to comment Share on other sites More sharing options...
ORSO2001 Posted April 13, 2023 Report Share Posted April 13, 2023 Hi MELDAW, here a really short example about what I mean...built with release 1.33.236 DTI_CSV_MANAGEMENT.ulpr Link to comment Share on other sites More sharing options...
MELDAW Posted April 14, 2023 Author Report Share Posted April 14, 2023 Hi ORSO Thank you so much for this demo, that's so nice of you, I understood what you want to say now, the problem is that now i will give the name in each row, so my recipe is gonna be the row, but what i want to do is to make All the table as a recipe, and my point of saving and calling it as CSV, is to be more dynamic with the number of recipe that i can create. Link to comment Share on other sites More sharing options...
ORSO2001 Posted April 14, 2023 Report Share Posted April 14, 2023 hi MELDAW, ok...so if I well understood you is thinking about a DTI recipe because each row of the DTI will be a step of the recipe...something like that!? however...maybe you can save the name of the files that you will create in a file (from a DTI) so, in the same way of my example, you can navigate and select the "name" that you will append at the string that rappresent the name of the file. otherwise you have to take a look at the "file browser" or "file selector browser" in the MANAGEMENT TOOLS of the HMI toolbox Link to comment Share on other sites More sharing options...
MELDAW Posted April 17, 2023 Author Report Share Posted April 17, 2023 Hi ORSO, Yes exactly. Yes i was thinking about that but i want something more dynamic, Ok i will take a look thank you so much, I apperciate it. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now