TileList Moving Items Up/Down

I cannot figure out how to move items in a TileList with
ActionScript. In the sample, when you run it, the moves work if the
item where the selected item will be moved is being displayed, then
it works as expected, but if you scroll down, and then move an item
up to a spot that is not currently displayed, then the item is not
selected, and sometimes the first item is deleted even though the 2
involved items are not near the first item.
<?xml version="1.0"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
creationComplete = "initData();" >
<mx:Script>
<![CDATA[
import mx.controls.Button;
import mx.collections.*;
private var listArray:Array = new Array;
[Bindable]
public var TileListdp:ArrayCollection;
private function initData():void {
var oItem:Object;
for (var i:int = 0; i < 20; i++) {
oItem = new Object;
oItem.label = "Label" + i;
oItem.data = i;
listArray.push(oItem);
TileListdp = new ArrayCollection(listArray);
private function onUpClick(event:Event):void {
var iCurSelect:int = tlList.selectedIndex;
if (iCurSelect != -1 && iCurSelect != 0) {
var oItem:Object = TileListdp[iCurSelect];
TileListdp.addItemAt(oItem, iCurSelect - 1);
TileListdp.removeItemAt(iCurSelect + 1);
tlList.callLater(setSelection, [iCurSelect - 1]);
private function onDownClick(event:Event):void {
var iCurSelect:int = tlList.selectedIndex;
if (iCurSelect != -1 && iCurSelect !=
TileListdp.length) {
var oItem:Object = TileListdp[iCurSelect];
TileListdp.removeItemAt(iCurSelect);
TileListdp.addItemAt(oItem, iCurSelect + 1);
tlList.callLater(setSelection, [iCurSelect + 1]);
private function setSelection(iSelect:int):void {
tlList.selectedIndex = iSelect;
tlList.scrollToIndex(iSelect);
]]>
</mx:Script>
<mx:TileList
id="tlList"
dataProvider="{TileListdp}"
maxColumns="2"
height="200"
width="200" >
<mx:itemRenderer>
<mx:Component>
<mx:VBox width="100%" height="100%">
<mx:Label width="100" text="{data.label}"/>
<mx:Label width="100" text="{data.data}"/>
</mx:VBox>
</mx:Component>
</mx:itemRenderer>
</mx:TileList>
<mx:Button label="Move Up" click="onUpClick(event)" />
<mx:Button label="Move Down" click="onDownClick(event)"
/>
</mx:Application>

I cannot figure out how to move items in a TileList with
ActionScript. In the sample, when you run it, the moves work if the
item where the selected item will be moved is being displayed, then
it works as expected, but if you scroll down, and then move an item
up to a spot that is not currently displayed, then the item is not
selected, and sometimes the first item is deleted even though the 2
involved items are not near the first item.
<?xml version="1.0"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
creationComplete = "initData();" >
<mx:Script>
<![CDATA[
import mx.controls.Button;
import mx.collections.*;
private var listArray:Array = new Array;
[Bindable]
public var TileListdp:ArrayCollection;
private function initData():void {
var oItem:Object;
for (var i:int = 0; i < 20; i++) {
oItem = new Object;
oItem.label = "Label" + i;
oItem.data = i;
listArray.push(oItem);
TileListdp = new ArrayCollection(listArray);
private function onUpClick(event:Event):void {
var iCurSelect:int = tlList.selectedIndex;
if (iCurSelect != -1 && iCurSelect != 0) {
var oItem:Object = TileListdp[iCurSelect];
TileListdp.addItemAt(oItem, iCurSelect - 1);
TileListdp.removeItemAt(iCurSelect + 1);
tlList.callLater(setSelection, [iCurSelect - 1]);
private function onDownClick(event:Event):void {
var iCurSelect:int = tlList.selectedIndex;
if (iCurSelect != -1 && iCurSelect !=
TileListdp.length) {
var oItem:Object = TileListdp[iCurSelect];
TileListdp.removeItemAt(iCurSelect);
TileListdp.addItemAt(oItem, iCurSelect + 1);
tlList.callLater(setSelection, [iCurSelect + 1]);
private function setSelection(iSelect:int):void {
tlList.selectedIndex = iSelect;
tlList.scrollToIndex(iSelect);
]]>
</mx:Script>
<mx:TileList
id="tlList"
dataProvider="{TileListdp}"
maxColumns="2"
height="200"
width="200" >
<mx:itemRenderer>
<mx:Component>
<mx:VBox width="100%" height="100%">
<mx:Label width="100" text="{data.label}"/>
<mx:Label width="100" text="{data.data}"/>
</mx:VBox>
</mx:Component>
</mx:itemRenderer>
</mx:TileList>
<mx:Button label="Move Up" click="onUpClick(event)" />
<mx:Button label="Move Down" click="onDownClick(event)"
/>
</mx:Application>

Similar Messages

  • Slow moving items report

    hey
    there is a standard query for Slow moving items based on 0IC_MC01. I need to find out the last goods issue and last goods receipt date on this query.
    Any one has any ideas ?
    thanks
    Laura.

    Hi Laura
    There is a standard query for slow moving items based Multi Provider 0IC_MC01
    and query is : Query 0IC_MC01_Q0001 is available as of 3.0B (role: SAP_BW_0ROLE_0003).
    But if you get some msg: Redesign Slow Moving Inventory
    then do this following
    Please change the definition of the MultiProvider 0IC_MC01 and the underlying Query 0IC_MC01_Q0001. These changes are included with SAP BW
    1. Administrator Workbench
       -> Change definition of 0IC_MC01
          -> Activate navigational attributes
             0MATERIAL__0DIVISION
             0MATERIAL__0MATL_CAT
             0MATERIAL__0MATL_GROUP
             0MATERIAL__0MATL_TYPE
          -> Identification
             mark ALL displayed characteristics/navigational attributes
        -> Save, check and activate 0IC_MC01
    2. BeX Analyzer
       -> Change definition of 0IC_MC01_Q0001
          -> remove characteristic 0CALMONTH (free characteristics)
          -> add characterstics 0MATL_GROUP (rows) and restrict it to
             variable 0S_MATG
          -> remove calculated key figure 0IC_MC01_CK0003 (columns)
          -> add new selection "All materials" accordingly to
             example "All customers" (columns)
             - use InfoProvider 0MATERIAL instead of 0CUSTOMER
             - supress this structural element in the properties
          -> add key figures 0ISSVS_VAL and 0RECVS_VAL (columns)
       -> Save, check and activate 0IC_MC01_Q0001
    The selection "All materials" provides all material numbers that are
    stored in BW. So you can identify materials that have had no movements
    within in the selected period. These materials show no values in key
    figures 0ISSVS_VAL and 0RECVS_VAL.
    For information purposes you can also add other key figures.
    You can also add other characteristics in the drill down for grouping
    purposes, like e.g. 0DIVISION.
    If you want to have similar reports with 0PLANT you can also create
    a similar MultiProvider/Query with 0MAT_PLANT instead of 0MATERIAL.
    Hope you got some idea and help
    Atul

  • After trying to update itunes it now hangs moving items into place.

    I get the error that this copy of itunes is corrupted or is not installed correctly.  Please reinstall itunes (error -42037).  I have attempted to reinstall but the install process hangs at moving items into place.  I have left it over night, before manually shutting down and trying again, and then left it all day.  Still hangs, whilst hanging the time remaining goes up from less than a minute, to 1 hour 6 minutes, to 2 hours 50 minutes etc.  I need to fix quickly as I am setting up a new phone and was able to restore all but my music from icloud.  I need my music and playlists set up before tomorrow.  Thanks

    Hi, reinstalling iTunes should not mess with your music et cetera (however some users have suggested on here that it did), but keeping a backup is always recommended anyway.
    You can visit this link to install iTunes, the older seemingly corrupted version will be replaced...Troubleshooting iTunes installation on Mac OS X - Apple Support

  • Hi i am using OS 10.8.5 i hv a problem moving items to trash when i delete any thing it deletes from specific folder but dosnt appear in trash n my hard drive space is not getting free kindly help me

    hi i am using OS 10.8.5 i have a problem moving items to trash when i move a specific thing to trash it deletes from that folder but does not appear in trash and my hard drive space is not getting free i am a new user to mac kindly help  me out

    When you have kernel panics, the pertinent information is in the panic report.
    These instructions must be carried out as an administrator. If you have only one user account, you are the administrator.
    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad and start typing the name.
    In the Console window, select
              DIAGNOSTIC AND USAGE INFORMATION ▹ System Diagnostic Reports
    (not Diagnostic and Usage Messages) from the log list on the left. If you don't see that list, select
              View ▹ Show Log List
    from the menu bar.
    There is a disclosure triangle to the left of the list item. If the triangle is pointing to the right, click it so that it points down. You'll see a list of reports. A panic report has a name that begins with "Kernel" and ends in ".panic". Select the most recent one. The contents of the report will appear on the right. Use copy and paste to post the entire contents—the text, not a screenshot.
    If you don't see any reports listed, but you know there was a panic, you may have chosen Diagnostic and Usage Messages from the log list. Choose DIAGNOSTIC AND USAGE INFORMATION instead.
    In the interest of privacy, I suggest that, before posting, you edit out the “Anonymous UUID,” a long string of letters, numbers, and dashes in the header of the report, if it’s present (it may not be.)
    Please don’t post other kinds of diagnostic report.
    I know the report is long, maybe several hundred lines. Please post all of it anyway.

  • Software update freezes at "moving items into place"

    Do the usual update procedure, but Software Update gets to the "moving items into place" point and hangs. You can't press "stop" you can't quit you can only turn off the machine by pressing and holding the on/off button.

    Try booting into Safe Mode, hold down left side shift key when booting, hold untill you see the progress bar (note this will take longer than normal, so be patient)
    Log in open disk utilities (Applications>Utilities.Disk utility.app) rhen select (highlght) your volume in the left side bar, click repair permissions.
    The run software update again and try the install while in safe mode, if sucessful log out (this will take a little longer as well) and log back normally.
    Best

  • ITunes Install stuck on "Moving Items Into Place" for 3 days

    3 days ago, I was unable to open iTunes on my Mac OSX Version 10.9.3. The error message claimed that the file was corrupt and I needed to uninstall and redownload iTunes. I started the download on May 16th in the morning. It got stuck on "moving items into place." After a few hours, I finally managed to force quit and shut down my system. Then, I tried again. It has been stuck on this screen since May 16th. Any idea why I am unable to download iTunes? HELP!

    Just found this and it fixed the issue for me, hope it works for you:
    - Try booting into Safe Mode, hold down left side shift key when booting, hold untill you see the progress bar (note this will take longer than normal, so be patient)
    - Log in and open disk utilities (Applications->Utilities->Disk Utility app) then select (highlight) your volume in the left side bar, click repair permissions.
    - The run software update again and try the install while in safe mode, if sucessful log out (this will take a little longer as well) and log back normally.

  • Custom Report for slow and fast moving items

    Dear Xperts,
    My client wants to develop a new report for slow and fast moving items, I checked the std report MC46 however as per std SAP design this report does not consider the special stock like project stock (Q)...could you please help me to know how can develop this new report with following input and output fields?
    Input fields:
    Plant
    Material
    Material Group
    MRP Area
    Special Stock Indicator
    Special Stock (Type)
    Output Fields:
    Material
    Material type
    Material group
    MRP Controller
    MRP Area
    ABC indicator
    Material price
    Category field – Slow, Fast, Non-moving
    Current Stock
    Last Issue Date
    Thanks in Advance
    Regards
    Rahul

    Dear Rahul,
    If you required  project stock and consignment stock with valuated stock report in same place you need to generate new info structure as given below link. Or you can go with customized report with abaper.
    Info structure validation
    Regards
    Sanjeet Kumar

  • Report on Slow-moving item in sap MM

    Dear All,
    I am facing problem in preparing functional specification for a Z report.The requirement details are given below
    MC46 gives me a list of all items that have not got consumed since the last period (defined in terms of 'no of days' on the screen before executing the report) This report  give  a list of items that have shown nil consumption in the defined period. This list helps us analyze and categorize these items as Slow-moving or Non-Moving items. The output is in terms of Part no and Part Description.
    Example; Suppose we are executing the transaction  on say 29.10.2013.The system ,say give list of materials X1,X2 and X3 with nil consumption in the defined. The transactions suppose is again executed
    on 29.10.2011.The report  say again give a list of materials X1 and X3 with nil consumption. The material
    X2 is excluded from the report  as it might have been consumed in certain business processes(either issued to cost center or issued to production).
    The client wants a report from where it is possible to determine a list of materials along with consumption
    and the date on which the  material have moved out of stock for consumption. In otherworldu2019s we can say the report should give :
                        stock on starting  date(say 29.10.2013)
                        Consumption/movement in terms of date and quantity
    The problem is that when the transaction MC46 is run the next time(say on 29.11.2013 or any day after
    29.10.2013) there might be materials which might have got consumed in the interim period and therefore have got excluded from the latest list. We need to have a look at these interim materials to analyze their movement/consumption.MC 46  Report does not give details of openinf stock, closing stock and the purpose for which the stock have moved out of stock
    The client wants a Z-Report which will give details about the material which have moved out of stock when the report will be executed ,opening stock,closing stock.The detail requirement are given below
    The report will assist the client to get a list   of all such items with reference to a starting date and their movement in the period (period from the starting date to the run date)
    Selection Screen(Input)
    Opening Date
    Closing date
    Movement type
    Plant
    Output
    Material nos(Material which have moved out of stock when the program was last executed)
    Movement type
    Movement date
    opening stock qty
    opening stock value
    closing stock qty
    closing stock value
    I request if any one can help in preparing functional specifications.

    thanx for reply ,
    but plez read the requirement above mention.i understood  what are you saying .

  • Search Item drop-down does not show any data for Advanced Search.

    Hi,
    I have a requirement to add a new criteria to the existing Advanced Search region of 'My Employee Information' in Manager Self Service responsibility. I substituted the AdvancedSearchVO to include the new column. Using personalization i did the below steps to show the new column in the page,
    1) Created a 'Message Styled Text' item under Table Layout region to display the result. I associated the View Instance (AdvancedSearchVO1) and View Attribute (AttrColumn).
    2) In Advanced Search Panel created a new CriteriaRow and set the 'Search Allowed' property to True.
    3) In Advanced Search Mappings i tried to create the new mapping but the Search Item drop-down does not show any of the CriteriaRow item. But Results Item shows the 'Message Styled Text' item created in step 1 above.
    Any idea what i would be missing becasue of which 'Search Item' property does not show any data?
    I am using OAF version 12.1.1.
    Thanks, Suresh

    Hi,
    I faced the same situation but i still waiting for the solution.. this is my problem's thread..
    Addition of LOV Search Filter using Personalization
    But when i tried to create a new custom page with advanced table and created a new LOV column via personalization. i was able to create new search mapping.. but this is not happening in the seeded page case :(.
    I m also looking for solution...if any one can provide some inputs on it , will be highly appreciated.
    Thanks
    Renu

  • Satellite A215-S4757: screen started shaking, moving up and down

    I purchased my laptop about a year and a half ago and had no major problems till this week.
    It began a couple of days ago when the image on the screen started shaking, moving up and down and lines started appearing on the screen and going away. I restarted the computer but the screen did not want to power on. After a few tries it eventually came and worked fine for a while before it began doing the same thing again. This happened a few times until yesterday when no matter how many times i tried it did not come on.
    I do not think the problem is only with the screen because I have the laptop connected to my TV through the VGA cable and the image on there did the same thing once as well. Also even though the laptop powers up and the power light lights up, the words SATELLITE do not light up unless the screen comes on.
    Also the CAPS LOCK key has a light on it that should be lighting up(when pressed) as well if everything is working fine and it does not light up either.
    Does anyone know what I can do to fix this?
    Thank you.

    You make a good point but I had a notebook from an other manufacture before this laptop and I kept it going for over a year with several problems, each by itself bad enough to stop it from running. I am not saying I have any kind of skill or expertise but with some advice and assistance I think I can fix this myself. I have read some things online that point to the inverter and I have also found instructions on how to take the laptop apart. I wouldn't be so set against going to the ASP if there were any within 100 miles of me but there aren't. For now I'll have to keep looking.

  • My MacBook pro is freezing at the "moving items into place" phase. I have to restore from time machine each time. I'm talking about the 10.7.4 update

    I can't seem to get the 10.7.4 update to work. It constantly freezing at the "moving items into place" phase. I let it run overnight and it's still frozen. I have to restore from time machine backup each time. Any help appreciated.

    this is somethinng like the third post i have read about that update causing troubles...
    But if I read this right- it is still in the install? Had you restarted and repaired permissions BEFORE the download? As well as emptying cache in safari first?
    The other troubles I read had to do with after install, and caused by...oh what was it...it was early morning...an article at CNET news had it...google 10.7.4 update trouble and read the cnet one.

  • Slow-moving items

    Hi,
    How is it that the standard report 0IC_MC01_Q0001, displays just slow-moving as it doesnt seem to have any condition on issued or valued stock it seems to just display all the values but not the above key figures with zero values. Should we create conditions on them. am i missing something.
    Thanks,
    your help will be rightly appreciated

    Hi,
    Generally in R/3 side,
    MC46 is the standard transaction code for the SLOW MOVING ITEMS. In that transaction code u can see all the details about the slow moving items. Through that transaction code u can check what are all the things are missing in BW side.
    Thanks,
    Sankar M

  • Slow Moving Items in 0IC_MC01 Performance issue

    Hi  i am creating slow moving items report (Report which shows materials for which no transaction has been done for last 3 years) on MP 0IC_MC01 in BI7.0.
    MP is based on cube 0IC_C03 and Infoobject 0MATERIAL .
    In query i put rowcount in coloumn with Infoprovider 0material with constant selection but i dont get the option "Display values not posted" . and Issues value and Recved value .
    in rows i put plant , material and material type 
    n put one condition values for issued and Recid = 0 .
    and in filter we have calender year restriction  .
    But the proble is dere are around 25000 materials for each plant and its taking a lot of time to exceute for multiple plants for 1-2 years , can anyone suggest the best way for this report or how performance of this report can be improved .
    Help will be appreciated .

    Its rather better to use infoset on 0IC_MC01 and Material than using MP. The performance issue is coming because of a join between cube and infoobject, which SAP dont suggest to use.
    You ahve to use left outer join to get slow moving items.
    http://help.sap.com/saphelp_nw04/Helpdata/EN/67/7e4b3eaf72561ee10000000a114084/content.htm
    Thanks...
    Shambhu

  • Report on slow-moving items

    Hello gurus,
    I would like to creat a report on slow-moving items in LIS, similar to report RMCBLH30 (TAC MC46).
    But in 'my' report I would like to see only those slow-moving items in stock. RMCBLH30 unfortunatelly gives my all slow-moving items, even those with quantity = 0.
    Could someone please give me a hint on how to do this? Are there any good tutorials in building LIS-reports?
    Thanks in advance
    Alicia

    Hi,
    Please check the last date when any of your stock movement had an accounting impact like GR, GI etc and see whether the data tallies
    In MC46 try for double line display tab. It shows last movement date.
    Also, check for Detailed Display for each material. It will show the details based on which it is picking last movement date and No movement since days.
    From this details you can make out the date which it is taking as last movement......
    MC46 simply counts the number of days since the last issue against each
    material - the more days the slower moving the stock
    If you want to generate a Z-report please take the help of technical consultant...
    regards,
    Patil

  • Returning a ZERO on Slow-Moving Item without transaction

    Hi all,
    Via a multi-provider, we have implemented several slow-moving item in our reports, eg we return all the value of some dimensions whether we have transaction or not on these dimension values.
    Now for dimension value for which we have no transaction it returns in Bex an empty result on the key figure instead of a zero, is there a way to force BW to put a zero on a slow-moving item without any transaction?
    Thanks in advance for your assistance
    David

    Hallo
    FI you go to the Query Designery --> Property Display than you can cusotmioze how to display the zero. You probably have the option Zero Values Display as Blank.
    I hope this can help you
    Mike

Maybe you are looking for

  • Faces not working with b/w photos?

    Trying to add faces/names to historical old black & white photos, but when any b/w photos selected screen goes blank. Is the dislike of b/w photos a known 'feature' of iPhone 9?

  • QtCurve: is there a way to influence widget sizes?

    Hi, By and lagre, QtCurve is the most popular Qt/GTK theme, and for a good reason: it's a working solution . The widgets are just a shade too big to my taste, though, especially on 1280x800 resolution. Krusader Fx buttons waste way too much screen es

  • Reinstalling Acrobat 9

    I have Acrobat 9. Stopped working. So I uninstalled and tried to reinstall. Will not let me. Help!!

  • Clean up desktop icons?

    make icons clean up without clicking view clean up with finder?

  • Please open new icloud account to me

    my icloud account close, because maximum account oppened a kind of ex users on my iphone please reset my iphone old icloud acounts or i can not use the icloud...