Hi,
Please help. How to do an upload file in outsystems and insert data from uploaded file in table?
You can bootstrap the file or you can have a page where you can validate first the data before inserting it to you entity.
Bootstrap an Entity using Excel File
Upload Widget
Jeffrey Vergara wrote:
Hi Jeffrey,
I am planning to use an entitiy that is generic that is not the same with the file header. Is it possible?
When you use upload widget you can check if the file format of the uploaded file is excel then you can simply use the Excel to Record List just make sure the structure you are using is similar to the content of the excel file
Rogelio Guanlao wrote:
Hi Rogelio,
Hi Christian,
Good Day.
You can use "EXCEL PACKAGE" from FORGE, I've created a simple process on how to use it. Hope this will help. Using this process you can manipulate what flow you want as you can read each cells.
Reymar Esguerra wrote:
Hi Reymar,
Christian Michael wrote:
Yes, it is possible. Using the method I sent. You just need to explore the flow for you to fully utilize the "EXCEL PACKAGE".
The excel must to have the headers with the same name of the table, so you can right-click on the table that you would like to up the data
To use a different header, you have to create a structrure with the same names of the headers, and on Assign statement choose the origem and destiny fileds
Leandro Correa wrote:
Hi Leandro,
My headers from the source is too long for example, see below screenshot. How will I handle it in the structure that I created since the rule is to have a structure equal to the header name of the excel?
Depends exactly on what you want to do... I will explain the three typical scenarios:
A shortcut to implement the 3. scenario logic is to follow the instructions on the 2. scenario to let the platform generate the bootstrap action and any required structures and then remove the generated timer and the Excel file in the Data->Resources folder, and adapt the generated action to perform the import and any extra logic required in 3.2.Cheers,Nuno Verdsca
Additional Information, please see the follow documentation:
Cheers,Nuno Verdasca
Hi Christian, Wow :O !
The attributes are limited by 25 characteres!
Using this automatic bootstrap is required that the attributes match with the excel header, unfortunately.
Maybe another Forge Component help you, like
https://www.outsystems.com/forge/component-overview/636/csvutil or others to manipulates Excel sheets.
Best Regards,
Leandro.