How to read file asychronous and show progress bar??
Hello Everyone,
I am new here and this is my first post here. I made a desktop application in Adobe flex builder 3. In the application I took the path of a folder and merge all the file present in that folder in a new file. I want to show the progress bar when file merging, because it take some time to merge large number of files. I read and write files synchronously. I made the progress bar but when I called it before the file merging happening nothing happened.
How can I do this??
Thanks
if you are using desktop im going to asume you are using air. if thats the case, im not to sure however on the web what you have to do is update the progress bar with some action.
you can also consider using the
cursorManager.setBusyCursor();
and when you are done then
cursorManager.removeBusyCursor();
let me know how you make out.
Miguel
Similar Messages
-
How to run the report and show the output in excel file
salam
how to run the report and show the output in excel file,
how to run the report and print the o/p via printer
how to run the report and send the o/p via mail
thank u allHi,
There are Parameters DESTTYPE, DESFORMAT and DESNAME. You can set these parameters to get as you want.
1) Output in Excel File
ADD_PARAMETER(PL_ID, 'DESTYPE', TEXT_PARAMETER, 'FILE');
ADD_PARAMETER(PL_ID, 'DESFORMAT', TEXT_PARAMETER, 'DELIMITED');
ADD_PARAMETER(PL_ID, 'DESNAME', TEXT_PARAMETER, '<file_name>.XLS');2) output to printer
ADD_PARAMETER(PL_ID, 'DESTYPE', TEXT_PARAMETER, 'PRINTER');
ADD_PARAMETER(PL_ID, 'DESNAME', TEXT_PARAMETER, '<printer_name>');3) Email - Have to configure SMTP and all. ( i didn't checked it)
ADD_PARAMETER(PL_ID, 'DESTYPE', TEXT_PARAMETER, 'MAIL');
ADD_PARAMETER(PL_ID, 'DESNAME', TEXT_PARAMETER, '<email_id>');Regards,
Manu.
If this answer is helpful or correct, please mark it. Thanks. -
How to read the date and time information of a file by labview
how to read the date and time information of a file by labview? for example, created time and modified time.
Solved!
Go to Solution.if you need to know the last modification date of file:-
"Functions->File I/O->Advanced File Functions->File/Directory Info.vi"
This vi returns the value of file's last modification date. This is returned as U32 number. To see it in MM/DD/YY format you must create the indicator, right-click on it and select "Format & Precision" item from drop-down menu. Then select "Time and Date" format there.
Thanks as kudos only -
I'm updating from my iPhone 4 to the iPhone 5 and have been 'restoring' for 2 hours now and the progress bar still states I hae 6 hours remaining. Will it really take this long? How long should a restore take? It's a 32gb device. Thanks.
I am having this problem. At first with the new iPhone 5, and then with the iPad 2. I am not sure why this is happening.
My gut feeling is this is an iO6 issue and here's why -
The problem mainly occurs with apps. I have about 150 apps, and when I plugged in the phone, iTunes went to sync all of them. The process would hang up after about 20 - 30 apps were loaded onto the phone. I could tell where about the process hung up because the apps on the phone showed up as "waiting".
Then on the iPad 2 I plugged in to sync and saw there was a huge "Other" component in my storage. It required me to restore the iPad 2 from backup. With this restore the same issues occurred - putting the apps back on the iPad would hang up. The videos on the iPad also got stuck - maybe after about 10 hours of videos transfered iTunes crashed.
My solution has been to soft reset the device, restart Windows, and continue the process until it's complete. This is remarkably inefficient and time-intensive but everything works with patience.
I have been wondering if others have had these same problems. -
[Urgent] How to read files from different directories?
I am new to Java Programming, I would like to know how to read files from directories other than the current one? (example as follows)
ProjectDirectory
|--MainDirectory
|--MainProgram.java
|--SupplementDirectory
|--SupplementProgram.java
|--Pictures
|--Image.gif
What should I write in the MainProgram.java so that I can use the supplementProgram.java from MainProgram and read the Image.gif file from the MainProgram.java?
ThanksRun through the I/O tutorial here. It should get you up to speed on this sort of thing...
-
How to show progress bar in miniplayer?
How to show progress bar in miniplayer? I play a lot of music podcasts and it would be very helpful if anyone could help me bring that feature back.
i answered here:
http://forum.java.sun.com/thread.jspa?messageID=9739423� -
How to create a form and show it as a modal window in VB6?
oform.modal -> modal is read-only property
help,please.Hi Santiago!
HTH: How to create a form and show it as a modal window? -
I have a ipod 4 and I just bought a iphone4 how do i sync apps and the progress for those apps?
Welcome to Apple Support Communities
You have an Early 2008 Mac Pro. You have the specs that your Mac Pro needs for more memory > https://support.apple.com/kb/HT4433#4 As you can read, that computer should have come with 2 GB of memory.
You can buy memory at OWC or Crucial > http://eshop.macsales.com/shop/memory/Mac-Pro-Memory#800-memory Those sell compatible memory with all Macs. You can use another memory, but you can be sure that the memory that these brands sell are compatible -
During boot Yosemite shows a grey screen with the Apple logo and a progress bar - is this normal?
Same here after upgrade yesterday.
I can get OS utilities up using CMD R or holding the shift key (eventually), but if I simply then reinstall the OS will it not loose everything on my drive? I do have it backed up on Time Machine? What a nightmare - Apple Support does suck. I am not paying £25 for them to call me to tell me how to fix a bug in their OS software upgrade. Any help
Also does anyone know if it is possible to use time machine to go back to Snow Leopard? I have wasted much of the day on this now
Cheers
Simon -
How to read particular Sector and Block in Mifare 1k through Java?
Hi Friends..
Do you know how to read particular Sector and Block in Mifare 1K through Java?..
I've created the simple application that read data from Mifare 1K, but i've problem when i want to read the other sectors and blocks..
i tried to read the blocks by using this APDU command :
FF B0 00 00 10 //read data in Sector 0 and Block 0
FF B0 00 01 10 //read data in Sector 0 and Block 1
FF B0 00 02 10 //read data in Sector 0 and Block 2
FF B0 00 03 10 //read data in Sector 0 and Block 1How to read the other sectors and blocks?..
I've tried to read data in Sector 1 and Block 5, so i tried to send this APDU command : FF B0 01 05 10, but i got this error : *6986*
Actually, it doesn't matter if i use MifareWnd, but i want to create my own application that Read/Write From/into Mifare 1K..
Please help me regarding this..
Thanks in advance..
Edited by: Leonardo_Carreira on Mar 31, 2010 2:47 AM
Edited by: Leonardo_Carreira on Mar 31, 2010 2:50 AMHi Sidd,
You should check out the Example Finder under Hardware Input and Output»IMAQ»Signal Input and Output for examples of triggering in framegrabbers.
Stephen Meserve
National Instruments -
I started downloading an update for iphoto and imovie without realizing how big the file was and I really don't want these updates because I probably won't use them. I've paused the updates but don't know how to cancel them. Please let me know how to do so.
Hide the purchase in your account and there should be nothing more from it.
http://support.apple.com/kb/HT4919 -
Show progress bar before loading the applet or application
hi ,
My application size is large and take some time to load . Now i want that to show progress bar . how can i do this .Please Help me
sorry for my english.
ThanksDo everything in a seperate thread. Create a progress bar in the main thread, then create a new thread for initializing your app. Once the init is done, hide the progress bar and make your app visible.
-
Show Progress Bar while Accessing data from Server
Hi,
I need a Progress bar to be displayed when my application triggers database to backup, As the data would be large progress bar makes sense to display the time span.
I need a progress bar in place to show the progress of the task,
Can anyone suggest me how to do this? This should be shown when i backup my database from WPF.
I have code written for server side and just need a progress bar and timer.
Thanks,
Shreyas MYou could use a BackgroundWorker. There is a complete code sample available on MSDN here:
https://msdn.microsoft.com/en-us/library/cc221403(v=vs.95).aspx. You do the long-running work, i.e. the actual backup, in the DoWork event handler.
Note that you will need to report the progress (by calling the ReportProgress method of the BackgroundWorker) and calculate the total time it will take to complete the backup operation yourself.
It might be easier to just display some "waiting" element and no progress bar during the time it takes for the operation to complete:
<!-- replace this with any element like for example an Image -->
<TextBlock x:Name="loadingElement" Visibility="Collapsed">please wait...</TextBlock>
loadingElement.Visibility = System.Windows.Visibility.Visible;
System.Threading.Tasks.Task.Factory.StartNew(() =>
//call your backup method here (this code is being run on a background thread....
.ContinueWith((t) =>
loadingElement.Visibility = System.Windows.Visibility.Collapsed;
}, System.Threading.CancellationToken.None, TaskContinuationOptions.None, TaskScheduler.FromCurrentSynchronizationContext());
After all you probably don't know how long time it will take for the method to complete, right? If you want to display a ProgressBar, the backup method should report the progress somehow. If you just call a method and wait for it to complete, you have no
idea of how long time it will take for the method to return. You will then have to estimate the actual time and then increase the value of the progress bar accordingly.
There is no way to find out before hand exactly how long time it will take until a method returns so it is the responsibility of the (backup) method to report to the caller how long time it needs and how long time is left until it is done. Far from all API:s
support reporting progress.
As you see in the BackgroundWorker example on MSDN, you could call the ReportProgress once in each iteration of a loop but if there is no loop in your Backup method you better just display a busy indicator without a progress bar since you don't know anything
about the progress anyway.
Edit: You could of course also display a ProgressBar element with its IsIndeterminate set to True. Just replace the TextBlock and use the sample code above:
<ProgressBar x:Name="loadingElement" IsIndeterminate="True" Height="50"/>
Setting this property to true is useful when you don't know how long time the operation will take:
https://msdn.microsoft.com/en-us/library/system.windows.controls.progressbar.isindeterminate(v=vs.110).aspx
Hope that helps.
Please remember to mark helpful posts as answer to close your threads and then start a new thread if you have a new question. Please don't ask several questions in the same thread. -
I get a black and white logo and a progress bar after upgrade ipad2 5.01
i get a black and white logo and a progress bar after upgrade ipad2 5.01
See this page : http://support.apple.com/kb/HT4097 - it covers :
iPad stops responding, showing the Apple logo with no progress bar or a stopped progress bar, for over ten minutes. -
Show Progress Bar while only on Page Load.
Hi Experts,
I want to show progress bar every time when page loads.
Progress bar is coming on the page. but it is not going off after page is loaded.
Below is the code which i added for the Progress bar.
//written on Header Text of Page
<script type="text/javascript">
<!--
function html_Submit_Progress(pThis){
$x_Show('AjaxLoading');
window.setTimeout('$s("AjaxLoading",$x("AjaxLoading").innerHTML)', 100);
//-->
</script>
//written on footer text of Page
<style> #AjaxLoading{padding:5px;font-size:18px;width:200px;text-align:center;left:20%;top:20%;position:absolute;border:0px solid #666;}
</style>
<div id="AjaxLoading" style="display:none;"><br /><img src="#APP_IMAGES#progress_bar.gif" id="wait" /></div>
//called the function Execute on Page Loads
html_Submit_Progress(this);Progress bar is continuously showing on the page after page is loaded.
I want only to show only page loads.
Please help me .
Apex Version : Apex 4.1
DB Version : 10g
Regards,
JitendraHide the loader element when the page has loaded. Put this in the javascript section
$(document).ready(function(){ $x_Hide('AjaxLoading'); });Or put it in the page load section
$x_Hide('AjaxLoading');Or create a dynamic action which fires on page load, select a hide action, and use a jQuery selector to target '#AjaxLoading' as an affected element.
Maybe you are looking for
-
E-Mail Array - Showing Up As Blank.
Hey Again.. So I'm now trying to e-mail a log of some script actions, which include an array of data that was processed, however it seems that while I can display the data with a write-host command, I cannot e-mail it? In this one I am trying to load
-
Query taking lot of time to execute..
Hi, I have a very complecated query which I am executing using JDBC. The query has an insert statement. This query takes 15 mins to complete. I'm running the query as stand alone java program. Can some one have some suggestions what is the best way t
-
Using windows 8.1 and outlook 2013 with iCloud Outlook Add-in so that my iPhone 5 will sync with outlook. Now reminders work on iPhone 5, but don't work in outlook 2013. Help, I've tried everything I can think of or found on the internet.
-
Grouping of customer invoices based on document currency
Dear All, In an intercompany scenario, documents would be posted in different currencies to the inter company customer. For example there are 10 invoices posted to this customer. out of the 10 invoices, 4 invoices are posted in USD, 3 are posted in E
-
Still haven't been able to get Hotmail back now notice battery life is considerably shorter. Anyone else notice this?