Can you put more options in save data? - haxe

Can you put more than 2 options in the save data?, And if so, how

Related

How to delete a bunch of the same text on different JSON.files?

I’m wondering if there is a way to delete a bunch of code that was generated on my json files, like I have 1000 json files generated and I want to delete a link that I mistakenly wrote. Is there a quick way to delete that link from 1000 json files rather than having to go one by one to deleting it?

How to import excel file to fill labels which is in apex?

I have a page on APEX which has several labels.User should fill these labels to create new record.But this is a new application.The company has used excel to keep these records.Now It is the problem;
Users want to have a option that import excel file and excel file's cells fill required labels.I can not find any method to do that.
Thanks
As far as I an tell, you can't do it on that page.
What you can do is to create a Data Loading process. How? Create a new page and choose ... well, Data Loading page type. The Wizard will lead you through the process (there's no sense in typing it over here).
Once you're done, Apex will create 4 pages which will cover the whole process:
choose the source
perform mapping
data validation
display the final result
and let you load data stored in those files. Though, you can't import the native Excel file (.XLS or .XLSX) - save that file as a .CSV (comma-separated values) and then use it as data source for the loading process.

Application.LoadfromText...load from string instead?

I was wondering if it is possible to use the code saved in the .txt file using the application.savetotext and save the code in a table, then use the application.loadfromtext to to build the object from a string rather that a .txt file
Does that make any sense? Basically I'm wanting to store all the object codes in a table on separate rows and allow users to select the relevant row and build the object without having to import the .txt file
Yes and no. You would have to write the field content to a (temp) file, then use LoadFromText to read in the object.
But it doesn't make much sense, and I think you are on a wrong track. You could just as well have the objects ready-made in application.

Creating tables within ckeditor from uploaded files

Would it be possible to create and populate tables within ckeditor from uploaded files?
A user would choose a file from their machine in any format such as word, excel etc and it could display a formatted table in the editor....
It is pretty clear that one can create a table in CKEditor. Also, it is possible to add a table automatically. Now, if you want to automatically add a table based upon the content of an uploaded file, then:
create a form where the file can be uploaded
implement the feature with which one can upload the file
make sure you know where your files are, either using a database or a deterministic algorithm
implement a server-side functionality which prepares the content (table) data
use the prepared data as input at client-side

Input data recieved from an email into a CSV/Excel/LibreOffic Calc file

Having a bit of trouble with a script I am trying to create. Basically I would like it to send out a reminder email to send hours I worked that day, then I send a reply, the script will read the email for date start time and end time and then input this data into a CSV/Excel/LibreOffic calc file. A new line for each date. I have manage to sort out the email sending and reading part, then inputting the data into a variable for the next subroutine to read (the excel bit). But I am not sure on how to go about this part. I have seen many suggestions of using Text::CSV and other modules but i'm not certain on how to use them? also how would I go about making it append to the end of the document instead of just overwriting it?
Thanks in advance guys
CSV is very easy to read and parse, and Text::CSV is very easy to use too. What specific problems are you having with Text::CSV, and what have you tried?
If you want true Excel format, it looks like you'd need to read the existing contents with something like Spreadsheet::XLSX, write it back out using something like Excel::Writer::XLSX, and append your data to it as you're back out the original data.
CSV is simpler, though, if you can live with it. You could open the file in append mode, and just write to it. To do so, build up your data into columns, and "combine" them ($csv->combine (#columns)), then create a string out of that ($csv->string()) that you can write to your original file.

Resources