Csv file uploader on APEX which previews the data on an interactive grid for editing? - oracle-apex

Any resources on how I can create a csv file uploader on APEX which previews the data on an interactive grid for editing and changing data before uploading to a table?

Loading the csv:
Create a data load definition in shared components for your file, target type table. Create a table for this in which you'll temporarily store your data.
On the page, create a file upload item
In page processes, create a process of type Data Loading, use Data Load definition from step above.
Previewing the csv
Create an IG region on the table you use in Data Loading config.
When preview is complete, copy the data in to the actual table.
That is the raw outline of what you need to do, I left out the details. But there are plenty of resources on how to do each step avaiable on the web.

Related

Add new datasets on GCP object detection

I generated a model on Google Vision (object detection) and I wanted to know if I could add new datasets over time, without having to reprocess the already modeled datasets
I take the example of google :
I have a dataset with roses, tulips ...,
I have already created a moldel with the flowers
And I wanted to add a new dataset with just sunflowers,
without deleting the models of the previous flowers
how I do to add the sunflowers ?
To add new data to your dataset (see Importing images into a non-empty dataset):
Select the dataset from the Datasets page to go to its details page.
On the Dataset details page, select the Import tab.
Selecting the Import tab will take you to the Create dataset page
You can then specify the Google Cloud Storage location of your .csv file and select Import to begin the image import process.
But in your case, you will need to train a new model. If you resume training of your existing model, it will fail. Because your dataset's labels will be changed by adding the sunflower label.
A model with a different number of labels has a different underlying structure (E.g.: the output layer would have more nodes because it has as many nodes as labels) so you can’t resume a model’s training with a dataset that has a different number of labels.
Note that you can add more data to your existing dataset and resume training but only if you add data for the already existing labels.

Big query table update from reference CSV file

I have a BigQuery table and I want to update the content of few rows it from a reference CSV file. This CSV file is uploaded to Google cloud storage bucket.
When you use external table from storage, you can only read the CSV, not update them.
However, you can load you CSV into a BigQuery native table, perform the update with DML, and then export the table to CSV. That only works if you have only one CSV.
If you have several CSV files, you can, at least, print the pseudo column _FILE_NAME to identify the files where you need to perform the change. But the change will have to be performed manually or with the previous solution (native table)

I have trouble loading data from multiple csv files or python code in powerbi

I am using power bi for loading some data. The data is present in the data lake store, and python can load data and do some initial transforms on the data.
The problem is however that the data is located in multiple files as per ID (1 - 10000). It is not possible to load all the data in memory.
I am looking for some way to have a button or something similar that acts as a selector for these Ids and then loads the data for the selected ID using python script, hopefully by passing a parameter to the python script.

Transfer blob betwean two Oracle Apex page

On first oracle apex page (page_1) i have File Browse control and Storage Type (apex_application_temp_files).
Is it possible blob_content save in application data and use on other page (page_2).
On second page I have Processes and need insert this blob in database.
You can use APEX_COLLECTION to store the Blob
https://docs.oracle.com/database/121/AEAPI/apex_collection.htm

Insert static data along with data loading wizard utility in Oracle APEX

I am new with Oracle APEX and trying to explore all options in APEX (5.1). My query is related to Data loading wizard in Oracle APEX. I created one table which has three columns, and I set up that table as Data Load Definitions.
This is the process that I expect through the data loading wizard:
In the first page of Data load Source, I created one radio page item and by selecting that, it should be assigned to the first column in the table.
I will upload a CSV file with two columns which will be assigned to the second and third columns.
So, whatever records are there in the CSV file, by selecting page item that static strings need to be inserted along with file data.
I Googled the same thing but I didn't find any proper solution for this requirement. If you can help me then it would be appreciated.
My preferred approach for this sort of thing is to use a staging table as the target of the Data Load wizard; then add a process at the end that copies the rows from the staging table to the final table, setting the static column(s) at the same time; then delete the rows from the staging table.
Note: add a column SESSION_ID to the table with a trigger that sets it to v('SESSION') so that the process will only pick up rows for the current user session.