Problem in creating progress bar in form6i
dear all
how are you?
i created a progress bar but i face a problem.
in the when button pressed trigger i write this
declare
cursor MY_cur is
select col1,col2,col3
from base_table;
vWIDTH number :=0;
vSTEP NUMBER := 0;
begin
SELECT COUNT(1)
INTO vROWS
FROM base_table;
vSTEP := 300 / vCOUNT;
show_view('progress_bar_stack');
for i in MY_cur is
loop
insert int my_tab(c1,c2,c3)
values(i.col1,i.col2,i.col3);
set_item_property('progree_item',width,width+vSTEP);
synchronize;
end loop;
end;
I ASK IS THIS A GOOD WAY TO CREATE A PROGRESS BAR OR NOT . AND IS THERE ANOTHE WAY TO CREATE A PROGRESS OTHER THAN THIS.
PLEASE IF YOU HAVE A WAY , WRITE IT .
TAREK FATHI
2005 05 31
my way of implementig a progress bar is:
window wn_pbar with canvas cn_pbar and a button bt_pbar. The Button has a width of 1 pixel and max 300.
now I have a procedure pbar.init (P_<wn-name>, P_<max-value>) which writes a window-header in the wn_pbar and a max-value in a package-variable.
another function named pbar.next (P_<value> DEFAULT 1) increments an internal variable act-value. This act-value is initially 0 and can increment to max-value. The act-value/max-value is the percentage of the width of the button. e.g. 1200/2000 means 60% -> 60% of width 300 = 180 width for the button.
another procedure pbar.destroy deletes the variables, closes the window wn_pbar and goes back to the item, where the focus was before the pbar started.
with this steps you can easily group these objects in a objectgroup and inherit it to all forms you need a pbar. the sourcecode is still in a library pbar.pll which you have to attach.
it looks like your functionality, but you can use it anywhere you need it.
try it
Gerd
PS: This is a very useful method for forms client/server. In the web you have to check, that the button not refreshes to open.... the more network-roundtrips, the fewer performance...
Similar Messages
-
How to create progress bar?
pls,can anyone tell me? how to create progress bar?
thanks,
screen410099it is well documented how to create progressbars on page 173 in Solutions.pdf
also you can find sample code in InDesign SDK\sources\sdksamples
Regards
Bartek -
How to create progress bar in web page!!!
Dear,
I do not know how to create progress bar in web page?
Please show me the way to solve it.
Best regards,
HuyGod your lucky/lazy
import java.awt.*;
import java.awt.event.*;
import java.applet.*;
import javax.swing.*;
import java.util.*;
import java.io.*;
public class ProgressBar extends Applet
private boolean isStandalone = false;
private int width;
private int height;
private double percentComplete;
private double fundsTarget;
private double fundsRaised;
private Properties values;
private String propertiesFile;
private JPanel jPanel1 = new JPanel();
private JProgressBar PB_FUNDS_PROGRESS = new JProgressBar();
private GridLayout gridLayout1 = new GridLayout();
private BorderLayout borderLayout1 = new BorderLayout();
private JPanel jPanel2 = new JPanel();
private JLabel jLabel1 = new JLabel();
private JLabel jLabel2 = new JLabel();
private JLabel jLabel3 = new JLabel();
private GridBagLayout gridBagLayout1 = new GridBagLayout();
private JPanel jPanel3 = new JPanel();
private JLabel jLabel4 = new JLabel();
//Construct the applet
public ProgressBar()
//Initialize the applet
public void init()
try
jbInit();
catch(Exception e)
e.printStackTrace();
//Component initialization
private void jbInit()
throws Exception
fundsTarget = new Double( 100 ).doubleValue();
fundsRaised = new Double( 50 ).doubleValue();
PB_FUNDS_PROGRESS.setBackground(Color.green);
PB_FUNDS_PROGRESS.setForeground(Color.red);
this.setLayout(gridLayout1);
jPanel1.setLayout(borderLayout1);
jPanel2.setLayout(gridBagLayout1);
jPanel1.setBackground(Color.white);
jPanel2.setBackground(Color.white);
jPanel3.setBackground(Color.white);
jLabel2.setBackground(Color.white);
jLabel1.setBackground(Color.white);
jLabel3.setBackground(Color.white);
jLabel4.setText(" ");
jLabel1.setText(" ");
jLabel2.setText(" ");
jLabel3.setText(" ");
this.setBackground(Color.white);
this.add(jPanel1, null);
jPanel1.add(PB_FUNDS_PROGRESS, BorderLayout.CENTER);
jPanel1.add(jPanel2, BorderLayout.SOUTH);
jPanel2.add(jLabel2, new GridBagConstraints(1, 0, 1, 1, 0.0, 0.0,
GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(5, 0, 5, 0), 0, 0));
jPanel2.add(jLabel1, new GridBagConstraints(2, 0, 1, 1, 0.0, 0.0,
GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(5, 150, 5, 5), 0, 0));
jPanel2.add(jLabel3, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0,
GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(6, 5, 4, 150), 0, 0));
jPanel1.add(jPanel3, BorderLayout.NORTH);
jPanel3.add(jLabel4, null);
propertiesFile = this.getCodeBase().getFile().replaceAll("%20", " ")+"funds.properties";
System.out.println("Properties file at " + propertiesFile);
values = new Properties();
try
values.load(new FileInputStream(propertiesFile));
fundsTarget = new Double( values.getProperty("TARGET", "100").toString() ).doubleValue();
fundsRaised = new Double( values.getProperty("RAISED", "50").toString() ).doubleValue();
System.out.println("target: " + fundsTarget + " raised: " + fundsRaised);
catch (IOException ioe)
System.err.println(ioe.getMessage());
percentComplete = (fundsRaised/fundsTarget)*100;
System.out.println(percentComplete);
//Start the applet
public void start()
PB_FUNDS_PROGRESS.setMaximum(new Double(fundsTarget).intValue());
PB_FUNDS_PROGRESS.setMinimum(0);
repaint();
//Stop the applet
public void stop()
public void paint(Graphics g)
Graphics2D g2 = (Graphics2D)g;
PB_FUNDS_PROGRESS.setValue(new Double(fundsRaised).intValue());
String percent = Double.toString(percentComplete).substring(0, 4);
jLabel4.setText("Currently At " + percent + "%");
jLabel1.setText("100%");
jLabel2.setText("50%");
jLabel3.setText("0%");
//Destroy the applet
public void destroy()
public String getAppletInfo()
return "Funds progress applet by A really nice person";
} -
I've have a problem with the progress bar of my ipod. I bought a 5th generation ipod about 8-9 months ago. Now its progress bar stuck so it only shows the 5 dots. It doesn't show both scrubber bar and song time bar. When I press the center button, the 5 dots dissappear from the screen and then reappear but it doesn't show the other bars. Do you know what is the problem and How can I fixed it?
have you tried resetting ipod, cause as far as i know, this is sometimes just a temporary glitch, mine does this.
-
Problem with the progress bar in swings
Hi all,
I need to show a progress bar till another window opens up in swings.Below is the code i used to show the progress bar.My problem is i am able to get the dialog box where i have set the progress bar but i cldnt get the progress bar.But after the specified delay,another window gets loaded.
Plz tell me how to show a progress bar till another window loads.Any help is greatly appreciated :-)
//Show the progress bar till the AJScreens loads.
// Create a dialog that will display the progress.
final JDialog dlg = new JDialog(this, "Progress Dialog", true);
JProgressBar dpb = new JProgressBar();
dpb.setVisible(true);
dpb.setStringPainted(true);
dpb.setBounds(70,60,150,10);
dlg.getContentPane().setLayout(new BorderLayout());
dlg.getContentPane().add(BorderLayout.CENTER, dpb);
dlg.getContentPane().add(BorderLayout.NORTH, new JLabel("Progress..."));
dlg.setDefaultCloseOperation(JDialog.DO_NOTHING_ON_CLOSE);
dlg.setSize(300, 75);
dlg.setLocationRelativeTo(this);
// Create a new thread and call show within the thread.
Thread t = new Thread(new Runnable(){
public void run() {
System.out.println("atleast comes here --->");
dlg.show();
// Start the thread so that the dialog will show.
System.out.println("Gonna start the thread --> ");
t.start();
System.out.println("Thread started --> ");
// Perform computation. Since the modal dialogs show() was called in
// a thread, the main thread is not blocked. We can continue with computation
// in the main thread.
for(int i =0; i<=100; i++) {
// Set the value that the dialog will display on the progressbar.
System.out.println("i ----------> "+i);
dpb.setVisible(true);
dpb.setValue(i);
try {
Thread.sleep(25);
} catch (InterruptedException e) {
e.printStackTrace();
// Finished computation. Now hide the dialog. This will also stop the
// thread since the "run" method will return.
dlg.hide();regards,
kani.Yeah i have tried that also.But no hope.
My problem is am able to get the dialog box but not the progressbar,after the specified delay the dialog box goess off and the new window loads up.
the progress bar is not getting displayed..that is my problem..
can u plz help me out. -
Hi. Do you know how to create a progress bar ?
In my JSP, i'm going to show some numbers and a progress bar telling the user how many % of a job (s)he has done. I'm doing a regular refresh and getting the %-number from a backend-method.
I'll be very thankful getting some advice.This is just one of those posts that is just asking for some sarcastic remarks... I'll pass this time.
Advice about what? Only post here if you have a problem you can't solve yourself. If you check the other posts, another one about this very same topic has some replies, I suggest checking it out. -
Creating progress bar in oracle forms 6i
Hii
I have a push-button (pb_submit)
when when_button_pressed trigger fired...I have a database main procedure to be called.
inside that procedure i am calling 25 procedures.
and all 25 Procedures will be executed sequencially.
I want to use a Progress bar...
so that user will get to know hw much % completed
if main procedure(total 25 procedures inside) is completed successfully then progress bar should show 100%
like wise if 1 procedure completed then 4 %
if 2 procedure completed then 8 %
total 25 procedure completed then 100%
how to implement this logic.
and if in between 1 procedure failed then progress bar should stop at that incident.
and it should start from dat instant only if again that failed procedure run successfully.
should i post my codes here.ok...here is the codes written in the button(when_button_pressed trigger)
DECLARE
l_Last_Record NUMBER := 0 ;
l_Prg_Process_Id NUMBER ;
l_Prg_Process_Id_1 NUMBER ;
l_Prg_Id VARCHAR2(15) ;
l_Alert_Result VARCHAR2(1) ;
l_Validation_Msg VARCHAR2(500) ;
l_Path VARCHAR2(240) ;
File_Name VARCHAR2(250) ;
l_file_exists BOOLEAN ;
l_file_len NUMBER ;
l_blocksize BINARY_INTEGER;
o_Status VARCHAR2(1) ;
o_User_Selection_Ca1 VARCHAR2(1) ;
o_User_Selection_Ca2 VARCHAR2(1) ;
o_User_Selection_Ca3 VARCHAR2(1) ;
CURSOR C_Validation IS
SELECT Cpv_Validation_Type ,
Cpv_Validation_Input ,
Cpv_Validation_Action ,
Cpv_Validation_Active_Flag
FROM Config_Process_Validation
WHERE Cpv_Program_Id = l_Prg_Id
AND Nvl(Cpv_Validation_Active_Flag, 'N') = 'Y'
ORDER BY Cpv_Validation_Sequence;
BEGIN
SELECT RV_HIGH_VALUE
INTO l_Path
FROM CG_REF_CODES
WHERE Rv_Domain = 'DERV_DATA_FILES'
AND Rv_Low_Value = 'DRV_FILES';
Go_Block('Process');
Last_Record;
l_Last_Record := :System.Cursor_Record;
First_Record;
FOR i IN 1 .. l_Last_Record
LOOP
Go_Record(i);
l_Prg_Id := :Prog_Id;
IF NVL(:Process.Cb_Select,'N') = 'Y' THEN
:Query.Current_Status := 'Current Process: ' || :Process.Prog_Desc;
Synchronize;
--Validate if program is already in running mode or already completed
SELECT NVL(MAX(DECODE(Prg_Status, 'R', 999999999, 'C', Prg_Process_Id)), 0)
INTO l_Prg_Process_Id
FROM Program_Status,
Parameter_Master
WHERE Prg_Dt = Pam_Curr_Dt
AND Prg_Cmp_Id = l_Prg_Id
AND Prg_Exm_Id IN ('ALL', :Query.Exchange)
AND Prg_Status IN ('R', 'C');
IF l_Prg_Process_Id = 999999999 THEN
P_Show_Alert(l_Prg_Id||' Process is already running.','A',l_Alert_Result);
--RAISE Form_Trigger_Failure;
ELSIF l_Prg_Process_Id > 0 AND :Execution_Flag <> 'M' THEN
P_Show_Alert(l_Prg_Id||' Process already run. It can not run twice. ','A',l_Alert_Result);
RAISE Form_Trigger_Failure;
END IF;
--Validate mandataory process, process specific validation and message
FOR i IN C_Validation
LOOP
IF i.Cpv_Validation_Type = 'MANDATORY' AND i.Cpv_Validation_Active_Flag = 'Y' THEN
SELECT Count(1)
INTO l_Prg_Process_Id_1
FROM Program_Status,
Parameter_Master
WHERE Prg_Dt = Pam_Curr_Dt
AND Prg_Cmp_Id = i.Cpv_Validation_Input
AND Prg_Exm_Id IN ('ALL', :Query.Exchange)
AND Prg_Status = 'C'
AND Prg_Process_Id IN (SELECT MAX(Prg_Process_Id)
FROM Program_Status,
Parameter_Master
WHERE Prg_Dt = Pam_Curr_Dt
AND Prg_Cmp_Id = i.Cpv_Validation_Input
AND Prg_Exm_Id IN ('ALL',:Query.Exchange)
AND Prg_Status = 'C');
IF l_Prg_Process_Id_1 = 0 THEN
P_Show_Alert(i.Cpv_Validation_Input||' Mandatory Process NOT completed successfully.','A',l_Alert_Result);
RAISE Form_Trigger_Failure;
END IF;
ELSIF i.Cpv_Validation_Type = 'MESSAGE' THEN
P_Show_Alert(i.Cpv_Validation_Input, i.Cpv_Validation_Action, l_Alert_Result);
IF l_Alert_Result = 'N' THEN
RAISE Form_Trigger_Failure;
END IF;
ELSE
--- OTHER PROCESS SPECIFIC VALIDATION
l_Validation_Msg := Null;
Pkg_Process_Automation.P_Pre_Process_Validation(l_Prg_Id,
:Query.Exchange,
:Query.Segment,
i.Cpv_Validation_Type,
l_Validation_Msg);
IF l_Validation_Msg IS NOT NULL THEN
P_Show_Alert(l_Validation_Msg,i.Cpv_Validation_Action,l_Alert_Result);
IF l_Alert_Result = 'N' THEN
RAISE Form_Trigger_Failure;
END IF;
END IF;
END IF;
END LOOP;
--Validating whether file exists or not
IF :Process.File_Input_Format IS NOT NULL THEN
Pkg_Process_Automation.P_Gen_File_Name(:Process.File_Input_Format,
:Query.Exchange,
:Query.Segment,
File_Name);
Utl_File.FGetAttr(
location => l_Path,
filename => File_Name,
fexists => l_file_exists,
file_length => l_file_len,
block_size => l_blocksize);
IF NOT l_File_Exists THEN
--MESSAGE('The file does not exist.');
P_Show_Alert('The file does not exist.','A',l_Alert_Result);
RAISE Form_Trigger_Failure;
END IF;
END IF;
Set_Application_Property(Cursor_Style, 'BUSY');
SET_ITEM_INSTANCE_PROPERTY('Process.Status', CURRENT_RECORD, VISUAL_ATTRIBUTE, 'VA_YELLOW');
:Process.Status := 'R';
Synchronize;
IF l_Prg_Id = 'DTMBCORP' THEN
P_Show_Alert('Do you want to do Final Settlement Corporate Action ?(Y/N)','I',l_Alert_Result);
o_User_Selection_Ca1 := l_Alert_Result;
P_Show_Alert('Enable Round-To-Tick ? (Y/N)','I',l_Alert_Result);
o_User_Selection_Ca2 := l_Alert_Result;
--P_Show_Alert('Do you want to Rollback ? (Y/N)','I',l_Alert_Result);
--o_User_Selection_Ca3 := l_Alert_Result;
END IF;
---- Calling of Main Procedure
Pkg_Process_Automation.P_Run_Process(l_Prg_Id,
:Query.Exchange,
:Query.Segment,
:Query.Entity_Id,
File_Name,
o_User_Selection_Ca1,
o_User_Selection_Ca2,
o_User_Selection_Ca3,
o_Status);
IF l_Prg_Id = 'DTMBCORP' THEN
P_Show_Alert('Do you want to Rollback (Y/N)','I',l_Alert_Result);
o_User_Selection_Ca3 := l_Alert_Result;
Pkg_Process_Automation.P_Run_Process(l_Prg_Id,
:Query.Exchange,
:Query.Segment,
:Query.Entity_Id,
File_Name,
o_User_Selection_Ca1,
o_User_Selection_Ca2,
o_User_Selection_Ca3,
o_Status);
END IF;
Set_Application_Property(Cursor_Style, 'DEFAULT');
Message(o_Status);
Message(o_Status);
IF o_Status = 'Y' THEN
:Process.Status := 'C';
SET_ITEM_INSTANCE_PROPERTY('Process.Status', CURRENT_RECORD, VISUAL_ATTRIBUTE, 'VA_GREEN');
ELSE
:Process.Status := 'E';
SET_ITEM_INSTANCE_PROPERTY('Process.Status', CURRENT_RECORD, VISUAL_ATTRIBUTE, 'VA_RED');
END IF;
SELECT Prg_Log_File
INTO :Process.Log_File
FROM Program_Status ,
Parameter_Master
WHERE Prg_cmp_id = l_Prg_Id
AND Prg_dt = Pam_Curr_Dt
AND (Prg_Cmp_Id,Prg_Strt_Time) IN (SELECT Prg_Cmp_Id,max(Prg_Strt_Time)
FROM Program_Status b,
Parameter_Master
WHERE Prg_Cmp_Id = l_Prg_Id
AND Prg_Dt = Pam_Curr_Dt
GROUP BY Prg_Cmp_Id);
Synchronize;
Set_Application_Property(Cursor_Style, 'DEFAULT');
END IF;
END LOOP;
:Query.Current_Status := '';
Synchronize;
EXCEPTION
WHEN OTHERS THEN
:Query.Current_Status := 'Error found';
Set_Application_Property(Cursor_Style, 'DEFAULT');
MESSAGE(sqlerrm );
--MESSAGE(sqlerrm );
Synchronize;
END;
inside p_run_process there are other 25 database procedures.
help me !!!Create a procedure as like,
PROCEDURE show_progress(x number) IS
y number;
BEGIN
set_item_property('PART_DISP',VISIBLE,PROPERTY_TRUE);
set_item_property('PART_DISP',WIDTH,x);
set_item_property('PART_DISP',VISIBLE,PROPERTY_TRUE);
END;
PART_DISP is a display_item.
After completion of each procedures call the above procedure like,
cntr:=cntr+1;
show_progress(round(cntr/25*287,0));
synchronize;
where cntr is a counter it will be incremented 1 to 25, the constant value 287 is the maximum width of PART_DISP (you can change for your need).
The local variable cntr's initial value is 0 and maximum value is 25.
cntr part_disp % of progress
1
11.48
4
2
22.96
8
3
34.44
12
4
45.92
16
5
57.4
20
6
68.88
24
7
80.36
28
8
91.84
32
9
103.32
36
11
126.28
44
12
137.76
48
13
149.24
52
14
160.72
56
15
172.2
60
16
183.68
64
17
195.16
68
18
206.64
72
19
218.12
76
20
229.6
80
21
241.08
84
22
252.56
88
23
264.04
92
24
275.52
96
25
287
100
Hope this will help. -
How to Create Progress Bar in SAP
Hi!
I need to know how to create a progress bar in Sap Business One with VB.Net to Show a Scheduling Status.Hi Parag,
The code you need to create a progress bar is:
Dim Progress as Integer
Dim oProgressBar As SAPbouiCOM.ProgressBar
oProgressBar = oApplication.StatusBar.CreateProgressBar("YOUR_TEXT", oRecordset.RecordCount, True)
oProgressBar.Text = "YOUR_TEXT"
and for each record:
Progress += 1
oProgressBar.Value = Progress
When all is finished
oProgressBar.Stop()
Regards,
vanesa -
Syncing problem - showing only progress bar
The syncing keeps showing the progress bar but not actually showing whats moving onto the iphone, like the song, video, etc. I believe it isnt doing anything because it takes forever 4+ hrs and i've only selected about 200mp3 and 500jpegs.
How can I find out the problem here?Carolyn Samit wrote:
Login to another user account on your Mac. Try Safari there. If you see the same thing there then log back onto your admin account, launch Disk Utility (Applications/Utilities). Select MacintoshHD in the panel on the left then select the FirstAid tab. Click: Verify Disk.
Haven't done the (obvious) first step yet, DU reports all is well.
Also, check Safari / Preferences - Extensions. If you have any installed, turn that OFF. Quit Safari, then relaunch Safari to see if it makes a difference.
No such item in Safari Preferences (v 4.1.3)
You may not have a third party toolbar add on but follow the instructions here just in case there's a Safari third party plugin installed.
No toolbars, but several plugins in the internet plugins folders, one in the User/Library, the rest in the system Library. I'm suspecting one of the recent ones, & will try to get to checking it tonight.
Make sure there's enough free space on the startup disk. Right or control click the MacintoshHD icon. Click Get Info. In the Get Info window you will see Capacity and Available. Make sure you always have a minimum of 15% free disk space.
Another probable cause, all right. I'm struggling to get the seemed-big-at-the-time 60GB drive back up to 10% . Ah well, must press on with that quest, I guess.
Several good leads here. Will post again after checking them out.
Thanks,
Barry -
Problem with a progress bar for downloading attachment
I display the progress bar for downloading attachments and it works fine … but when I am downloading some attachments I get the exception message:
Exception in thread "main" com.sun.mail.util.DecodingException: BASE64Decoder: Error in encoded stream: needed 4 valid base64 characters but only got 1 before EOF, the 10 most recent characters were: "Q3w5ilxj2P"
I found the explanation:
Certain IMAP servers do not implement the IMAP Partial FETCH
functionality properly. This problem typically manifests as corrupt
email attachments when downloading large messages from the IMAP
server. To workaround this server bug, set the
"mail.imap.partialfetch"
property to false. You'll have to set this property in the Properties
object that you provide to your Session.
http://java.sun.com/products/javamail/NOTES113.txt
So I turned off partial fetch:
Properties props = System.getProperties();
props.setProperty("mail.store.protocol", "imaps");
props.setProperty("mail.imaps.partialfetch", "false");
Session session = Session.getDefaultInstance(props, null);
Store store = session.getStore("imaps");
store.connect("imap.gmail.com", "<username>","<password>");this solved the problem ….however the method getInputStream() from the Part class blocks the thread until the attachment is completely downloaded and it is impossible to get the information about the number of bytes which have been already downloaded from mailbox.
Without this information it is impossible to display the progress bar. So is there a way to obtain this information and display the progress bar?
Edited by: 911161 on 2012-01-31 10:55Try the answer I provided to your post on stackoverflow.com:
http://stackoverflow.com/questions/9086700/how-to-displaly-progress-bar-for-downloading-attachment -
ITunes problems after upgrading - progress bar "updating library"
after upgrading iTunes to the latest version I open iTunes and a progress bar appears "updating library". After a few seconds it stucks and I do not get a response at all. I have to cancel the program in the Windows Task Manager. Any help is greatly appreciated. Cheers
You might try rebooting your computer. Select Shutdown and let the computer turn off. Then start it up again and see if the problem is corrected.
-
Problem with "transparent" progress bar
i am trying to implement a progress bar that monitors a long task. I used the example codes given in the swing tutorial and modified a little to make the progress bar indeterminate.
However, when the progress bar pops up, it is transparent, except for its title! I have search the forum and tried all the solutions given for this similar problem. My codes are already threaded.
Here's the excerpt of my codes. I used the LongTask, SwingWorker from the Swing tutorial and adapted ProgressBarDemo to ProgressBarA (only difference is indeterminate).
uploadData();
public boolean uploadData() {
boolean uploadSuccess = false;
final SomeLongTask someLongTask = new SomeLongTask(dataLoader);
final Thread pBarThread = new Thread(new Runnable() {
public void run() {
JFrame pBar = new ProgressBarA(someLongTask);
pBarThread.setPriority(Thread.MAX_PRIORITY);
pBarThread.start();
// this loop hopes to serve as a blocking,
// which apparently did not help.
while (!someLongTask.done()) {
pBarThread.join();
System.out.println("main thread yields and sleeps ");
Thread.yield();
Thread.sleep(1000);
uploadSuccess = someLongTask.getSuccess();
// some more post processing here.
return uploadSuccess;
class SomeLongTask extends LongTask {
DataLoader loader;
boolean success;
boolean completed;
public SomeLongTask(DataLoader l) {
loader = l;
lengthOfTask = 1000;
indeterminate = true;
public Object actualTask() {
statMessage = "Loading...";
success = loader.upload();
stop();
// return value is not important here.
// Just return any dummy value.
return new String("ok");
public boolean getSuccess() {
return success;
I suspect that after the pBarThread started, the main thread proceeds so fast that the progressBar frame cannot show up properly. But i am not very sure on on to thread the post processing part that should wait for the someLongTask to finish. The blocking loop did not seem to help either. :(
Pls kindly advise.
Regards,
kaikithave you tried resetting ipod, cause as far as i know, this is sometimes just a temporary glitch, mine does this.
-
Creating Progress Bar for File Upload
Hi, I'm trying to implement a progress bar indicator for a file upload in WebDynpro, without very good results.
I'm using a fileupload UI element, a TimerTrigger and a ProgressIndicator UI elements for this purpose.
It seems that using the fileupload UI element the iview is locked during the file upload, and therefore it prevents for the timer triggered action to be performed (this action updates the progress bar).
Additionally I havent been able to capture the transfered bytes from the upload. Maybe I'm using the wrong elements?
How could I achieve this. Has anyone done it?
I would really appreciate all the help I could get.
Homer VargasHi,
Can anyone please tell me the way to upload file from client system to server.
The code i have is as follows:-
Jsp:-
function saveImage(){
//projectname.javafilename
var strStatus = "save";
document.saveImageForm.action="/irj/servlet/prt/portal/prtroot/TestXML.TextImageLink?frmstatus="+ strStatus;
document.saveImageForm.method="post";
document.saveImageForm.submit();
<form name="saveImageForm" encrypt="multipart/form-data">
<table width="388" cellpadding="1" cellspacing="1" bgcolor="#F0F0F0" border='0'>
<tr>
<td><font color="blue" face="verdana" size="2">IMAGE:</font></td><td><input id="image" type="file" name="image" value=""/></td>
</tr>
<tr>
<td><input type="submit" name="submit" value="Submit" onclick="saveImage();"/></td>
</tr>
</table>
</form>
now i am not getting what to write in java file
using IPortalComponentRequest.
Using the jsp file upload in tomcat is working but here it is not working
please help meee
Thanks in Advance
Regards
Sirisha -
Hello:
I have tried installing Snow Leopard via the installation disc on a Macbook Pro (2007) with an Intel Core 2 Duo, but I the installation has failed more than 5 times.
I have first formatted and partitioned the internal hard disk with Mac Os Extended Journal format.
Once the installation starts, it starts without a problem unti lthe progress bar gest until half completed then a screen asking for a Computer Restart shows up.
It asks to press the power button for some time until it the computer shuts down and then, press again to turn it on.
Once turned on, the installation disc gets readed, the installation screen appears again and asks again to start the whole installation process form the beginning.Then you have a Hardware Problem.
Your system is Crashing part way through the install and Re-Booting because of the crash.
Could be the drive itself or it could be some other hardware part in your system. Like the RAM.
To check if it is the internal drive connect an External drive to the system by USB and do the install on that external. If the install completes then it more then likely the drive is bad. If it crashes again then it is more then likely some other piece of hardware in your system. -
Running Progress Bar in orcale forms
Hello Experts, I am using oracle weblogic 10.3.5 and oracle forms 11g at windows 7.I have need to display a progress bar.Upon finishing the progress bar There should be call a program unit procedure in oracle forms. thank You regards aaditya.
Hi Aaditya,
Please read the following discussion, I think its helpful to you.
Re: creating progress bar in oracle forms 6i
Maybe you are looking for
-
Mobile Work-Station for SAP Business One
Hello Everyone As I am aware that most of you have seen already various mobile solutions that integrate to SAP B1, Amodat Mobile Work-Station is currently the only solution that offers a complete mobile work-station for the four main field functions
-
New photo upload missing after I updated to iPhoto 11
Hi and Help! I was prompted to update to iPhoto 11 on the weekend (don't know why now particularly, I'm in iPhoto all the time). So I followed the instructions, library updated, all existing events and albums are there. I uploaded some more pictures
-
How to create table form in scripts
hi experts how to display elements in table format with cloumn headings and all.if anybody can answer it ill be help ful.
-
Where can I download Quicktime for windows?
Where can I download the free Quicktime for windows? All I found on Apple's site was Macintosh versions.
-
i tried updating my wifes phone on saturday morning. my wireless modem kept crashing and it restored her phone and it is blank. i cannot get it to upload anything so the phone is useless. can someone help