ProgressBar not getting updated properly

I am trying to design a multiple file uploader in the
following code
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="vertical" creationComplete="init()">
<mx:Script>
<![CDATA[
import mx.utils.ArrayUtil;
import mx.collections.ArrayCollection;
import mx.controls.Alert;
import mx.events.ListEvent;
private var _fileReferenceList:FileReferenceList;
[Bindable]
private var _arrUploadFiles:ArrayCollection;
private var index:Number;
private var prev_index:Number;
private var flag:Number=0;
private var buttonType:Number=0;
private function init():void
_fileReferenceList = new FileReferenceList();
_arrUploadFiles = new ArrayCollection();
_fileReferenceList.addEventListener(Event.SELECT,
selectHandler);
dataGrid.dataProvider=_arrUploadFiles;
trace("in init"+_arrUploadFiles);
private function selectHandler(event:Event):void
{ var arrFoundList:Array = new Array();
for (var i:Number = 0; i < _arrUploadFiles.length; i++)
{ for (var j:Number = 0; j <
_fileReferenceList.fileList.length; j++)
{ if (_arrUploadFiles
.name == _fileReferenceList.fileList[j].name)
arrFoundList.push(_fileReferenceList.fileList[j].name);
_fileReferenceList.fileList.splice(j, 1);
j--;
var fileList:Array = _fileReferenceList.fileList;
var file:FileReference;
if (fileList.length >= 1)
for (var k:Number = 0; k < fileList.length; k++)
{ file = FileReference(fileList[k]);
_arrUploadFiles.addItem({name:file.name, size:file.size,
object:file});
trace(_arrUploadFiles);
if (arrFoundList.length >= 1)
Alert.show("The file(s): \n\n• " +
arrFoundList.join("\n• ") + "\n\n...are already on the upload
list. Please change the filename(s) or pick a different file.",
"File(s) already on list");
private function browse(event:MouseEvent):void
//_arrUploadFiles.removeAll();
//_arrUploadFiles.refresh();
var imagesFilter:FileFilter = new FileFilter("Images",
"*.jpg;*.gif;*.png");
_fileReferenceList.browse([imagesFilter]);
private function upload(event:MouseEvent):void
//var _fileList:Array = _fileReferenceList.fileList;
for (var i:Number=0; i<_arrUploadFiles.length; i++)
var urlRequest:URLRequest = new URLRequest("
http://localhost/FileUpload-debug/uploadFile.php");
var file:FileReference = _arrUploadFiles.object;
file.upload(urlRequest,'file');
file.addEventListener(Event.COMPLETE,
uploadCompleteHandler);
private function clearAll(event:Event):void
{ trace("in clear 1"+_arrUploadFiles);
_arrUploadFiles.removeAll();
_arrUploadFiles.refresh();
trace("in clear"+_arrUploadFiles);
init();
trace("again in clear"+_arrUploadFiles);
private function uploadCompleteHandler(event:Event):void
public function
buttonClickHandler(event:MouseEvent,type:Number):void
{ buttonType=type;
flag=1;
public function upClickHandler():void
//Alert.show("button on index"+index+"was clicked");
var urlRequest:URLRequest = new URLRequest("
http://localhost/FileUpload-debug/uploadFile.php");
var file:FileReference = _arrUploadFiles[index].object;
file.upload(urlRequest,'file');
file.addEventListener(Event.COMPLETE,
uploadCompleteHandler);
flag=0;
public function removeClickHandler():void
_arrUploadFiles.removeItemAt(index);
public function handleItemClick(event:ListEvent):void
if(flag && buttonType==0)
index=event.rowIndex;
upClickHandler();
if(flag && buttonType==1)
index=event.rowIndex;
removeClickHandler();
]]>
</mx:Script>
<mx:VBox>
<mx:DataGrid itemClick="handleItemClick(event);"
id="dataGrid" width="500" >
<mx:columns>
<mx:DataGridColumn headerText="File Name"
dataField="name" width="100"/>
<mx:DataGridColumn headerText="Size" dataField="size"
width="30"/>
<mx:DataGridColumn id="Progress" headerText="Progress"
dataField="object" width="200">
<mx:itemRenderer>
<mx:Component>
<mx:HBox verticalAlign="middle">
<mx:ProgressBar id="progress" label="" height="6"
source="{data.object}"/>
</mx:HBox>
</mx:Component>
</mx:itemRenderer>
</mx:DataGridColumn>
<mx:DataGridColumn headerText="Controls"
dataField="object" width="150">
<mx:itemRenderer>
<mx:Component>
<mx:HBox verticalAlign="middle">
<mx:Button
click="outerDocument.buttonClickHandler(event,0)" toolTip="Upload
file(s)" icon="@Embed('assets/application_get.png')"
width="26"/>
<mx:Button
click="outerDocument.buttonClickHandler(event,1)" toolTip="Remove
file(s)" icon="@Embed('assets/delete.png')" width="26"/>
</mx:HBox>
</mx:Component>
</mx:itemRenderer>
</mx:DataGridColumn>
</mx:columns>
</mx:DataGrid>
<mx:HBox width="100%">
<mx:Button label="Browse" click="browse(event)"/>
<mx:Button label="Clear All" click="clearAll(event)"/>
<mx:Spacer width="100%"/>
<mx:Button label="Upload" click="upload(event)"/>
</mx:HBox>
</mx:VBox>
</mx:Application>
Now the code works perfetly fine and file upload progress is
shown properly for the first time, but when clear all button is
used and i choose another set of files for uploading, the progress
bars rendered in the datagrid row of that file show complete
progress already at all those row positions where in previous
operation i had uploaded my files
This is like if i enter 3 files in the list and upload only
first 2 and then press clear list, in next operation when I choose
another 3-4 file, first two progress bars and then everyfourth and
fifth progress bar shows full progress already before uploading
those files.
Please tell me if there's some bug or its an error in coding

This sounds like the recycling issue. As though this binding:
source="{data.object}" is not firing when the underlying item
changes.
I don't use drop-in itemRenderers because they are too hard
to debug. Consider implementing this a a full itemRenderer instead.
That way you can trace or step through the set data() override to
see what is happening.
If you do decide to build a full renderer, do not start from
scratch, but find an example to modify.Google: Alex Harui
itemRenderer recycle.
Tracy

Similar Messages

  • Exchange Mails are not getting updated properly without refreshing

    From couple of days, exchange mails are not getting updated properly without refreshing.
    Kindly suggest.

    Kindly suggest a solution

  • Master Data is not Getting Updated Properly.

    Dear Expert,
    I am trying to pull the data by Info package but The text is not getting updated.
    The Master data object is    0BPARTNER .  To update this Master data , we ghave 2 info packages
    0BPARTNER_ATTR   and    0BPARTNER_TEXT.    But the text is not getting updated ( like the fiels E-mail address, Address 1, Address 2, Address 3, Address 4,.... Phone No,Etc.
    What could be the Reason for this and How can I solve this issue  ?
    Tahnks,
    Utpal

    Hi,
    Could you please check the data in RSA3.
    If everything is there in R/3 side.Then,please check are you giving any
    condition in the infopackage .
    Please run the infopackage without giving any condition.
    Thanks,
    Saveen Kumar

  • On reversal of Invoice the table BKPF not getting updated properly

    Hi
    I have an issue, that when we create the Commercial Invoice, accounting document generated automatically. And after that due to some reason when we reverse the same through  VF11, the accounting document which was created while doing the invoicing not getting updated by "reversed with (STBLG)" field and "reversal Indicator (XREVERSAL) field in the table BKPF.
    However when I test the some scenario in Development and Quality server the same field is getting updated.
    I have already checked the Billing Document Type of SD and accounting document type but found everything in place.
    I am unable to get what is missing,and why this is happening in Production server only.
    Need your input at the earliest.
    Thanks in advance
    Regrads
    AA

    Hi
    thanks to all for their suggestion, the issue resolved with the help of SAP.
    For the forum members information :-
    This is standard system behaviour.
    BKPF-XREVERSAL is only populated/filled in the reversed original
    and in the reversal FI document if BKPF-STBLG and BKPF-STJAH
    are populated/filled in reversed original and reversal FI document.
    BKPF-STBLG and BKPF-STJAH are only populated/filled in reversed
    original and reversal FI document if the new/real cancellation
    procedure (-> with automatic clearing of the open items) is executed,
    and the new/real cancellation procedure is not executed, if an
    open item of the original, to be reversed FI document, has already
    been cleared (-> also see note 309208).
    Regards
    Amitesh Anand
    Edited by: AA on Apr 25, 2009 11:37 AM

  • Portal Activity Report is not getting updated properly

    Hi,
    I have created a test portal activity report with the Reporting type set as Page/iView activity.  I have added five iViews in this including a yahoo search URL iView.  The reporting period interval is set to Fixed Period with the date range that spans for around 10 days.
    The issue is, even after hitting these iViews several times, I don't see the portal activity report getting updated.  Only for the yahoo search, I can see no. of Users as 1 and no. of Hits as 4 as a previous day report (today being friday, I could see thursday's yahoo iView report).
    Here are the pre-liminary settings that I've done:
    1. All the iViews have the 'Monitor Hits' as 'true'.
    2. The Activate Data Collection is set to 'true' in the 'DataCollectionHook' that is available under com.sap.portal.activitydatacollector Service
    3. The properties viz., Activate Portal Activity Report, Gather iView statistics, Page statistics..etc are all set to 'true' in the ActivityReport Service
    4. I could see that the last aggregation time (in GMT) keeps changing every one hour without any problem.
    Any help would be appreciated.
    Thanks in advance!
    Regards,
    Yuvaraj SG

    Hi Raghu,
    I tried as per your suggestion.  At first, I thought that it's working.  But, the report came out only for one day (thursday's report) and there weren't any more reports after that.  So, I don't think this approach is working in my case!  Moreover, for me the requirement is that the iViews have to be in some other portal roles and the Activity Report iView will be in a different portal role.
    So, I am currently checking the SAP Note 1084379 as Sandeep has quoted.
    Thanks for your help!
    Regards,
    Yuvaraj SG
    Edited by: yuvaraj s g on Jul 13, 2009 8:09 PM

  • Vendor data not getting updated properly

    we have recently encountered a couple of issues where
    1) a vendor was unblocked for all purchase org in ECC , but this was not replicated to SRM .In SRM , the vendor stilll showed as blocked in table BUT000
    2) Vendor Name2 field was changed but was not replicated to SRM.
    I have checked , the BBP_vendor_sync has been running properly and in SLG1 there are no errors.
    what could be the issue ...is there any sap note for this ?

    Hi,
    Pl ensure that you have made the following settings for running BBP_VENDOR_SYNC. http://help.sap.com/saphelp_srm40/helpdata/en/56/54f137a5e6740ae10000009b38f8cf/frameset.htm
    Else run BBPUPDVD to update the vendor data.
    Regards,
    Nikhil

  • TVARVC table not getting updated properly

    Hi,
    We are facing a strange problem...
    First job runs to update TVARVC variable to a new value...let say 6 to 7....
    Second job which runs immediatly after first job uses this variable in TVARVC to read the value picks up old value instead of new value....i.e. its using 6 instead of 7.
    Also TVARVC variable is Fully Buffered table...Can anyone tell me eventhough this variable is updated with new value, why second job is picking old value..??? also i dint see any COMMIT WORK after updating TVARVC in program...i doubt if buffered and no commit work causing the issue...any thoughts???
    Expecting your help.
    Thanks
    Hari

    Hi Hari,
    Is your update and the program that uses the update in the same LUW?  You can create a function module, and run it "in update task".   Then update your TVARV table, and run the other program from the function module.
    This will put all the programs in the same LUW.
    If for some reason your update to TVARV doesn't happen, and it abends, your other program will not be executed.
    Just a thought,
    Michelle

  • Blackberry Calendar sync issues- Recurring Meeting not getting updated properly

    I'm an IT person, all of our employees have been moved to microsoft office 365 recently. After that all blackberry users(BB Q10) in my company are experiencing some strange issues with recurring meetings.
    All the recurring meetings created before 11 AM IST are not syncing correctly and going to the next day in calendar(time is same). However this is showing correctly on outlook, iPhone and windows phone calendars.
    We are using exchange active sync for email setup. The meetings are created using outlook.
    Its strange that the issue is only for recurring meeting created before 11 am IST, single meetings and recurring meetings created after 11 am is working fine.
    We have tried configuring the mail accounts on android windows and iPhone, but those are all working fine. Its only causing issues with Blackberry.
    Troubleshooting done so far:
    1. Checked the  time zone of BB and outlook, all configured to GMT+5.30
    2. Re-synched the calendar
    3. Recreated mail account
    4. Restarted phone.
    Can any one help with this?

    Hi,
    Pl ensure that you have made the following settings for running BBP_VENDOR_SYNC. http://help.sap.com/saphelp_srm40/helpdata/en/56/54f137a5e6740ae10000009b38f8cf/frameset.htm
    Else run BBPUPDVD to update the vendor data.
    Regards,
    Nikhil

  • CPS parameters are not getting updated in SAP

    We have recently migrated our SAP and CPs servers, after that we are  facing few CPS issues  and it is affecting lot of key batch jobs. One typical example is given below.
    CPS is supposed to trigger a job  DD simulation, by copying the SOURCE_DATE_ID -1-Dec-2006  and modifies the parameters BUDAT and FAEDA_HIGH. The parameter FAEDA_HIGH is calculated as time.now()+ 5 working days as defined in the expression. When we try to run the job today with the date 24 Dec 2010, CPS has calculated the FAEDS_HIGH correctly as 2-Jan-2011. IN SAP the variant gets created but for the field FAEDA_HIGH the date value is not getting updated properly it is display some other date. (e.g)  It is showing as 4-jan-2011,  I removed the xpression and gave another date for the FAEDA_HIGH field as 10/01/2011, but in SAP it is not getting updated.
    Has anyone faced similar kind of issue. share you experience
    Regards,
    Ramprasad.

    Hi ,
    PLease find attached out XBP version
    XBP connection pool for SAP system ISU
      XMI interface version           : 2.0
    Since we have taken backup and restored the SAP Database, the CPs transport file already exists in the System.
    Basically what happens is
    So actually what is happening is, the CPS parameter FAEDS_HIGH expressions are  not used for due date calculation.. CPS just copies the source date-id to target id  and similarly for the due date based on the difference
    source_id variant date 01-12-2006   due date 02-12-2006  ( Next day)
    Target_id Variant date 25-12-2010  due date 26-12-21010  ( Next Day)
    I tried changing the Source date id from 01-12-2006 to 24-12-2010.
    Source Variant date 24-12-2010   due date 04-01-2011 ( 10 Days)
    Target Variant date 25-12-2010  due date 05-01-2011 ( 10 Days)
    Regards,
    Ram

  • View in edit window not getting updatet properly

    Hello
    I have some problems with the view in the edit window not getting updatet correctly. I noticed this in spectral view. For example, when I zoom in very much, so I only see about 3 seconds of audio and then select one second of audio and do a time stretch, so it will be two seconds of length, the windows does not update properly.
    Normally the audio behind the strechted selection should move backwards, but often the strechted portion just sort of overlaps it and it doesn't move. When I zoom out and then back in, it seems to be ok.
    I also have had very weird behavior when trying to remove clicks, with the view also getting pretty messed up.
    Does anyone have similar problems with the view not getting updated properly?
    I am running german windows xp, audition is installed in english. I first thought that installing it in english instead of german solves the problems, but unfortunately it didn't.
    Greetings

    Hello again
    I made a movie of this behavior:
    https://share.ols.inode.at/4NNYXR4HT2CJI5IHY273R9NRHRW9OLGR95Q7VTOP
    It shouldn't look like that, right?
    Greetings

  • Backened documents are not getting updated in Classic Scenario

    Hi,
    We are using SRM 7.0 version and we are working on classic scenario where the shopping cart - RFX - Contract are created in SRM and the PO - GR - IR are created in ECC. The blackened documents which are created in ECC PO - GR and IR these documents are not getting updated in SRM system.
    Is there any business functions to be activated.

    Hi Sunil,
    You manually run report ""BBP_GET_STATUS_2" after PO is created in MM. Then check if the follow-on-docs are updated in SC.
    If it is working fine after you manully run report, you will have to properly set time to run this report automatically.
    Best Regards,
    Anu
    Edited by: Anuradha UG on May 18, 2010 8:09 PM

  • Delivery Header Text not getting updated using Inbound DELVRY03 IDOC

    Hello,
    I am using inbound iDOC delivery DELVRY03. I am attempting to populate a text field with segment E1TXTH8, but I can not get it to work properly. The iDOC gets posted successfully in status 53, but text does not get updated.
    Does anyone know what the values for field FUNCTION are supposed to be?
    Any other suggestions?

    Following are the values
    E1TXTH8
    Function             001
    Text Object          VBBK
    Text Name            0080000210
    Text ID              Z112
    Language             EN
    Text format
    LANGUA_ISO           EN
    Item
    E1TXTP8                     * 12343468912334445424
    E1TXTP8                     * 12343468912334445423
    E1TXTP8                     * 12343468912334445422

  • Activity price not getting updated at Production order

    Hi All,
    I have made activity dependent planning at cost centre and calculated the activity rate. The activity rate is showing correctly for the cost centre in KP26, but while confirming the production order (CO11N) the the activity price is not getting updated in production order. But material price is getting properly updated at production order.
    Plz help me in identifying the possible areas of mistakes.
    Regards,
    BKD

    Hi,
    Please check the Period for which you have created the ht activity price is same as the period in the conformation. In the workcenter in which you are confirming please check whether the activities are assigned to the work center.
    Bye,
    Ramesh

  • CCS Details are not getting updated to COPA in Sales Order Settlement(VA88)

    Dear Experts,
    Our scenario is MTO with valuated material.
    1. Production order is tagged to Sales Order.
    2. Production order is settled to Material and variance is getting posted to COPA.
    3. At the time of Delivery, COGS Debit (Cost Object- Sales Order), Credit - Inventory.
    4. At the time of Billing, Accounting Document is getting generated, COPA document is not getting generated.
    5. We  are not executing WIP. (as per Business process)
    6. Settlement is done thru transaction code VA88. COPA Document is getting generated.
    I am facing the following issues in the above MTO process.
    1. At time of sales order settlement thru VA88, In COPA, only COGS is getting as updated with one value field i.e. Material Cost.  Cost Component data (Material Depreciation, Labor etc..) is not getting updated to COPA.
    2. When I settle the Sales Order thru VA88, Billing Quantity is not getting updated to COPA though Quantity field mapping is done properly.
    Please help me how to resolve the above issues.
    Note: Same Cost Component Structure, we are using for Make to Stock scenario. Cost Component Data is getting updated Properly to COPA  (at the time of Billing)
    Regards,
    vgl
    Edited by: vglokam on Aug 31, 2010 10:52 AM
    Edited by: vglokam on Aug 31, 2010 10:54 AM

    Hi
    1. CCS (Cost Comp Split) wont be updated to COPA if you settle via sale order.. In sale order, COGS cost element is posted.. the same will get settled to COPA as one single value...
    In MTS, the CCS gets updated to COPA upon billing because of the "valuation" strategy customization... Billing posts to COPA in that case, COPA gets Sales Qty and it is valuated with CCS to give you the break up.. But, in your case, Billing is not posting to COPA, but to sales order.. hence, there is no qty flow into COPA upon billing.. thats why you dont get CCS for MTO
    2. The sales qty should be updated to COPA upon VA88.. For this, make the following settings in your PA transfer structure which is used during VA88
    1. Go to KEI1, Select your PA transfer structure...
    2. Add an assignment line in it... Check on "Qty Billed/Delivered" in the assignment line
    3. In the Tab "Value Field" below "source", assign Qty Field
    Now when you settle, it should update qty as well
    regards
    Ajay M

  • Custom field in BP_PDBGP table not getting updated

    Hi,
    i am working in Contract management in SRM 7.0 Pack 6. I have aadded a custom field in partner table which appears in the partner table of contract header. It is a checkbox. when i check it the value gets saved in BBPPDBGP table for the first time after that if i try to uncheck it the value is not getting updated. I checked in the BBP_DOC_CHANGE_BADI, the value which is getting passed is correct but it doesn't update the databse accordingly.
    Any suggestions? is this a standard bug?
    Neha

    Hi Virendra,
    Thanks a lot for your suggestion.
    Where should i check? If the data passing to BBP_DOC_CHANGE_BADI is correct then that means at the webdynpro side there should not be any problem and as per the standard after doc_change also it should save properly. i also checked the badi there is not dependent coding done over there. DOC_SAVE badi is also inactive for contract business object. Hence, i am not getting any clue where could be the problem.
    Let me know if you want more details inorder to analyse this problem.
    Thanks &Regards,
    Neha

Maybe you are looking for

  • How do I change the font on my Macbook Pro?

    My issue is that the writing is so small and I can't see very well as it is, I end up 2 inches away from my screen and I can't work out how to change it. There doesn't seem to be a universal "just make text bigger" option on my mac and it's really an

  • Parent-child relation between Activities

    Hello, Is it possible to give parent child relationship between Activities within single Project? The requirement is, parent Activity to take part in overall scheduling whereas the Dates for parent Activity are determined by the child Activities atta

  • Problem with webutil_file_transfer.as_to_client

    Hi all, I am migrating some Forms/Reports from 6i to 10g, well, when i make a report sometimes i want to save some of those reports from server to client. For doing this i am using the WEBUTIL functinality with webutil_file_transfer.as_to_client. thi

  • AirPort problem

    I use ethernet for my internet connection. A friend came over to my place with his laptop and wanted internet. I used my iMac G5 ALS to share my connection through my AirPort card. It worked well. A different friend came over and wanted me to share m

  • 2G Ipod Touch - iOS 3.1.3 - ITunes 10.1 - Can't upgrade to version iOS4.2.

    I hope someone can offer any information about how I can get my Ipod upgraded. When I run Itunes, I get the message that 3.1.3 is already the current version. I have tried reinstalling ITunes, completely resetting my Ipod. I am certain that my device