You need to sign in to do that
Don't have an account?
Preetham 345 SFDC
Implementation of Satus Bar or Progress Bar
Hello Every One,
I am trying to implement a bulk upload process for my client by uploading a csv file and Database.Insert class at the backend on the controller side.At the front end in the UI i am showing the user a visual Force page of data tabel(reading the data) which consits of data in csv file. Now I succeded till insertion of all the records into saleforce which in csv file. Now i am in a plan to implement a 'Progress Bar' or 'Status Bar' which will pop up when user will click on Insert button and will update its status as per records get inserted(simillarly like status bar in data loader). If any one had worked on this kind of scenario , Could you please provide me a link or sample code so that would be easy for me to implement it.
Thanks in Advance
I am trying to implement a bulk upload process for my client by uploading a csv file and Database.Insert class at the backend on the controller side.At the front end in the UI i am showing the user a visual Force page of data tabel(reading the data) which consits of data in csv file. Now I succeded till insertion of all the records into saleforce which in csv file. Now i am in a plan to implement a 'Progress Bar' or 'Status Bar' which will pop up when user will click on Insert button and will update its status as per records get inserted(simillarly like status bar in data loader). If any one had worked on this kind of scenario , Could you please provide me a link or sample code so that would be easy for me to implement it.
Thanks in Advance
Now if you want something to show numbers you probably have to read csv file using JS and chunkify the file. Now send the records using remoting and update the status in progressbar.
Thank's for your quick reply, how can we differentiate the records whether it is succes Insertor failure Insert using JavaScript.If possible can you provide some infromation on it . That will be very helpful to all of the people like me in the community.
Thanks
Preetam
Javascript remoting or we can say Visualforce remoting is the solution to get status of success or failure of action performed by user on visualforce page. Look at the following example:
Apex:
Remoting on visialforce page:
earlier ?
You can have a insert method in controller and probably return the record count which succeded ?
Something like this should do