UI action to load datasource

ram11vrnr
Tera Contributor

Hi All,

I have created an UI action named "upload" , through which user will attach an excel. Using that excel data will processed and update table. Excel will be attached in sys_data_source record and through schedule import , data will processed.

 

Now issue is when user attach the file for the first time it processed successfully. But when second file added, still the first file only getting processed.

 

I need help to process the second file so that user data will be updated.

 

UI action script: 

 

function uploadDocuments(){

saveAttachment("sys_data_source","c12345671b45ad10a169dd72b24bcb1b");

5 REPLIES 5

Rahul Priyadars
Giga Sage
Giga Sage

After First File Data Upload - Seems in same session its not idedntifying the second file?

 

Can u see the entry for second file in table -  sys_data_source

 

Regards

RP

ram11vrnr
Tera Contributor

Yes entry available in sys_data_source table.

manjusha_
Kilo Sage

@ram11vrnr 

 

Ideally we should use only one file to process data as there is just one target able we specify in transform map.

Even if we can attach multiple files ,only one file gets processed.

If you want to check ,remove your first file ,attach second file and then run your import set.

Thanks,

Manjusha Bangale

ram11vrnr
Tera Contributor

Hi Manjusha,

 

Thanks for the reply.here users updating through UI action and they dnt have option to remove the file. only admins can remove the file. so i want help to remove the file and update the new file