Hi all, I'm currently doing an upload function where the initial table will be empty data (with header row), achieved by not bootstrapping entity. Next I test the functionality of the upload button as it works successfully. But I don't want the data in the uploaded files to be stored in the Database in Data tab, my thoughts was to:1. Upload files2. Initial table (clean table) --> Refresh Data --> Get Data from file --> Table with data display3. Database remains empty, no update or added data inside.Is it possible to do it?
Hey @Wei Chiang Tang,Can you please take a look at this Screenshot, I have made the necessary changes in the Server action (ExcelToRecordList)?
Just stored this server action output in a local variable on the screen and then you can show it on a table.
If this works for you, Please mark this as solution.
Thanks
RegardsAayush Shrivastava
Thanks @Aayush Shrivastava for this solution, but I've found an alternative way.Even though the initial table might display previous uploaded files data, but I make it where every time when new files is uploaded, the old records is deleted first. Not really affective but managed to go on because I still need to implement search/filtering function for user friendliness.
Hi,
Your code looks good. Did you do the debug to understand what's happening?
Regards
Hi @Paulo Torres,Just did same operation on debugging session, nothing happen.Regards
Hi @Wei Chiang Tang,
So what you can do you can create one temp table to display data in table not int he original table because we can't do with local variable.
Local variable scope within the page only once page refresh data get empty.
For that if you want to display data in table at a time one so we can use local variable if not so we can store some where to show always your data.
Regards,
Rajat
Hi @Rajat Agrawal,Can you show me how to do it by modifying my oml files? or is there any related sample forum to refer to? Will be glad if you can provide both :DRegards,Wei Chiang