You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Uploading and Reading a Text File in Visual Builder

edited May 9, 2019 10:48AM in Visual Builder 5 comments

Summary

Using File-picker, trying to upload the csv file, but data is not displayed in text-area.

Content

I have followed the blog related to Uploading and Reading a Text File in Visual Builder i.e is(https://blogs.oracle.com/vbcs/uploading-and-reading-a-text-file-in-visual-builder-v2). Using this blog i had tried to upload the CSV file using file picker but data is not displaying in text-area.

i have used the JS code in main-start.

define([], function() {
  'use strict';
  
 var PageModule = function PageModule() {};
  PageModule.prototype.parseUploadedFile = function(fileSet){
    var readDataPromise = new Promise(function(resolve) {
      if (fileSet.length > 0) {
        console.log("fileSet length"+" "+fileSet.length);// fileSet length 1

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!